YunoHost-Apps / seafile_ynh

Seafile package for YunoHost
https://seafile.com
MIT License
14 stars 19 forks source link

install failed #28

Closed bachy closed 5 years ago

bachy commented 7 years ago

Hello,

i wanted to install seafile on my instance but it failed. I looked to the issues, even in resolved ones but can't find anything.

Operating System: Debian GNU/Linux 8 (jessie)
Kernel: Linux 3.14.32-xxxx-grs-ipv6-64
Architecture: x86-64
yunohost -v
yunohost: 2.6.4
yunohost-admin: 2.6.1
moulinette: 2.6.1
ssowat: 2.6.8

install logs

 sudo yunohost app install --verbose seafile
Downloading...
Extracting...
Done
Checking required packages...
Available domains:
- figureslibres.io
Choose a domain for Seafile (default: figureslibres.io): 
Choose a path for Seafile (default: /seafile): 
Choose a name (default: Seafile): 
Choose the admin user for Seafile: bachir
Enter a password for the administrator: 
Is it a public site ? If you want to use a desktop client or the smartphone app, make Seafile public. [0 | 1] (default: 1): 
What is the server architecture? [x86-64 | i386 | rpi] (default: x86-64): 
Executing script '/var/cache/yunohost/from_file/seafile_ynh-15381618c9d72c953d1830d51ce3ba8f7e1da895/scripts/install'...
+ source ./_common.sh
++ seafile_version=6.0.9
++ x86_64sum=8d1547c51feecaff757eb64381ce154c
++ i386sum=8a0b9e08d9c80790752b435c3e148328
++ armsum=15ca4b69585a990e00474e4cfc4be9eb
+ init_script
+ set -eu
+ source /usr/share/yunohost/helpers
+++ run-parts --list /usr/share/yunohost/helpers.d
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
++ . /usr/share/yunohost/helpers.d/backend
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
++ . /usr/share/yunohost/helpers.d/filesystem
+++ CAN_BIND=1
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
++ . /usr/share/yunohost/helpers.d/ip
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
++ . /usr/share/yunohost/helpers.d/mysql
+++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/network ']'
++ . /usr/share/yunohost/helpers.d/network
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/package ']'
++ . /usr/share/yunohost/helpers.d/package
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/print ']'
++ . /usr/share/yunohost/helpers.d/print
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
++ . /usr/share/yunohost/helpers.d/setting
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/string ']'
++ . /usr/share/yunohost/helpers.d/string
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/system ']'
++ . /usr/share/yunohost/helpers.d/system
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/user ']'
++ . /usr/share/yunohost/helpers.d/user
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
++ . /usr/share/yunohost/helpers.d/utils
+ app=seafile
+ domain=figureslibres.io
+ path=/seafile
+ server_name=Seafile
+ admin=bachir
+ admin_password=urntZ3VYaL8E
+ is_public=1
+ architecture=x86-64
+ seafile_data=/home/yunohost.app/seafile-data
+ final_path=/var/www/seafile
+ seafile_user=www-data
+ CHECK_PATH
+ '[' / '!=' / ']'
+ '[' e == / ']'
+ sudo yunohost app checkurl figureslibres.io/seafile -a seafile
Warning: 'yunohost app checkurl' is deprecated and will be removed in the future
+ [[ /seafile == \/ ]]
+ path2=/seafile/
+ get_source x86-64 6.0.9
+ [[ x86-64 == \r\p\i ]]
+ [[ x86-64 == \x\8\6\-\6\4 ]]
+ wget -q -O /tmp/seafile_src.tar.gz https://bintray.com/artifact/download/seafile-org/seafile/seafile-server_6.0.9_x86-64.tar.gz
Executing script '/var/cache/yunohost/from_file/seafile_ynh-15381618c9d72c953d1830d51ce3ba8f7e1da895/scripts/remove'...
+ source ./_common.sh
++ seafile_version=6.0.9
++ x86_64sum=8d1547c51feecaff757eb64381ce154c
++ i386sum=8a0b9e08d9c80790752b435c3e148328
++ armsum=15ca4b69585a990e00474e4cfc4be9eb
+ init_script
+ set -eu
+ source /usr/share/yunohost/helpers
+++ run-parts --list /usr/share/yunohost/helpers.d
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
++ . /usr/share/yunohost/helpers.d/backend
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
++ . /usr/share/yunohost/helpers.d/filesystem
+++ CAN_BIND=1
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
++ . /usr/share/yunohost/helpers.d/ip
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
++ . /usr/share/yunohost/helpers.d/mysql
+++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/network ']'
++ . /usr/share/yunohost/helpers.d/network
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/package ']'
++ . /usr/share/yunohost/helpers.d/package
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/print ']'
++ . /usr/share/yunohost/helpers.d/print
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
++ . /usr/share/yunohost/helpers.d/setting
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/string ']'
++ . /usr/share/yunohost/helpers.d/string
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/system ']'
++ . /usr/share/yunohost/helpers.d/system
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/user ']'
++ . /usr/share/yunohost/helpers.d/user
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
++ . /usr/share/yunohost/helpers.d/utils
+ app=seafile
+ sudo service seafile-server stop
Warning: Failed to stop seafile-server.service: Unit seafile-server.service not loaded.
+ true
+ test -e /var/www/seafile/remove_sso_conf.py
+ test -e /opt/yunohost/seafile/remove_sso_conf.py
+ sudo rm -rf /var/www/seafile
+ sudo rm -rf /opt/yunohost/seafile
+ sudo rm -f /etc/init.d/seafile-server
+ sudo rm -rf /home/yunohost.app/seafile-data
+ sudo rm -rf /tmp/seahub_cache
++ sudo cat /etc/yunohost/mysql
+ root_pwd=4u1e2LGihU
+ mysql -u root -p4u1e2LGihU -e 'DROP DATABASE ccnetdb ; DROP DATABASE seafiledb ; DROP DATABASE seahubdb ; DROP USER seafile@localhost ;'
Warning: ERROR 1008 (HY000) at line 1: Can't drop database 'ccnetdb'; database doesn't exist
+ true
++ ynh_app_setting_get seafile domain
++ sudo yunohost app setting seafile domain --output-as plain --quiet
+ domain=figureslibres.io
+ sudo rm -f /etc/nginx/conf.d/figureslibres.io.d/seafile.conf
+ sudo yunohost service remove seafile-server
Warning: Unknown service 'seafile-server'
Warning: seafile has not been properly removed
Success! The SSOwat configuration has been generated
Error: Installation failed
Josue-T commented 7 years ago

