ONLYOFFICE / Docker-CommunityServer

Collaborative system for managing documents, projects, customer relations and emails in one place
MIT License
501 stars 181 forks source link

Ubuntu 22.04 Community server error. #193

Closed georgy-k852 closed 1 year ago

georgy-k852 commented 1 year ago

Hello! I'm trying to install Community Server groups using docker-compose.groups.yml

The container of community-server is failed with the next error:

onlyoffice-community-server    | + '[' SERVER == SERVICES ']'
onlyoffice-community-server    | + systemctl enable monoserveApiSystem.service
onlyoffice-community-server    | ++ seq 1 1
onlyoffice-community-server    | + for serverID in $(seq 1 ${APP_MONOSERVE_COUNT})
onlyoffice-community-server    | + index=1
onlyoffice-community-server    | + '[' 1 == 1 ']'
onlyoffice-community-server    | + index=
onlyoffice-community-server    | + systemctl enable monoserve.service
onlyoffice-community-server    | + chown -R onlyoffice:onlyoffice /var/log/onlyoffice
onlyoffice-community-server    | + chown -R onlyoffice:onlyoffice /var/www/onlyoffice/DocumentServerData
onlyoffice-community-server    | ++ ls -alhd /var/www/onlyoffice/Data
onlyoffice-community-server    | ++ awk '{ print $3 }'
onlyoffice-community-server    | + '[' onlyoffice '!=' onlyoffice ']'
onlyoffice-community-server    | + '[' '!' -d /var/www/onlyoffice/Data/Index/v7.9.0 ']'
onlyoffice-community-server    | + mkdir -p /var/log/onlyoffice//Index
onlyoffice-community-server    | + mkdir -p /var/www/onlyoffice/Data/Index/v7.9.0
onlyoffice-community-server    | ++ ls -alhd /var/www/onlyoffice/Data/Index/v7.9.0
onlyoffice-community-server    | ++ awk '{ print $3 }'
onlyoffice-community-server    | + '[' elasticsearch '!=' elasticsearch ']'
onlyoffice-community-server    | + chown -R elasticsearch:elasticsearch /var/log/onlyoffice//Index
onlyoffice-community-server    | + dpkg -l
onlyoffice-community-server    | + grep -q onlyoffice-xmppserver
onlyoffice-community-server    | + sed '/web\.talk/s/value=\"\S*\"/value=\"true\"/g' -i /var/www/onlyoffice/WebStudio/web.appsettings.config
onlyoffice-community-server    | + sed '/web\.chat/s/value=\"\S*\"/value=\"false\"/g' -i /var/www/onlyoffice/WebStudio/web.appsettings.config
onlyoffice-community-server    | + systemctl stop onlyofficeRadicale
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeTelegram
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeSocketIO
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeThumb
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeFeed
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeIndex
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeJabber
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeMailAggregator
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeMailWatchdog
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeMailCleaner
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeNotify
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeBackup
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeStorageMigrate
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeStorageEncryption
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeUrlShortener
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop onlyofficeThumbnailBuilder
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop god
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl enable god
onlyoffice-community-server    | + systemctl stop elasticsearch
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop redis-server
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop mysql
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop nginx
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl stop monoserveApiSystem.service
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl enable monoserveApiSystem.service
onlyoffice-community-server    | ++ seq 1 1
onlyoffice-community-server    | + for serverID in $(seq 1 ${APP_MONOSERVE_COUNT})
onlyoffice-community-server    | + index=1
onlyoffice-community-server    | + '[' 1 == 1 ']'
onlyoffice-community-server    | + index=
onlyoffice-community-server    | + systemctl stop monoserve.service
onlyoffice-community-server    | System has not been booted with systemd as init system (PID 1). Can't operate.
onlyoffice-community-server    | + systemctl enable monoserve.service
onlyoffice-community-server    | + '[' false == true ']'
onlyoffice-community-server    | + systemctl enable onlyofficeRadicale.service
onlyoffice-community-server    | + systemctl enable onlyofficeTelegram.service
onlyoffice-community-server    | + systemctl enable onlyofficeSocketIO.service
onlyoffice-community-server    | + systemctl enable onlyofficeThumb.service
onlyoffice-community-server    | + systemctl enable onlyofficeFeed.service
onlyoffice-community-server    | + systemctl enable onlyofficeIndex.service
onlyoffice-community-server    | + systemctl enable onlyofficeJabber.service
onlyoffice-community-server    | + systemctl enable onlyofficeMailAggregator.service
onlyoffice-community-server    | + systemctl enable onlyofficeMailWatchdog.service
onlyoffice-community-server    | + systemctl enable onlyofficeMailCleaner.service
onlyoffice-community-server    | + systemctl enable onlyofficeNotify.service
onlyoffice-community-server    | + systemctl enable onlyofficeBackup.service
onlyoffice-community-server    | + systemctl enable onlyofficeStorageMigrate.service
onlyoffice-community-server    | + systemctl enable onlyofficeStorageEncryption.service
onlyoffice-community-server    | + systemctl enable onlyofficeUrlShortener.service
onlyoffice-community-server    | + systemctl enable onlyofficeThumbnailBuilder.service
onlyoffice-community-server    | + '[' SERVER == SERVER ']'
onlyoffice-community-server    | + mv /app/config/nginx/prepare-onlyoffice /etc/nginx/sites-enabled/onlyoffice
onlyoffice-community-server    | + service nginx stop
onlyoffice-community-server    | + systemctl enable nginx.service
onlyoffice-community-server    | Synchronizing state of nginx.service with SysV service script with /lib/systemd/systemd-sysv-install.
onlyoffice-community-server    | Executing: /lib/systemd/systemd-sysv-install enable nginx
onlyoffice-community-server    | ++ ps auxf
onlyoffice-community-server    | ++ grep cron
onlyoffice-community-server    | ++ grep -v grep
onlyoffice-community-server    | ++ awk '{print $2}'
onlyoffice-community-server    | + PID=
onlyoffice-community-server    | + '[' onlyoffice-elasticsearch ']'
onlyoffice-community-server    | + service elasticsearch stop
onlyoffice-community-server    | elasticsearch: unrecognized service
onlyoffice-community-server    | + systemctl disable elasticsearch.service
onlyoffice-community-server    | Failed to disable unit, unit elasticsearch.service does not exist.
onlyoffice-community-server    | + rm -f /usr/lib/systemd/system/elasticsearch.service
onlyoffice-community-server    | + rm -f /etc/init.d/elasticsearch
onlyoffice-community-server    | + '[' -n '' ']'
onlyoffice-community-server    | + rm -dfr '/tmp/onlyoffice*'
onlyoffice-community-server    | + rm -dfr '/var/run/onlyoffice/*'
onlyoffice-community-server    | + rm -dfr '/var/cache/nginx/onlyoffice/*'
onlyoffice-community-server    | + '[' false == true ']'
onlyoffice-community-server exited with code 0
  1. I've used clear "Ubuntu 22.04.2 LTS (Jammy Jellyfish)" that was installed from scratch.
  2. The container doesn't produced "service monoserve". It returns "monoserve.service could not be found".
  3. I've tried to use versions: 12.5.2.1848, 12.0.1.1748, 11.6.0.1620.

How can I fixed it? Please, give some advises.

Carazyda commented 1 year ago

Hello @georgy-k852 We have fixed this issue in the release/12.5.0 branch. You need to clone this repo branch and run docker compose from it. Please take note of the docker compose version.

For working on Ubuntu 22.04 and Debian 11 or later, you need to use docker-compose versions v2.16.0 or later and uncomment the cgroup line in the yml file

georgy-k852 commented 1 year ago

Thanks, it has helped me to update docker-compose to v2.16.0 and use community-server v12.5.2.1848

geekidentity commented 1 year ago

I have the save error in tag v12.5.2.1848, my docker-compose version 1.29.2

Carazyda commented 1 year ago

Hello @geekidentity please note

For working on Ubuntu 22.04 and Debian 11 or later, you need to use docker-compose versions v2.16.0 or later and uncomment the cgroup line in the yml file