YunoHost-Apps / rocketchat_ynh

Rocket.Chat package for YunoHost
https://rocket.chat/
GNU General Public License v3.0
16 stars 22 forks source link

Can't install Rocketchat on Yunohost 3.3.4 - PhantomJS missing for arm ? #65

Closed Manumerique closed 2 years ago

Manumerique commented 5 years ago

Installation tried on a Raspberry Pi 2

Here is the interesting part of the error log 568699 DEBUG > phantomjs@1.9.20 install /var/lib/rocketchat/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs 568702 DEBUG > node install.js 568705 DEBUG 572827 DEBUG PhantomJS not found on PATH 572830 WARNING Unexpected platform or architecture: linux/arm 572833 WARNING It seems there is no binary available for your platform/architecture 572836 WARNING Try to install PhantomJS globally 572839 WARNING npm ERR! code ELIFECYCLE 572842 WARNING npm ERR! errno 1 572845 WARNING npm ERR! phantomjs@1.9.20 install: node install.js 572848 WARNING npm ERR! Exit status 1 572851 WARNING npm ERR! 572854 WARNING npm ERR! Failed at the phantomjs@1.9.20 install script. 572856 WARNING npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 573462 WARNING 573465 WARNING npm ERR! A complete log of this run can be found in: 573468 WARNING npm ERR! /var/lib/rocketchat/.npm/_logs/2019-01-02T09_51_09_946Z-debug.log 573572 WARNING npm ERR! code ELIFECYCLE 573576 WARNING npm ERR! errno 1 573579 WARNING npm ERR! meteor-dev-bundle@ install: node npm-rebuild.js 573583 WARNING npm ERR! Exit status 1 573586 WARNING npm ERR! 573590 WARNING npm ERR! Failed at the meteor-dev-bundle@ install script. 573593 WARNING npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 574299 WARNING 574304 WARNING npm ERR! A complete log of this run can be found in: 574308 WARNING npm ERR! /var/lib/rocketchat/.npm/_logs/2019-01-02T09_51_10_831Z-debug.log 574412 DEBUG + ynh_exit_properly 574415 WARNING !! 574417 DEBUG + local exit_code=1 574419 WARNING rocketchat's script has encountered an error. Its execution was cancelled. 574422 DEBUG + '[' 1 -eq 0 ']' 574424 WARNING !! 574426 DEBUG + trap '' EXIT 574428 WARNING 574431 DEBUG + set +eu 574433 DEBUG + echo -e '!!\n rocketchat'\''s script has encountered an error. Its execution was cancelled.\n!!' 574435 DEBUG + type -t ynh_clean_setup 574438 DEBUG + ynh_die 574440 DEBUG + echo '' 574442 DEBUG + exit 1 574659 INFO The operation 'Install 'rocketchat' application' has failed ! To get help, please share the full log of this operation using the command 'yunohost log display 20190102-094147-app_install-rocketchat --share'

Manumerique commented 5 years ago

Tried installing directly phantomJS by sudo apt install phantomjs Then reinstalling, but phantomJS crashed