Hello, thank you for your report. The source was changed by seafile. Normally it should be solved by this commit : https://github.com/YunoHost-Apps/seafile_ynh/commit/8bf60f706d81ea6138cedddef0fac6695d0326b9

bachy commented 7 years ago

Josue-T thanks for this commit but when i try to run again the install i got the same error it's like if script is not loaded from github have you got a solution ?

Josue-T commented 7 years ago

Hello,

I didn't have updated the app in the yunohost repo. So you should install by this following cmd :

sudo yunohost app install https://github.com/YunoHost-Apps/seafile_ynh

Le 1 juillet 2017 17:11:14 GMT+02:00, Bachir Soussi-Chiadmi notifications@github.com a écrit :

Josue-T thanks for this commit but when i try to run again the install i got the same error it's like if script is not loaded from github have you got a solution ?

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/YunoHost-Apps/seafile_ynh/issues/28#issuecomment-312437351

-- Envoyé de mon appareil Android avec K-9 Mail. Veuillez excuser ma brièveté.

bachy commented 7 years ago

ok thanks for the info, i will wait until you push to the main repos because i don't want to mess with too much manualy installed apps, it's painfull to manage

tmeuze commented 7 years ago

I am having a similar install failure, even having executed:

sudo yunohost app install --verbose https://github.com/YunoHost-Apps/seafile_ynh

