[OnlyOffice] Office editor

Bonjour,

Je voudrais de l’aide pour finir correctement mon projet onlyoffice ce !

Je ne suis pas un adepte des plugins yunohost donc voilà pourquoi je demande votre aide.

Cordialement

1 Like

On ne peut pas particulièrement t’aider sans savoir sur quoi précisémment tu as besoin d’aide :confused:

Je pense que c’est assez simple je souhaite le finir le corriger et faire qu’il fonctionne ce qui n’est pas le cas et je ne comprend pas pourquoi !

Mon soucis premier est de pouvoir l’installer via l’utilisateur admin et non root !
Ensuite que cela fonctionne et surtout voir ce qu’il ya a corriger.

Voici un exemple via admin :

sudo yunohost app install --debug https://github.com/liberodark/onlyoffice_ynh

187 DEBUG loading actions map namespace ‘yunohost’
202 DEBUG extra parameter classes loaded: [‘ask’, ‘password’, ‘required’, ‘pattern’]
203 DEBUG initializing base actions map parser for cli
203 DEBUG registering new callback action ‘yunohost.utils.packages.ynh_packages_version’ to [’-v’, ‘–version’]
265 DEBUG initialize authenticator ‘ldap-anonymous’ with: uri=‘ldap://localhost:389’, base_dn=‘dc=yunohost,dc=org’, user_rdn=‘None’
267 DEBUG lock has been acquired
285 DEBUG loading python module yunohost.app took 0.018s
286 INFO processing action [27202.1]: yunohost.app.install with args={‘app’: ‘https://github.com/liberodark/onlyoffice_ynh’, ‘args’: None, ‘auth’: <moulinette.authenticators.ldap.Authenticator object at 0x7f16a76f1410>, ‘label’: None, ‘no_remove_on_failure’: False}
290 DEBUG Téléchargement…
1120 DEBUG Extraction…
1128 DEBUG Terminé
1663 DEBUG Vérification des paquets requis pour onlyoffice…
Domaines disponibles :

  • cloud.new.fr
  • intranet.new.fr
    Choisissez un nom de domaine pour onlyoffice (default: cloud.new.fr) : intranet.new.fr
    Choisissez un chemin pour OnlyOffice uniquement / est accepté (default: /) :
    Choisissez un mot de passe pour l’administration de Collabora (default: ) : linux
    Le domain de votre instance Nextcloud (default: ) : cloud.new.fr
    18307 DEBUG Exécution de la commande « sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/onlyoffice_ynh-master/scripts YNH_STDINFO=/tmp/tmpUNIImf/stdinfo YNH_APP_ARG_PASSWORD=linux YNH_APP_INSTANCE_NAME=onlyoffice YNH_APP_ARG_NEXTCLOUDDOMAIN=cloud.new.fr YNH_APP_ID=onlyoffice YNH_APP_ARG_PATH=/ YNH_APP_ARG_DOMAIN=intranet.new.fr BASH_XTRACEFD=7 /bin/bash -x “./install” intranet.new.fr / linux cloud.new.fr onlyoffice 7>&1 »…
    18307 DEBUG About to run the command ‘[‘sh’, ‘-c’, ‘YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/onlyoffice_ynh-master/scripts YNH_STDINFO=/tmp/tmpUNIImf/stdinfo YNH_APP_ARG_PASSWORD=linux YNH_APP_INSTANCE_NAME=onlyoffice YNH_APP_ARG_NEXTCLOUDDOMAIN=cloud.new.fr YNH_APP_ID=onlyoffice YNH_APP_ARG_PATH=/ YNH_APP_ARG_DOMAIN=intranet.new.fr BASH_XTRACEFD=7 /bin/bash -x “./install” intranet.new.fr / linux cloud.new.fr onlyoffice 7>&1’]’
    18420 DEBUG + source common.sh
    18422 DEBUG + source /usr/share/yunohost/helpers
    18422 DEBUG +++ run-parts --list /usr/share/yunohost/helpers.d
    18422 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    18422 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/backend ‘]’
    18423 DEBUG ++ . /usr/share/yunohost/helpers.d/backend
    18423 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    18423 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/filesystem ‘]’
    18423 DEBUG ++ . /usr/share/yunohost/helpers.d/filesystem
    18424 DEBUG +++ CAN_BIND=1
    18424 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    18424 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/getopts ‘]’
    18424 DEBUG ++ . /usr/share/yunohost/helpers.d/getopts
    18424 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    18425 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/ip ‘]’
    18425 DEBUG ++ . /usr/share/yunohost/helpers.d/ip
    18425 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    18425 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/mysql ‘]’
    18425 DEBUG ++ . /usr/share/yunohost/helpers.d/mysql
    18425 DEBUG +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
    18426 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    18426 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/network ‘]’
    18426 DEBUG ++ . /usr/share/yunohost/helpers.d/network
    18426 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    18426 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/nodejs ‘]’
    18427 DEBUG ++ . /usr/share/yunohost/helpers.d/nodejs
    18427 DEBUG +++ n_install_dir=/opt/node_n
    18427 DEBUG +++ node_version_path=/opt/node_n/n/versions/node
    18427 DEBUG +++ export N_PREFIX=/opt/node_n
    18427 DEBUG +++ N_PREFIX=/opt/node_n
    18427 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    18427 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/package ‘]’
    18428 DEBUG ++ . /usr/share/yunohost/helpers.d/package
    18428 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    18428 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/print ‘]’
    18428 DEBUG ++ . /usr/share/yunohost/helpers.d/print
    18428 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    18428 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/psql ‘]’
    18428 DEBUG ++ . /usr/share/yunohost/helpers.d/psql
    18429 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    18429 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/setting ‘]’
    18429 DEBUG ++ . /usr/share/yunohost/helpers.d/setting
    18429 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    18429 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/string ‘]’
    18429 DEBUG ++ . /usr/share/yunohost/helpers.d/string
    18430 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    18430 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/system ‘]’
    18430 DEBUG ++ . /usr/share/yunohost/helpers.d/system
    18430 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    18430 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/user ‘]’
    18430 DEBUG ++ . /usr/share/yunohost/helpers.d/user
    18431 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    18431 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/utils ‘]’
    18431 DEBUG ++ . /usr/share/yunohost/helpers.d/utils
    18431 DEBUG + ynh_abort_if_errors
    18431 DEBUG + set -eu
    18431 DEBUG + trap ynh_exit_properly EXIT
    18431 DEBUG + domain=intranet.new.fr
    18432 DEBUG + password=linux
    18432 DEBUG + nextcloud_domain=cloud.new.fr
    18432 DEBUG + app=onlyoffice
    18432 DEBUG + final_path=/opt/yunohost/onlyoffice
    18432 DEBUG + test ‘!’ -e /opt/yunohost/onlyoffice
    18432 DEBUG ++ ynh_normalize_url_path /
    18432 DEBUG ++ local path_url=/
    18433 DEBUG ++ test -n /
    18433 DEBUG ++ ‘[’ / ‘!=’ / ‘]’
    18433 DEBUG ++ ‘[’ / == / ‘]’
    18433 DEBUG ++ ‘[’ 1 -gt 1 ‘]’
    18433 DEBUG ++ echo /
    18434 DEBUG + path_url=/
    18434 DEBUG + ynh_webpath_available intranet.new.fr /
    18434 DEBUG + local domain=intranet.new.fr
    18434 DEBUG + local path=/
    18434 DEBUG + sudo yunohost domain url-available intranet.new.fr /
    18635 DEBUG True
    18735 DEBUG + ynh_webpath_register onlyoffice intranet.new.fr /
    18736 DEBUG + local app=onlyoffice
    18736 DEBUG + local domain=intranet.new.fr
    18736 DEBUG + local path=/
    18736 DEBUG + sudo yunohost app register-url onlyoffice intranet.new.fr /
    19037 DEBUG + ynh_app_setting_set onlyoffice domain intranet.new.fr
    19037 DEBUG + sudo yunohost app setting onlyoffice domain --value=intranet.new.fr --quiet
    19238 DEBUG + ynh_app_setting_set onlyoffice password linux
    19238 DEBUG + sudo yunohost app setting onlyoffice password --value=linux --quiet
    19439 DEBUG + ynh_app_setting_set onlyoffice nextcloud_domain cloud.new.fr
    19439 DEBUG + sudo yunohost app setting onlyoffice nextcloud_domain --value=cloud.new.fr --quiet
    19741 DEBUG ++ ynh_find_port 9980
    19741 DEBUG ++ local port=9980
    19741 DEBUG ++ test -n 9980
    19741 DEBUG ++ netcat -z 127.0.0.1 9980
    19741 DEBUG ++ echo 9980
    19742 DEBUG + port=9980
    19742 DEBUG + yunohost firewall allow --no-upnp TCP 9980
    25154 DEBUG Le pare-feu a été rechargé
    25155 DEBUG opened_ports:
    25155 DEBUG - 22
    25155 DEBUG - 25
    25155 DEBUG - 53
    25155 DEBUG - 80
    25155 DEBUG - 443
    25155 DEBUG - 587
    25156 DEBUG - 993
    25156 DEBUG - 5222
    25156 DEBUG - 5269
    25156 DEBUG - 5353
    25156 DEBUG - 8172
    25157 DEBUG - 9980
    25257 DEBUG + ynh_app_setting_set onlyoffice port 9980
    25257 DEBUG + sudo yunohost app setting onlyoffice port --value=9980 --quiet
    25458 DEBUG + curl -sL https://deb.nodesource.com/setup_8.x
    25458 DEBUG + sudo bash -
    25860 DEBUG
    25860 DEBUG ## Installing the NodeSource Node.js 8.x LTS Carbon repo…
    25860 DEBUG
    25861 DEBUG
    25861 DEBUG ## Populating apt-get cache…
    25861 DEBUG
    25862 DEBUG + apt-get update
    25962 DEBUG Réception de:1 http://forge.yunohost.org/debian stretch InRelease [18,2 kB]
    25962 DEBUG Ign:2 http://ftp.fr.debian.org/debian stretch InRelease
    25962 DEBUG Réception de:3 http://security.debian.org/debian-security stretch/updates InRelease [94,3 kB]
    25963 DEBUG Réception de:4 http://ftp.fr.debian.org/debian stretch-updates InRelease [91,0 kB]
    26063 DEBUG Atteint:5 http://ftp.fr.debian.org/debian stretch Release
    26364 DEBUG 204 ko réceptionnés en 0s (445 ko/s)
    27366 DEBUG Lecture des listes de paquets…
    27466 DEBUG
    27466 DEBUG ## Installing packages required for setup: apt-transport-https…
    27467 DEBUG
    27467 DEBUG + apt-get install -y apt-transport-https > /dev/null 2>&1
    29070 DEBUG Error executing command, exiting
    29070 WARNING !!
    29070 DEBUG + ynh_exit_properly
    29071 WARNING onlyoffice’s script has encountered an error. Its execution was cancelled.
    29071 DEBUG + local exit_code=1
    29071 WARNING !!
    29071 DEBUG + ‘[’ 1 -eq 0 ‘]’
    29071 WARNING
    29071 DEBUG + trap ‘’ EXIT
    29071 DEBUG + set +eu
    29071 DEBUG + echo -e ‘!!\n onlyoffice’’‘s script has encountered an error. Its execution was cancelled.\n!!’
    29072 DEBUG + type -t ynh_clean_setup
    29072 DEBUG + ynh_clean_setup
    29072 DEBUG + true
    29072 DEBUG + ynh_die
    29072 DEBUG + echo ‘’
    29072 DEBUG + exit 1
    29218 INFO untranslated key ‘log_app_install’ for locale ‘fr’
    29219 INFO untranslated key ‘log_help_to_get_failed_log’ for locale ‘fr’
    29219 INFO The operation ‘Install ‘onlyoffice’ application’ has failed ! To get help, please share the full log of this operation using the command ‘yunohost log display 20181106-051354-app_install-onlyoffice --share’
    29224 DEBUG Exécution de la commande « sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ID=onlyoffice YNH_CWD=/var/cache/yunohost/from_file/onlyoffice_ynh-master/scripts YNH_APP_INSTANCE_NAME=onlyoffice YNH_STDINFO=/tmp/tmpuiEY8
    /stdinfo BASH_XTRACEFD=7 /bin/bash -x “./remove” onlyoffice 7>&1 »…
    29224 DEBUG About to run the command ‘[‘sh’, ‘-c’, ‘YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ID=onlyoffice YNH_CWD=/var/cache/yunohost/from_file/onlyoffice_ynh-master/scripts YNH_APP_INSTANCE_NAME=onlyoffice YNH_STDINFO=/tmp/tmpuiEY8_/stdinfo BASH_XTRACEFD=7 /bin/bash -x “./remove” onlyoffice 7>&1’]’
    29333 DEBUG + source _common.sh
    29334 DEBUG + source /usr/share/yunohost/helpers
    29334 DEBUG +++ run-parts --list /usr/share/yunohost/helpers.d
    29334 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    29334 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/backend ‘]’
    29335 DEBUG ++ . /usr/share/yunohost/helpers.d/backend
    29335 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    29335 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/filesystem ‘]’
    29335 DEBUG ++ . /usr/share/yunohost/helpers.d/filesystem
    29335 DEBUG +++ CAN_BIND=1
    29335 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    29335 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/getopts ‘]’
    29335 DEBUG ++ . /usr/share/yunohost/helpers.d/getopts
    29336 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    29336 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/ip ‘]’
    29336 DEBUG ++ . /usr/share/yunohost/helpers.d/ip
    29336 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    29336 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/mysql ‘]’
    29336 DEBUG ++ . /usr/share/yunohost/helpers.d/mysql
    29337 DEBUG +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
    29337 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    29337 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/network ‘]’
    29337 DEBUG ++ . /usr/share/yunohost/helpers.d/network
    29337 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    29338 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/nodejs ‘]’
    29338 DEBUG ++ . /usr/share/yunohost/helpers.d/nodejs
    29338 DEBUG +++ n_install_dir=/opt/node_n
    29339 DEBUG +++ node_version_path=/opt/node_n/n/versions/node
    29339 DEBUG +++ export N_PREFIX=/opt/node_n
    29339 DEBUG +++ N_PREFIX=/opt/node_n
    29339 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    29340 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/package ‘]’
    29340 DEBUG ++ . /usr/share/yunohost/helpers.d/package
    29340 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    29340 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/print ‘]’
    29341 DEBUG ++ . /usr/share/yunohost/helpers.d/print
    29341 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    29341 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/psql ‘]’
    29342 DEBUG ++ . /usr/share/yunohost/helpers.d/psql
    29342 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    29342 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/setting ‘]’
    29343 DEBUG ++ . /usr/share/yunohost/helpers.d/setting
    29343 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    29343 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/string ‘]’
    29343 DEBUG ++ . /usr/share/yunohost/helpers.d/string
    29344 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    29344 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/system ‘]’
    29344 DEBUG ++ . /usr/share/yunohost/helpers.d/system
    29345 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    29345 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/user ‘]’
    29345 DEBUG ++ . /usr/share/yunohost/helpers.d/user
    29345 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    29346 DEBUG ++ ‘[’ -r /usr/share/yunohost/helpers.d/utils ‘]’
    29346 DEBUG ++ . /usr/share/yunohost/helpers.d/utils
    29346 DEBUG + app=onlyoffice
    29346 DEBUG ++ ynh_app_setting_get onlyoffice domain
    29347 DEBUG ++ sudo yunohost app setting onlyoffice domain --output-as plain --quiet
    29548 DEBUG + domain=intranet.new.fr
    29548 DEBUG ++ ynh_app_setting_get onlyoffice port
    29548 DEBUG ++ sudo yunohost app setting onlyoffice port --output-as plain --quiet
    29749 DEBUG + port=9980
    29749 DEBUG ++ ynh_app_setting_get onlyoffice final_path
    29749 DEBUG ++ sudo yunohost app setting onlyoffice final_path --output-as plain --quiet
    29950 DEBUG + final_path=
    29950 DEBUG + ynh_remove_app_dependencies
    29950 DEBUG + local dep_app=onlyoffice
    29950 DEBUG + ynh_package_autopurge onlyoffice-ynh-deps
    29950 DEBUG + ynh_apt autoremove --purge onlyoffice-ynh-deps
    29951 DEBUG + DEBIAN_FRONTEND=noninteractive
    29951 DEBUG + sudo apt-get -y autoremove --purge onlyoffice-ynh-deps
    30051 DEBUG Lecture des listes de paquets…
    30152 DEBUG Construction de l’arbre des dépendances…
    30152 WARNING E: Impossible de trouver le paquet onlyoffice-ynh-deps
    30152 DEBUG Lecture des informations d’état…
    30152 WARNING Avoid deleting .
    30152 DEBUG + ynh_secure_remove ‘’
    30152 WARNING /etc/nginx/conf.d/intranet.new.fr.d/onlyoffice.conf wasn’t deleted because it doesn’t exist.
    30153 DEBUG + local path_to_remove=
    30153 DEBUG + local ‘forbidden_path= /var/www /home/yunohost.app’
    30153 DEBUG + [[ /var/www /home/yunohost.app =~ ‘’ ]]
    30153 DEBUG + echo ‘Avoid deleting .’
    30153 DEBUG + ynh_remove_nginx_config
    30153 DEBUG + ynh_secure_remove /etc/nginx/conf.d/intranet.new.fr.d/onlyoffice.conf
    30153 DEBUG + local path_to_remove=/etc/nginx/conf.d/intranet.new.fr.d/onlyoffice.conf
    30154 DEBUG + local ‘forbidden_path= /var/www /home/yunohost.app’
    30154 DEBUG + [[ /var/www /home/yunohost.app =~ /etc/nginx/conf.d/intranet.copysud.fr.d/onlyoffice.conf ]]
    30154 DEBUG + [[ /etc/nginx/conf.d/intranet.new.fr.d/onlyoffice.conf =~ ^/[[:alnum:]]+$ ]]
    30154 DEBUG + [[ f = / ]]
    30154 DEBUG + ‘[’ -e /etc/nginx/conf.d/intranet.new.fr.d/onlyoffice.conf ‘]’
    30154 DEBUG + echo ‘/etc/nginx/conf.d/intranet.new.fr.d/onlyoffice.conf wasn’’‘t deleted because it doesn’’‘t exist.’
    30154 DEBUG + sudo systemctl reload nginx
    30255 DEBUG + grep -q ‘- 9980$’
    30255 DEBUG + yunohost firewall list
    30456 DEBUG + echo ‘Close port 9980’
    30456 WARNING Close port 9980
    30456 DEBUG + yunohost firewall disallow TCP 9980
    37873 DEBUG Le pare-feu a été rechargé
    37873 WARNING /etc/cron.d/onlyoffice wasn’t deleted because it doesn’t exist.
    37873 DEBUG opened_ports:
    37873 WARNING /etc/apt/sources.list.d/collabora.list wasn’t deleted because it doesn’t exist.
    37873 DEBUG - 22
    37874 WARNING Avoid deleting /var/log/onlyoffice/.
    37874 DEBUG - 25
    37874 WARNING The user onlyoffice was not found
    37874 DEBUG - 53
    37874 DEBUG - 80
    37874 DEBUG - 443
    37874 DEBUG - 587
    37874 DEBUG - 993
    37875 DEBUG - 5222
    37875 DEBUG - 5269
    37875 DEBUG - 5353
    37875 DEBUG - 8172
    37876 DEBUG + ynh_secure_remove /etc/cron.d/onlyoffice
    37876 DEBUG + local path_to_remove=/etc/cron.d/onlyoffice
    37877 DEBUG + local ‘forbidden_path= /var/www /home/yunohost.app’
    37878 DEBUG + [[ /var/www /home/yunohost.app =~ /etc/cron.d/onlyoffice ]]
    37878 DEBUG + [[ /etc/cron.d/onlyoffice =~ ^/[[:alnum:]]+$ ]]
    37879 DEBUG + [[ e = / ]]
    37879 DEBUG + ‘[’ -e /etc/cron.d/onlyoffice ‘]’
    37880 DEBUG + echo ‘/etc/cron.d/onlyoffice wasn’’‘t deleted because it doesn’’‘t exist.’
    37880 DEBUG + ynh_secure_remove /etc/apt/sources.list.d/collabora.list
    37881 DEBUG + local path_to_remove=/etc/apt/sources.list.d/collabora.list
    37881 DEBUG + local ‘forbidden_path= /var/www /home/yunohost.app’
    37882 DEBUG + [[ /var/www /home/yunohost.app =~ /etc/apt/sources.list.d/collabora.list ]]
    37883 DEBUG + [[ /etc/apt/sources.list.d/collabora.list =~ ^/[[:alnum:]]+$ ]]
    37883 DEBUG + [[ t = / ]]
    37884 DEBUG + ‘[’ -e /etc/apt/sources.list.d/collabora.list ‘]’
    37884 DEBUG + echo ‘/etc/apt/sources.list.d/collabora.list wasn’’‘t deleted because it doesn’’‘t exist.’
    37884 DEBUG + ynh_secure_remove /var/log/onlyoffice/
    37884 DEBUG + local path_to_remove=/var/log/onlyoffice/
    37885 DEBUG + local ‘forbidden_path= /var/www /home/yunohost.app’
    37885 DEBUG + [[ /var/www /home/yunohost.app =~ /var/log/onlyoffice/ ]]
    37885 DEBUG + [[ /var/log/onlyoffice/ =~ ^/[[:alnum:]]+$ ]]
    37886 DEBUG + [[ / = / ]]
    37886 DEBUG + echo ‘Avoid deleting /var/log/onlyoffice/.’
    37886 DEBUG + ynh_system_user_delete onlyoffice
    37886 DEBUG + ynh_system_user_exists onlyoffice
    37887 DEBUG + getent passwd onlyoffice
    37887 DEBUG + echo ‘The user onlyoffice was not found’
    38018 INFO untranslated key ‘log_remove_on_failed_install’ for locale ‘fr’
    38019 INFO untranslated key ‘log_help_to_get_log’ for locale ‘fr’
    38019 DEBUG To view the log of the operation ‘Remove ‘onlyoffice’ after a failed installation’, use the command ‘yunohost log display 20181106-051405-remove_on_failed_install-onlyoffice’
    38038 SUCCESS La configuration de SSOwat a été générée
    38038 DEBUG action [27202.1] executed in 37.752s
    38039 DEBUG lock has been released
    38039 ERROR The operation ‘Install ‘onlyoffice’ application’ has failed ! To get help, please share the full log of this operation using the command ‘yunohost log display 20181106-051354-app_install-onlyoffice --share’
    38039 INFO untranslated key ‘log_operation_unit_unclosed_properly’ for locale ‘fr’
    38039 INFO untranslated key ‘log_operation_unit_unclosed_properly’ for locale ‘fr’

