YunoHost-Apps / seafile_ynh

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

Installation failed #34

Closed planecore closed 6 years ago

planecore commented 6 years ago

OS: Debian 8 1 Core CPU 1GB RAM ($5 instance from Vultr)

Here's a log of the installation:

root@my:~# sudo yunohost app install -l Seafile https://github.com/YunoHost-Apps/seafile_ynh --verbose
Downloading...
Extracting...
Done
Checking required packages for seafile...
Available domains:
- matan.xyz
- my.matan.xyz
- git.matan.xyz
- www.matan.xyz
Choose a domain for Seafile (default: my.matan.xyz): 
Choose a path for Seafile (default: /seafile): 
Choose a name (default: Seafile): Matan Seafile
Choose the admin user for Seafile: matan
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): 
Executing script '/var/cache/yunohost/from_file/seafile_ynh-master/scripts/install'...
+ 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
+ ynh_abort_if_errors
+ set -eu
+ trap ynh_exit_properly EXIT
+ source ./experimental_helper.sh
+++ grep 64
+++ uname -m
++ '[' -n x86_64 ']'
++ architecture=x86-64
+ source ./_common.sh
++ app=seafile
++ [[ -e ../settings/manifest.json ]]
++ [[ -e ../manifest.json ]]
+++ ynh_app_upstream_version
+++ manifest_path=../manifest.json
+++ '[' '!' -e ../manifest.json ']'
++++ ynh_read_manifest ../manifest.json version
++++ manifest=../manifest.json
++++ key=version
++++ python3 -c 'import sys, json;print(json.load(open('\''../manifest.json'\'', encoding='\''utf-8'\''))['\''version'\''])'
+++ version_key=6.2.5~ynh2
+++ echo 6.2.5
++ seafile_version=6.2.5
+ domain=my.matan.xyz
++ ynh_normalize_url_path /seafile
++ local path_url=/seafile
++ test -n /seafile
++ '[' / '!=' / ']'
++ '[' e == / ']'
++ echo /seafile
+ path=/seafile
+ server_name='Matan Seafile'
+ admin=matan
+ admin_password=PLJ-fYK-tJ5-gyU
+ is_public=1
+ seafile_data=/home/yunohost.app/seafile-data
+ final_path=/opt/yunohost/seafile
+ seafile_user=seafile
+ set_path_2
+ [[ /seafile == \/ ]]
+ path2=/seafile/
++ ynh_webpath_available my.matan.xyz /seafile
++ local domain=my.matan.xyz
++ local path=/seafile
++ sudo yunohost domain url-available my.matan.xyz /seafile
+ test True == True
+ ynh_webpath_register seafile my.matan.xyz /seafile
+ local app=seafile
+ local domain=my.matan.xyz
+ local path=/seafile
+ sudo yunohost app register-url seafile my.matan.xyz /seafile
+ test '!' -e /opt/yunohost/seafile
++ ynh_find_port 8000
++ local port=8000
++ test -n 8000
++ netcat -z 127.0.0.1 8000
++ echo 8000
+ seahub_port=8000
++ ynh_find_port 8082
++ local port=8082
++ test -n 8082
++ netcat -z 127.0.0.1 8082
++ echo 8082
+ fileserver_port=8082
++ ynh_find_port 8080
++ local port=8080
++ test -n 8080
++ netcat -z 127.0.0.1 8080
++ echo 8080
+ webdav_port=8080
+ ynh_app_setting_set seafile server_name Matan Seafile
+ sudo yunohost app setting seafile server_name --value=Matan --quiet
+ ynh_app_setting_set seafile final_path /opt/yunohost/seafile
+ sudo yunohost app setting seafile final_path --value=/opt/yunohost/seafile --quiet
+ ynh_app_setting_set seafile seafile_user seafile
+ sudo yunohost app setting seafile seafile_user --value=seafile --quiet
+ ynh_app_setting_set seafile admin matan
+ sudo yunohost app setting seafile admin --value=matan --quiet
+ ynh_app_setting_set seafile seahub_port 8000
+ sudo yunohost app setting seafile seahub_port --value=8000 --quiet
+ ynh_app_setting_set seafile fileserver_port 8082
+ sudo yunohost app setting seafile fileserver_port --value=8082 --quiet
+ ynh_app_setting_set seafile webdav_port 8080
+ sudo yunohost app setting seafile webdav_port --value=8080 --quiet
+ ynh_app_setting_set seafile is_public 1
+ sudo yunohost app setting seafile is_public --value=1 --quiet
+ ynh_app_setting_set seafile installed_version 6.2.5
+ sudo yunohost app setting seafile installed_version --value=6.2.5 --quiet
++ sed 's/mail: //g'
++ grep mail:
++ yunohost user info matan
+ admin_email=mail@matan.xyz
+ install_dependance
+ ynh_install_app_dependencies python2.7 python-pip python-setuptools python-simplejson python-imaging python-mysqldb python-flup expect python-requests python-dev
+ local 'dependencies=python2.7 python-pip python-setuptools python-simplejson python-imaging python-mysqldb python-flup expect python-requests python-dev'
+ local manifest_path=../manifest.json
+ '[' '!' -e ../manifest.json ']'
++ cut -d '"' -f 4
++ grep '\"version\": ' ../manifest.json
+ local version=6.2.5~ynh2
+ '[' 10 -eq 0 ']'
+ local dep_app=seafile
+ cat
+ ynh_package_install_from_equivs /tmp/seafile-ynh-deps.control
+ local controlfile=/tmp/seafile-ynh-deps.control
+ ynh_package_is_installed equivs
+ grep -c 'ok installed'
+ dpkg-query -W -f '${Status}' equivs
++ cut '-d ' -f 2
++ grep '^Package: ' /tmp/seafile-ynh-deps.control
+ local pkgname=seafile-ynh-deps
++ cut '-d ' -f 2
++ grep '^Version: ' /tmp/seafile-ynh-deps.control
+ local pkgversion=6.2.5~ynh2
+ [[ -z seafile-ynh-deps ]]
+ [[ -z 6.2.5~ynh2 ]]
+ ynh_package_update
+ ynh_apt update
+ DEBIAN_FRONTEND=noninteractive
+ sudo apt-get -y -qq update
++ mktemp -d
+ local TMPDIR=/tmp/tmp.vTzVAYRBph
+ cp /tmp/seafile-ynh-deps.control /tmp/tmp.vTzVAYRBph/control
+ cd /tmp/tmp.vTzVAYRBph
+ equivs-build ./control
Warning: dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is not NFS-safe
+ sudo dpkg --force-depends -i ./seafile-ynh-deps_6.2.5~ynh2_all.deb
Selecting previously unselected package seafile-ynh-deps.
(Reading database ... 36338 files and directories currently installed.)
Preparing to unpack .../seafile-ynh-deps_6.2.5~ynh2_all.deb ...
Unpacking seafile-ynh-deps (6.2.5~ynh2) ...
dpkg: seafile-ynh-deps: dependency problems, but configuring anyway as you requested:
 seafile-ynh-deps depends on python-simplejson; however:
  Package python-simplejson is not installed.
 seafile-ynh-deps depends on python-imaging; however:
  Package python-imaging is not installed.
 seafile-ynh-deps depends on python-mysqldb; however:
  Package python-mysqldb is not installed.
 seafile-ynh-deps depends on python-flup; however:
  Package python-flup is not installed.
 seafile-ynh-deps depends on expect; however:
  Package expect is not installed.