Executing script '/var/cache/yunohost/from_file/seafile_ynh-master/scripts/install'...
+ source ./_common.sh
++ seafile_version=6.0.9
++ x86_64sum=8d1547c51feecaff757eb64381ce154c
++ i386sum=8a0b9e08d9c80790752b435c3e148328
++ armsum=15ca4b69585a990e00474e4cfc4be9eb
+ init_script
+ set -eu
+ source /usr/share/yunohost/helpers
+++ run-parts --list /usr/share/yunohost/helpers.d
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
++ . /usr/share/yunohost/helpers.d/backend
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
++ . /usr/share/yunohost/helpers.d/filesystem
+++ CAN_BIND=1
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
++ . /usr/share/yunohost/helpers.d/ip
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
++ . /usr/share/yunohost/helpers.d/mysql
+++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/network ']'
++ . /usr/share/yunohost/helpers.d/network
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/package ']'
++ . /usr/share/yunohost/helpers.d/package
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/print ']'
++ . /usr/share/yunohost/helpers.d/print
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
++ . /usr/share/yunohost/helpers.d/setting
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/string ']'
++ . /usr/share/yunohost/helpers.d/string
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/system ']'
++ . /usr/share/yunohost/helpers.d/system
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/user ']'
++ . /usr/share/yunohost/helpers.d/user
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
++ . /usr/share/yunohost/helpers.d/utils
+ app=seafile
+ domain=drive.<REDACTED>.com
+ path=/
+ server_name=Drive
+ admin=<REDACTED>
+ admin_password=<REDACTED>
+ is_public=1
+ architecture=x86-64
+ seafile_data=/home/yunohost.app/seafile-data
+ final_path=/var/www/seafile
+ seafile_user=www-data
+ CHECK_PATH
+ '[' / '!=' / ']'
+ '[' / == / ']'
+ '[' 1 -gt 1 ']'
+ sudo yunohost app checkurl drive.<REDACTED>.com/ -a seafile
Warning: 'yunohost app checkurl' is deprecated and will be removed in the future
+ [[ / == \/ ]]
+ path2=/
+ get_source x86-64 6.0.9
+ [[ x86-64 == \r\p\i ]]
+ [[ x86-64 == \x\8\6\-\6\4 ]]
+ wget -q -O /tmp/seafile_src.tar.gz https://download.seadrive.org/seafile-server_6.0.9_x86-64.tar.gz
+ md5sum=8d1547c51feecaff757eb64381ce154c
+ [[ ! -e /tmp/seafile_src.tar.gz ]]
++ cut '-d ' -f1
++ md5sum /tmp/seafile_src.tar.gz
+ [[ 8d1547c51feecaff757eb64381ce154c != 8d1547c51feecaff757eb64381ce154c ]]
++ sed 's/mail: //g'
++ grep mail:
++ sudo yunohost user info <REDACTED>
+ admin_email=<REDACTED>@<REDACTED>
+ sudo apt-get update
Ign http://archive.turnkeylinux.org jessie-security InRelease
Ign http://download.rethinkdb.com jessie InRelease
Ign http://archive.turnkeylinux.org jessie InRelease
Get:1 http://download.rethinkdb.com jessie Release.gpg [866 B]
Hit http://security.debian.org jessie/updates InRelease
Get:2 http://download.rethinkdb.com jessie Release [2623 B]
Hit http://archive.turnkeylinux.org jessie-security Release.gpg
Hit https://download.docker.com jessie InRelease
Err http://download.rethinkdb.com jessie Release