Cordialement

PS : Soyez pas trop dur car c’est mon premier script pour ynh !

Please use ynh_install_nodejs to install a specific version of nodeJS, do not use a script with curl and bash like that !

Also, have a look to those helper around nodeJS to know how to use it.

Yes is fixed for nodejs

But i need help for make fix :

https://paste.yunohost.org/ocubepugig.sql

Best Regard

Pour l’instant j’ai réussi à mettre un port et j’ai meme réussi à lancer le serveur à un moment mais j’ai eu pleins d’erreurs !

Mon script d’install est bientot fini mais à besoin de correctif encore pour que tout soit ok !


For now I managed to put a port and I even managed to launch the server at a time but I had a lot of errors!

My install script is soon finished but need patch again so that everything is ok!

You can’t use ynh_install_app_dependencies twice in the same script, as you can see here, the second use overwrite the first package, and so try to remove the previous dependencies, as they’re not needed anymore.

A way could be to add the same dependencies as the first use.
But, actually, you shouldn’t use another repo, it’s highly not recommended to do that. Prefer download a deb package from the repo or from the website.

ok see : https://github.com/ONLYOFFICE/DocumentServer/releases/download/ONLYOFFICE-DocumentServer-5.2.3/onlyoffice-documentserver_amd64.deb

Have the link how do i put it in my script now?
this is my first script i am a noob so be specific please!

You can have a look to jenkins, that uses that way to install the app.

ok is good ? : https://github.com/liberodark/onlyoffice_ynh/blob/master/scripts/install

Looks good for that part

Ok but no work need more fix

That what I was expecting actually…
But, I don’t know your app, so I can’t say why it doesn’t work without a log or an error message.

But, if you need nodejs, I guess you have also a systemd script (or maybe sysvinit…), in both cases you’ll need to use the correct version of node.
Depending of your app, you can have a look to etherpad or directly to the helper ynh_use_nodejs

there are dependencies that do not want to settle so I try to put it in the script but it put me a key error sha so now I test by adding the external repository!

If you need other deb packages, prefer to download them as well.

Look : https://paste.yunohost.org/odusoqozoq.sql
need

534575 WARNING E: Dépendances non satisfaites. Essayez « apt --fix-broken install » sans paquet
534575 DEBUG Dépend: libboost-regex-dev mais ne sera pas installé
534575 WARNING (ou indiquez une solution).
534575 DEBUG Dépend: libgconf2-4 mais ne sera pas installé
534575 WARNING Avoid deleting .
534576 DEBUG Dépend: libgtkglext1 mais ne sera pas installé
534576 WARNING /etc/nginx/conf.d/intranet.copysud.fr.d/onlyoffice.conf wasn’t deleted because it doesn’t exist.
534576 DEBUG Dépend: libxtst6 mais ne sera pas installé
534576 DEBUG Dépend: nodejs (>= 8.0.0) mais ne sera pas installé
534576 DEBUG Dépend: postgresql-client (>= 9.1)
534576 DEBUG Dépend: pwgen mais ne sera pas installé
534576 DEBUG Dépend: supervisor (>= 3.0b2) mais ne sera pas installé
534577 DEBUG Dépend: xvfb mais ne sera pas installé

have try this : ynh_install_app_dependencies postgresql redis-server rabbitmq-server nginx-extras apt-transport-https supervisor xvfb pwgen libxtst6 libgtkglext1 libgconf2-4 libboost-regex-dev libasound2

I had a checksum worry

libasound2 is available in debian
https://packages.debian.org/stretch/libasound2

Why 534576 DEBUG Dépend: nodejs (&gt;= 8.0.0) mais ne sera pas installé ?
I can’t see any packages depending of nodejs, are you working on a clean virtual machine ?

im retry with that https://github.com/liberodark/onlyoffice_ynh/blob/master/scripts/install
on apt install onlyoffice-documentserver

Yes im on clean vm with snapshot have install onlyoffice but on terminal no with my script !
But my vm is clean just have nextcloud on no more and is version 3.2.2 YNH

You can try directly on a vm if you want to see!
on github : https://github.com/liberodark/onlyoffice_ynh