Setting up seafile-ynh-deps (6.2.5~ynh2) ...
+ ynh_package_install -f
+ ynh_apt --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
+ DEBIAN_FRONTEND=noninteractive
+ sudo apt-get -y -qq --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
Selecting previously unselected package libtcl8.6:amd64.
(Reading database ... 36342 files and directories currently installed.)se ... 
                                                                       Preparing to unpack .../libtcl8.6_8.6.2+dfsg-2_amd64.deb ...
                                                                                                                                   Unpacking libtcl8.6:amd64 (8.6.2+dfsg-2) ...
                                                                                                                                                                               Selecting previously unselected package libwebp5:amd64.
                                                 Preparing to unpack .../libwebp5_0.4.1-1.2+b2_amd64.deb ...
                                                                                                            Unpacking libwebp5:amd64 (0.4.1-1.2+b2) ...
                                                                                                                                                       Selecting previously unselected package libwebpdemux1:amd64.
                              Preparing to unpack .../libwebpdemux1_0.4.1-1.2+b2_amd64.deb ...
                                                                                              Unpacking libwebpdemux1:amd64 (0.4.1-1.2+b2) ...
                                                                                                                                              Selecting previously unselected package libwebpmux1:amd64.
                   Preparing to unpack .../libwebpmux1_0.4.1-1.2+b2_amd64.deb ...
                                                                                 Unpacking libwebpmux1:amd64 (0.4.1-1.2+b2) ...
                                                                                                                               Selecting previously unselected package tcl-expect:amd64.
   Preparing to unpack .../tcl-expect_5.45-6_amd64.deb ...
                                                          Unpacking tcl-expect:amd64 (5.45-6) ...
                                                                                                 Selecting previously unselected package expect.
                                                                                                                                                Preparing to unpack .../expect_5.45-6_amd64.deb ...
              Unpacking expect (5.45-6) ...
                                           Selecting previously unselected package python-flup.
                                                                                               Preparing to unpack .../python-flup_1.0.2-4_all.deb ...
                                                                                                                                                      Unpacking python-flup (1.0.2-4) ...
    Selecting previously unselected package python-pil:amd64.
                                                             Preparing to unpack .../python-pil_2.6.1-2+deb8u3_amd64.deb ...
                                                                                                                            Unpacking python-pil:amd64 (2.6.1-2+deb8u3) ...
                                                                                                                                                                           Selecting previously unselected package python-imaging.
                                             Preparing to unpack .../python-imaging_2.6.1-2+deb8u3_all.deb ...
                                                                                                              Unpacking python-imaging (2.6.1-2+deb8u3) ...
                                                                                                                                                           Selecting previously unselected package python-mysqldb.
                             Preparing to unpack .../python-mysqldb_1.2.3-2.1_amd64.deb ...
                                                                                           Unpacking python-mysqldb (1.2.3-2.1) ...
                                                                                                                                   Selecting previously unselected package python-simplejson.
        Preparing to unpack .../python-simplejson_3.6.5-1_amd64.deb ...
                                                                       Unpacking python-simplejson (3.6.5-1) ...
                                                                                                                Processing triggers for man-db (2.7.0.2-5) ...
                                                                                                                                                              Setting up libtcl8.6:amd64 (8.6.2+dfsg-2) ...
                      Setting up libwebp5:amd64 (0.4.1-1.2+b2) ...
                                                                  Setting up libwebpdemux1:amd64 (0.4.1-1.2+b2) ...
                                                                                                                   Setting up libwebpmux1:amd64 (0.4.1-1.2+b2) ...
                                                                                                                                                                  Setting up tcl-expect:amd64 (5.45-6) ...
                     Setting up expect (5.45-6) ...
                                                   Setting up python-flup (1.0.2-4) ...
                                                                                       Setting up python-pil:amd64 (2.6.1-2+deb8u3) ...
                                                                                                                                       Setting up python-imaging (2.6.1-2+deb8u3) ...
                                                                                                                                                                                    Setting up python-mysqldb (1.2.3-2.1) ...
                                        Setting up python-simplejson (3.6.5-1) ...
                                                                                  Processing triggers for libc-bin (2.19-18+deb8u10) ...
                                                                                                                                        + [[ -n /tmp/tmp.vTzVAYRBph ]]