Hit https://deb.nodesource.com jessie InRelease
Hit http://archive.turnkeylinux.org jessie Release.gpg
Hit http://httpredir.debian.org jessie-backports InRelease
Ign http://httpredir.debian.org jessie InRelease
Get:3 https://download.docker.com jessie/edge amd64 Packages [1703 B]
Get:4 https://deb.nodesource.com jessie/main Sources [762 B]
Hit http://archive.turnkeylinux.org jessie-security Release
Hit http://repo.yunohost.org jessie InRelease
Get:5 https://download.docker.com jessie/edge Translation-en [582 B]
Get:6 https://deb.nodesource.com jessie/main amd64 Packages [966 B]
Hit http://security.debian.org jessie/updates/main amd64 Packages
Get:7 https://download.docker.com jessie/edge Translation-en [582 B]
Hit http://httpredir.debian.org jessie Release.gpg
Get:8 http://httpredir.debian.org jessie-backports/main amd64 Packages/DiffIndex [27.8 kB]
Hit http://security.debian.org jessie/updates/contrib amd64 Packages
Hit http://archive.turnkeylinux.org jessie Release
Get:9 http://httpredir.debian.org jessie-backports/contrib amd64 Packages/DiffIndex [25.0 kB]
Get:10 https://download.docker.com jessie/edge Translation-en [582 B]
Hit http://security.debian.org jessie/updates/contrib Translation-en
Get:11 https://deb.nodesource.com jessie/main Translation-en [162 B]
Hit http://security.debian.org jessie/updates/main Translation-en
Get:12 https://download.docker.com jessie/edge Translation-en [582 B]
Get:13 http://httpredir.debian.org jessie-backports/contrib Translation-en/DiffIndex [7468 B]
Get:14 http://httpredir.debian.org jessie-backports/main Translation-en/DiffIndex [27.8 kB]
Get:15 https://download.docker.com jessie/edge Translation-en [582 B]
Ign https://download.docker.com jessie/edge Translation-en
Hit http://archive.turnkeylinux.org jessie-security/main amd64 Packages
Hit http://repo.yunohost.org jessie/stable amd64 Packages
Get:16 https://deb.nodesource.com jessie/main Translation-en [162 B]
Hit http://archive.turnkeylinux.org jessie/main amd64 Packages
Hit http://httpredir.debian.org jessie Release
Get:17 https://deb.nodesource.com jessie/main Translation-en [162 B]
Hit http://httpredir.debian.org jessie/main amd64 Packages
Ign http://archive.turnkeylinux.org jessie-security/main Translation-en
Hit http://httpredir.debian.org jessie/contrib amd64 Packages
Ign http://archive.turnkeylinux.org jessie/main Translation-en
Get:18 https://deb.nodesource.com jessie/main Translation-en [162 B]
Hit http://httpredir.debian.org jessie/contrib Translation-en
Ign http://repo.yunohost.org jessie/stable Translation-en
Hit http://httpredir.debian.org jessie/main Translation-en
Get:19 https://deb.nodesource.com jessie/main Translation-en [162 B]
Ign https://deb.nodesource.com jessie/main Translation-en
Fetched 92.3 kB in 3s (29.1 kB/s)
Reading package lists...
Warning: W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: htt
p://download.rethinkdb.com jessie Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CF9BDC6F03D1
F02B
Warning: 
Warning: W: Failed to fetch http://download.rethinkdb.com/apt/dists/jessie/Release
Warning: 
Warning: W: Some index files failed to download. They have been ignored, or old ones used instead.
+ sudo apt-get install -qq python2.7 python-setuptools python-simplejson python-imaging python-mysqldb python-flup expect
+ test -e /var/www/seafile
+ test -e /home/yunohost.app/seafile-data
+ sudo mkdir -p /var/www/seafile
+ sudo mkdir -p /var/www/seafile/installed
+ sudo mkdir -p /var/www/seafile/logs
+ sudo mkdir -p /var/www/seafile/seafile-data
+ sudo mkdir -p /var/www/seafile/seafile-server-6.0.9
+ sudo tar xzf /tmp/seafile_src.tar.gz
+ sudo mv seafile-server-6.0.9/check_init_admin.py seafile-server-6.0.9/reset-admin.sh seafile-server-6.0.9/runtime seafile-server-6.0.9/seaf-fsck.sh se
afile-server-6.0.9/seaf-fuse.sh seafile-server-6.0.9/seaf-gc.sh seafile-server-6.0.9/seafile seafile-server-6.0.9/seafile.sh seafile-server-6.0.9/seahub
 seafile-server-6.0.9/seahub.sh seafile-server-6.0.9/setup-seafile-mysql.py seafile-server-6.0.9/setup-seafile-mysql.sh seafile-server-6.0.9/setup-seafi
le.sh seafile-server-6.0.9/upgrade /var/www/seafile/seafile-server-6.0.9
+ sudo mv /tmp/seafile_src.tar.gz /var/www/seafile/installed/seafile-server_6.0.9.tar.gz
++ ynh_find_port 8000
++ port=8000
++ test -n 8000
++ netcat -z 127.0.0.1 8000
++ echo 8000
+ seahub_port=8000
++ ynh_find_port 8082
++ port=8082
++ test -n 8082
++ netcat -z 127.0.0.1 8082
++ port=8083
++ netcat -z 127.0.0.1 8083
++ echo 8083
+ fileserver_port=8083
++ ynh_find_port 8080
++ port=8080
++ test -n 8080
++ netcat -z 127.0.0.1 8080
++ port=8081
++ netcat -z 127.0.0.1 8081
++ port=8082
++ netcat -z 127.0.0.1 8082
++ port=8083
++ netcat -z 127.0.0.1 8083
++ echo 8083
+ webdav_port=8083
+ ynh_app_setting_set seafile seahub_port 8000
+ sudo yunohost app setting seafile seahub_port -v 8000 --quiet
+ ynh_app_setting_set seafile fileserver_port 8083
+ sudo yunohost app setting seafile fileserver_port -v 8083 --quiet
+ ynh_app_setting_set seafile webdav_port 8083
+ sudo yunohost app setting seafile webdav_port -v 8083 --quiet
+ ynh_app_setting_set seafile is_public 1
+ sudo yunohost app setting seafile is_public -v 1 --quiet
+ ynh_app_setting_set seafile architecture x86-64
+ sudo yunohost app setting seafile architecture -v x86-64 --quiet
+ ynh_app_setting_set seafile installed_version 6.0.9
+ sudo yunohost app setting seafile installed_version -v 6.0.9 --quiet
+ dbuser=seafile
++ ynh_string_random 15
++ sed -n 's/\(.\{15\}\).*/\1/p'
++ tr -c -d A-Za-z0-9
++ dd if=/dev/urandom bs=1 count=200
+ db_pwd=O3BxvZP61IksH84
+ ynh_app_setting_set seafile mysqlpwd O3BxvZP61IksH84
+ sudo yunohost app setting seafile mysqlpwd -v O3BxvZP61IksH84 --quiet
+ ynh_mysql_create_db ccnetdb seafile O3BxvZP61IksH84
+ db=ccnetdb
+ sql='CREATE DATABASE ccnetdb;'
+ [[ 3 -gt 1 ]]
+ sql+=' GRANT ALL PRIVILEGES ON ccnetdb.* TO '\''seafile'\''@'\''localhost'\'''
+ [[ -n O3BxvZP61IksH84 ]]
+ sql+=' IDENTIFIED BY '\''O3BxvZP61IksH84'\'''
+ sql+=' WITH GRANT OPTION;'
+ ynh_mysql_execute_as_root 'CREATE DATABASE ccnetdb; GRANT ALL PRIVILEGES ON ccnetdb.* TO '\''seafile'\''@'\''localhost'\'' IDENTIFIED BY '\''O3BxvZP61
IksH84'\'' WITH GRANT OPTION;'
++ sudo cat /etc/yunohost/mysql
+ ynh_mysql_connect_as root T4TDI9a3Vj ''
+ mysql -u root --password=T4TDI9a3Vj -B ''
+ ynh_mysql_create_db seafiledb seafile O3BxvZP61IksH84
+ db=seafiledb
+ sql='CREATE DATABASE seafiledb;'
+ [[ 3 -gt 1 ]]
+ sql+=' GRANT ALL PRIVILEGES ON seafiledb.* TO '\''seafile'\''@'\''localhost'\'''
+ [[ -n O3BxvZP61IksH84 ]]
+ sql+=' IDENTIFIED BY '\''O3BxvZP61IksH84'\'''
+ sql+=' WITH GRANT OPTION;'
+ ynh_mysql_execute_as_root 'CREATE DATABASE seafiledb; GRANT ALL PRIVILEGES ON seafiledb.* TO '\''seafile'\''@'\''localhost'\'' IDENTIFIED BY '\''O3Bxv
ZP61IksH84'\'' WITH GRANT OPTION;'
++ sudo cat /etc/yunohost/mysql
+ ynh_mysql_connect_as root T4TDI9a3Vj ''
+ mysql -u root --password=T4TDI9a3Vj -B ''
+ ynh_mysql_create_db seahubdb seafile O3BxvZP61IksH84
+ db=seahubdb
+ sql='CREATE DATABASE seahubdb;'
+ [[ 3 -gt 1 ]]
+ sql+=' GRANT ALL PRIVILEGES ON seahubdb.* TO '\''seafile'\''@'\''localhost'\'''
+ [[ -n O3BxvZP61IksH84 ]]
+ sql+=' IDENTIFIED BY '\''O3BxvZP61IksH84'\'''
+ sql+=' WITH GRANT OPTION;'
+ ynh_mysql_execute_as_root 'CREATE DATABASE seahubdb; GRANT ALL PRIVILEGES ON seahubdb.* TO '\''seafile'\''@'\''localhost'\'' IDENTIFIED BY '\''O3BxvZP
61IksH84'\'' WITH GRANT OPTION;'
++ sudo cat /etc/yunohost/mysql
+ ynh_mysql_connect_as root T4TDI9a3Vj ''
+ mysql -u root --password=T4TDI9a3Vj -B ''
+ sudo chmod +x ../conf/install.exp
+ sudo chmod +x /var/www/seafile/seafile-server-6.0.9/setup-seafile-mysql.sh
+ sudo ../conf/install.exp /var/www/seafile/seafile-server-6.0.9 Drive drive.<REDACTED>.com /home/yunohost.app/seafile-data 8083 O3BxvZP61IksH84
spawn /var/www/seafile/seafile-server-6.0.9/setup-seafile-mysql.sh
Checking python on this machine ...
  Checking python module: setuptools ... Done.
  Checking python module: python-imaging ... Done.
  Checking python module: python-mysqldb ... Done.

