bbb-install icon indicating copy to clipboard operation
bbb-install copied to clipboard

Failed to install bbb 2.3: Error on building bbb-libreoffice docker image

Open newfluxdev opened this issue 3 years ago • 12 comments

I'm trying to install bbb 2.3 with command wget -qO- https://ubuntu.bigbluebutton.org/bbb-install.sh | bash -s -- -v bionic-230 -s xxxx -a -g -w -d

A few weeks ago, I have succeeded with the same above command. But now, when I'm trying to install bbb 2.3 on new machine, it prompted error:

...
#
# Building bbb-libreoffice docker image
#
Sending build context to Docker daemon  2.048kB
Step 1/5 : FROM openjdk:11-jre-bullseye
 ---> 83daba3863cf
Step 2/5 : ENV DEBIAN_FRONTEND noninteractive
 ---> Using cache
 ---> f8cacb08935f
Step 3/5 : RUN echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list
 ---> Using cache
 ---> 9bc65aa12ef9
Step 4/5 : RUN apt update && apt -y install locales-all fontconfig libxt6 libxrender1
 ---> Using cache
 ---> f22e40a5bf85
Step 5/5 : RUN apt update && apt -y install -t bullseye-backports libreoffice && rm /usr/share/java/ant-apache-log4j-1.10.9.jar && rm /usr/share/maven-repo/org/apache/ant/ant-apache-log4j/1.10.9/ant-apache-log4j-1.10.9.jar
 ---> Running in 086ebee7b6f6

...

rm: cannot remove '/usr/share/java/ant-apache-log4j-1.10.9.jar': No such file or directory
The command '/bin/sh -c apt update && apt -y install -t bullseye-backports libreoffice && rm /usr/share/java/ant-apache-log4j-1.10.9.jar && rm /usr/share/maven-repo/org/apache/ant/ant-apache-log4j/1.10.9/ant-apache-log4j-1.10.9.jar' returned a non-zero code: 1
dpkg: error processing package bbb-libreoffice-docker (--configure):
 installed bbb-libreoffice-docker package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of bbb-web:
 bbb-web depends on bbb-libreoffice-docker; however:
  Package bbb-libreoffice-docker is not configured yet.