+ rm -rf /tmp/tmp.vTzVAYRBph
+ ynh_package_is_installed seafile-ynh-deps
+ grep -c 'ok installed'
+ dpkg-query -W -f '${Status}' seafile-ynh-deps
+ rm /tmp/seafile-ynh-deps.control
+ ynh_app_setting_set seafile apt_dependencies python2.7 python-pip python-setuptools python-simplejson python-imaging python-mysqldb python-flup expect python-requests python-dev
+ sudo yunohost app setting seafile apt_dependencies --value=python2.7 --quiet
+ pip install pillow moviepy
Requirement already satisfied (use --upgrade to upgrade): pillow in /usr/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): moviepy in /usr/local/lib/python2.7/dist-packages
Cleaning up...
+ test -e /home/yunohost.app/seafile-data
+ mkdir -p /opt/yunohost/seafile
+ mkdir -p /opt/yunohost/seafile/installed
+ mkdir -p /opt/yunohost/seafile/logs
+ mkdir -p /opt/yunohost/seafile/seafile-data
+ install_source
+ mkdir /opt/yunohost/seafile/seafile-server-6.2.5
+ ynh_setup_source /opt/yunohost/seafile/seafile-server-6.2.5 x86-64
+ local dest_dir=/opt/yunohost/seafile/seafile-server-6.2.5
+ local src_id=x86-64
++ cut -d= -f2-
++ grep SOURCE_URL= /var/cache/yunohost/from_file/seafile_ynh-master/scripts/../conf/x86-64.src
+ local src_url=https://download.seadrive.org/seafile-server_6.2.5_x86-64.tar.gz
++ cut -d= -f2-
++ grep SOURCE_SUM= /var/cache/yunohost/from_file/seafile_ynh-master/scripts/../conf/x86-64.src
+ local src_sum=74f299a01cb159637e788534c78169028d3773f9c1a372ac1daf095ee335c333
++ cut -d= -f2-
++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/seafile_ynh-master/scripts/../conf/x86-64.src
+ local src_sumprg=sha256sum
++ cut -d= -f2-
++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/seafile_ynh-master/scripts/../conf/x86-64.src
+ local src_format=tar.gz
++ cut -d= -f2-
++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/seafile_ynh-master/scripts/../conf/x86-64.src
+ local src_in_subdir=true
++ cut -d= -f2-
++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/seafile_ynh-master/scripts/../conf/x86-64.src
+ local src_filename=
+ src_sumprg=sha256sum
+ src_in_subdir=true
+ src_format=tar.gz
++ tr '[:upper:]' '[:lower:]'
++ echo tar.gz
+ src_format=tar.gz
+ '[' '' = '' ']'
+ src_filename=x86-64.tar.gz
+ local local_src=/opt/yunohost-apps-src/seafile/x86-64.tar.gz
+ test -e /opt/yunohost-apps-src/seafile/x86-64.tar.gz
+ wget -nv -O x86-64.tar.gz https://download.seadrive.org/seafile-server_6.2.5_x86-64.tar.gz
Warning: 2018-04-02 15:39:18 URL:https://download.seadrive.org/seafile-server_6.2.5_x86-64.tar.gz [26132166/26132166] -> "x86-64.tar.gz" [1]
+ sha256sum -c --status
+ echo '74f299a01cb159637e788534c78169028d3773f9c1a372ac1daf095ee335c333 x86-64.tar.gz'
+ mkdir -p /opt/yunohost/seafile/seafile-server-6.2.5
+ '[' tar.gz = zip ']'
+ local strip=
+ true
+ strip='--strip-components 1'
+ [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
+ tar -xf x86-64.tar.gz -C /opt/yunohost/seafile/seafile-server-6.2.5 --strip-components 1
++ wc -l
++ find /var/cache/yunohost/from_file/seafile_ynh-master/scripts/../sources/patches/ -type f -name 'x86-64-*.patch'
+ ((  1 > 0  ))
++ pwd
+ local old_dir=/var/cache/yunohost/from_file/seafile_ynh-master/scripts
+ cd /opt/yunohost/seafile/seafile-server-6.2.5
+ for p in '$YNH_CWD/../sources/patches/${src_id}-*.patch'
+ patch -p1
patching file seahub/seahub/auth/middleware.py
patching file seahub/seahub/base/accounts.py
Hunk #1 succeeded at 494 (offset 98 lines).
patching file seahub/seahub/settings.py
Hunk #1 succeeded at 116 (offset 2 lines).
Hunk #2 succeeded at 245 with fuzz 2 (offset 12 lines).
+ cd /var/cache/yunohost/from_file/seafile_ynh-master/scripts
+ test -e /var/cache/yunohost/from_file/seafile_ynh-master/scripts/../sources/extra_files/x86-64
+ 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=Ab77NYSJfymXwds
+ ynh_app_setting_set seafile mysqlpwd Ab77NYSJfymXwds
+ sudo yunohost app setting seafile mysqlpwd --value=Ab77NYSJfymXwds --quiet
+ ynh_mysql_create_db ccnetdb seafile Ab77NYSJfymXwds
+ local db=ccnetdb
+ local 'sql=CREATE DATABASE ccnetdb;'
+ [[ 3 -gt 1 ]]
+ sql+=' GRANT ALL PRIVILEGES ON ccnetdb.* TO '\''seafile'\''@'\''localhost'\'''
+ [[ -n Ab77NYSJfymXwds ]]
+ sql+=' IDENTIFIED BY '\''Ab77NYSJfymXwds'\'''
+ sql+=' WITH GRANT OPTION;'
+ ynh_mysql_execute_as_root 'CREATE DATABASE ccnetdb; GRANT ALL PRIVILEGES ON ccnetdb.* TO '\''seafile'\''@'\''localhost'\'' IDENTIFIED BY '\''Ab77NYSJfymXwds'\'' WITH GRANT OPTION;'
++ sudo cat /etc/yunohost/mysql
+ ynh_mysql_connect_as root z5ZQe4i6Hc ''
+ mysql -u root --password=z5ZQe4i6Hc -B ''
+ ynh_mysql_create_db seafiledb seafile Ab77NYSJfymXwds
+ local db=seafiledb
+ local 'sql=CREATE DATABASE seafiledb;'
+ [[ 3 -gt 1 ]]
+ sql+=' GRANT ALL PRIVILEGES ON seafiledb.* TO '\''seafile'\''@'\''localhost'\'''
+ [[ -n Ab77NYSJfymXwds ]]
+ sql+=' IDENTIFIED BY '\''Ab77NYSJfymXwds'\'''
+ sql+=' WITH GRANT OPTION;'
+ ynh_mysql_execute_as_root 'CREATE DATABASE seafiledb; GRANT ALL PRIVILEGES ON seafiledb.* TO '\''seafile'\''@'\''localhost'\'' IDENTIFIED BY '\''Ab77NYSJfymXwds'\'' WITH GRANT OPTION;'
++ sudo cat /etc/yunohost/mysql
+ ynh_mysql_connect_as root z5ZQe4i6Hc ''
+ mysql -u root --password=z5ZQe4i6Hc -B ''
+ ynh_mysql_create_db seahubdb seafile Ab77NYSJfymXwds
+ local db=seahubdb
+ local 'sql=CREATE DATABASE seahubdb;'
+ [[ 3 -gt 1 ]]
+ sql+=' GRANT ALL PRIVILEGES ON seahubdb.* TO '\''seafile'\''@'\''localhost'\'''
+ [[ -n Ab77NYSJfymXwds ]]
+ sql+=' IDENTIFIED BY '\''Ab77NYSJfymXwds'\'''
+ sql+=' WITH GRANT OPTION;'
+ ynh_mysql_execute_as_root 'CREATE DATABASE seahubdb; GRANT ALL PRIVILEGES ON seahubdb.* TO '\''seafile'\''@'\''localhost'\'' IDENTIFIED BY '\''Ab77NYSJfymXwds'\'' WITH GRANT OPTION;'
++ sudo cat /etc/yunohost/mysql
+ ynh_mysql_connect_as root z5ZQe4i6Hc ''
+ mysql -u root --password=z5ZQe4i6Hc -B ''
+ ynh_system_user_create seafile /opt/yunohost/seafile
+ ynh_system_user_exists seafile
+ getent passwd seafile
+ '[' 2 -ge 2 ']'
+ local 'user_home_dir=-d /opt/yunohost/seafile'
+ sudo useradd -d /opt/yunohost/seafile --system --user-group seafile --shell /usr/sbin/nologin
+ chmod +x ../conf/install.exp
+ chmod +x /opt/yunohost/seafile/seafile-server-6.2.5/setup-seafile-mysql.sh
+ ../conf/install.exp /opt/yunohost/seafile/seafile-server-6.2.5 Matan Seafile my.matan.xyz /home/yunohost.app/seafile-data 8082 Ab77NYSJfymXwds
spawn /opt/yunohost/seafile/seafile-server-6.2.5/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 ] Matan

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

Seafile is not a valid ip or domain

What is the ip or domain of the server?
For example: www.mycompany.com, 192.168.1.101
[ This server's ip or domain ] my.matan.xyz

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

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

-------------------------------------------------------
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 ] localhost

Please choose 1 or 2

-------------------------------------------------------
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 ] 3306

Please choose 1 or 2

-------------------------------------------------------
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 ] seafile

Please choose 1 or 2

-------------------------------------------------------
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 ] 8082

Please choose 1 or 2

-------------------------------------------------------
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 ] ccnetdb

Please choose 1 or 2

-------------------------------------------------------
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 ] seafiledb

Please choose 1 or 2

-------------------------------------------------------
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 ] seahubdb

Please choose 1 or 2

-------------------------------------------------------
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 ]
          -------------------------------------------------------
                                                                 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 ]
Josue-T commented 6 years ago

So,

Could you try a new time to install and while it stop here, try to type on "enter" some times and share me is something happen.

planecore commented 6 years ago

It prints this prompt again and again:

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

                                             [1] Create new ccnet/seafile/seahub databases
                                                                                          [2] Use existing ccnet/seafile/seahub databases
planecore commented 6 years ago

I tried not changing the server name, and now the error is different:

root@my:~# sudo yunohost app install -l Seafile https://github.com/YunoHost-Apps/seafile_ynh --verbose
Downloading...
Extracting...
Done
Checking required packages for seafile...
Available domains:
- matan.xyz
- my.matan.xyz
- git.matan.xyz
- www.matan.xyz
Choose a domain for Seafile (default: my.matan.xyz): 
Choose a path for Seafile (default: /seafile): 
Choose a name (default: Seafile): 
Choose the admin user for Seafile: matan
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): 
Executing script '/var/cache/yunohost/from_file/seafile_ynh-master/scripts/install'...
+ 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
+ ynh_abort_if_errors
+ set -eu
+ trap ynh_exit_properly EXIT
+ source ./experimental_helper.sh
+++ grep 64
+++ uname -m
++ '[' -n x86_64 ']'
++ architecture=x86-64
+ source ./_common.sh
++ app=seafile
++ [[ -e ../settings/manifest.json ]]
++ [[ -e ../manifest.json ]]
+++ ynh_app_upstream_version
+++ manifest_path=../manifest.json
+++ '[' '!' -e ../manifest.json ']'
++++ ynh_read_manifest ../manifest.json version
++++ manifest=../manifest.json
++++ key=version
++++ python3 -c 'import sys, json;print(json.load(open('\''../manifest.json'\'', encoding='\''utf-8'\''))['\''version'\''])'
+++ version_key=6.2.5~ynh2
+++ echo 6.2.5
++ seafile_version=6.2.5
+ domain=my.matan.xyz
++ ynh_normalize_url_path /seafile
++ local path_url=/seafile
++ test -n /seafile
++ '[' / '!=' / ']'
++ '[' e == / ']'
++ echo /seafile
+ path=/seafile
+ server_name=Seafile
+ admin=matan
+ admin_password=PLJ-fYK-tJ5-gyU
+ is_public=1
+ seafile_data=/home/yunohost.app/seafile-data
+ final_path=/opt/yunohost/seafile
+ seafile_user=seafile
+ set_path_2
+ [[ /seafile == \/ ]]
+ path2=/seafile/
++ ynh_webpath_available my.matan.xyz /seafile
++ local domain=my.matan.xyz
++ local path=/seafile
++ sudo yunohost domain url-available my.matan.xyz /seafile
+ test True == True
+ ynh_webpath_register seafile my.matan.xyz /seafile
+ local app=seafile
+ local domain=my.matan.xyz
+ local path=/seafile
+ sudo yunohost app register-url seafile my.matan.xyz /seafile
+ test '!' -e /opt/yunohost/seafile
++ ynh_find_port 8000
++ local port=8000
++ test -n 8000
++ netcat -z 127.0.0.1 8000
++ echo 8000
+ seahub_port=8000
++ ynh_find_port 8082
++ local port=8082
++ test -n 8082
++ netcat -z 127.0.0.1 8082
++ echo 8082
+ fileserver_port=8082
++ ynh_find_port 8080
++ local port=8080
++ test -n 8080
++ netcat -z 127.0.0.1 8080
++ echo 8080
+ webdav_port=8080
+ ynh_app_setting_set seafile server_name Seafile
+ sudo yunohost app setting seafile server_name --value=Seafile --quiet
+ ynh_app_setting_set seafile final_path /opt/yunohost/seafile
+ sudo yunohost app setting seafile final_path --value=/opt/yunohost/seafile --quiet
+ ynh_app_setting_set seafile seafile_user seafile
+ sudo yunohost app setting seafile seafile_user --value=seafile --quiet
+ ynh_app_setting_set seafile admin matan
+ sudo yunohost app setting seafile admin --value=matan --quiet
+ ynh_app_setting_set seafile seahub_port 8000
+ sudo yunohost app setting seafile seahub_port --value=8000 --quiet
+ ynh_app_setting_set seafile fileserver_port 8082
+ sudo yunohost app setting seafile fileserver_port --value=8082 --quiet
+ ynh_app_setting_set seafile webdav_port 8080
+ sudo yunohost app setting seafile webdav_port --value=8080 --quiet
+ ynh_app_setting_set seafile is_public 1
+ sudo yunohost app setting seafile is_public --value=1 --quiet
+ ynh_app_setting_set seafile installed_version 6.2.5
+ sudo yunohost app setting seafile installed_version --value=6.2.5 --quiet
++ sed 's/mail: //g'
++ grep mail:
++ yunohost user info matan
+ admin_email=mail@matan.xyz
+ install_dependance
+ ynh_install_app_dependencies python2.7 python-pip python-setuptools python-simplejson python-imaging python-mysqldb python-flup expect python-requests python-dev
+ local 'dependencies=python2.7 python-pip python-setuptools python-simplejson python-imaging python-mysqldb python-flup expect python-requests python-dev'
+ local manifest_path=../manifest.json
+ '[' '!' -e ../manifest.json ']'
++ cut -d '"' -f 4
++ grep '\"version\": ' ../manifest.json
+ local version=6.2.5~ynh2
+ '[' 10 -eq 0 ']'
+ local dep_app=seafile
+ cat
+ ynh_package_install_from_equivs /tmp/seafile-ynh-deps.control
+ local controlfile=/tmp/seafile-ynh-deps.control
+ ynh_package_is_installed equivs
+ grep -c 'ok installed'
+ dpkg-query -W -f '${Status}' equivs
++ cut '-d ' -f 2
++ grep '^Package: ' /tmp/seafile-ynh-deps.control
+ local pkgname=seafile-ynh-deps
++ cut '-d ' -f 2
++ grep '^Version: ' /tmp/seafile-ynh-deps.control
+ local pkgversion=6.2.5~ynh2
+ [[ -z seafile-ynh-deps ]]
+ [[ -z 6.2.5~ynh2 ]]
+ ynh_package_update
+ ynh_apt update
+ DEBIAN_FRONTEND=noninteractive
+ sudo apt-get -y -qq update
++ mktemp -d
+ local TMPDIR=/tmp/tmp.6RU47SpAV4
+ cp /tmp/seafile-ynh-deps.control /tmp/tmp.6RU47SpAV4/control
+ cd /tmp/tmp.6RU47SpAV4
+ equivs-build ./control
Warning: dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is not NFS-safe
+ sudo dpkg --force-depends -i ./seafile-ynh-deps_6.2.5~ynh2_all.deb
Selecting previously unselected package seafile-ynh-deps.
(Reading database ... 36338 files and directories currently installed.)
Preparing to unpack .../seafile-ynh-deps_6.2.5~ynh2_all.deb ...
Unpacking seafile-ynh-deps (6.2.5~ynh2) ...
dpkg: seafile-ynh-deps: dependency problems, but configuring anyway as you requested:
 seafile-ynh-deps depends on python-simplejson; however:
  Package python-simplejson is not installed.
 seafile-ynh-deps depends on python-imaging; however:
  Package python-imaging is not installed.
 seafile-ynh-deps depends on python-mysqldb; however:
  Package python-mysqldb is not installed.
 seafile-ynh-deps depends on python-flup; however:
  Package python-flup is not installed.
 seafile-ynh-deps depends on expect; however:
  Package expect is not installed.

