OnlyOffice fails to install

Hardware: Raspberry Pi 4 Model B
YunoHost: 4.0.8.3 (stable) derrière Freebox mini 4K
Accès au serveur : SSH & webadmin

Hi,

I tried to install OnlyOffice without success. Here’s the log:

args:
  app: onlyoffice
  args: domain=office.domain2.tld&path=%2Fonlyoffice&nextclouddomain=maindomain.tld%2Fnuage&is_public=1
  force: false
  label: OnlyOffice
  no_remove_on_failure: false
ended_at: 2021-01-13 14:13:04.448005
env:
  YNH_APP_ARG_DOMAIN: office.domain2.tld
  YNH_APP_ARG_IS_PUBLIC: 1
  YNH_APP_ARG_NEXTCLOUDDOMAIN: maindomain.tld/nuage
  YNH_APP_ARG_PATH: /onlyoffice
  YNH_APP_ID: onlyoffice
  YNH_APP_INSTANCE_NAME: onlyoffice
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_APP_MANIFEST_VERSION: 6.0.1~ynh1
error: "Une erreur est survenue dans le script d\u2019installation de l\u2019application"
interface: api
operation: app_install
parent: null
related_to:
- - app
  - onlyoffice
started_at: 2021-01-13 14:12:40.302878
success: false
yunohost_version: 4.1.4.4

============