dpkg: error processing package bbb-web (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of bbb-html5:
 bbb-html5 depends on bbb-web; however:
  Package bbb-web is not configured yet.

dpkg: error processing package bbb-html5 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of bbb-config:
 bbb-config depends on bbb-html5; however:
  Package bbb-html5 is not configured yet.

dpkg: error processing package bbb-config (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of bigbluebutton:
 bigbluebutton depends on bbb-config; however:
  Package bbb-config is not configured yet.

dpkg: error processing package bigbluebutton (--configure):
 dependency problemsNo apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
 - leaving unconfigured
Errors were encountered while processing:
 bbb-libreoffice-docker
 bbb-web
 bbb-html5
 bbb-config
 bigbluebutton
E: Sub-process /usr/bin/dpkg returned an error code (1)

# BigBlueButton does not appear to be installed.  Could not
# locate: /etc/bigbluebutton/bigbluebutton-release


# BigBlueButton does not appear to be installed.  Could not
# locate: /etc/bigbluebutton/bigbluebutton-release

newfluxdev avatar May 18 '22 17:05 newfluxdev

BigBlueButton 2.4 is the current release. Is it an option for you to install that release instead of the older 2.3?

ffdixon avatar May 18 '22 22:05 ffdixon

BigBlueButton 2.4 is the current release. Is it an option for you to install that release instead of the older 2.3?

Our system is working well with 2.3 and we don't have plan to move to 2.4 or 2.5 in the near future!

newfluxdev avatar May 19 '22 02:05 newfluxdev

2.3 is in maintenance mode (security fixes only) as we (the core developers) are now focused on BigBlueButton 2.4/2.5.

2.4 is the current and recommend install version for BigBlueButton. We would recommend you try the same command with (pass -v bionic-240). It should work!

If not, since 2.4/2.5 are under active development, we can update the installation to fix any current issues.

ffdixon avatar May 19 '22 05:05 ffdixon

2.3 is in maintenance mode (security fixes only) as we (the core developers) are now focused on BigBlueButton 2.4/2.5.

2.4 is the current and recommend install version for BigBlueButton. We would recommend you try the same command with (pass -v bionic-240). It should work!

If not, since 2.4/2.5 are under active development, we can update the installation to fix any current issues.

any update with this issue ? after facing the same error with this error, I decided to install bbb 2.4 on ubuntu 18.04 and still facing same error. I hope the 2.3 version can be fixed immediately since I have develop it on local machine and just need to deploy it on production. Thanks anyway sir

asharifauzan avatar May 21 '22 13:05 asharifauzan

Can you post the contents of /usr/share/bbb-libreoffice/docker/Dockerfile. Here's what it should be.

# cat /usr/share/bbb-libreoffice/docker/Dockerfile
FROM openjdk:11-jre-bullseye
ENV DEBIAN_FRONTEND noninteractive

RUN echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list
RUN apt update && apt -y install locales-all fontconfig libxt6 libxrender1
RUN apt update && apt -y install -t \
  bullseye-backports \
  libreoffice \
  && rm -f \
  /usr/share/java/ant-apache-log4j-1.10.9.jar \
  /usr/share/java/log4j-1.2-1.2.17.jar /usr/share/java/log4j-1.2.jar \
  /usr/share/maven-repo/log4j/log4j/1.2.17/log4j-1.2.17.jar \
  /usr/share/maven-repo/log4j/log4j/1.2.x/log4j-1.2.x.jar \
  /usr/share/maven-repo/org/apache/ant/ant-apache-log4j/1.10.9/ant-apache-log4j-1.10.9.jar

Note the rm -f -- which will force the remove of the files and should not error out if they don't exist.

ffdixon avatar May 21 '22 18:05 ffdixon

Can you post the contents of /usr/share/bbb-libreoffice/docker/Dockerfile. Here's what it should be.

# cat /usr/share/bbb-libreoffice/docker/Dockerfile
FROM openjdk:11-jre-bullseye
ENV DEBIAN_FRONTEND noninteractive

RUN echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list
RUN apt update && apt -y install locales-all fontconfig libxt6 libxrender1
RUN apt update && apt -y install -t \
  bullseye-backports \
  libreoffice \
  && rm -f \
  /usr/share/java/ant-apache-log4j-1.10.9.jar \
  /usr/share/java/log4j-1.2-1.2.17.jar /usr/share/java/log4j-1.2.jar \
  /usr/share/maven-repo/log4j/log4j/1.2.17/log4j-1.2.17.jar \
  /usr/share/maven-repo/log4j/log4j/1.2.x/log4j-1.2.x.jar \
  /usr/share/maven-repo/org/apache/ant/ant-apache-log4j/1.10.9/ant-apache-log4j-1.10.9.jar

Note the rm -f -- which will force the remove of the files and should not error out if they don't exist.

bigbluebutton 2.3 Ubuntu 18.04.6 LTS

FROM openjdk:11-jre-bullseye
ENV DEBIAN_FRONTEND noninteractive

RUN echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list
RUN apt update && apt -y install locales-all fontconfig libxt6 libxrender1
RUN apt update && apt -y install -t bullseye-backports libreoffice && rm /usr/share/java/ant-apache-log4j-1.10.9.jar && rm /usr/share/maven-repo/org/apache/ant/ant-apache-log4j/1.10.9/ant-apache-log4j-1.10.9.jar
# Building bbb-libreoffice docker image
#
Sending build context to Docker daemon  2.048kB
Step 1/5 : FROM openjdk:11-jre-bullseye
 ---> 83daba3863cf
Step 2/5 : ENV DEBIAN_FRONTEND noninteractive
 ---> Using cache
 ---> 8024d737b7b4
Step 3/5 : RUN echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list
 ---> Using cache
 ---> 8c79ce12efd9
Step 4/5 : RUN apt update && apt -y install locales-all fontconfig libxt6 libxrender1
 ---> Running in 165badcc48c5

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Err:1 http://security.debian.org/debian-security bullseye-security InRelease
  Temporary failure resolving 'security.debian.org'
Err:2 http://deb.debian.org/debian bullseye InRelease
  Temporary failure resolving 'deb.debian.org'
Err:3 http://deb.debian.org/debian bullseye-updates InRelease
  Temporary failure resolving 'deb.debian.org'

if I do sudo docker run -it <bbb-libreoffice-img> and do apt update inside it, it show same result. But when I run sudo docker run -it --net=host <bbb-libreoffice-img> I can do apt update is this error related to docker network ?

in my ifconfig docker0 uses mtu 1500 and ens3 uses mtu 1450

asharifauzan avatar May 23 '22 04:05 asharifauzan

I can do apt update is this error related to docker network ?

It looks like it might be ... are you able to get thorough the rest of the installation?

ffdixon avatar May 23 '22 12:05 ffdixon

I can do apt update is this error related to docker network ?

It looks like it might be ... are you able to get thorough the rest of the installation?

No it's don't complete the installation.

I just noticed there is a way to solve the same problem https://docs.bigbluebutton.org/2.3/install.html#package-locales-all-is-not-available but it doesn't works since it causing my server cannot connect to internet.

But I have solve the problem

  1. execute installation command
  2. wait and let the installation failed
  3. sudo nano /usr/share/bbb-libreoffice/docker/Dockerfile and give comment RUN <LINUX COMMAND>, it should be like this
FROM openjdk:11-jre-bullseye
ENV DEBIAN_FRONTEND noninteractive

#RUN echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list
#RUN apt update && apt -y install locales-all fontconfig libxt6 libxrender1
#RUN apt update && apt -y install -t bullseye-backports libreoffice && rm /usr/share/java/ant-apache-log4j-1.10.9.jar && rm /usr/share/maven-repo/org/apache/ant/ant-apache-log4j/1.10.9/ant-apache-log4j-1.10.9.jar
  1. do installation command again (step 1)
  2. do sudo docker images and copy the IMAGE ID of bbb-soffice
  3. do sudo docker run -it --net=host <IMAGE ID> we should use --net=host because without it debian can do apt update
  4. run all the commented line on /usr/share/bbb-libreoffice/docker/Docker inside this docker image

asharifauzan avatar May 24 '22 12:05 asharifauzan

@ffdixon same issue can observed while trying to install specific version: v2.4.4 wget -qO- https://ubuntu.bigbluebutton.org/bbb-install.sh | bash -s -- -v bionic-240-2.4.4 -s example.domain.com -e [email protected] -a -w

tomonsoejang avatar Jun 14 '22 05:06 tomonsoejang

Did asharifauzan's workaround help you get past the issue?

ffdixon avatar Jun 14 '22 11:06 ffdixon

I can do apt update is this error related to docker network ?

It looks like it might be ... are you able to get thorough the rest of the installation?

No it's don't complete the installation.

I just noticed there is a way to solve the same problem https://docs.bigbluebutton.org/2.3/install.html#package-locales-all-is-not-available but it doesn't works since it causing my server cannot connect to internet.

But I have solve the problem

  1. execute installation command
  2. wait and let the installation failed
  3. sudo nano /usr/share/bbb-libreoffice/docker/Dockerfile and give comment RUN <LINUX COMMAND>, it should be like this
FROM openjdk:11-jre-bullseye
ENV DEBIAN_FRONTEND noninteractive

#RUN echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list
#RUN apt update && apt -y install locales-all fontconfig libxt6 libxrender1
#RUN apt update && apt -y install -t bullseye-backports libreoffice && rm /usr/share/java/ant-apache-log4j-1.10.9.jar && rm /usr/share/maven-repo/org/apache/ant/ant-apache-log4j/1.10.9/ant-apache-log4j-1.10.9.jar
  1. do installation command again (step 1)
  2. do sudo docker images and copy the IMAGE ID of bbb-soffice
  3. do sudo docker run -it --net=host <IMAGE ID> we should use --net=host because without it debian can do apt update
  4. run all the commented line on /usr/share/bbb-libreoffice/docker/Docker inside this docker image

I did a similar thing but instead of commenting out the RUN inside the Dockerfile, I added a " -f " after each "rm" so it won't throw an error if the file doesn't exist. This way I don't need to execute the commands inside the container (steps 5, 6 and 7), specially because you would need to repeat this after each reboot.

felcaetano avatar Aug 23 '22 16:08 felcaetano