Setting up seafile-ynh-deps (6.2.5~ynh2) ...
+ ynh_package_install -f
+ ynh_apt --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
+ DEBIAN_FRONTEND=noninteractive
+ sudo apt-get -y -qq --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
Selecting previously unselected package libtcl8.6:amd64.
(Reading database ... 36342 files and directories currently installed.)se ... 
                                                                       Preparing to unpack .../libtcl8.6_8.6.2+dfsg-2_amd64.deb ...
                                                                                                                                   Unpacking libtcl8.6:amd64 (8.6.2+dfsg-2) ...
                                                                                                                                                                               Selecting previously unselected package libwebp5:amd64.
                                                 Preparing to unpack .../libwebp5_0.4.1-1.2+b2_amd64.deb ...
                                                                                                            Unpacking libwebp5:amd64 (0.4.1-1.2+b2) ...
                                                                                                                                                       Selecting previously unselected package libwebpdemux1:amd64.
                              Preparing to unpack .../libwebpdemux1_0.4.1-1.2+b2_amd64.deb ...
                                                                                              Unpacking libwebpdemux1:amd64 (0.4.1-1.2+b2) ...
                                                                                                                                              Selecting previously unselected package libwebpmux1:amd64.
                   Preparing to unpack .../libwebpmux1_0.4.1-1.2+b2_amd64.deb ...
                                                                                 Unpacking libwebpmux1:amd64 (0.4.1-1.2+b2) ...
                                                                                                                               Selecting previously unselected package tcl-expect:amd64.
   Preparing to unpack .../tcl-expect_5.45-6_amd64.deb ...
                                                          Unpacking tcl-expect:amd64 (5.45-6) ...
                                                                                                 Selecting previously unselected package expect.
                                                                                                                                                Preparing to unpack .../expect_5.45-6_amd64.deb ...
              Unpacking expect (5.45-6) ...
                                           Selecting previously unselected package python-flup.
                                                                                               Preparing to unpack .../python-flup_1.0.2-4_all.deb ...
                                                                                                                                                      Unpacking python-flup (1.0.2-4) ...
    Selecting previously unselected package python-pil:amd64.
                                                             Preparing to unpack .../python-pil_2.6.1-2+deb8u3_amd64.deb ...
                                                                                                                            Unpacking python-pil:amd64 (2.6.1-2+deb8u3) ...
                                                                                                                                                                           Selecting previously unselected package python-imaging.
                                             Preparing to unpack .../python-imaging_2.6.1-2+deb8u3_all.deb ...
                                                                                                              Unpacking python-imaging (2.6.1-2+deb8u3) ...
                                                                                                                                                           Selecting previously unselected package python-mysqldb.
                             Preparing to unpack .../python-mysqldb_1.2.3-2.1_amd64.deb ...
                                                                                           Unpacking python-mysqldb (1.2.3-2.1) ...
                                                                                                                                   Selecting previously unselected package python-simplejson.
        Preparing to unpack .../python-simplejson_3.6.5-1_amd64.deb ...
                                                                       Unpacking python-simplejson (3.6.5-1) ...
                                                                                                                Processing triggers for man-db (2.7.0.2-5) ...
                                                                                                                                                              Setting up libtcl8.6:amd64 (8.6.2+dfsg-2) ...
                      Setting up libwebp5:amd64 (0.4.1-1.2+b2) ...
                                                                  Setting up libwebpdemux1:amd64 (0.4.1-1.2+b2) ...
                                                                                                                   Setting up libwebpmux1:amd64 (0.4.1-1.2+b2) ...
                                                                                                                                                                  Setting up tcl-expect:amd64 (5.45-6) ...
                     Setting up expect (5.45-6) ...
                                                   Setting up python-flup (1.0.2-4) ...
                                                                                       Setting up python-pil:amd64 (2.6.1-2+deb8u3) ...
                                                                                                                                       Setting up python-imaging (2.6.1-2+deb8u3) ...
                                                                                                                                                                                    Setting up python-mysqldb (1.2.3-2.1) ...
                                        Setting up python-simplejson (3.6.5-1) ...
                                                                                  Processing triggers for libc-bin (2.19-18+deb8u10) ...
                                                                                                                                        + [[ -n /tmp/tmp.6RU47SpAV4 ]]
+ rm -rf /tmp/tmp.6RU47SpAV4
+ ynh_package_is_installed seafile-ynh-deps
+ grep -c 'ok installed'
+ dpkg-query -W -f '${Status}' seafile-ynh-deps
+ rm /tmp/seafile-ynh-deps.control
+ ynh_app_setting_set seafile apt_dependencies python2.7 python-pip python-setuptools python-simplejson python-imaging python-mysqldb python-flup expect python-requests python-dev
+ sudo yunohost app setting seafile apt_dependencies --value=python2.7 --quiet
+ pip install pillow moviepy
Requirement already satisfied (use --upgrade to upgrade): pillow in /usr/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): moviepy in /usr/local/lib/python2.7/dist-packages
Cleaning up...
+ test -e /home/yunohost.app/seafile-data
+ mkdir -p /opt/yunohost/seafile
+ mkdir -p /opt/yunohost/seafile/installed
+ mkdir -p /opt/yunohost/seafile/logs
+ mkdir -p /opt/yunohost/seafile/seafile-data
+ install_source
+ mkdir /opt/yunohost/seafile/seafile-server-6.2.5
+ ynh_setup_source /opt/yunohost/seafile/seafile-server-6.2.5 x86-64
+ local dest_dir=/opt/yunohost/seafile/seafile-server-6.2.5
+ local src_id=x86-64
++ cut -d= -f2-
++ grep SOURCE_URL= /var/cache/yunohost/from_file/seafile_ynh-master/scripts/../conf/x86-64.src
+ local src_url=https://download.seadrive.org/seafile-server_6.2.5_x86-64.tar.gz
++ cut -d= -f2-
++ grep SOURCE_SUM= /var/cache/yunohost/from_file/seafile_ynh-master/scripts/../conf/x86-64.src
+ local src_sum=74f299a01cb159637e788534c78169028d3773f9c1a372ac1daf095ee335c333
++ cut -d= -f2-
++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/seafile_ynh-master/scripts/../conf/x86-64.src
+ local src_sumprg=sha256sum
++ cut -d= -f2-
++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/seafile_ynh-master/scripts/../conf/x86-64.src
+ local src_format=tar.gz
++ cut -d= -f2-
++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/seafile_ynh-master/scripts/../conf/x86-64.src
+ local src_in_subdir=true
++ cut -d= -f2-
++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/seafile_ynh-master/scripts/../conf/x86-64.src
+ local src_filename=
+ src_sumprg=sha256sum
+ src_in_subdir=true
+ src_format=tar.gz
++ tr '[:upper:]' '[:lower:]'
++ echo tar.gz
+ src_format=tar.gz
+ '[' '' = '' ']'
+ src_filename=x86-64.tar.gz
+ local local_src=/opt/yunohost-apps-src/seafile/x86-64.tar.gz
+ test -e /opt/yunohost-apps-src/seafile/x86-64.tar.gz
+ wget -nv -O x86-64.tar.gz https://download.seadrive.org/seafile-server_6.2.5_x86-64.tar.gz
Warning: 2018-04-02 21:10:51 URL:https://download.seadrive.org/seafile-server_6.2.5_x86-64.tar.gz [26132166/26132166] -> "x86-64.tar.gz" [1]
+ sha256sum -c --status
+ echo '74f299a01cb159637e788534c78169028d3773f9c1a372ac1daf095ee335c333 x86-64.tar.gz'
+ mkdir -p /opt/yunohost/seafile/seafile-server-6.2.5
+ '[' tar.gz = zip ']'
+ local strip=
+ true
+ strip='--strip-components 1'
+ [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
+ tar -xf x86-64.tar.gz -C /opt/yunohost/seafile/seafile-server-6.2.5 --strip-components 1
++ wc -l
++ find /var/cache/yunohost/from_file/seafile_ynh-master/scripts/../sources/patches/ -type f -name 'x86-64-*.patch'
+ ((  1 > 0  ))
++ pwd
+ local old_dir=/var/cache/yunohost/from_file/seafile_ynh-master/scripts
+ cd /opt/yunohost/seafile/seafile-server-6.2.5
+ for p in '$YNH_CWD/../sources/patches/${src_id}-*.patch'
+ patch -p1
patching file seahub/seahub/auth/middleware.py
patching file seahub/seahub/base/accounts.py
Hunk #1 succeeded at 494 (offset 98 lines).
patching file seahub/seahub/settings.py
Hunk #1 succeeded at 116 (offset 2 lines).
Hunk #2 succeeded at 245 with fuzz 2 (offset 12 lines).
+ cd /var/cache/yunohost/from_file/seafile_ynh-master/scripts
+ test -e /var/cache/yunohost/from_file/seafile_ynh-master/scripts/../sources/extra_files/x86-64
+ 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=TDfElEPw9N0DLDD
+ ynh_app_setting_set seafile mysqlpwd TDfElEPw9N0DLDD
+ sudo yunohost app setting seafile mysqlpwd --value=TDfElEPw9N0DLDD --quiet
+ ynh_mysql_create_db ccnetdb seafile TDfElEPw9N0DLDD
+ local db=ccnetdb
+ local 'sql=CREATE DATABASE ccnetdb;'
+ [[ 3 -gt 1 ]]
+ sql+=' GRANT ALL PRIVILEGES ON ccnetdb.* TO '\''seafile'\''@'\''localhost'\'''
+ [[ -n TDfElEPw9N0DLDD ]]
+ sql+=' IDENTIFIED BY '\''TDfElEPw9N0DLDD'\'''
+ sql+=' WITH GRANT OPTION;'
+ ynh_mysql_execute_as_root 'CREATE DATABASE ccnetdb; GRANT ALL PRIVILEGES ON ccnetdb.* TO '\''seafile'\''@'\''localhost'\'' IDENTIFIED BY '\''TDfElEPw9N0DLDD'\'' WITH GRANT OPTION;'
++ sudo cat /etc/yunohost/mysql
+ ynh_mysql_connect_as root z5ZQe4i6Hc ''
+ mysql -u root --password=z5ZQe4i6Hc -B ''
+ ynh_mysql_create_db seafiledb seafile TDfElEPw9N0DLDD
+ local db=seafiledb
+ local 'sql=CREATE DATABASE seafiledb;'
+ [[ 3 -gt 1 ]]
+ sql+=' GRANT ALL PRIVILEGES ON seafiledb.* TO '\''seafile'\''@'\''localhost'\'''
+ [[ -n TDfElEPw9N0DLDD ]]
+ sql+=' IDENTIFIED BY '\''TDfElEPw9N0DLDD'\'''
+ sql+=' WITH GRANT OPTION;'
+ ynh_mysql_execute_as_root 'CREATE DATABASE seafiledb; GRANT ALL PRIVILEGES ON seafiledb.* TO '\''seafile'\''@'\''localhost'\'' IDENTIFIED BY '\''TDfElEPw9N0DLDD'\'' WITH GRANT OPTION;'
++ sudo cat /etc/yunohost/mysql
+ ynh_mysql_connect_as root z5ZQe4i6Hc ''
+ mysql -u root --password=z5ZQe4i6Hc -B ''
+ ynh_mysql_create_db seahubdb seafile TDfElEPw9N0DLDD
+ local db=seahubdb
+ local 'sql=CREATE DATABASE seahubdb;'
+ [[ 3 -gt 1 ]]
+ sql+=' GRANT ALL PRIVILEGES ON seahubdb.* TO '\''seafile'\''@'\''localhost'\'''
+ [[ -n TDfElEPw9N0DLDD ]]
+ sql+=' IDENTIFIED BY '\''TDfElEPw9N0DLDD'\'''
+ sql+=' WITH GRANT OPTION;'
+ ynh_mysql_execute_as_root 'CREATE DATABASE seahubdb; GRANT ALL PRIVILEGES ON seahubdb.* TO '\''seafile'\''@'\''localhost'\'' IDENTIFIED BY '\''TDfElEPw9N0DLDD'\'' WITH GRANT OPTION;'
++ sudo cat /etc/yunohost/mysql
+ ynh_mysql_connect_as root z5ZQe4i6Hc ''
+ mysql -u root --password=z5ZQe4i6Hc -B ''
+ ynh_system_user_create seafile /opt/yunohost/seafile
+ ynh_system_user_exists seafile
+ getent passwd seafile
+ '[' 2 -ge 2 ']'
+ local 'user_home_dir=-d /opt/yunohost/seafile'
+ sudo useradd -d /opt/yunohost/seafile --system --user-group seafile --shell /usr/sbin/nologin
+ chmod +x ../conf/install.exp
+ chmod +x /opt/yunohost/seafile/seafile-server-6.2.5/setup-seafile-mysql.sh
+ ../conf/install.exp /opt/yunohost/seafile/seafile-server-6.2.5 Seafile my.matan.xyz /home/yunohost.app/seafile-data 8082 TDfElEPw9N0DLDD
spawn /opt/yunohost/seafile/seafile-server-6.2.5/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 ] Seafile