685826 DEBUG > phantomjs@1.9.20 install /var/lib/rocketchat/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs 685829 DEBUG > node install.js 685832 DEBUG 689752 DEBUG Considering PhantomJS found at /usr/bin/phantomjs 689755 DEBUG Found PhantomJS at /usr/bin/phantomjs ...verifying 691264 WARNING Error verifying phantomjs, continuing { Error: Command failed: /usr/bin/phantomjs --version 691273 WARNING QXcbConnection: Could not connect to display 691278 WARNING PhantomJS has crashed. Please read the bug reporting guide at 691281 WARNING http://phantomjs.org/bug-reporting.html and file a bug report. 691285 WARNING 691289 WARNING at ChildProcess.exithandler (child_process.js:281:12) 691292 WARNING at emitTwo (events.js:126:13) 691296 WARNING at ChildProcess.emit (events.js:214:7) 691299 WARNING at maybeClose (internal/child_process.js:915:16) 691302 WARNING at Socket.stream.socket.on (internal/child_process.js:336:11) 691306 WARNING at emitOne (events.js:116:13) 691309 WARNING at Socket.emit (events.js:211:7) 691312 WARNING at Pipe._handle.close [as _onclose] (net.js:561:12) 691315 WARNING killed: false, 691319 WARNING code: null, 691322 WARNING signal: 'SIGABRT', 691325 WARNING cmd: '/usr/bin/phantomjs --version' } 691329 WARNING Unexpected platform or architecture: linux/arm 691332 WARNING It seems there is no binary available for your platform/architecture 691335 WARNING Try to install PhantomJS globally 691338 WARNING npm ERR! code ELIFECYCLE 691342 WARNING npm ERR! errno 1 691345 WARNING npm ERR! phantomjs@1.9.20 install: node install.js 691348 WARNING npm ERR! Exit status 1 691351 WARNING npm ERR! 691355 WARNING npm ERR! Failed at the phantomjs@1.9.20 install script. 691358 WARNING npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 691562 WARNING 691567 WARNING npm ERR! A complete log of this run can be found in: 691571 WARNING npm ERR! /var/lib/rocketchat/.npm/_logs/2019-01-02T10_12_11_014Z-debug.log 691674 WARNING npm ERR! code ELIFECYCLE 691678 WARNING npm ERR! errno 1 691681 WARNING npm ERR! meteor-dev-bundle@ install: node npm-rebuild.js 691684 WARNING npm ERR! Exit status 1 691688 WARNING npm ERR! 691691 WARNING npm ERR! Failed at the meteor-dev-bundle@ install script. 691694 WARNING npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 691999 WARNING 692002 WARNING npm ERR! A complete log of this run can be found in: 692005 DEBUG + ynh_exit_properly 692009 WARNING npm ERR! /var/lib/rocketchat/.npm/_logs/2019-01-02T10_12_11_436Z-debug.log 692012 DEBUG + local exit_code=1 692017 WARNING !! 692020 DEBUG + '[' 1 -eq 0 ']' 692023 WARNING rocketchat's script has encountered an error. Its execution was cancelled. 692026 DEBUG + trap '' EXIT 692030 WARNING !! 692033 DEBUG + set +eu 692036 WARNING 692038 DEBUG + echo -e '!!\n rocketchat'\''s script has encountered an error. Its execution was cancelled.\n!!' 692040 DEBUG + type -t ynh_clean_setup 692042 DEBUG + ynh_die 692045 DEBUG + echo '' 692047 DEBUG + exit 1 692228 INFO The operation 'Install 'rocketchat' application' has failed ! To get help, please share the full log of this operation using the command 'yunohost log display 20190102-100422-app_install-rocketchat --share'

Manumerique commented 5 years ago

Same issue with actual master branch and Yunohost 3.3.4

selamanse commented 5 years ago

@Manumerique can you please provide complete debug log from your install attempt?

Manumerique commented 5 years ago

Complete debug log - Without previous phantomjs installation

1197 DEBUG loading actions map namespace 'yunohost'
1420 DEBUG extra parameter classes loaded: ['comment', 'ask', 'password', 'required', 'pattern']
1422 DEBUG initializing base actions map parser for cli
1434 DEBUG registering new callback action 'yunohost.utils.packages.ynh_packages_version' to ['-v', '--version']
2371 DEBUG initialize authenticator 'ldap-anonymous' with: uri='ldap://localhost:389', base_dn='dc=yunohost,dc=org', user_rdn='None'
2398 DEBUG lock has been acquired
2663 DEBUG loading python module yunohost.app took 0.263s
2665 INFO processing action [30882.1]: yunohost.app.install with args={'app': 'https://github.com/yunohost-apps/rocketchat_ynh', 'args': None, 'auth': <moulinette.authenticators.ldap.Authenticator object at 0x764cd410>, 'label': None, 'no_remove_on_failure': False}
2706 DEBUG Downloading...
3942 DEBUG Extracting...
3995 DEBUG Done
5880 DEBUG Checking required packages for rocketchat...
Available domains:
- mydomain.ddns.net
Choose a domain for Rocketchat (default: mydomain.ddns.net): 
Choose a path for RocketChat (default: /rocketchat): 
Is it a public application? [Yes | No] (default: Yes): 
Select default language [English] (default: English): 
18692 DEBUG Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/rocketchat_ynh-master/scripts YNH_APP_ARG_IS_PUBLIC=Yes YNH_STDINFO=/tmp/tmpZxCfSO/stdinfo YNH_APP_INSTANCE_NAME=rocketchat YNH_APP_ARG_LANG=English YNH_APP_ID=rocketchat YNH_APP_ARG_PATH=/rocketchat YNH_APP_ARG_DOMAIN=mydomain.ddns.net BASH_XTRACEFD=7 /bin/bash -x "./install" mydomain.ddns.net /rocketchat Yes English rocketchat 7>&1'...
18694 DEBUG About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/rocketchat_ynh-master/scripts YNH_APP_ARG_IS_PUBLIC=Yes YNH_STDINFO=/tmp/tmpZxCfSO/stdinfo YNH_APP_INSTANCE_NAME=rocketchat YNH_APP_ARG_LANG=English YNH_APP_ID=rocketchat YNH_APP_ARG_PATH=/rocketchat YNH_APP_ARG_DOMAIN=mydomain.ddns.net BASH_XTRACEFD=7 /bin/bash -x "./install" mydomain.ddns.net /rocketchat Yes English rocketchat 7>&1']'
18765 DEBUG + set -eu
18770 DEBUG + source /usr/share/yunohost/helpers
18773 DEBUG +++ run-parts --list /usr/share/yunohost/helpers.d
18776 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
18778 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
18780 DEBUG ++ . /usr/share/yunohost/helpers.d/backend
18783 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
18785 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
18788 DEBUG ++ . /usr/share/yunohost/helpers.d/filesystem
18791 DEBUG +++ CAN_BIND=1
18894 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
18896 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
18899 DEBUG ++ . /usr/share/yunohost/helpers.d/getopts
18902 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
18905 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
18908 DEBUG ++ . /usr/share/yunohost/helpers.d/ip
18910 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
18913 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
18916 DEBUG ++ . /usr/share/yunohost/helpers.d/mysql
18919 DEBUG +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
18921 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
18923 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
18925 DEBUG ++ . /usr/share/yunohost/helpers.d/network
18928 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
18930 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
18933 DEBUG ++ . /usr/share/yunohost/helpers.d/nodejs
18936 DEBUG +++ n_install_dir=/opt/node_n
18939 DEBUG +++ node_version_path=/opt/node_n/n/versions/node
18942 DEBUG +++ export N_PREFIX=/opt/node_n
18945 DEBUG +++ N_PREFIX=/opt/node_n
18947 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
18950 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/package ']'
18952 DEBUG ++ . /usr/share/yunohost/helpers.d/package
18955 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
18958 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/print ']'
18961 DEBUG ++ . /usr/share/yunohost/helpers.d/print
18963 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
18966 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/psql ']'
18969 DEBUG ++ . /usr/share/yunohost/helpers.d/psql
18972 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
18974 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
18977 DEBUG ++ . /usr/share/yunohost/helpers.d/setting
18980 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
18983 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
18985 DEBUG ++ . /usr/share/yunohost/helpers.d/string
18988 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
18990 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/system ']'
18993 DEBUG ++ . /usr/share/yunohost/helpers.d/system
18996 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
18999 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
19001 DEBUG ++ . /usr/share/yunohost/helpers.d/user
19004 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
19006 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
19009 DEBUG ++ . /usr/share/yunohost/helpers.d/utils
19011 DEBUG + source ./_common.sh
19013 DEBUG ++ ROCKETCHAT_VERSION=0.73.2
19015 DEBUG ++ ROCKETCHAT_SHASUM=3dc3eb11f383f7b72b0f23fedb305b6a566fa536a1e5087a4398255deeb864d8
19018 DEBUG ++ ROCKETCHAT_DOWNLOAD_URI=https://releases.rocket.chat/0.73.2/download
19020 DEBUG ++ NODE_VERSION=8.11.4
19022 DEBUG +++ grep 9 /etc/debian_version
19025 DEBUG +++ echo stretch
19028 DEBUG ++ DEBIAN_ISSUE=stretch
19030 DEBUG + ynh_abort_if_errors
19033 DEBUG + set -eu
19035 DEBUG + trap ynh_exit_properly EXIT
19038 DEBUG + domain=mydomain.ddns.net
19041 DEBUG + path=/rocketchat
19043 DEBUG + is_public=Yes
19045 DEBUG + language=English
19048 DEBUG + app=rocketchat
19050 DEBUG + dbname=rocketchat
19052 DEBUG + serviceuser=rocketchat
19054 DEBUG ++ pwd
19057 DEBUG + workdir=/var/cache/yunohost/from_file/rocketchat_ynh-master/scripts
19059 DEBUG ++ ynh_find_port 3000
19062 DEBUG ++ local port=3000
19064 DEBUG ++ test -n 3000
19067 DEBUG ++ netcat -z 127.0.0.1 3000
19069 DEBUG ++ echo 3000
19071 DEBUG + port=3000
19073 DEBUG + '[' / '!=' / ']'
19076 DEBUG + '[' t '!=' / ']'
19078 DEBUG + '[' 11 -gt 1 ']'
19080 DEBUG + path=/rocketchat/
19084 DEBUG + ynh_webpath_available mydomain.ddns.net /rocketchat/
19088 DEBUG + local domain=mydomain.ddns.net
19091 DEBUG + local path=/rocketchat/
19095 DEBUG + sudo yunohost domain url-available mydomain.ddns.net /rocketchat/
22513 DEBUG True
22717 DEBUG + [[ ! 0 -eq 0 ]]
22720 DEBUG + ynh_webpath_register rocketchat mydomain.ddns.net /rocketchat/
22724 DEBUG + local app=rocketchat
22726 DEBUG + local domain=mydomain.ddns.net
22729 DEBUG + local path=/rocketchat/
22732 DEBUG + sudo yunohost app register-url rocketchat mydomain.ddns.net /rocketchat/
26751 DEBUG + final_path=/var/lib/rocketchat
26755 DEBUG + [[ -d /var/lib/rocketchat ]]
26758 DEBUG + ynh_app_setting_set rocketchat node_version 8.11.4
26761 DEBUG + sudo yunohost app setting rocketchat node_version --value=8.11.4 --quiet
29978 DEBUG + ynh_app_setting_set rocketchat rocketchat_version 0.73.2
29981 DEBUG + sudo yunohost app setting rocketchat rocketchat_version --value=0.73.2 --quiet
33098 DEBUG + ynh_app_setting_set rocketchat serviceuser rocketchat
33101 DEBUG + sudo yunohost app setting rocketchat serviceuser --value=rocketchat --quiet
36327 DEBUG + ynh_app_setting_set rocketchat port 3000
36330 DEBUG + sudo yunohost app setting rocketchat port --value=3000 --quiet
39546 DEBUG + ynh_app_setting_set rocketchat final_path /var/lib/rocketchat
39548 DEBUG + sudo yunohost app setting rocketchat final_path --value=/var/lib/rocketchat --quiet
42764 DEBUG + ynh_app_setting_set rocketchat path /rocketchat/
42768 DEBUG + sudo yunohost app setting rocketchat path --value=/rocketchat/ --quiet
45984 DEBUG + ynh_app_setting_set rocketchat is_public Yes
45988 DEBUG + sudo yunohost app setting rocketchat is_public --value=Yes --quiet
49108 DEBUG + installdeps
49112 DEBUG ++ dpkg --print-architecture
49216 DEBUG + '[' armhf == armhf ']'
49220 DEBUG + sudo apt-get update
49927 DEBUG Hit:1 http://archive.raspberrypi.org/debian stretch InRelease
49931 DEBUG Hit:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease
49935 DEBUG Hit:3 http://forge.yunohost.org/debian stretch InRelease
50943 DEBUG Hit:4 https://deb.nodesource.com/node_8.x stretch InRelease
66520 DEBUG Reading package lists...
66826 DEBUG + sudo apt-get install -y mongodb-server
67332 DEBUG Reading package lists...
69044 DEBUG Building dependency tree...
69047 DEBUG Reading state information...
71160 DEBUG mongodb-server is already the newest version (1:2.4.14-4).
71165 DEBUG 0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
71268 DEBUG + sudo systemctl enable mongodb.service
71472 WARNING Synchronizing state of mongodb.service with SysV service script with /lib/systemd/systemd-sysv-install.
71475 WARNING Executing: /lib/systemd/systemd-sysv-install enable mongodb
78606 DEBUG + sudo systemctl start mongodb.service
78912 DEBUG + sudo yunohost service add mongodb -l /var/log/mongodb/mongodb.log
82431 DEBUG The service 'mongodb' has been added
82534 DEBUG + sudo apt-get install -y build-essential gzip curl graphicsmagick
83044 DEBUG Reading package lists...
84754 DEBUG Building dependency tree...
84757 DEBUG Reading state information...
86870 DEBUG build-essential is already the newest version (12.3).
86874 DEBUG curl is already the newest version (7.52.1-5+deb9u8).
86882 DEBUG graphicsmagick is already the newest version (1.3.30+hg15796-1~deb9u2).
86887 DEBUG gzip is already the newest version (1.6-5).
86890 DEBUG 0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
86892 DEBUG + installnode
86895 DEBUG + '[' stretch == stretch ']'
86897 DEBUG + sudo curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh
87603 DEBUG + sudo bash nodesource_setup.sh
87807 DEBUG 
87810 DEBUG ## Installing the NodeSource Node.js 8.x LTS Carbon repo...
87813 DEBUG 
87816 DEBUG 
87818 DEBUG ## Populating apt-get cache...
87821 DEBUG 
87823 DEBUG + apt-get update
88428 DEBUG Hit:1 http://archive.raspberrypi.org/debian stretch InRelease
88431 DEBUG Hit:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease
88433 DEBUG Hit:3 http://forge.yunohost.org/debian stretch InRelease
89340 DEBUG Hit:4 https://deb.nodesource.com/node_8.x stretch InRelease
104912 DEBUG Reading package lists...
106624 DEBUG 
106637 DEBUG ## Confirming "stretch" is supported...
106640 DEBUG 
106642 DEBUG + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_8.x/dists/stretch/Release'
106946 DEBUG 
106949 DEBUG ## Adding the NodeSource signing key to your keyring...
106951 DEBUG 
106954 DEBUG + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
107665 WARNING Warning: apt-key output should not be parsed (stdout is not a terminal)
108372 DEBUG OK
108477 DEBUG 
108480 DEBUG ## Creating apt sources list file for the NodeSource Node.js 8.x LTS Carbon repo...
108483 DEBUG 
108486 DEBUG + echo 'deb https://deb.nodesource.com/node_8.x stretch main' > /etc/apt/sources.list.d/nodesource.list
108489 DEBUG + echo 'deb-src https://deb.nodesource.com/node_8.x stretch main' >> /etc/apt/sources.list.d/nodesource.list
108493 DEBUG 
108497 DEBUG ## Running `apt-get update` for you...
108501 DEBUG 
108504 DEBUG + apt-get update
109111 DEBUG Hit:1 http://archive.raspberrypi.org/debian stretch InRelease
109115 DEBUG Hit:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease
109118 DEBUG Hit:3 http://forge.yunohost.org/debian stretch InRelease
110026 DEBUG Hit:4 https://deb.nodesource.com/node_8.x stretch InRelease
126502 DEBUG Reading package lists...
126808 DEBUG 
126811 DEBUG ## Run `sudo apt-get install -y nodejs` to install Node.js 8.x LTS Carbon and npm
126813 DEBUG ## You may also need development tools to build native addons:
126815 DEBUG      sudo apt-get install gcc g++ make
126818 DEBUG ## To install the Yarn package manager, run:
126820 DEBUG      curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
126823 DEBUG      echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
126825 DEBUG      sudo apt-get update && sudo apt-get install yarn
126828 DEBUG 
126831 DEBUG 
126833 DEBUG + sudo apt-get install -y nodejs
127338 DEBUG Reading package lists...
128948 DEBUG Building dependency tree...
128951 DEBUG Reading state information...
131064 DEBUG nodejs is already the newest version (8.15.0-1nodesource1).
131068 DEBUG 0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
131073 DEBUG + echo 'node version is now: '
131077 DEBUG node version is now:
131081 DEBUG + node --version
131185 DEBUG v8.15.0
131188 DEBUG + sudo mkdir -p /var/lib/rocketchat
131392 DEBUG + id -u rocketchat
131395 DEBUG 16922
131397 DEBUG + sed -i s@#ROOTURL#@mydomain.ddns.net@g ../conf/rocketchat.service
131400 DEBUG + sed -i s@#LOCATION#@/rocketchat/@g ../conf/rocketchat.service
134413 DEBUG + sed -i s@#PORT#@3000@g ../conf/rocketchat.service
134417 DEBUG + sed -i s@#USER#@rocketchat@g ../conf/rocketchat.service
134421 DEBUG + sed -i s@#DESTDIR#@/var/lib/rocketchat@g ../conf/rocketchat.service
134425 DEBUG + sed -i s@#DBNAME#@rocketchat@g ../conf/rocketchat.service
134428 DEBUG ++ which node
134431 DEBUG + NODE_BIN=/usr/bin/node
134434 DEBUG + sed -i s@#NODE#@/usr/bin/node@g ../conf/rocketchat.service
134439 DEBUG + sudo cp ../conf/rocketchat.service /etc/systemd/system/rocketchat.service
134643 DEBUG + sudo systemctl daemon-reload
135653 DEBUG + nginx_conf=/etc/nginx/conf.d/mydomain.ddns.net.d/rocketchat.conf
135658 DEBUG + sed -i s@#APP#@rocketchat@g ../conf/nginx.conf
135661 DEBUG + sed -i s@#PATH#@/rocketchat/@g ../conf/nginx.conf
135766 DEBUG + sed -i s@#PORT#@3000@g ../conf/nginx.conf
135769 DEBUG + sed -i s@#LOCATION#@/rocketchat/@g ../conf/nginx.conf
135772 DEBUG + sed -i s@#DBNAME#@rocketchat@g ../conf/rocketchat_ldap.js
135775 DEBUG + sudo cp ../conf/nginx.conf /etc/nginx/conf.d/mydomain.ddns.net.d/rocketchat.conf
135979 DEBUG + echo 'Downloading rocket.chat-0.73.2.gtar from https://releases.rocket.chat/0.73.2/download.'
135983 DEBUG Downloading rocket.chat-0.73.2.gtar from https://releases.rocket.chat/0.73.2/download.
135986 DEBUG + sudo curl -s -L -o /var/lib/rocketchat/rocket.chat-0.73.2.gtar https://releases.rocket.chat/0.73.2/download
167252 DEBUG ++ sha256sum /var/lib/rocketchat/rocket.chat-0.73.2.gtar
167255 DEBUG ++ grep -o '^[a-f0-9]*'
177006 DEBUG + SHA_DOWNLOAD=3dc3eb11f383f7b72b0f23fedb305b6a566fa536a1e5087a4398255deeb864d8
177009 DEBUG + [[ ! 3dc3eb11f383f7b72b0f23fedb305b6a566fa536a1e5087a4398255deeb864d8 == \3\d\c\3\e\b\1\1\f\3\8\3\f\7\b\7\2\b\0\f\2\3\f\e\d\b\3\0\5\b\6\a\5\6\6\f\a\5\3\6\a\1\e\5\0\8\7\a\4\3\9\8\2\5\5\d\e\e\b\8\6\4\d\8 ]]
177012 DEBUG + sudo tar -xzf /var/lib/rocketchat/rocket.chat-0.73.2.gtar -C /var/lib/rocketchat --strip-components=1 bundle
357317 DEBUG + sudo rm /var/lib/rocketchat/rocket.chat-0.73.2.gtar
357863 DEBUG + sudo chown -R rocketchat: /var/lib/rocketchat
373226 DEBUG + cd /var/lib/rocketchat/programs/server/
373229 DEBUG + sudo -u rocketchat npm install --production
400154 WARNING npm WARN deprecated hoek@2.16.3: This version is no longer maintained. Please upgrade to the latest version.
400258 WARNING npm WARN deprecated boom@2.10.1: This version is no longer maintained. Please upgrade to the latest version.
400260 WARNING npm WARN deprecated cryptiles@2.0.5: This version is no longer maintained. Please upgrade to the latest version.
434126 DEBUG 
434130 DEBUG > fibers@2.0.0 install /var/lib/rocketchat/programs/server/node_modules/fibers
434133 DEBUG > node build.js || nodejs build.js
434135 DEBUG 
445590 DEBUG make: Entering directory '/var/lib/rocketchat/programs/server/node_modules/fibers/build'
445594 DEBUG   CXX(target) Release/obj.target/fibers/src/fibers.o
460364 DEBUG   CXX(target) Release/obj.target/fibers/src/coroutine.o
468806 DEBUG   CC(target) Release/obj.target/fibers/src/libcoro/coro.o
470618 DEBUG   SOLINK_MODULE(target) Release/obj.target/fibers.node
471426 DEBUG   COPY Release/fibers.node
471529 DEBUG make: Leaving directory '/var/lib/rocketchat/programs/server/node_modules/fibers/build'
471633 DEBUG Installed in `/var/lib/rocketchat/programs/server/node_modules/fibers/bin/linux-arm-57/fibers.node`
471938 DEBUG 
471941 DEBUG > meteor-dev-bundle@ install /var/lib/rocketchat/programs/server
471945 DEBUG > node npm-rebuild.js
471948 DEBUG 
494662 DEBUG 
494665 DEBUG > phantomjs@1.9.20 install /var/lib/rocketchat/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs
494669 DEBUG > node install.js
494672 DEBUG 
498597 DEBUG PhantomJS not found on PATH
498601 WARNING Unexpected platform or architecture: linux/arm
498605 WARNING It seems there is no binary available for your platform/architecture
498608 WARNING Try to install PhantomJS globally
498713 WARNING npm ERR! code ELIFECYCLE
498716 WARNING npm ERR! errno 1
498720 WARNING npm ERR! phantomjs@1.9.20 install: `node install.js`
498723 WARNING npm ERR! Exit status 1
498727 WARNING npm ERR!
498730 WARNING npm ERR! Failed at the phantomjs@1.9.20 install script.
498734 WARNING npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
498938 WARNING 
498942 WARNING npm ERR! A complete log of this run can be found in:
498946 WARNING npm ERR!     /var/lib/rocketchat/.npm/_logs/2019-01-26T09_19_59_502Z-debug.log
499050 WARNING npm ERR! code ELIFECYCLE
499054 WARNING npm ERR! errno 1
499057 WARNING npm ERR! meteor-dev-bundle@ install: `node npm-rebuild.js`
499060 WARNING npm ERR! Exit status 1
499064 WARNING npm ERR!
499068 WARNING npm ERR! Failed at the meteor-dev-bundle@ install script.
499072 WARNING npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
499377 DEBUG + ynh_exit_properly
499381 WARNING 
499385 DEBUG + local exit_code=1
499389 WARNING npm ERR! A complete log of this run can be found in:
499393 DEBUG + '[' 1 -eq 0 ']'
499396 WARNING npm ERR!     /var/lib/rocketchat/.npm/_logs/2019-01-26T09_19_59_941Z-debug.log
499400 DEBUG + trap '' EXIT
499403 WARNING !!
499406 DEBUG + set +eu
499409 WARNING   rocketchat's script has encountered an error. Its execution was cancelled.
499412 DEBUG + echo -e '!!\n  rocketchat'\''s script has encountered an error. Its execution was cancelled.\n!!'
499415 WARNING !!
499417 DEBUG + type -t ynh_clean_setup
499420 WARNING 
499423 DEBUG + ynh_die
499426 DEBUG + echo ''
499428 DEBUG + exit 1
499605 INFO The operation 'Install 'rocketchat' application' has failed ! To get help, please share the full log of this operation using the command 'yunohost log display 20190126-091158-app_install-rocketchat --share'
499706 DEBUG Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ID=rocketchat YNH_CWD=/var/cache/yunohost/from_file/rocketchat_ynh-master/scripts YNH_APP_INSTANCE_NAME=rocketchat YNH_STDINFO=/tmp/tmpsYzQEM/stdinfo BASH_XTRACEFD=7 /bin/bash -x "./remove" rocketchat 7>&1'...
499709 DEBUG About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ID=rocketchat YNH_CWD=/var/cache/yunohost/from_file/rocketchat_ynh-master/scripts YNH_APP_INSTANCE_NAME=rocketchat YNH_STDINFO=/tmp/tmpsYzQEM/stdinfo BASH_XTRACEFD=7 /bin/bash -x "./remove" rocketchat 7>&1']'
499775 DEBUG + set -u
499781 DEBUG + source /usr/share/yunohost/helpers
499786 DEBUG +++ run-parts --list /usr/share/yunohost/helpers.d
499890 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
499893 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
499895 DEBUG ++ . /usr/share/yunohost/helpers.d/backend
499898 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
499901 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
499904 DEBUG ++ . /usr/share/yunohost/helpers.d/filesystem
499906 DEBUG +++ CAN_BIND=1
499909 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
499912 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
499914 DEBUG ++ . /usr/share/yunohost/helpers.d/getopts
499917 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
499920 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
499922 DEBUG ++ . /usr/share/yunohost/helpers.d/ip
499925 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
499928 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
499930 DEBUG ++ . /usr/share/yunohost/helpers.d/mysql
499933 DEBUG +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
499936 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
499939 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
499942 DEBUG ++ . /usr/share/yunohost/helpers.d/network
499945 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
499947 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
499950 DEBUG ++ . /usr/share/yunohost/helpers.d/nodejs
499953 DEBUG +++ n_install_dir=/opt/node_n
499956 DEBUG +++ node_version_path=/opt/node_n/n/versions/node
499959 DEBUG +++ export N_PREFIX=/opt/node_n
499962 DEBUG +++ N_PREFIX=/opt/node_n
499964 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
499967 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/package ']'
499969 DEBUG ++ . /usr/share/yunohost/helpers.d/package
499972 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
499974 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/print ']'
499977 DEBUG ++ . /usr/share/yunohost/helpers.d/print
499980 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
499983 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/psql ']'
499985 DEBUG ++ . /usr/share/yunohost/helpers.d/psql
499989 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
499993 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
499996 DEBUG ++ . /usr/share/yunohost/helpers.d/setting
500000 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
500003 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
500006 DEBUG ++ . /usr/share/yunohost/helpers.d/string
500009 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
500012 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/system ']'
500014 DEBUG ++ . /usr/share/yunohost/helpers.d/system
500017 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
500021 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
500025 DEBUG ++ . /usr/share/yunohost/helpers.d/user
500028 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
500031 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
500034 DEBUG ++ . /usr/share/yunohost/helpers.d/utils
500037 DEBUG + source ./_common.sh
500041 DEBUG ++ ROCKETCHAT_VERSION=0.73.2
500046 DEBUG ++ ROCKETCHAT_SHASUM=3dc3eb11f383f7b72b0f23fedb305b6a566fa536a1e5087a4398255deeb864d8
500050 DEBUG ++ ROCKETCHAT_DOWNLOAD_URI=https://releases.rocket.chat/0.73.2/download
500052 DEBUG ++ NODE_VERSION=8.11.4
500055 DEBUG +++ grep 9 /etc/debian_version
500058 DEBUG +++ echo stretch
500061 DEBUG ++ DEBIAN_ISSUE=stretch
500064 DEBUG + app=rocketchat
500067 DEBUG ++ ynh_app_setting_get rocketchat domain
500070 DEBUG ++ sudo yunohost app setting rocketchat domain --output-as plain --quiet
503889 DEBUG + domain=mydomain.ddns.net
503892 DEBUG ++ ynh_app_setting_get rocketchat final_path
503895 DEBUG ++ sudo yunohost app setting rocketchat final_path --output-as plain --quiet
507113 DEBUG + final_path=/var/lib/rocketchat
507116 DEBUG + sudo systemctl stop rocketchat.service
507523 DEBUG + sudo yunohost service remove rocketchat
510740 WARNING Unknown service 'rocketchat'
510946 DEBUG + sudo rm -rf /var/lib/rocketchat
529424 DEBUG + sudo rm -f /etc/nginx/conf.d/mydomain.ddns.net.d/rocketchat.conf
529637 DEBUG + sudo rm -rf /var/log/rocketchat
529740 DEBUG + sudo rm -f /etc/systemd/system/rocketchat.service
529948 DEBUG + sudo mongo rocketchat --eval 'db.dropDatabase()'
530353 DEBUG MongoDB shell version: 2.4.14
530858 DEBUG connecting to: rocketchat
532150 DEBUG [object Object]
532153 DEBUG + sudo systemctl daemon-reload
533663 DEBUG + sudo systemctl reload nginx
534909 DEBUG To view the log of the operation 'Remove 'rocketchat' after a failed installation', use the command 'yunohost log display 20190126-092000-remove_on_failed_install-rocketchat'
536187 SUCCESS The SSOwat configuration has been generated
536189 DEBUG action [30882.1] executed in 533.522s
536191 DEBUG lock has been released
536193 ERROR The operation 'Install 'rocketchat' application' has failed ! To get help, please share the full log of this operation using the command 'yunohost log display 20190126-091158-app_install-rocketchat --share'
Manumerique commented 5 years ago

Complete debug log - With previous phantomjs installation (2.2.1 in repository)

sudo apt install phantomjs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libdouble-conversion1 libpcre16-3 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5opengl5
  libqt5printsupport5 libqt5qml5 libqt5quick5 libqt5sql5 libqt5sql5-sqlite libqt5svg5 libqt5webkit5
  libqt5widgets5 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0
  libxcb-xinerama0 libxcb-xkb1 libxkbcommon-x11-0 libxkbcommon0 qt5-gtk-platformtheme
  qttranslations5-l10n
Suggested packages:
  qt5-image-formats-plugins qtwayland5 qt5-qmltooling-plugins
The following NEW packages will be installed:
  libdouble-conversion1 libpcre16-3 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5opengl5
  libqt5printsupport5 libqt5qml5 libqt5quick5 libqt5sql5 libqt5sql5-sqlite libqt5svg5 libqt5webkit5
  libqt5widgets5 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0
  libxcb-xinerama0 libxcb-xkb1 libxkbcommon-x11-0 libxkbcommon0 phantomjs qt5-gtk-platformtheme
  qttranslations5-l10n
0 upgraded, 27 newly installed, 0 to remove and 13 not upgraded.
Need to get 18.7 MB of archives.
After this operation, 76.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] ^C
root@xxx:~# apt policy phantomjs
phantomjs:
  Installed: (none)
  Candidate: 2.1.1+dfsg-2
  Version table:
     2.1.1+dfsg-2 500
        500 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages
root@xxx:~# apt install phantomjs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libdouble-conversion1 libpcre16-3 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5opengl5
  libqt5printsupport5 libqt5qml5 libqt5quick5 libqt5sql5 libqt5sql5-sqlite libqt5svg5 libqt5webkit5
  libqt5widgets5 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0
  libxcb-xinerama0 libxcb-xkb1 libxkbcommon-x11-0 libxkbcommon0 qt5-gtk-platformtheme
  qttranslations5-l10n
Suggested packages:
  qt5-image-formats-plugins qtwayland5 qt5-qmltooling-plugins
The following NEW packages will be installed:
  libdouble-conversion1 libpcre16-3 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5opengl5
  libqt5printsupport5 libqt5qml5 libqt5quick5 libqt5sql5 libqt5sql5-sqlite libqt5svg5 libqt5webkit5
  libqt5widgets5 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0
  libxcb-xinerama0 libxcb-xkb1 libxkbcommon-x11-0 libxkbcommon0 phantomjs qt5-gtk-platformtheme
  qttranslations5-l10n
0 upgraded, 27 newly installed, 0 to remove and 13 not upgraded.
Need to get 18.7 MB of archives.
After this operation, 76.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libdouble-conversion1 armhf 2.0.1-4 [33.1 kB]
Get:2 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libpcre16-3 armhf 2:8.39-3 [235 kB]
Get:3 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libqt5core5a armhf 5.7.1+dfsg-3+rpi1 [1,572 kB]
Get:4 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libqt5dbus5 armhf 5.7.1+dfsg-3+rpi1 [188 kB]
Get:6 http://ftp.igh.cnrs.fr/pub/os/linux/raspbian/raspbian stretch/main armhf libxcb-icccm4 armhf 0.4.1-1 [26.1 kB]
Get:5 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libqt5network5 armhf 5.7.1+dfsg-3+rpi1 [504 kB]
Get:7 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libxcb-image0 armhf 0.4.0-1 [23.1 kB]
Get:8 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libxcb-keysyms1 armhf 0.4.0-1 [15.7 kB]
Get:9 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libxcb-randr0 armhf 1.12-1 [106 kB]
Get:10 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libxcb-render-util0 armhf 0.3.9-1 [17.0 kB]
Get:11 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libxcb-xinerama0 armhf 1.12-1 [95.5 kB]
Get:12 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libxcb-xkb1 armhf 1.12-1 [116 kB]
Get:13 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libxkbcommon0 armhf 0.7.1-2~deb9u1 [110 kB]
Get:14 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libxkbcommon-x11-0 armhf 0.7.1-2~deb9u1 [37.6 kB]
Get:15 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libqt5gui5 armhf 5.7.1+dfsg-3+rpi1 [1,913 kB]
Get:16 http://raspbian.42.fr/raspbian stretch/main armhf libqt5widgets5 armhf 5.7.1+dfsg-3+rpi1 [1,934 kB]
Get:17 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libqt5svg5 armhf 5.7.1~20161021-2 [109 kB]
Get:18 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libqt5opengl5 armhf 5.7.1+dfsg-3+rpi1 [132 kB]
Get:19 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libqt5printsupport5 armhf 5.7.1+dfsg-3+rpi1 [181 kB]
Get:20 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libqt5qml5 armhf 5.7.1-2+rpi1 [970 kB]
Get:21 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libqt5quick5 armhf 5.7.1-2+rpi1 [896 kB]
Get:22 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libqt5sql5 armhf 5.7.1+dfsg-3+rpi1 [120 kB]
Get:23 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libqt5webkit5 armhf 5.7.1+dfsg-1+rpi1 [7,683 kB]
Get:24 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf libqt5sql5-sqlite armhf 5.7.1+dfsg-3+rpi1 [57.9 kB]
Get:25 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf qt5-gtk-platformtheme armhf 5.7.1+dfsg-3+rpi1 [115 kB]
Get:26 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf qttranslations5-l10n all 5.7.1~20161021-1 [1,219 kB]
Get:27 http://mirrors.ircam.fr/pub/raspbian/raspbian stretch/main armhf phantomjs armhf 2.1.1+dfsg-2 [277 kB]
Fetched 18.7 MB in 5s (3,347 kB/s)  
Selecting previously unselected package libdouble-conversion1:armhf.
(Reading database ... 143644 files and directories currently installed.)
Preparing to unpack .../00-libdouble-conversion1_2.0.1-4_armhf.deb ...
Unpacking libdouble-conversion1:armhf (2.0.1-4) ...
Selecting previously unselected package libpcre16-3:armhf.
Preparing to unpack .../01-libpcre16-3_2%3a8.39-3_armhf.deb ...
Unpacking libpcre16-3:armhf (2:8.39-3) ...
Selecting previously unselected package libqt5core5a:armhf.
Preparing to unpack .../02-libqt5core5a_5.7.1+dfsg-3+rpi1_armhf.deb ...
Unpacking libqt5core5a:armhf (5.7.1+dfsg-3+rpi1) ...
Selecting previously unselected package libqt5dbus5:armhf.
Preparing to unpack .../03-libqt5dbus5_5.7.1+dfsg-3+rpi1_armhf.deb ...
Unpacking libqt5dbus5:armhf (5.7.1+dfsg-3+rpi1) ...
Selecting previously unselected package libqt5network5:armhf.
Preparing to unpack .../04-libqt5network5_5.7.1+dfsg-3+rpi1_armhf.deb ...
Unpacking libqt5network5:armhf (5.7.1+dfsg-3+rpi1) ...
Selecting previously unselected package libxcb-icccm4:armhf.
Preparing to unpack .../05-libxcb-icccm4_0.4.1-1_armhf.deb ...
Unpacking libxcb-icccm4:armhf (0.4.1-1) ...
Selecting previously unselected package libxcb-image0:armhf.
Preparing to unpack .../06-libxcb-image0_0.4.0-1_armhf.deb ...
Unpacking libxcb-image0:armhf (0.4.0-1) ...
Selecting previously unselected package libxcb-keysyms1:armhf.
Preparing to unpack .../07-libxcb-keysyms1_0.4.0-1_armhf.deb ...
Unpacking libxcb-keysyms1:armhf (0.4.0-1) ...
Selecting previously unselected package libxcb-randr0:armhf.
Preparing to unpack .../08-libxcb-randr0_1.12-1_armhf.deb ...
Unpacking libxcb-randr0:armhf (1.12-1) ...
Selecting previously unselected package libxcb-render-util0:armhf.
Preparing to unpack .../09-libxcb-render-util0_0.3.9-1_armhf.deb ...
Unpacking libxcb-render-util0:armhf (0.3.9-1) ...
Selecting previously unselected package libxcb-xinerama0:armhf.
Preparing to unpack .../10-libxcb-xinerama0_1.12-1_armhf.deb ...
Unpacking libxcb-xinerama0:armhf (1.12-1) ...
Selecting previously unselected package libxcb-xkb1:armhf.
Preparing to unpack .../11-libxcb-xkb1_1.12-1_armhf.deb ...
Unpacking libxcb-xkb1:armhf (1.12-1) ...
Selecting previously unselected package libxkbcommon0:armhf.
Preparing to unpack .../12-libxkbcommon0_0.7.1-2~deb9u1_armhf.deb ...
Unpacking libxkbcommon0:armhf (0.7.1-2~deb9u1) ...
Selecting previously unselected package libxkbcommon-x11-0:armhf.
Preparing to unpack .../13-libxkbcommon-x11-0_0.7.1-2~deb9u1_armhf.deb ...
Unpacking libxkbcommon-x11-0:armhf (0.7.1-2~deb9u1) ...
Selecting previously unselected package libqt5gui5:armhf.
Preparing to unpack .../14-libqt5gui5_5.7.1+dfsg-3+rpi1_armhf.deb ...
Unpacking libqt5gui5:armhf (5.7.1+dfsg-3+rpi1) ...
Selecting previously unselected package libqt5widgets5:armhf.
Preparing to unpack .../15-libqt5widgets5_5.7.1+dfsg-3+rpi1_armhf.deb ...
Unpacking libqt5widgets5:armhf (5.7.1+dfsg-3+rpi1) ...
Selecting previously unselected package libqt5svg5:armhf.
Preparing to unpack .../16-libqt5svg5_5.7.1~20161021-2_armhf.deb ...
Unpacking libqt5svg5:armhf (5.7.1~20161021-2) ...
Selecting previously unselected package libqt5opengl5:armhf.
Preparing to unpack .../17-libqt5opengl5_5.7.1+dfsg-3+rpi1_armhf.deb ...
Unpacking libqt5opengl5:armhf (5.7.1+dfsg-3+rpi1) ...
Selecting previously unselected package libqt5printsupport5:armhf.
Preparing to unpack .../18-libqt5printsupport5_5.7.1+dfsg-3+rpi1_armhf.deb ...
Unpacking libqt5printsupport5:armhf (5.7.1+dfsg-3+rpi1) ...
Selecting previously unselected package libqt5qml5:armhf.
Preparing to unpack .../19-libqt5qml5_5.7.1-2+rpi1_armhf.deb ...
Unpacking libqt5qml5:armhf (5.7.1-2+rpi1) ...
Selecting previously unselected package libqt5quick5:armhf.
Preparing to unpack .../20-libqt5quick5_5.7.1-2+rpi1_armhf.deb ...
Unpacking libqt5quick5:armhf (5.7.1-2+rpi1) ...
Selecting previously unselected package libqt5sql5:armhf.
Preparing to unpack .../21-libqt5sql5_5.7.1+dfsg-3+rpi1_armhf.deb ...
Unpacking libqt5sql5:armhf (5.7.1+dfsg-3+rpi1) ...
Selecting previously unselected package libqt5webkit5:armhf.
Preparing to unpack .../22-libqt5webkit5_5.7.1+dfsg-1+rpi1_armhf.deb ...
Unpacking libqt5webkit5:armhf (5.7.1+dfsg-1+rpi1) ...
Selecting previously unselected package libqt5sql5-sqlite:armhf.
Preparing to unpack .../23-libqt5sql5-sqlite_5.7.1+dfsg-3+rpi1_armhf.deb ...
Unpacking libqt5sql5-sqlite:armhf (5.7.1+dfsg-3+rpi1) ...
Selecting previously unselected package qt5-gtk-platformtheme:armhf.
Preparing to unpack .../24-qt5-gtk-platformtheme_5.7.1+dfsg-3+rpi1_armhf.deb ...
Unpacking qt5-gtk-platformtheme:armhf (5.7.1+dfsg-3+rpi1) ...
Selecting previously unselected package qttranslations5-l10n.
Preparing to unpack .../25-qttranslations5-l10n_5.7.1~20161021-1_all.deb ...
Unpacking qttranslations5-l10n (5.7.1~20161021-1) ...
Selecting previously unselected package phantomjs.
Preparing to unpack .../26-phantomjs_2.1.1+dfsg-2_armhf.deb ...
Unpacking phantomjs (2.1.1+dfsg-2) ...
Setting up libxcb-xinerama0:armhf (1.12-1) ...
Setting up libxcb-render-util0:armhf (0.3.9-1) ...
Setting up libxcb-randr0:armhf (1.12-1) ...
Setting up libxcb-icccm4:armhf (0.4.1-1) ...
Setting up libxcb-image0:armhf (0.4.0-1) ...
Setting up libdouble-conversion1:armhf (2.0.1-4) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Setting up qttranslations5-l10n (5.7.1~20161021-1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up libxkbcommon0:armhf (0.7.1-2~deb9u1) ...
Setting up libxcb-keysyms1:armhf (0.4.0-1) ...
Setting up libpcre16-3:armhf (2:8.39-3) ...
Setting up libxcb-xkb1:armhf (1.12-1) ...
Setting up libqt5core5a:armhf (5.7.1+dfsg-3+rpi1) ...
Setting up libqt5dbus5:armhf (5.7.1+dfsg-3+rpi1) ...
Setting up libqt5network5:armhf (5.7.1+dfsg-3+rpi1) ...
Setting up libxkbcommon-x11-0:armhf (0.7.1-2~deb9u1) ...
Setting up libqt5gui5:armhf (5.7.1+dfsg-3+rpi1) ...
Setting up libqt5sql5:armhf (5.7.1+dfsg-3+rpi1) ...
Setting up qt5-gtk-platformtheme:armhf (5.7.1+dfsg-3+rpi1) ...
Setting up libqt5qml5:armhf (5.7.1-2+rpi1) ...
Setting up libqt5quick5:armhf (5.7.1-2+rpi1) ...
Setting up libqt5widgets5:armhf (5.7.1+dfsg-3+rpi1) ...
Setting up libqt5printsupport5:armhf (5.7.1+dfsg-3+rpi1) ...
Setting up libqt5opengl5:armhf (5.7.1+dfsg-3+rpi1) ...
Setting up libqt5sql5-sqlite:armhf (5.7.1+dfsg-3+rpi1) ...
Setting up libqt5svg5:armhf (5.7.1~20161021-2) ...
Setting up libqt5webkit5:armhf (5.7.1+dfsg-1+rpi1) ...
Setting up phantomjs (2.1.1+dfsg-2) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
root@xxx:~# sudo yunohost app install --debug https://github.com/yunohost-apps/rocketchat_ynh
1202 DEBUG loading actions map namespace 'yunohost'
1425 DEBUG extra parameter classes loaded: ['comment', 'ask', 'password', 'required', 'pattern']
1427 DEBUG initializing base actions map parser for cli
1439 DEBUG registering new callback action 'yunohost.utils.packages.ynh_packages_version' to ['-v', '--version']
2438 DEBUG initialize authenticator 'ldap-anonymous' with: uri='ldap://localhost:389', base_dn='dc=yunohost,dc=org', user_rdn='None'
2472 DEBUG lock has been acquired
2735 DEBUG loading python module yunohost.app took 0.262s
2737 INFO processing action [753.1]: yunohost.app.install with args={'app': 'https://github.com/yunohost-apps/rocketchat_ynh', 'args': None, 'auth': <moulinette.authenticators.ldap.Authenticator object at 0x764a1410>, 'label': None, 'no_remove_on_failure': False}
2777 DEBUG Downloading...
4019 DEBUG Extracting...
4073 DEBUG Done
6038 DEBUG Checking required packages for rocketchat...
Available domains:
- mydomain.ddns.net
Choose a domain for Rocketchat (default: mydomain.ddns.net): 
Choose a path for RocketChat (default: /rocketchat): 
Is it a public application? [Yes | No] (default: Yes): 
Select default language [English] (default: English): 
12485 DEBUG Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/rocketchat_ynh-master/scripts YNH_APP_ARG_IS_PUBLIC=Yes YNH_STDINFO=/tmp/tmpf5zkyX/stdinfo YNH_APP_INSTANCE_NAME=rocketchat YNH_APP_ARG_LANG=English YNH_APP_ID=rocketchat YNH_APP_ARG_PATH=/rocketchat YNH_APP_ARG_DOMAIN=mydomain.ddns.net BASH_XTRACEFD=7 /bin/bash -x "./install" mydomain.ddns.net /rocketchat Yes English rocketchat 7>&1'...
12488 DEBUG About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/rocketchat_ynh-master/scripts YNH_APP_ARG_IS_PUBLIC=Yes YNH_STDINFO=/tmp/tmpf5zkyX/stdinfo YNH_APP_INSTANCE_NAME=rocketchat YNH_APP_ARG_LANG=English YNH_APP_ID=rocketchat YNH_APP_ARG_PATH=/rocketchat YNH_APP_ARG_DOMAIN=mydomain.ddns.net BASH_XTRACEFD=7 /bin/bash -x "./install" mydomain.ddns.net /rocketchat Yes English rocketchat 7>&1']'
12558 DEBUG + set -eu
12563 DEBUG + source /usr/share/yunohost/helpers
12565 DEBUG +++ run-parts --list /usr/share/yunohost/helpers.d
12568 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12571 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
12574 DEBUG ++ . /usr/share/yunohost/helpers.d/backend
12576 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12580 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
12583 DEBUG ++ . /usr/share/yunohost/helpers.d/filesystem
12585 DEBUG +++ CAN_BIND=1
12688 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12690 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
12693 DEBUG ++ . /usr/share/yunohost/helpers.d/getopts
12695 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12697 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
12699 DEBUG ++ . /usr/share/yunohost/helpers.d/ip
12701 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12704 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
12706 DEBUG ++ . /usr/share/yunohost/helpers.d/mysql
12708 DEBUG +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
12711 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12714 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
12717 DEBUG ++ . /usr/share/yunohost/helpers.d/network
12719 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12722 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
12725 DEBUG ++ . /usr/share/yunohost/helpers.d/nodejs
12728 DEBUG +++ n_install_dir=/opt/node_n
12730 DEBUG +++ node_version_path=/opt/node_n/n/versions/node
12733 DEBUG +++ export N_PREFIX=/opt/node_n
12735 DEBUG +++ N_PREFIX=/opt/node_n
12737 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12740 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/package ']'
12743 DEBUG ++ . /usr/share/yunohost/helpers.d/package
12746 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12748 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/print ']'
12751 DEBUG ++ . /usr/share/yunohost/helpers.d/print
12754 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12757 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/psql ']'
12760 DEBUG ++ . /usr/share/yunohost/helpers.d/psql
12762 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12765 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
12768 DEBUG ++ . /usr/share/yunohost/helpers.d/setting
12771 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12773 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
12776 DEBUG ++ . /usr/share/yunohost/helpers.d/string
12778 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12780 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/system ']'
12783 DEBUG ++ . /usr/share/yunohost/helpers.d/system
12785 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12788 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
12791 DEBUG ++ . /usr/share/yunohost/helpers.d/user
12794 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12796 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
12799 DEBUG ++ . /usr/share/yunohost/helpers.d/utils
12801 DEBUG + source ./_common.sh
12804 DEBUG ++ ROCKETCHAT_VERSION=0.73.2
12807 DEBUG ++ ROCKETCHAT_SHASUM=3dc3eb11f383f7b72b0f23fedb305b6a566fa536a1e5087a4398255deeb864d8
12809 DEBUG ++ ROCKETCHAT_DOWNLOAD_URI=https://releases.rocket.chat/0.73.2/download
12812 DEBUG ++ NODE_VERSION=8.11.4
12815 DEBUG +++ grep 9 /etc/debian_version
12817 DEBUG +++ echo stretch
12819 DEBUG ++ DEBIAN_ISSUE=stretch
12822 DEBUG + ynh_abort_if_errors
12824 DEBUG + set -eu
12826 DEBUG + trap ynh_exit_properly EXIT
12828 DEBUG + domain=mydomain.ddns.net
12831 DEBUG + path=/rocketchat
12833 DEBUG + is_public=Yes
12835 DEBUG + language=English
12838 DEBUG + app=rocketchat
12840 DEBUG + dbname=rocketchat
12843 DEBUG + serviceuser=rocketchat
12845 DEBUG ++ pwd
12848 DEBUG + workdir=/var/cache/yunohost/from_file/rocketchat_ynh-master/scripts
12850 DEBUG ++ ynh_find_port 3000
12853 DEBUG ++ local port=3000
12855 DEBUG ++ test -n 3000
12858 DEBUG ++ netcat -z 127.0.0.1 3000
12861 DEBUG ++ echo 3000
12863 DEBUG + port=3000
12865 DEBUG + '[' / '!=' / ']'
12868 DEBUG + '[' t '!=' / ']'
12870 DEBUG + '[' 11 -gt 1 ']'
12872 DEBUG + path=/rocketchat/
12874 DEBUG + ynh_webpath_available mydomain.ddns.net /rocketchat/
12877 DEBUG + local domain=mydomain.ddns.net
12879 DEBUG + local path=/rocketchat/
12881 DEBUG + sudo yunohost domain url-available mydomain.ddns.net /rocketchat/
16401 DEBUG True
16606 DEBUG + [[ ! 0 -eq 0 ]]
16610 DEBUG + ynh_webpath_register rocketchat mydomain.ddns.net /rocketchat/
16614 DEBUG + local app=rocketchat
16617 DEBUG + local domain=mydomain.ddns.net
16621 DEBUG + local path=/rocketchat/
16624 DEBUG + sudo yunohost app register-url rocketchat mydomain.ddns.net /rocketchat/
20544 DEBUG + final_path=/var/lib/rocketchat
20547 DEBUG + [[ -d /var/lib/rocketchat ]]
20551 DEBUG + ynh_app_setting_set rocketchat node_version 8.11.4
20554 DEBUG + sudo yunohost app setting rocketchat node_version --value=8.11.4 --quiet
23771 DEBUG + ynh_app_setting_set rocketchat rocketchat_version 0.73.2
23775 DEBUG + sudo yunohost app setting rocketchat rocketchat_version --value=0.73.2 --quiet
26992 DEBUG + ynh_app_setting_set rocketchat serviceuser rocketchat
26998 DEBUG + sudo yunohost app setting rocketchat serviceuser --value=rocketchat --quiet
30116 DEBUG + ynh_app_setting_set rocketchat port 3000
30121 DEBUG + sudo yunohost app setting rocketchat port --value=3000 --quiet
33338 DEBUG + ynh_app_setting_set rocketchat final_path /var/lib/rocketchat
33342 DEBUG + sudo yunohost app setting rocketchat final_path --value=/var/lib/rocketchat --quiet
36561 DEBUG + ynh_app_setting_set rocketchat path /rocketchat/
36565 DEBUG + sudo yunohost app setting rocketchat path --value=/rocketchat/ --quiet
39680 DEBUG + ynh_app_setting_set rocketchat is_public Yes
39684 DEBUG + sudo yunohost app setting rocketchat is_public --value=Yes --quiet
42902 DEBUG + installdeps
42906 DEBUG ++ dpkg --print-architecture
42910 DEBUG + '[' armhf == armhf ']'
42914 DEBUG + sudo apt-get update
43721 DEBUG Hit:1 http://archive.raspberrypi.org/debian stretch InRelease
43725 DEBUG Hit:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease
43728 DEBUG Hit:3 http://forge.yunohost.org/debian stretch InRelease
44737 DEBUG Hit:4 https://deb.nodesource.com/node_8.x stretch InRelease
60514 DEBUG Reading package lists...
60820 DEBUG + sudo apt-get install -y mongodb-server
61327 DEBUG Reading package lists...
62937 DEBUG Building dependency tree...
62941 DEBUG Reading state information...
65054 DEBUG mongodb-server is already the newest version (1:2.4.14-4).
65058 DEBUG 0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
65061 DEBUG + sudo systemctl enable mongodb.service
65265 WARNING Synchronizing state of mongodb.service with SysV service script with /lib/systemd/systemd-sysv-install.
65267 WARNING Executing: /lib/systemd/systemd-sysv-install enable mongodb
75309 DEBUG + sudo systemctl start mongodb.service
75513 DEBUG + sudo yunohost service add mongodb -l /var/log/mongodb/mongodb.log
78930 DEBUG The service 'mongodb' has been added
79035 DEBUG + sudo apt-get install -y build-essential gzip curl graphicsmagick
79541 DEBUG Reading package lists...
81152 DEBUG Building dependency tree...
81256 DEBUG Reading state information...
83269 DEBUG build-essential is already the newest version (12.3).
83278 DEBUG curl is already the newest version (7.52.1-5+deb9u8).
83285 DEBUG graphicsmagick is already the newest version (1.3.30+hg15796-1~deb9u2).
83288 DEBUG gzip is already the newest version (1.6-5).
83291 DEBUG 0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
83394 DEBUG + installnode
83397 DEBUG + '[' stretch == stretch ']'
83399 DEBUG + sudo curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh
83904 DEBUG + sudo bash nodesource_setup.sh
84110 DEBUG 
84114 DEBUG ## Installing the NodeSource Node.js 8.x LTS Carbon repo...
84118 DEBUG 
84121 DEBUG 
84124 DEBUG ## Populating apt-get cache...
84128 DEBUG 
84131 DEBUG + apt-get update
84738 DEBUG Hit:1 http://archive.raspberrypi.org/debian stretch InRelease
84742 DEBUG Hit:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease
84745 DEBUG Hit:3 http://forge.yunohost.org/debian stretch InRelease
85653 DEBUG Hit:4 https://deb.nodesource.com/node_8.x stretch InRelease
100925 DEBUG Reading package lists...
102840 DEBUG 
102843 DEBUG ## Confirming "stretch" is supported...
102847 DEBUG 
102851 DEBUG + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_8.x/dists/stretch/Release'
103357 DEBUG 
103361 DEBUG ## Adding the NodeSource signing key to your keyring...
103365 DEBUG 
103368 DEBUG + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
104178 WARNING Warning: apt-key output should not be parsed (stdout is not a terminal)
104889 DEBUG OK
104893 DEBUG 
104897 DEBUG ## Creating apt sources list file for the NodeSource Node.js 8.x LTS Carbon repo...
104902 DEBUG 
104906 DEBUG + echo 'deb https://deb.nodesource.com/node_8.x stretch main' > /etc/apt/sources.list.d/nodesource.list
104910 DEBUG + echo 'deb-src https://deb.nodesource.com/node_8.x stretch main' >> /etc/apt/sources.list.d/nodesource.list
104914 DEBUG 
104918 DEBUG ## Running `apt-get update` for you...
104922 DEBUG 
104925 DEBUG + apt-get update
105532 DEBUG Hit:1 http://archive.raspberrypi.org/debian stretch InRelease
105536 DEBUG Hit:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease
105540 DEBUG Hit:3 http://forge.yunohost.org/debian stretch InRelease
106551 DEBUG Hit:4 https://deb.nodesource.com/node_8.x stretch InRelease
124731 DEBUG Reading package lists...
125039 DEBUG 
125043 DEBUG ## Run `sudo apt-get install -y nodejs` to install Node.js 8.x LTS Carbon and npm
125047 DEBUG ## You may also need development tools to build native addons:
125051 DEBUG      sudo apt-get install gcc g++ make
125055 DEBUG ## To install the Yarn package manager, run:
125058 DEBUG      curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
125062 DEBUG      echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
125065 DEBUG      sudo apt-get update && sudo apt-get install yarn
125069 DEBUG 
125072 DEBUG 
125075 DEBUG + sudo apt-get install -y nodejs
125582 DEBUG Reading package lists...
127193 DEBUG Building dependency tree...
127297 DEBUG Reading state information...
129411 DEBUG nodejs is already the newest version (8.15.0-1nodesource1).
129414 DEBUG 0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
129417 DEBUG + echo 'node version is now: '
129421 DEBUG node version is now:
129424 DEBUG + node --version
129426 DEBUG v8.15.0
129429 DEBUG + sudo mkdir -p /var/lib/rocketchat
129633 DEBUG + id -u rocketchat
129637 DEBUG 16922
129640 DEBUG + sed -i s@#ROOTURL#@mydomain.ddns.net@g ../conf/rocketchat.service
129744 DEBUG + sed -i s@#LOCATION#@/rocketchat/@g ../conf/rocketchat.service
132256 DEBUG + sed -i s@#PORT#@3000@g ../conf/rocketchat.service
132360 DEBUG + sed -i s@#USER#@rocketchat@g ../conf/rocketchat.service
132363 DEBUG + sed -i s@#DESTDIR#@/var/lib/rocketchat@g ../conf/rocketchat.service
132366 DEBUG + sed -i s@#DBNAME#@rocketchat@g ../conf/rocketchat.service
132368 DEBUG ++ which node
132371 DEBUG + NODE_BIN=/usr/bin/node
132374 DEBUG + sed -i s@#NODE#@/usr/bin/node@g ../conf/rocketchat.service
132377 DEBUG + sudo cp ../conf/rocketchat.service /etc/systemd/system/rocketchat.service
132581 DEBUG + sudo systemctl daemon-reload
133589 DEBUG + nginx_conf=/etc/nginx/conf.d/mydomain.ddns.net.d/rocketchat.conf
133592 DEBUG + sed -i s@#APP#@rocketchat@g ../conf/nginx.conf
133595 DEBUG + sed -i s@#PATH#@/rocketchat/@g ../conf/nginx.conf
133598 DEBUG + sed -i s@#PORT#@3000@g ../conf/nginx.conf
133601 DEBUG + sed -i s@#LOCATION#@/rocketchat/@g ../conf/nginx.conf
133704 DEBUG + sed -i s@#DBNAME#@rocketchat@g ../conf/rocketchat_ldap.js
133707 DEBUG + sudo cp ../conf/nginx.conf /etc/nginx/conf.d/mydomain.ddns.net.d/rocketchat.conf
133809 DEBUG + echo 'Downloading rocket.chat-0.73.2.gtar from https://releases.rocket.chat/0.73.2/download.'
133813 DEBUG Downloading rocket.chat-0.73.2.gtar from https://releases.rocket.chat/0.73.2/download.
133816 DEBUG + sudo curl -s -L -o /var/lib/rocketchat/rocket.chat-0.73.2.gtar https://releases.rocket.chat/0.73.2/download
166618 DEBUG ++ sha256sum /var/lib/rocketchat/rocket.chat-0.73.2.gtar
166622 DEBUG ++ grep -o '^[a-f0-9]*'
176162 DEBUG + SHA_DOWNLOAD=3dc3eb11f383f7b72b0f23fedb305b6a566fa536a1e5087a4398255deeb864d8
176165 DEBUG + [[ ! 3dc3eb11f383f7b72b0f23fedb305b6a566fa536a1e5087a4398255deeb864d8 == \3\d\c\3\e\b\1\1\f\3\8\3\f\7\b\7\2\b\0\f\2\3\f\e\d\b\3\0\5\b\6\a\5\6\6\f\a\5\3\6\a\1\e\5\0\8\7\a\4\3\9\8\2\5\5\d\e\e\b\8\6\4\d\8 ]]
176169 DEBUG + sudo tar -xzf /var/lib/rocketchat/rocket.chat-0.73.2.gtar -C /var/lib/rocketchat --strip-components=1 bundle
352587 DEBUG + sudo rm /var/lib/rocketchat/rocket.chat-0.73.2.gtar
353104 DEBUG + sudo chown -R rocketchat: /var/lib/rocketchat
373688 DEBUG + cd /var/lib/rocketchat/programs/server/
373792 DEBUG + sudo -u rocketchat npm install --production
399625 WARNING npm WARN deprecated hoek@2.16.3: This version is no longer maintained. Please upgrade to the latest version.
399628 WARNING npm WARN deprecated boom@2.10.1: This version is no longer maintained. Please upgrade to the latest version.
399732 WARNING npm WARN deprecated cryptiles@2.0.5: This version is no longer maintained. Please upgrade to the latest version.
438308 DEBUG 
438311 DEBUG > fibers@2.0.0 install /var/lib/rocketchat/programs/server/node_modules/fibers
438313 DEBUG > node build.js || nodejs build.js
438316 DEBUG 
449667 DEBUG make: Entering directory '/var/lib/rocketchat/programs/server/node_modules/fibers/build'
449669 DEBUG   CXX(target) Release/obj.target/fibers/src/fibers.o
465443 DEBUG   CXX(target) Release/obj.target/fibers/src/coroutine.o
473683 DEBUG   CC(target) Release/obj.target/fibers/src/libcoro/coro.o
475794 DEBUG   SOLINK_MODULE(target) Release/obj.target/fibers.node
476601 DEBUG   COPY Release/fibers.node
476604 DEBUG make: Leaving directory '/var/lib/rocketchat/programs/server/node_modules/fibers/build'
476709 DEBUG Installed in `/var/lib/rocketchat/programs/server/node_modules/fibers/bin/linux-arm-57/fibers.node`
477114 DEBUG 
477116 DEBUG > meteor-dev-bundle@ install /var/lib/rocketchat/programs/server
477119 DEBUG > node npm-rebuild.js
477122 DEBUG 
500329 DEBUG 
500332 DEBUG > phantomjs@1.9.20 install /var/lib/rocketchat/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs
500335 DEBUG > node install.js
500338 DEBUG 
504258 DEBUG Considering PhantomJS found at /usr/bin/phantomjs
504385 DEBUG Found PhantomJS at /usr/bin/phantomjs ...verifying
506097 WARNING Error verifying phantomjs, continuing { Error: Command failed: /usr/bin/phantomjs --version
506100 WARNING QXcbConnection: Could not connect to display
506103 WARNING PhantomJS has crashed. Please read the bug reporting guide at
506106 WARNING <http://phantomjs.org/bug-reporting.html> and file a bug report.
506109 WARNING 
506112 WARNING     at ChildProcess.exithandler (child_process.js:281:12)
506115 WARNING     at emitTwo (events.js:126:13)
506118 WARNING     at ChildProcess.emit (events.js:214:7)
506122 WARNING     at maybeClose (internal/child_process.js:915:16)
506125 WARNING     at Socket.stream.socket.on (internal/child_process.js:336:11)
506128 WARNING     at emitOne (events.js:116:13)
506131 WARNING     at Socket.emit (events.js:211:7)
506134 WARNING     at Pipe._handle.close [as _onclose] (net.js:561:12)
506137 WARNING   killed: false,
506141 WARNING   code: null,
506144 WARNING   signal: 'SIGABRT',
506148 WARNING   cmd: '/usr/bin/phantomjs --version' }
506151 WARNING Unexpected platform or architecture: linux/arm
506154 WARNING It seems there is no binary available for your platform/architecture
506157 WARNING Try to install PhantomJS globally
506162 WARNING npm ERR! code ELIFECYCLE
506167 WARNING npm ERR! errno 1
506170 WARNING npm ERR! phantomjs@1.9.20 install: `node install.js`
506173 WARNING npm ERR! Exit status 1
506176 WARNING npm ERR!
506179 WARNING npm ERR! Failed at the phantomjs@1.9.20 install script.
506182 WARNING npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
506486 WARNING 
506489 WARNING npm ERR! A complete log of this run can be found in:
506492 WARNING npm ERR!     /var/lib/rocketchat/.npm/_logs/2019-01-26T09_32_46_766Z-debug.log
506595 WARNING npm ERR! code ELIFECYCLE
506598 WARNING npm ERR! errno 1
506601 WARNING npm ERR! meteor-dev-bundle@ install: `node npm-rebuild.js`
506604 WARNING npm ERR! Exit status 1
506606 WARNING npm ERR!
506609 WARNING npm ERR! Failed at the meteor-dev-bundle@ install script.
506612 WARNING npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
506916 WARNING 
506919 WARNING npm ERR! A complete log of this run can be found in:
506922 WARNING npm ERR!     /var/lib/rocketchat/.npm/_logs/2019-01-26T09_32_47_247Z-debug.log
507026 DEBUG + ynh_exit_properly
507029 WARNING !!
507032 DEBUG + local exit_code=1
507034 WARNING   rocketchat's script has encountered an error. Its execution was cancelled.
507036 DEBUG + '[' 1 -eq 0 ']'
507038 WARNING !!
507041 DEBUG + trap '' EXIT
507043 WARNING 
507046 DEBUG + set +eu
507048 DEBUG + echo -e '!!\n  rocketchat'\''s script has encountered an error. Its execution was cancelled.\n!!'
507051 DEBUG + type -t ynh_clean_setup
507053 DEBUG + ynh_die
507055 DEBUG + echo ''
507058 DEBUG + exit 1
507263 INFO The operation 'Install 'rocketchat' application' has failed ! To get help, please share the full log of this operation using the command 'yunohost log display 20190126-092432-app_install-rocketchat --share'
507344 DEBUG Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ID=rocketchat YNH_CWD=/var/cache/yunohost/from_file/rocketchat_ynh-master/scripts YNH_APP_INSTANCE_NAME=rocketchat YNH_STDINFO=/tmp/tmphTgdZ1/stdinfo BASH_XTRACEFD=7 /bin/bash -x "./remove" rocketchat 7>&1'...
507347 DEBUG About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ID=rocketchat YNH_CWD=/var/cache/yunohost/from_file/rocketchat_ynh-master/scripts YNH_APP_INSTANCE_NAME=rocketchat YNH_STDINFO=/tmp/tmphTgdZ1/stdinfo BASH_XTRACEFD=7 /bin/bash -x "./remove" rocketchat 7>&1']'
507411 DEBUG + set -u
507418 DEBUG + source /usr/share/yunohost/helpers
507421 DEBUG +++ run-parts --list /usr/share/yunohost/helpers.d
507424 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
507427 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
507430 DEBUG ++ . /usr/share/yunohost/helpers.d/backend
507534 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
507537 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
507540 DEBUG ++ . /usr/share/yunohost/helpers.d/filesystem
507543 DEBUG +++ CAN_BIND=1
507545 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
507548 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
507551 DEBUG ++ . /usr/share/yunohost/helpers.d/getopts
507554 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
507556 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
507559 DEBUG ++ . /usr/share/yunohost/helpers.d/ip
507562 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
507565 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
507568 DEBUG ++ . /usr/share/yunohost/helpers.d/mysql
507571 DEBUG +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
507573 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
507576 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
507579 DEBUG ++ . /usr/share/yunohost/helpers.d/network
507582 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
507584 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
507587 DEBUG ++ . /usr/share/yunohost/helpers.d/nodejs
507589 DEBUG +++ n_install_dir=/opt/node_n
507592 DEBUG +++ node_version_path=/opt/node_n/n/versions/node
507595 DEBUG +++ export N_PREFIX=/opt/node_n
507597 DEBUG +++ N_PREFIX=/opt/node_n
507600 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
507604 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/package ']'
507608 DEBUG ++ . /usr/share/yunohost/helpers.d/package
507611 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
507614 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/print ']'
507617 DEBUG ++ . /usr/share/yunohost/helpers.d/print
507620 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
507623 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/psql ']'
507626 DEBUG ++ . /usr/share/yunohost/helpers.d/psql
507629 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
507633 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
507636 DEBUG ++ . /usr/share/yunohost/helpers.d/setting
507640 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
507643 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
507647 DEBUG ++ . /usr/share/yunohost/helpers.d/string
507650 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
507653 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/system ']'
507657 DEBUG ++ . /usr/share/yunohost/helpers.d/system
507660 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
507663 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
507666 DEBUG ++ . /usr/share/yunohost/helpers.d/user
507669 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
507672 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
507675 DEBUG ++ . /usr/share/yunohost/helpers.d/utils
507678 DEBUG + source ./_common.sh
507681 DEBUG ++ ROCKETCHAT_VERSION=0.73.2
507683 DEBUG ++ ROCKETCHAT_SHASUM=3dc3eb11f383f7b72b0f23fedb305b6a566fa536a1e5087a4398255deeb864d8
507686 DEBUG ++ ROCKETCHAT_DOWNLOAD_URI=https://releases.rocket.chat/0.73.2/download
507689 DEBUG ++ NODE_VERSION=8.11.4
507692 DEBUG +++ grep 9 /etc/debian_version
507695 DEBUG +++ echo stretch
507698 DEBUG ++ DEBIAN_ISSUE=stretch
507702 DEBUG + app=rocketchat
507705 DEBUG ++ ynh_app_setting_get rocketchat domain
507708 DEBUG ++ sudo yunohost app setting rocketchat domain --output-as plain --quiet
511327 DEBUG + domain=mydomain.ddns.net
511330 DEBUG ++ ynh_app_setting_get rocketchat final_path
511333 DEBUG ++ sudo yunohost app setting rocketchat final_path --output-as plain --quiet
514449 DEBUG + final_path=/var/lib/rocketchat
514453 DEBUG + sudo systemctl stop rocketchat.service
514759 DEBUG + sudo yunohost service remove rocketchat
517874 WARNING Unknown service 'rocketchat'
518078 DEBUG + sudo rm -rf /var/lib/rocketchat
536861 DEBUG + sudo rm -f /etc/nginx/conf.d/mydomain.ddns.net.d/rocketchat.conf
537065 DEBUG + sudo rm -rf /var/log/rocketchat
537268 DEBUG + sudo rm -f /etc/systemd/system/rocketchat.service
537375 DEBUG + sudo mongo rocketchat --eval 'db.dropDatabase()'
537780 DEBUG MongoDB shell version: 2.4.14
538285 DEBUG connecting to: rocketchat
539616 DEBUG [object Object]
539618 DEBUG + sudo systemctl daemon-reload
543535 DEBUG + sudo systemctl reload nginx
544700 DEBUG To view the log of the operation 'Remove 'rocketchat' after a failed installation', use the command 'yunohost log display 20190126-093247-remove_on_failed_install-rocketchat'
545947 SUCCESS The SSOwat configuration has been generated
545950 DEBUG action [753.1] executed in 543.210s
545952 DEBUG lock has been released
545955 ERROR The operation 'Install 'rocketchat' application' has failed ! To get help, please share the full log of this operation using the command 'yunohost log display 20190126-092432-app_install-rocketchat --share'
selamanse commented 5 years ago

@Manumerique unfortunately there is no official support for armhf. So even we managed to install (an older) MongoDB on arm with this script, I can tell that this will be complicated.

I have added info on Readme.md that this package does not support armhf. Also I will add a armhf detection which will prevent installation with a proper message.

Reasons for this: