[GH-ISSUE #580] error while executing docker-compose.yml #271

Closed
opened 2026-02-26 10:31:31 +03:00 by kerem · 4 comments
Owner

Originally created by @luckycloud-GmbH on GitHub (Feb 4, 2023).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/580

Hello,
I just tried to run the docker-compose.yml but get an error on build from onlyoffice-documentserver

Setting up ca-certificates (20211016ubuntu0.22.04.1) ...
Updating certificates in /etc/ssl/certs...
124 added, 0 removed; done.
Setting up gpgconf (2.2.27-3ubuntu2.1) ...
Setting up gpg (2.2.27-3ubuntu2.1) ...
Setting up libpython3-stdlib:amd64 (3.10.6-1~22.04) ...
Setting up gnupg-utils (2.2.27-3ubuntu2.1) ...
Setting up gpg-agent (2.2.27-3ubuntu2.1) ...
Setting up python3.10 (3.10.6-1~22.04.2) ...
Setting up gpgsm (2.2.27-3ubuntu2.1) ...
Setting up python3 (3.10.6-1~22.04) ...
Setting up dirmngr (2.2.27-3ubuntu2.1) ...
Setting up gpg-wks-server (2.2.27-3ubuntu2.1) ...
Setting up lsb-release (11.1.0ubuntu4) ...
Setting up gpg-wks-client (2.2.27-3ubuntu2.1) ...
Setting up gnupg (2.2.27-3ubuntu2.1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Processing triggers for ca-certificates (20211016ubuntu0.22.04.1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
gpg: WARNING: unsafe permissions on homedir '/root/.gnupg'
gpg: keyring '/etc/apt/trusted.gpg.d/onlyoffice.gpg' created
gpg: keyserver receive failed: No data
ERROR: Service 'onlyoffice-documentserver' failed to build: The command '/bin/sh -c echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d &&     apt-get -y update &&     apt-get -yq install wget apt-transport-https gnupg locales lsb-release &&     mkdir -p $HOME/.gnupg &&     gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/onlyoffice.gpg --keyserver keyserver.ubuntu.com --recv-keys 0x8320ca65cb2de8e5 &&     chmod 644 /etc/apt/trusted.gpg.d/onlyoffice.gpg &&     locale-gen en_US.UTF-8 &&     echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections &&     wget -O - https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.deb.sh | bash &&     if [ $(lsb_release -cs) = focal ]; then RABBITMQ_VERSION=3.8.11-1; else RABBITMQ_VERSION=3.9 ; fi &&     apt-get -yq install         adduser         apt-utils         bomstrip         certbot         curl         gconf-service         htop         libasound2         libboost-regex-dev         libcairo2         libcurl3-gnutls         libcurl4         libgtk-3-0         libnspr4         libnss3         libstdc++6         libxml2         libxss1         libxtst6         mysql-client         nano         net-tools         netcat-openbsd         nginx-extras         postgresql         postgresql-client         pwgen         rabbitmq-server=${RABBITMQ_VERSION}*         redis-server         software-properties-common         sudo         supervisor         ttf-mscorefonts-installer         xvfb         zlib1g &&     if [  $(ls -l /usr/share/fonts/truetype/msttcorefonts | wc -l) -ne 61 ];         then echo 'msttcorefonts failed to download'; exit 1; fi  &&     echo "SERVER_ADDITIONAL_ERL_ARGS=\"+S 1:1\"" | tee -a /etc/rabbitmq/rabbitmq-env.conf &&     sed -i "s/bind .*/bind 127.0.0.1/g" /etc/redis/redis.conf &&     sed 's|\(application\/zip.*\)|\1\n    application\/wasm wasm;|' -i /etc/nginx/mime.types &&     pg_conftool $PG_VERSION main set listen_addresses 'localhost' &&     service postgresql restart &&     sudo -u postgres psql -c "CREATE DATABASE $ONLYOFFICE_VALUE;" &&     sudo -u postgres psql -c "CREATE USER $ONLYOFFICE_VALUE WITH password '$ONLYOFFICE_VALUE';" &&     sudo -u postgres psql -c "GRANT ALL privileges ON DATABASE $ONLYOFFICE_VALUE TO $ONLYOFFICE_VALUE;" &&     service postgresql stop &&     service redis-server stop &&     service rabbitmq-server stop &&     service supervisor stop &&     service nginx stop &&     rm -rf /var/lib/apt/lists/*' returned a non-zero code: 2
Originally created by @luckycloud-GmbH on GitHub (Feb 4, 2023). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/580 Hello, I just tried to run the docker-compose.yml but get an error on build from onlyoffice-documentserver ``` Setting up ca-certificates (20211016ubuntu0.22.04.1) ... Updating certificates in /etc/ssl/certs... 124 added, 0 removed; done. Setting up gpgconf (2.2.27-3ubuntu2.1) ... Setting up gpg (2.2.27-3ubuntu2.1) ... Setting up libpython3-stdlib:amd64 (3.10.6-1~22.04) ... Setting up gnupg-utils (2.2.27-3ubuntu2.1) ... Setting up gpg-agent (2.2.27-3ubuntu2.1) ... Setting up python3.10 (3.10.6-1~22.04.2) ... Setting up gpgsm (2.2.27-3ubuntu2.1) ... Setting up python3 (3.10.6-1~22.04) ... Setting up dirmngr (2.2.27-3ubuntu2.1) ... Setting up gpg-wks-server (2.2.27-3ubuntu2.1) ... Setting up lsb-release (11.1.0ubuntu4) ... Setting up gpg-wks-client (2.2.27-3ubuntu2.1) ... Setting up gnupg (2.2.27-3ubuntu2.1) ... Processing triggers for libc-bin (2.35-0ubuntu3.1) ... Processing triggers for ca-certificates (20211016ubuntu0.22.04.1) ... Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d... done. gpg: WARNING: unsafe permissions on homedir '/root/.gnupg' gpg: keyring '/etc/apt/trusted.gpg.d/onlyoffice.gpg' created gpg: keyserver receive failed: No data ERROR: Service 'onlyoffice-documentserver' failed to build: The command '/bin/sh -c echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && apt-get -y update && apt-get -yq install wget apt-transport-https gnupg locales lsb-release && mkdir -p $HOME/.gnupg && gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/onlyoffice.gpg --keyserver keyserver.ubuntu.com --recv-keys 0x8320ca65cb2de8e5 && chmod 644 /etc/apt/trusted.gpg.d/onlyoffice.gpg && locale-gen en_US.UTF-8 && echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections && wget -O - https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.deb.sh | bash && if [ $(lsb_release -cs) = focal ]; then RABBITMQ_VERSION=3.8.11-1; else RABBITMQ_VERSION=3.9 ; fi && apt-get -yq install adduser apt-utils bomstrip certbot curl gconf-service htop libasound2 libboost-regex-dev libcairo2 libcurl3-gnutls libcurl4 libgtk-3-0 libnspr4 libnss3 libstdc++6 libxml2 libxss1 libxtst6 mysql-client nano net-tools netcat-openbsd nginx-extras postgresql postgresql-client pwgen rabbitmq-server=${RABBITMQ_VERSION}* redis-server software-properties-common sudo supervisor ttf-mscorefonts-installer xvfb zlib1g && if [ $(ls -l /usr/share/fonts/truetype/msttcorefonts | wc -l) -ne 61 ]; then echo 'msttcorefonts failed to download'; exit 1; fi && echo "SERVER_ADDITIONAL_ERL_ARGS=\"+S 1:1\"" | tee -a /etc/rabbitmq/rabbitmq-env.conf && sed -i "s/bind .*/bind 127.0.0.1/g" /etc/redis/redis.conf && sed 's|\(application\/zip.*\)|\1\n application\/wasm wasm;|' -i /etc/nginx/mime.types && pg_conftool $PG_VERSION main set listen_addresses 'localhost' && service postgresql restart && sudo -u postgres psql -c "CREATE DATABASE $ONLYOFFICE_VALUE;" && sudo -u postgres psql -c "CREATE USER $ONLYOFFICE_VALUE WITH password '$ONLYOFFICE_VALUE';" && sudo -u postgres psql -c "GRANT ALL privileges ON DATABASE $ONLYOFFICE_VALUE TO $ONLYOFFICE_VALUE;" && service postgresql stop && service redis-server stop && service rabbitmq-server stop && service supervisor stop && service nginx stop && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 2 ```
kerem 2026-02-26 10:31:31 +03:00
Author
Owner

@Dexteny91 commented on GitHub (Feb 8, 2023):

In Dockerfile we have this line:
gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/onlyoffice.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0x8320ca65cb2de8e5
and it seems to be a wrong key at the end.

If we delete '0x' , and execute from server gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/onlyoffice.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8320ca65cb2de8e5 it will successful
but with docker build, it's still with No data

So i tried to download this file through wget (after downloaded with previously command), from my local webserver by replace string with gpg from external keyserver. And this step goes successfully now.

And in docker file replace the line gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/onlyoffice.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0x8320ca65cb2de8e5 && \
With (for example) wget http://10.156.10.34:8080/onlyoffice.gpg -O /etc/apt/trusted.gpg.d/onlyoffice.gpg && \
and its done

Now i have Error: Cluster 14 main does not exist but this another story..

<!-- gh-comment-id:1422203432 --> @Dexteny91 commented on GitHub (Feb 8, 2023): In Dockerfile we have this line: `gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/onlyoffice.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0x8320ca65cb2de8e5` and it seems to be a wrong key at the end. If we delete '0x' , and execute from server `gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/onlyoffice.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8320ca65cb2de8e5` it will successful but with docker build, it's still with No data So i tried to download this file through wget (after downloaded with previously command), from my local webserver by replace string with gpg from external keyserver. And this step goes successfully now. And in docker file replace the line `gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/onlyoffice.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0x8320ca65cb2de8e5 && \` With (for example) `wget http://10.156.10.34:8080/onlyoffice.gpg -O /etc/apt/trusted.gpg.d/onlyoffice.gpg && \` and its done Now i have `Error: Cluster 14 main does not exist` but this another story..
Author
Owner

@Dexteny91 commented on GitHub (Feb 8, 2023):

And about Cluster 14 main doesnt exist:

In stdout of docker-compose up i've discovered that postgresql 12 was installed inside, despite of at beginning of Dockerfile we have var ARG PG_VERSION=14. So after change it to 12 problem solved.
Now all works.

<!-- gh-comment-id:1422301828 --> @Dexteny91 commented on GitHub (Feb 8, 2023): And about `Cluster 14 main doesnt exist`: In stdout of `docker-compose up` i've discovered that postgresql 12 was installed inside, despite of at beginning of Dockerfile we have var ARG PG_VERSION=14. So after change it to 12 problem solved. Now all works.
Author
Owner

@igwyd commented on GitHub (Feb 9, 2023):

Hello @luckycloud-GmbH @Dexteny91 it's fixed https://github.com/ONLYOFFICE/Docker-DocumentServer/pull/583/commits/f672f929a273d7a9d0cf082ee27a188e979fdec3 and will be released in next release.

<!-- gh-comment-id:1423708082 --> @igwyd commented on GitHub (Feb 9, 2023): Hello @luckycloud-GmbH @Dexteny91 it's fixed https://github.com/ONLYOFFICE/Docker-DocumentServer/pull/583/commits/f672f929a273d7a9d0cf082ee27a188e979fdec3 and will be released in next release.
Author
Owner

@luckycloud-GmbH commented on GitHub (Feb 15, 2023):

yes, it is working now again, thanks!

<!-- gh-comment-id:1430735194 --> @luckycloud-GmbH commented on GitHub (Feb 15, 2023): yes, it is working now again, thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-DocumentServer-ONLYOFFICE#271
No description provided.