What is the ip or domain of the server?
For example: www.mycompany.com, 192.168.1.101
[ This server's ip or domain ] my.matan.xyz

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

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

-------------------------------------------------------
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:            Seafile
            server ip/domain:       my.matan.xyz

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

                                                                                                                                               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 /opt/yunohost/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:   8082
                                                                                                 port of seahub:               8000

                                                                                                                                   When problems occur, Refer to

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

                         for information.

                                         + ynh_replace_string http:// https:// /opt/yunohost/seafile/conf/ccnet.conf
+ local delimit=@
+ local match_string=http://
+ local replace_string=https://
+ local workfile=/opt/yunohost/seafile/conf/ccnet.conf
+ match_string=http://
+ replace_string=https://
+ sudo sed --in-place s@http://@https://@g /opt/yunohost/seafile/conf/ccnet.conf
+ ynh_replace_string :8000 /seafile /opt/yunohost/seafile/conf/ccnet.conf
+ local delimit=@
+ local match_string=:8000
+ local replace_string=/seafile
+ local workfile=/opt/yunohost/seafile/conf/ccnet.conf
+ match_string=:8000
+ replace_string=/seafile
+ sudo sed --in-place s@:8000@/seafile@g /opt/yunohost/seafile/conf/ccnet.conf
+ tee -a /opt/yunohost/seafile/conf/seahub_settings.py
+ echo 'FILE_SERVER_ROOT = "https://my.matan.xyz/seafhttp"'
FILE_SERVER_ROOT = "https://my.matan.xyz/seafhttp"
+ tee -a /opt/yunohost/seafile/conf/seahub_settings.py
+ echo 'SITE_ROOT = "/seafile/"'
SITE_ROOT = "/seafile/"
+ tee -a /opt/yunohost/seafile/conf/seahub_settings.py
+ echo 'SERVE_STATIC = False'
SERVE_STATIC = False
+ tee -a /opt/yunohost/seafile/conf/seahub_settings.py
+ echo 'MEDIA_URL = "/seafile/media/"'
MEDIA_URL = "/seafile/media/"
+ tee -a /opt/yunohost/seafile/conf/seahub_settings.py
+ echo 'COMPRESS_URL = MEDIA_URL'
COMPRESS_URL = MEDIA_URL
+ tee -a /opt/yunohost/seafile/conf/seahub_settings.py
+ echo 'STATIC_URL = MEDIA_URL + '\''assets/'\'''
STATIC_URL = MEDIA_URL + 'assets/'
+ tee -a /opt/yunohost/seafile/conf/seahub_settings.py
+ echo 'LOGIN_URL = '\''/seafile/accounts/login/'\'''
LOGIN_URL = '/seafile/accounts/login/'
+ tee -a /opt/yunohost/seafile/conf/seahub_settings.py
+ echo 'ALLOWED_HOSTS = ['\''my.matan.xyz'\'']'
ALLOWED_HOSTS = ['my.matan.xyz']
+ tee -a /opt/yunohost/seafile/conf/seahub_settings.py
+ echo 'EMAIL_USE_TLS = False'
EMAIL_USE_TLS = False
+ tee -a /opt/yunohost/seafile/conf/seahub_settings.py
+ echo 'EMAIL_HOST = "localhost"'
EMAIL_HOST = "localhost"
+ tee -a /opt/yunohost/seafile/conf/seahub_settings.py
+ echo 'EMAIL_HOST_USER = "seafile@my.matan.xyz"'
EMAIL_HOST_USER = "seafile@my.matan.xyz"
+ tee -a /opt/yunohost/seafile/conf/seahub_settings.py
+ echo 'EMAIL_HOST_PASSWORD = ""'
EMAIL_HOST_PASSWORD = ""
+ tee -a /opt/yunohost/seafile/conf/seahub_settings.py
+ echo 'EMAIL_PORT = "25"'
EMAIL_PORT = "25"
+ tee -a /opt/yunohost/seafile/conf/seahub_settings.py
+ echo 'DEFAULT_FROM_EMAIL = "seafile@my.matan.xyz"'
DEFAULT_FROM_EMAIL = "seafile@my.matan.xyz"
+ tee -a /opt/yunohost/seafile/conf/seahub_settings.py
+ echo 'SERVER_EMAIL = "seafile@my.matan.xyz"'
SERVER_EMAIL = "seafile@my.matan.xyz"
+ tee -a /opt/yunohost/seafile/conf/ccnet.conf
+ echo '[LDAP]'
[LDAP]
+ tee -a /opt/yunohost/seafile/conf/ccnet.conf
+ echo 'HOST = ldap://localhost:389'
HOST = ldap://localhost:389
+ tee -a /opt/yunohost/seafile/conf/ccnet.conf
+ echo 'BASE = ou=users,dc=yunohost,dc=org'
BASE = ou=users,dc=yunohost,dc=org
+ tee -a /opt/yunohost/seafile/conf/ccnet.conf
+ echo 'LOGIN_ATTR = mail'
LOGIN_ATTR = mail
+ tee -a /opt/yunohost/seafile/conf/seahub_settings.py
+ echo 'ENABLE_WIKI = True'
ENABLE_WIKI = True
Warning: ./install: line 121: LANG: unbound variable
Warning: !!
Warning:   seafile's script has encountered an error. Its execution was cancelled.
Warning: !!
++ ynh_exit_properly
++ local exit_code=1
++ '[' 1 -eq 0 ']'
++ trap '' EXIT
++ set +eu
++ echo -e '!!\n  seafile'\''s script has encountered an error. Its execution was cancelled.\n!!'
++ type -t ynh_clean_setup
++ ynh_clean_setup
++ pkill -f seafile-controller
++ pkill -f seaf-server
++ pkill -f ccnet-server
++ pkill -f seahub
++ ynh_die
++ echo ''
++ exit 1
Warning: 
Executing script '/var/cache/yunohost/from_file/seafile_ynh-master/scripts/remove'...
+ 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
+ set -u
+ source ./experimental_helper.sh
+++ grep 64
+++ uname -m
++ '[' -n x86_64 ']'
++ architecture=x86-64
+ source ./_common.sh
++ app=seafile
++ [[ -e ../settings/manifest.json ]]
++ [[ -e ../manifest.json ]]
+++ ynh_app_upstream_version
+++ manifest_path=../manifest.json
+++ '[' '!' -e ../manifest.json ']'
++++ ynh_read_manifest ../manifest.json version
++++ manifest=../manifest.json
++++ key=version
++++ python3 -c 'import sys, json;print(json.load(open('\''../manifest.json'\'', encoding='\''utf-8'\''))['\''version'\''])'
+++ version_key=6.2.5~ynh2
+++ echo 6.2.5
++ seafile_version=6.2.5
+ get_configuration
++ ynh_app_setting_get seafile final_path
++ sudo yunohost app setting seafile final_path --output-as plain --quiet
+ final_path=/opt/yunohost/seafile
++ ynh_app_setting_get seafile seafile_user
++ sudo yunohost app setting seafile seafile_user --output-as plain --quiet
+ seafile_user=seafile
+ [[ -z /opt/yunohost/seafile ]]
+ [[ -z seafile ]]
++ ynh_app_setting_get seafile domain
++ sudo yunohost app setting seafile domain --output-as plain --quiet
+ domain=my.matan.xyz
+ systemctl stop seafile-server.service
Warning: Failed to stop seafile-server.service: Unit seafile-server.service not loaded.
+ test -e /var/www/seafile/remove_sso_conf.py
+ test -e /opt/yunohost/seafile/remove_sso_conf.py
+ ynh_secure_remove /var/log/seafile
+ local path_to_remove=/var/log/seafile
+ local 'forbidden_path=    /var/www    /home/yunohost.app'
+ [[    /var/www    /home/yunohost.app =~ /var/log/seafile ]]
+ [[ /var/log/seafile =~ ^/[[:alnum:]]+$ ]]
+ [[ e = \/ ]]
+ '[' -e /var/log/seafile ']'
+ echo '/var/log/seafile wasn'\''t deleted because it doesn'\''t exist.'
+ ynh_secure_remove /var/www/seafile
+ local path_to_remove=/var/www/seafile
+ local 'forbidden_path=    /var/www    /home/yunohost.app'
Warning: /var/log/seafile wasn't deleted because it doesn't exist.
Warning: /var/www/seafile wasn't deleted because it doesn't exist.
+ [[    /var/www    /home/yunohost.app =~ /var/www/seafile ]]
+ [[ /var/www/seafile =~ ^/[[:alnum:]]+$ ]]
+ [[ e = \/ ]]
+ '[' -e /var/www/seafile ']'
+ echo '/var/www/seafile wasn'\''t deleted because it doesn'\''t exist.'
+ ynh_secure_remove /opt/yunohost/seafile
+ local path_to_remove=/opt/yunohost/seafile
+ local 'forbidden_path=    /var/www    /home/yunohost.app'
+ [[    /var/www    /home/yunohost.app =~ /opt/yunohost/seafile ]]
+ [[ /opt/yunohost/seafile =~ ^/[[:alnum:]]+$ ]]
+ [[ e = \/ ]]
+ '[' -e /opt/yunohost/seafile ']'
+ sudo rm -R /opt/yunohost/seafile
+ ynh_secure_remove /etc/init.d/seafile-server
+ local path_to_remove=/etc/init.d/seafile-server
+ local 'forbidden_path=    /var/www    /home/yunohost.app'
+ [[    /var/www    /home/yunohost.app =~ /etc/init\.d/seafile-server ]]
+ [[ /etc/init.d/seafile-server =~ ^/[[:alnum:]]+$ ]]
+ [[ r = \/ ]]
+ '[' -e /etc/init.d/seafile-server ']'
+ echo '/etc/init.d/seafile-server wasn'\''t deleted because it doesn'\''t exist.'
+ ynh_secure_remove /home/yunohost.app/seafile-data
+ local path_to_remove=/home/yunohost.app/seafile-data
+ local 'forbidden_path=    /var/www    /home/yunohost.app'
+ [[    /var/www    /home/yunohost.app =~ /home/yunohost\.app/seafile-data ]]
+ [[ /home/yunohost.app/seafile-data =~ ^/[[:alnum:]]+$ ]]
+ [[ a = \/ ]]
+ '[' -e /home/yunohost.app/seafile-data ']'
+ sudo rm -R /home/yunohost.app/seafile-data
Warning: /etc/init.d/seafile-server wasn't deleted because it doesn't exist.
+ ynh_secure_remove /tmp/seahub_cache
+ local path_to_remove=/tmp/seahub_cache
+ local 'forbidden_path=    /var/www    /home/yunohost.app'
+ [[    /var/www    /home/yunohost.app =~ /tmp/seahub_cache ]]
+ [[ /tmp/seahub_cache =~ ^/[[:alnum:]]+$ ]]
+ [[ e = \/ ]]
+ '[' -e /tmp/seahub_cache ']'
+ echo '/tmp/seahub_cache wasn'\''t deleted because it doesn'\''t exist.'
+ ynh_mysql_drop_db ccnetdb
+ ynh_mysql_execute_as_root 'DROP DATABASE ccnetdb;'
Warning: /tmp/seahub_cache wasn't deleted because it doesn't exist.
++ sudo cat /etc/yunohost/mysql
+ ynh_mysql_connect_as root z5ZQe4i6Hc ''
+ mysql -u root --password=z5ZQe4i6Hc -B ''
+ ynh_mysql_drop_db seafiledb
+ ynh_mysql_execute_as_root 'DROP DATABASE seafiledb;'
++ sudo cat /etc/yunohost/mysql
+ ynh_mysql_connect_as root z5ZQe4i6Hc ''
+ mysql -u root --password=z5ZQe4i6Hc -B ''
+ ynh_mysql_drop_db seahubdb
+ ynh_mysql_execute_as_root 'DROP DATABASE seahubdb;'
++ sudo cat /etc/yunohost/mysql
+ ynh_mysql_connect_as root z5ZQe4i6Hc ''
+ mysql -u root --password=z5ZQe4i6Hc -B ''
+ ynh_system_user_delete seafile
+ ynh_system_user_exists seafile
+ getent passwd seafile
+ echo 'Remove the user seafile'
+ sudo userdel seafile
Warning: Remove the user seafile
+ ynh_remove_app_dependencies
+ local dep_app=seafile
+ ynh_package_autopurge seafile-ynh-deps
+ ynh_apt autoremove --purge seafile-ynh-deps
+ DEBIAN_FRONTEND=noninteractive
+ sudo apt-get -y -qq autoremove --purge seafile-ynh-deps
(Reading database ... 36962 files and directories currently installed.)
                                                                       Removing seafile-ynh-deps (6.2.5~ynh2) ...
                                                                                                                 Removing expect (5.45-6) ...
                                                                                                                                             Removing tcl-expect:amd64 (5.45-6) ...
                                                                                                                                                                                   Purging configuration files for tcl-expect:amd64 (5.45-6) ...
                                                           Removing libtcl8.6:amd64 (8.6.2+dfsg-2) ...
                                                                                                      Purging configuration files for libtcl8.6:amd64 (8.6.2+dfsg-2) ...
                                                                                                                                                                        Removing python-imaging (2.6.1-2+deb8u3) ...
                               Removing python-pil:amd64 (2.6.1-2+deb8u3) ...
                                                                             Removing libwebpmux1:amd64 (0.4.1-1.2+b2) ...
                                                                                                                          Purging configuration files for libwebpmux1:amd64 (0.4.1-1.2+b2) ...
         Removing libwebpdemux1:amd64 (0.4.1-1.2+b2) ...
                                                        Purging configuration files for libwebpdemux1:amd64 (0.4.1-1.2+b2) ...
                                                                                                                              Removing python-flup (1.0.2-4) ...
                                                                                                                                                                Removing python-mysqldb (1.2.3-2.1) ...
                  Removing python-simplejson (3.6.5-1) ...
                                                          Removing libwebp5:amd64 (0.4.1-1.2+b2) ...
                                                                                                    Purging configuration files for libwebp5:amd64 (0.4.1-1.2+b2) ...
                                                                                                                                                                     Processing triggers for man-db (2.7.0.2-5) ...
                              Processing triggers for libc-bin (2.19-18+deb8u10) ...
                                                                                    + ynh_secure_remove /etc/nginx/conf.d/my.matan.xyz.d/seafile.conf
+ local path_to_remove=/etc/nginx/conf.d/my.matan.xyz.d/seafile.conf
+ local 'forbidden_path=    /var/www    /home/yunohost.app'
+ [[    /var/www    /home/yunohost.app =~ /etc/nginx/conf\.d/my\.matan\.xyz\.d/seafile\.conf ]]
+ [[ /etc/nginx/conf.d/my.matan.xyz.d/seafile.conf =~ ^/[[:alnum:]]+$ ]]
+ [[ f = \/ ]]
+ '[' -e /etc/nginx/conf.d/my.matan.xyz.d/seafile.conf ']'
+ echo '/etc/nginx/conf.d/my.matan.xyz.d/seafile.conf wasn'\''t deleted because it doesn'\''t exist.'
+ ynh_remove_logrotate
+ '[' -e /etc/logrotate.d/seafile ']'
+ yunohost service remove seafile-server
Warning: /etc/nginx/conf.d/my.matan.xyz.d/seafile.conf wasn't deleted because it doesn't exist.
Warning: Unknown service 'seafile-server'
+ systemctl reload nginx.service
Success! The SSOwat configuration has been generated
Error: Installation failed
Josue-T commented 6 years ago

Hello,

Could you try the branch https://github.com/YunoHost-Apps/seafile_ynh/tree/fix_server_name

planecore commented 6 years ago

Installation successed only when I didn’t change the server name.

Josue-T commented 6 years ago

Normally you should be able to change it if you respect the constraint :

https://github.com/YunoHost-Apps/seafile_ynh/blob/4cbff3b86caf8a16eee2c06f718dc83f7be7beff/manifest.json#L48-L49

planecore commented 6 years ago

So also without spaces?

Josue-T commented 6 years ago

Yes, it's the constraint by seafile.