-----------------------------------------------------------------
This script will guide you to setup your seafile server using MySQL.
Make sure you have read seafile server manual at

        https://github.com/haiwen/seafile/wiki

Press ENTER to continue

-----------------------------------------------------------------

What is the name of the server? It will be displayed on the client.
3 - 15 letters or digits
[ server name ] Drive

What is the ip or domain of the server?
For example: www.mycompany.com, 192.168.1.101
[ This server's ip or domain ] drive.<REDACTED>.com

Where do you want to put your seafile data?
Please use a volume with enough free space
[ default "/var/www/seafile/seafile-data" ] /home/yunohost.app/seafile-data

Which port do you want to use for the seafile fileserver?
[ default "8082" ] 8083

-------------------------------------------------------
Please choose a way to initialize seafile databases:
-------------------------------------------------------

[1] Create new ccnet/seafile/seahub databases
[2] Use existing ccnet/seafile/seahub databases

[ 1 or 2 ] 2

What is the host of mysql server?
[ default "localhost" ] localhost

What is the port of mysql server?
[ default "3306" ] 3306

Which mysql user to use for seafile?
[ mysql user for seafile ] seafile

What is the password for mysql user "seafile"?
[ password for seafile ]

verifying password of user seafile ...  done

Enter the existing database name for ccnet:
[ ccnet database ] ccnetdb

verifying user "seafile" access to database ccnetdb ...  done

Enter the existing database name for seafile:
[ seafile database ] seafiledb

verifying user "seafile" access to database seafiledb ...  done

Enter the existing database name for seahub:
[ seahub database ] seahubdb

verifying user "seafile" access to database seahubdb ...  done

---------------------------------
This is your configuration
---------------------------------

    server name:            Drive
    server ip/domain:       drive.<REDACTED>.com

    seafile data dir:       /home/yunohost.app/seafile-data
    fileserver port:        8083

    database:               use existing
    ccnet database:         ccnetdb
    seafile database:       seafiledb
    seahub database:        seahubdb
    database user:          seafile

---------------------------------
Press ENTER to continue, or Ctrl-C to abort
---------------------------------

Generating ccnet configuration ...

done
Successly create configuration dir /var/www/seafile/ccnet.
Generating seafile configuration ...

Done.
done
Generating seahub configuration ...

----------------------------------------
Now creating seahub database tables ...

----------------------------------------

creating seafile-server-latest symbolic link ...  done

-----------------------------------------------------------------
Your seafile server configuration has been finished successfully.
-----------------------------------------------------------------

run seafile server:     ./seafile.sh { start | stop | restart }
run seahub  server:     ./seahub.sh  { start <port> | stop | restart <port> }

-----------------------------------------------------------------
If you are behind a firewall, remember to allow input/output of these tcp ports:
-----------------------------------------------------------------

port of seafile fileserver:   8083
port of seahub:               8000

When problems occur, Refer to

        https://github.com/haiwen/seafile/wiki

for information.

+ sudo sed -i s@http://@https://@g /var/www/seafile/conf/ccnet.conf
+ sudo sed -i s@:8000@/@g /var/www/seafile/conf/ccnet.conf
+ sudo tee -a /var/www/seafile/conf/seahub_settings.py
+ echo 'FILE_SERVER_ROOT = "https://drive.<REDACTED>.com/seafhttp"'
FILE_SERVER_ROOT = "https://drive.<REDACTED>.com/seafhttp"
+ sudo tee -a /var/www/seafile/conf/seahub_settings.py
+ echo 'SITE_ROOT = "/"'
SITE_ROOT = "/"
+ sudo tee -a /var/www/seafile/conf/seahub_settings.py
+ echo 'SERVE_STATIC = False'
SERVE_STATIC = False
+ sudo tee -a /var/www/seafile/conf/seahub_settings.py
+ echo 'MEDIA_URL = "/media/"'
MEDIA_URL = "/media/"
+ sudo tee -a /var/www/seafile/conf/seahub_settings.py
+ echo 'COMPRESS_URL = MEDIA_URL'
COMPRESS_URL = MEDIA_URL
+ sudo tee -a /var/www/seafile/conf/seahub_settings.py
+ echo 'STATIC_URL = MEDIA_URL + '\''assets/'\'''
STATIC_URL = MEDIA_URL + 'assets/'
+ sudo tee -a /var/www/seafile/conf/seahub_settings.py
+ echo 'LOGIN_URL = '\''/accounts/login/'\'''
LOGIN_URL = '/accounts/login/'
+ sudo tee -a /var/www/seafile/conf/seahub_settings.py
+ echo 'EMAIL_USE_TLS = False'
EMAIL_USE_TLS = False
+ sudo tee -a /var/www/seafile/conf/seahub_settings.py
+ echo 'EMAIL_HOST = "localhost"'
EMAIL_HOST = "localhost"
+ sudo tee -a /var/www/seafile/conf/seahub_settings.py
+ echo 'EMAIL_HOST_USER = "seafile@drive.<REDACTED>.com"'
EMAIL_HOST_USER = "seafile@drive.<REDACTED>.com"
+ sudo tee -a /var/www/seafile/conf/seahub_settings.py
+ echo 'EMAIL_HOST_PASSWORD = ""'
EMAIL_HOST_PASSWORD = ""
+ sudo tee -a /var/www/seafile/conf/seahub_settings.py
+ echo 'EMAIL_PORT = "25"'
EMAIL_PORT = "25"
+ sudo tee -a /var/www/seafile/conf/seahub_settings.py
+ echo 'DEFAULT_FROM_EMAIL = "seafile@drive.<REDACTED>.com"'
DEFAULT_FROM_EMAIL = "seafile@drive.<REDACTED>.com"
+ sudo tee -a /var/www/seafile/conf/seahub_settings.py
+ echo 'SERVER_EMAIL = "seafile@drive.<REDACTED>.com"'
SERVER_EMAIL = "seafile@drive.<REDACTED>.com"
+ sudo tee -a /var/www/seafile/conf/ccnet.conf
+ echo '[LDAP]'
[LDAP]
+ sudo tee -a /var/www/seafile/conf/ccnet.conf
+ echo 'HOST = ldap://localhost:389'
HOST = ldap://localhost:389
+ sudo tee -a /var/www/seafile/conf/ccnet.conf
+ echo 'BASE = ou=users,dc=yunohost,dc=org'
BASE = ou=users,dc=yunohost,dc=org
+ sudo tee -a /var/www/seafile/conf/ccnet.conf
+ echo 'LOGIN_ATTR = mail'
LOGIN_ATTR = mail
+ sudo cp ../conf/seafile-server /etc/init.d
+ sudo sed -i s@SEAHUB_PORT@8000@g /etc/init.d/seafile-server
+ sudo sed -i s@SEAFILE_DIR@/var/www/seafile@g /etc/init.d/seafile-server
+ sudo chmod +x /etc/init.d/seafile-server
+ sudo update-rc.d seafile-server defaults
+ sed -i s@PATHTOCHANGE1@/@g ../conf/nginx.conf
+ sed -i s@PATHTOCHANGE2@/@g ../conf/nginx.conf
+ sed -i s@ALIASTOCHANGE@/var/www/seafile/@g ../conf/nginx.conf
+ sed -i s@SEAHUB_PORT@8000@g ../conf/nginx.conf
+ sed -i s@SEAFILE_FILESERVER_PORT@8083@g ../conf/nginx.conf
+ sed -i s@WEBDAV_PORT@8083@g ../conf/nginx.conf
+ sudo cp ../conf/nginx.conf /etc/nginx/conf.d/drive.<REDACTED>.com.d/seafile.conf
+ sudo cp ../conf/seafdav.conf /var/www/seafile/conf/seafdav.conf
+ sudo sed -i s@WEBDAV_PORT@8083@g /var/www/seafile/conf/seafdav.conf
+ sudo cp ../conf/first_launch.exp /var/www/seafile
+ sudo chmod +x /var/www/seafile/first_launch.exp
+ sudo chown -R www-data:www-data /var/www/seafile
+ sudo chown -R www-data:www-data /home/yunohost.app/seafile-data
+ sudo su - www-data -s /bin/bash -c '/var/www/seafile/seafile-server-6.0.9/seafile.sh start'

Seafile controller is already running, pid 29714

Executing script '/var/cache/yunohost/from_file/seafile_ynh-master/scripts/remove'...
+ source ./_common.sh
++ seafile_version=6.0.9
++ x86_64sum=8d1547c51feecaff757eb64381ce154c
++ i386sum=8a0b9e08d9c80790752b435c3e148328
++ armsum=15ca4b69585a990e00474e4cfc4be9eb
+ init_script
+ set -eu
+ source /usr/share/yunohost/helpers
+++ run-parts --list /usr/share/yunohost/helpers.d
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
++ . /usr/share/yunohost/helpers.d/backend
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
++ . /usr/share/yunohost/helpers.d/filesystem
+++ CAN_BIND=1
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
++ . /usr/share/yunohost/helpers.d/ip
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
++ . /usr/share/yunohost/helpers.d/mysql
+++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/network ']'
++ . /usr/share/yunohost/helpers.d/network
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/package ']'
++ . /usr/share/yunohost/helpers.d/package
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/print ']'
++ . /usr/share/yunohost/helpers.d/print
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
++ . /usr/share/yunohost/helpers.d/setting
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/string ']'
++ . /usr/share/yunohost/helpers.d/string
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/system ']'
++ . /usr/share/yunohost/helpers.d/system
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/user ']'
++ . /usr/share/yunohost/helpers.d/user
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
++ . /usr/share/yunohost/helpers.d/utils
+ app=seafile
+ sudo service seafile-server stop
+ test -e /var/www/seafile/remove_sso_conf.py
+ test -e /opt/yunohost/seafile/remove_sso_conf.py
+ sudo rm -rf /var/www/seafile
+ sudo rm -rf /opt/yunohost/seafile
+ sudo rm -f /etc/init.d/seafile-server
+ sudo rm -rf /home/yunohost.app/seafile-data
+ sudo rm -rf /tmp/seahub_cache
++ sudo cat /etc/yunohost/mysql
+ root_pwd=T4TDI9a3Vj
+ mysql -u root -pT4TDI9a3Vj -e 'DROP DATABASE ccnetdb ; DROP DATABASE seafiledb ; DROP DATABASE seahubdb ; DROP USER seafile@localhost ;'
++ ynh_app_setting_get seafile domain
++ sudo yunohost app setting seafile domain --output-as plain --quiet
+ domain=drive.<REDACTED>.com
+ sudo rm -f /etc/nginx/conf.d/drive.<REDACTED>.com.d/seafile.conf
+ sudo yunohost service remove seafile-server
Warning: Unknown service 'seafile-server'
Warning: seafile has not been properly removed
Success! The SSOwat configuration has been generated
Error: Installation failed
Josue-T commented 7 years ago

Hello,

I see that you have tried to make install an other time before and the seafile process dident stop. So on this time it fail because the process of the old install already run. See here :

+ sudo su - www-data -s /bin/bash -c '/var/www/seafile/seafile-server-6.0.9/seafile.sh start'

Seafile controller is already running, pid 29714

I might correct this on the new release.

Rafi594 commented 7 years ago

A similar problem

!!

seafile's script has encountered an error. Its execution was cancelled.

+ exit_code=127

+ ynh_exit_properly

!!

-su: /var/www/seafile/seafile-server-latest/seahub.sh: No such file or directory

+ su - www-data -s /bin/bash -c '/var/www/seafile/seafile-server-latest/seahub.sh stop'
Josue-T commented 5 years ago

As I see that this issue is 1.5 year old and I see not more discussion about this issue, I think that it should be solved.

Don't hesitate to reopen it if it still not fixed.