2021-01-13 14:12:40,329: INFO - Installation de onlyoffice...
2021-01-13 14:12:40,849: DEBUG - Permission 'onlyoffice.main' mise à jour
2021-01-13 14:12:41,139: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20210113-141240-permission_url-onlyoffice" style="text-decoration:underline"> Mise à jour de l’URL associée à l’autorisation 'onlyoffice' </a>'
2021-01-13 14:12:41,739: DEBUG - The permission database has been resynchronized
2021-01-13 14:12:42,098: DEBUG - La configuration de SSOwat a été regénérée
2021-01-13 14:12:42,431: DEBUG - Executing command 'sh -c YNH_INTERFACE=api YNH_CWD=/etc/yunohost/hooks.d/post_app_addaccess YNH_STDINFO=/tmp/tmpq1ghjj/stdinfo YNH_STDRETURN=/tmp/tmpGhQVYw/stdreturn BASH_XTRACEFD=7 /bin/bash -x "./50-freshrss" onlyoffice jeremy main all_users 7>&1'
2021-01-13 14:12:42,479: DEBUG - + app=onlyoffice
2021-01-13 14:12:42,482: DEBUG - + new_users=jeremy
2021-01-13 14:12:42,483: DEBUG - + app_path=/var/www/onlyoffice
2021-01-13 14:12:42,484: DEBUG - + . /usr/share/yunohost/helpers
2021-01-13 14:12:42,485: DEBUG - +++ set +o
2021-01-13 14:12:42,486: DEBUG - +++ grep xtrace
2021-01-13 14:12:42,486: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2021-01-13 14:12:42,487: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2021-01-13 14:12:42,689: DEBUG - + [[ freshrss = \o\n\l\y\o\f\f\i\c\e ]]
2021-01-13 14:12:42,709: DEBUG - Permission 'onlyoffice.main' créée
2021-01-13 14:12:42,710: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20210113-141240-permission_create-onlyoffice" style="text-decoration:underline"> Créer permission 'onlyoffice' </a>'
2021-01-13 14:12:42,816: DEBUG - Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/scripts YNH_APP_MANIFEST_VERSION='6.0.1~ynh1' YNH_APP_ARG_IS_PUBLIC=1 YNH_STDRETURN=/tmp/tmpkUsnCd/stdreturn YNH_STDINFO=/tmp/tmpVQY5Nf/stdinfo YNH_APP_INSTANCE_NAME=onlyoffice YNH_APP_ARG_NEXTCLOUDDOMAIN=maindomain.tld/nuage YNH_APP_ID=onlyoffice YNH_APP_ARG_PATH=/onlyoffice YNH_INTERFACE=api YNH_APP_ARG_DOMAIN=office.domain2.tld BASH_XTRACEFD=7 /bin/bash -x "./install" office.domain2.tld /onlyoffice maindomain.tld/nuage 1 onlyoffice 7>&1'
2021-01-13 14:12:42,871: DEBUG - + source _common.sh
2021-01-13 14:12:42,875: DEBUG - ++ pkg_dependencies='postgresql libstdc++6 redis-server rabbitmq-server libcurl4-dev'
2021-01-13 14:12:42,875: DEBUG - + source /usr/share/yunohost/helpers
2021-01-13 14:12:42,876: DEBUG - +++ set +o
2021-01-13 14:12:42,876: DEBUG - +++ grep xtrace
2021-01-13 14:12:42,876: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2021-01-13 14:12:42,877: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2021-01-13 14:12:42,978: DEBUG - + ynh_abort_if_errors
2021-01-13 14:12:42,978: DEBUG - + set -o errexit
2021-01-13 14:12:42,979: DEBUG - + set -o nounset
2021-01-13 14:12:42,979: DEBUG - + trap ynh_exit_properly EXIT
2021-01-13 14:12:42,979: DEBUG - + domain=office.domain2.tld
2021-01-13 14:12:42,980: DEBUG - + path_url=/onlyoffice
2021-01-13 14:12:42,980: DEBUG - + is_public=1
2021-01-13 14:12:42,980: DEBUG - + nextclouddomain=maindomain.tld/nuage
2021-01-13 14:12:42,981: DEBUG - + app=onlyoffice
2021-01-13 14:12:43,286: DEBUG - + echo '[+...................] > Validating installation parameters...'
2021-01-13 14:12:43,286: INFO - [+...................] > Validating installation parameters...
2021-01-13 14:12:43,289: DEBUG - + final_path=/var/www/onlyoffice
2021-01-13 14:12:43,289: DEBUG - + test '!' -e /var/www/onlyoffice
2021-01-13 14:12:43,290: DEBUG - + ynh_webpath_register --app=onlyoffice --domain=office.domain2.tld --path_url=/onlyoffice
2021-01-13 14:12:43,494: DEBUG - + yunohost app register-url onlyoffice office.domain2.tld /onlyoffice
2021-01-13 14:12:48,009: INFO - [#+..................] > Storing installation settings...
2021-01-13 14:12:48,010: DEBUG - + echo '[#+..................] > Storing installation settings...'
2021-01-13 14:12:48,011: DEBUG - + ynh_app_setting_set --app=onlyoffice --key=domain --value=office.domain2.tld
2021-01-13 14:12:48,317: DEBUG - + [[ domain =~ (unprotected|protected|skipped)_ ]]
2021-01-13 14:12:48,318: DEBUG - + ynh_app_setting set onlyoffice domain office.domain2.tld
2021-01-13 14:12:48,520: DEBUG - + ynh_app_setting_set --app=onlyoffice --key=path --value=/onlyoffice
2021-01-13 14:12:48,836: DEBUG - + [[ path =~ (unprotected|protected|skipped)_ ]]
2021-01-13 14:12:48,837: DEBUG - + ynh_app_setting set onlyoffice path /onlyoffice
2021-01-13 14:12:49,945: DEBUG - + ynh_app_setting_set --app=onlyoffice --key=is_public --value=1
2021-01-13 14:12:50,254: DEBUG - + [[ is_public =~ (unprotected|protected|skipped)_ ]]
2021-01-13 14:12:50,254: DEBUG - + ynh_app_setting set onlyoffice is_public 1
2021-01-13 14:12:50,456: DEBUG - + ynh_app_setting_set --app=onlyoffice --key=nextclouddomain --value=maindomain.tld/nuage
2021-01-13 14:12:50,660: DEBUG - + [[ nextclouddomain =~ (unprotected|protected|skipped)_ ]]
2021-01-13 14:12:50,661: DEBUG - + ynh_app_setting set onlyoffice nextclouddomain maindomain.tld/nuage
2021-01-13 14:12:51,065: INFO - [##+.................] > Configuring firewall...
2021-01-13 14:12:51,067: DEBUG - + echo '[##+.................] > Configuring firewall...'
2021-01-13 14:12:51,067: DEBUG - ++ ynh_find_port --port=8095
2021-01-13 14:12:51,069: DEBUG - ++ test -n 8095
2021-01-13 14:12:51,070: DEBUG - ++ ynh_port_available --port=8095
2021-01-13 14:12:51,071: DEBUG - ++ ss --numeric --listening --tcp --udp
2021-01-13 14:12:51,072: DEBUG - ++ awk '{print$5}'
2021-01-13 14:12:51,072: DEBUG - ++ grep --quiet --extended-regexp ':8095$'
2021-01-13 14:12:51,373: DEBUG - ++ return 0
2021-01-13 14:12:51,374: DEBUG - ++ echo 8095
2021-01-13 14:12:51,374: DEBUG - + port=8095
2021-01-13 14:12:51,374: DEBUG - + ynh_app_setting_set --app=onlyoffice --key=port --value=8095
2021-01-13 14:12:51,678: DEBUG - + [[ port =~ (unprotected|protected|skipped)_ ]]
2021-01-13 14:12:51,679: DEBUG - + ynh_app_setting set onlyoffice port 8095
2021-01-13 14:12:52,084: DEBUG - + echo '[###+................] > Add OnlyOffice repository...'
2021-01-13 14:12:52,085: DEBUG - + apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5
2021-01-13 14:12:52,387: DEBUG - Warning: apt-key output should not be parsed (stdout is not a terminal)
2021-01-13 14:12:52,387: INFO - [###+................] > Add OnlyOffice repository...
2021-01-13 14:12:52,489: DEBUG - Executing: /tmp/apt-key-gpghome.vBKqw6RDro/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5
2021-01-13 14:12:53,692: WARNING - gpg: key 8320CA65CB2DE8E5: public key "Ascensio System Limited (ONLYOFFICE) <support@onlyoffice.com>" imported
2021-01-13 14:13:01,212: WARNING - gpg: can't connect to the agent: IPC connect call failed
2021-01-13 14:13:01,214: WARNING - gpg: Total number processed: 1
2021-01-13 14:13:01,216: WARNING - gpg:               imported: 1
2021-01-13 14:13:03,423: DEBUG - + ynh_exit_properly
2021-01-13 14:13:03,423: DEBUG - + local exit_code=2
2021-01-13 14:13:03,424: DEBUG - + '[' 2 -eq 0 ']'
2021-01-13 14:13:03,425: DEBUG - + trap '' EXIT
2021-01-13 14:13:03,425: DEBUG - + set +o errexit
2021-01-13 14:13:03,426: DEBUG - + set +o nounset
2021-01-13 14:13:03,427: DEBUG - + sleep 0.5
2021-01-13 14:13:04,329: DEBUG - + type -t ynh_clean_setup
2021-01-13 14:13:04,330: DEBUG - + exit 1
2021-01-13 14:13:04,446: ERROR - Impossible d’installer onlyoffice : Une erreur est survenue dans le script d’installation de l’application

It seems to come from a GPG error?

Any help appreciated. Thanks!

Hello
As far as I know, Onlyoffice is not available on ARM (raspberry pi, banana pi, olimex…)

Yep, it’s not possible to install it on a ARM board (for now).
Good luck !

OK, makes sense. Thanks for your answers!

Do you know if I’d be luckier with Collabora Online?

I think collabora online isn’t available either on ARM

OK, thanks for the feedback. I’ll stick to other functionalities for the moment then :slight_smile:

Hi,
there a collabora online available for ARM64

image

I can’t say if it’s working I have installed the other version.
On my smaller server, I had to install it by this way because of timeout in Nextcloud :

sudo -i
cd /var/www/nextcloud/
sudo -u nextcloud php -d memory_limits=512M ./occ app:install richdocumentscode

It’s working better than “Community Document Server”

Cyril

1 Like

Thanks for the hint, I’ll check it!

Hi Cyril,

I ran into a write error:

Cannot write into "config" directory!
This can usually be fixed by giving the webserver write access to the config directory

Or, if you prefer to keep config.php file read only, set the option "config_is_read_only" to true in it.
See https://docs.nextcloud.com/server/20/go.php?to=admin-config

Did it happen to you as well? Do you know how to fix it? What would be the best way to “give the webserver write access to the config dir”?