Seafile Server in 10 minuten mit Scipt Installiert . Https ? Backup?


#21

Jo habe ich .
Fehler: Verbindung fehlgeschlagen


#22

Hat dein Ubuntu minimal ne GUI? Wenn ja, probiers bitte mal mit http://localhost


#23

Ubuntu habe ich als 18.04 Lts sieht fast aus wie windows.
Localhost hat gebracht .
Fehler: Verbindung fehlgeschlagen


#24

Was ist der output von docker ps?


#25

sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES


#26

Dann ist dein Container nicht gestartet. Start ihn mit docker start seafile


#27

sudo docker start seafile
[sudo] Passwort für robert: unsichtbar eingegeben
seafile

aufruf anschliessend im Browser unter der ip , dyn oder localhost bring im Browser die Meldung Fehler: Verbindung fehlgeschlagen


#28

Mach nochmal docker ps


#29

sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES


#30

Scheint abzustürzen. Kannst du bitte nochmal den Output von docker logs posten?


#31

*** Running /etc/my_init.d/01_create_data_links.sh…
*** Running /etc/my_init.d/10_syslog-ng.init…
Nov 1 13:19:29 02de1ec005fc syslog-ng[24]: syslog-ng starting up; version=‘3.5.6’
Nov 1 13:19:30 02de1ec005fc syslog-ng[24]: EOF on control channel, closing connection;
*** Running /etc/my_init.d/99_mysql_setup.sh…
Rebuilding mysql data dir
Starting mysqld
Waiting for mysqld to come online
Nov 1 13:19:51 02de1ec005fc mysqld_safe: Starting mysqld daemon with databases from /var/lib/mysql
Nov 1 13:19:51 02de1ec005fc mysqld: 181101 13:19:51 [Note] /usr/sbin/mysqld (mysqld 10.0.34-MariaDB-0ubuntu0.16.04.1) starting as process 253 …
Nov 1 13:19:51 02de1ec005fc mysqld: 181101 13:19:51 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.
Nov 1 13:19:51 02de1ec005fc mysqld:
Nov 1 13:19:51 02de1ec005fc mysqld: 181101 13:19:51 [Note] InnoDB: Using mutexes to ref count buffer pool pages
Nov 1 13:19:51 02de1ec005fc mysqld: 181101 13:19:51 [Note] InnoDB: The InnoDB memory heap is disabled
Nov 1 13:19:51 02de1ec005fc mysqld: 181101 13:19:51 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
Nov 1 13:19:51 02de1ec005fc mysqld: 181101 13:19:51 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
Nov 1 13:19:51 02de1ec005fc mysqld: 181101 13:19:51 [Note] InnoDB: Compressed tables use zlib 1.2.8
Nov 1 13:19:51 02de1ec005fc mysqld: 181101 13:19:51 [Note] InnoDB: Using Linux native AIO
Nov 1 13:19:51 02de1ec005fc mysqld: 181101 13:19:51 [Note] InnoDB: Using CPU crc32 instructions
Nov 1 13:19:51 02de1ec005fc mysqld: 181101 13:19:51 [Note] InnoDB: Initializing buffer pool, size = 128.0M
Nov 1 13:19:51 02de1ec005fc mysqld: 181101 13:19:51 [Note] InnoDB: Completed initialization of buffer pool
Nov 1 13:19:51 02de1ec005fc mysqld: 181101 13:19:51 [Note] InnoDB: Highest supported file format is Barracuda.
Nov 1 13:19:51 02de1ec005fc mysqld: 181101 13:19:51 [Note] InnoDB: 128 rollback segment(s) are active.
Nov 1 13:19:51 02de1ec005fc mysqld: 181101 13:19:51 [Note] InnoDB: Waiting for purge to start
Nov 1 13:19:51 02de1ec005fc mysqld: 181101 13:19:51 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.36-83.0 started; log sequence number 1616707
Nov 1 13:19:51 02de1ec005fc mysqld: 181101 13:19:51 [Note] Plugin ‘FEEDBACK’ is disabled.
Nov 1 13:19:51 02de1ec005fc mysqld: 181101 13:19:51 [Note] Server socket created on IP: ‘127.0.0.1’.
Nov 1 13:19:51 02de1ec005fc mysqld: 181101 13:19:51 [Note] /usr/sbin/mysqld: ready for connections.
Nov 1 13:19:51 02de1ec005fc mysqld: Version: ‘10.0.34-MariaDB-0ubuntu0.16.04.1’ socket: ‘/var/run/mysqld/mysqld.sock’ port: 3306 Ubuntu 16.04
Fixing root password
Shutting down mysqld
Nov 1 13:19:51 02de1ec005fc mysqld: 181101 13:19:51 [Note] /usr/sbin/mysqld: Normal shutdown
Nov 1 13:19:51 02de1ec005fc mysqld: 181101 13:19:51 [Note] Event Scheduler: Purging the queue. 0 events
Nov 1 13:19:51 02de1ec005fc mysqld: 181101 13:19:51 [Note] InnoDB: FTS optimize thread exiting.
Nov 1 13:19:51 02de1ec005fc mysqld: 181101 13:19:51 [Note] InnoDB: Starting shutdown…
Nov 1 13:19:51 02de1ec005fc mysqld: 181101 13:19:52 [Note] InnoDB: Waiting for page_cleaner to finish flushing of buffer pool
Nov 1 13:19:51 02de1ec005fc mysqld: 181101 13:19:54 [Note] InnoDB: Shutdown completed; log sequence number 1616717
Nov 1 13:19:51 02de1ec005fc mysqld: 181101 13:19:54 [Note] /usr/sbin/mysqld: Shutdown complete
Nov 1 13:19:51 02de1ec005fc mysqld:
Nov 1 13:19:54 02de1ec005fc mysqld_safe: mysqld from pid file /var/run/mysqld/mysqld.pid ended
*** Running /etc/rc.local…
*** Booting runit daemon…
*** Runit started as PID 287
*** Running /scripts/start.py…
Nov 1 13:19:54 02de1ec005fc cron[296]: (CRON) INFO (pidfile fd = 3)
Nov 1 13:19:54 02de1ec005fc cron[296]: (CRON) INFO (Running @reboot jobs)
[2018-11-01 13:19:55] Preparing for letsencrypt …
[2018-11-01 13:19:55] Starting letsencrypt verification
Cloning into ‘/shared/ssl/letsencrypt’…
Generating RSA private key, 4096 bit long modulus
…++
…++
unable to write ‘random state’
e is 65537 (0x10001)
Generating RSA private key, 4096 bit long modulus
…++
…++
unable to write ‘random state’
e is 65537 (0x10001)
Parsing account key…
Parsing CSR…
Found domains: xxx.dyn.cc
Getting directory…
Directory found!
Registering account…
Registered!
Creating new order…
Order created!
Verifying xxx.dyn.cc…
Traceback (most recent call last):
File “/shared/ssl/letsencrypt/acme_tiny.py”, line 198, in
main(sys.argv[1:])
File “/shared/ssl/letsencrypt/acme_tiny.py”, line 194, in main
signed_crt = get_crt(args.account_key, args.csr, args.acme_dir, log=LOGGER, CA=args.ca, disable_check=args.disable_check, directory_url=args.directory_url, contact=args.contact)
File “/shared/ssl/letsencrypt/acme_tiny.py”, line 144, in get_crt
raise ValueError(“Wrote file to {0}, but couldn’t download {1}: {2}”.format(wellknown_path, wellknown_url, e))
ValueError: Wrote file to /var/www/challenges/O3QZnjbQehv0IBeCCQ0ZfR89vm60txfUSvWeGz1UsDk, but couldn’t download http://xxx.dyn.cc/.well-known/acme-challenge/O3QZnjbQehv0IBeCCQ0ZfR89vm60txfUSvWeGz1UsDk: Error:
Url: http://xxx.dyn.cc/.well-known/acme-challenge/O3QZnjbQehv0IBeCCQ0ZfR89vm60txfUSvWeGz1UsDk
Data: None
Response Code: None
Response: <urlopen error [Errno 113] No route to host>
Traceback (most recent call last):
File “/scripts/start.py”, line 86, in
main()
File “/scripts/start.py”, line 51, in main
init_letsencrypt()
File “/scripts/bootstrap.py”, line 67, in init_letsencrypt
call(’/scripts/ssl.sh {0} {1}’.format(ssl_dir, domain))
File “/scripts/utils/init.py”, line 68, in call
return subprocess.check_call(*a, **kw)
File “/usr/lib/python2.7/subprocess.py”, line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘/scripts/ssl.sh /shared/ssl xxx.dyn.cc’ returned non-zero exit status 1
*** /scripts/start.py exited with status 1.
*** Shutting down runit daemon (PID 287)…
*** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown…
Nov 1 13:20:09 02de1ec005fc syslog-ng[24]: syslog-ng shutting down; version=‘3.5.6’
Nov 1 13:20:09 02de1ec005fc syslog-ng[24]: EOF on control channel, closing connection;
*** Killing all processes…
*** Running /etc/my_init.d/01_create_data_links.sh…
*** Running /etc/my_init.d/10_syslog-ng.init…
Nov 1 13:31:18 02de1ec005fc syslog-ng[18]: syslog-ng starting up; version=‘3.5.6’
Nov 1 13:31:19 02de1ec005fc syslog-ng[18]: EOF on control channel, closing connection;
*** Running /etc/my_init.d/99_mysql_setup.sh…
*** Running /etc/rc.local…
*** Booting runit daemon…
*** Runit started as PID 25
*** Running /scripts/start.py…
Nov 1 13:31:20 02de1ec005fc cron[34]: (CRON) INFO (pidfile fd = 3)
Nov 1 13:31:20 02de1ec005fc cron[34]: (CRON) INFO (Skipping @reboot jobs – not system startup)
[2018-11-01 13:31:20] Preparing for letsencrypt …
[2018-11-01 13:31:20] Starting letsencrypt verification
Already up-to-date.
Parsing account key…
Parsing CSR…
Found domains: xxx.dyn.cc
Getting directory…
Directory found!
Registering account…
Already registered!
Creating new order…
Order created!
Verifying xxx.dyn.cc…
Traceback (most recent call last):
File “/shared/ssl/letsencrypt/acme_tiny.py”, line 198, in
main(sys.argv[1:])
File “/shared/ssl/letsencrypt/acme_tiny.py”, line 194, in main
signed_crt = get_crt(args.account_key, args.csr, args.acme_dir, log=LOGGER, CA=args.ca, disable_check=args.disable_check, directory_url=args.directory_url, contact=args.contact)
File “/shared/ssl/letsencrypt/acme_tiny.py”, line 144, in get_crt
raise ValueError(“Wrote file to {0}, but couldn’t download {1}: {2}”.format(wellknown_path, wellknown_url, e))
ValueError: Wrote file to /var/www/challenges/O3QZnjbQehv0IBeCCQ0ZfR89vm60txfUSvWeGz1UsDk, but couldn’t download http://xxx.dyn.cc/.well-known/acme-challenge/O3QZnjbQehv0IBeCCQ0ZfR89vm60txfUSvWeGz1UsDk: Error:
Url: http://xxx.dyn.cc/.well-known/acme-challenge/O3QZnjbQehv0IBeCCQ0ZfR89vm60txfUSvWeGz1UsDk
Data: None
Response Code: None
Response: <urlopen error [Errno 113] No route to host>
Traceback (most recent call last):
File “/scripts/start.py”, line 86, in
main()
File “/scripts/start.py”, line 51, in main
init_letsencrypt()
File “/scripts/bootstrap.py”, line 67, in init_letsencrypt
call(’/scripts/ssl.sh {0} {1}’.format(ssl_dir, domain))
File “/scripts/utils/init.py”, line 68, in call
return subprocess.check_call(*a, **kw)
File “/usr/lib/python2.7/subprocess.py”, line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘/scripts/ssl.sh /shared/ssl xxx.dyn.cc’ returned non-zero exit status 1
*** /scripts/start.py exited with status 1.
*** Shutting down runit daemon (PID 25)…
*** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown…
Nov 1 13:31:30 02de1ec005fc syslog-ng[18]: syslog-ng shutting down; version=‘3.5.6’
Nov 1 13:31:30 02de1ec005fc syslog-ng[18]: EOF on control channel, closing connection;
*** Killing all processes…
*** Running /etc/my_init.d/01_create_data_links.sh…
*** Running /etc/my_init.d/10_syslog-ng.init…
Nov 1 16:35:42 02de1ec005fc syslog-ng[20]: syslog-ng starting up; version=‘3.5.6’
Nov 1 16:35:43 02de1ec005fc syslog-ng[20]: EOF on control channel, closing connection;
*** Running /etc/my_init.d/99_mysql_setup.sh…
*** Running /etc/rc.local…
*** Booting runit daemon…
*** Runit started as PID 27
*** Running /scripts/start.py…
Nov 1 16:35:43 02de1ec005fc cron[34]: (CRON) INFO (pidfile fd = 3)
Nov 1 16:35:43 02de1ec005fc cron[34]: (CRON) INFO (Skipping @reboot jobs – not system startup)
[2018-11-01 16:35:43] Preparing for letsencrypt …
[2018-11-01 16:35:45] Starting letsencrypt verification
Already up-to-date.
Parsing account key…
Parsing CSR…
Found domains: xxx.dyn.cc
Getting directory…
Directory found!
Registering account…
Already registered!
Creating new order…
Order created!
Verifying xxx.dyn.cc…
Traceback (most recent call last):
File “/shared/ssl/letsencrypt/acme_tiny.py”, line 198, in
main(sys.argv[1:])
File “/shared/ssl/letsencrypt/acme_tiny.py”, line 194, in main
signed_crt = get_crt(args.account_key, args.csr, args.acme_dir, log=LOGGER, CA=args.ca, disable_check=args.disable_check, directory_url=args.directory_url, contact=args.contact)
File “/shared/ssl/letsencrypt/acme_tiny.py”, line 144, in get_crt
raise ValueError(“Wrote file to {0}, but couldn’t download {1}: {2}”.format(wellknown_path, wellknown_url, e))
ValueError: Wrote file to /var/www/challenges/O3QZnjbQehv0IBeCCQ0ZfR89vm60txfUSvWeGz1UsDk, but couldn’t download http://xxx.dyn.cc/.well-known/acme-challenge/O3QZnjbQehv0IBeCCQ0ZfR89vm60txfUSvWeGz1UsDk: Error:
Url: http://xxx.dyn.cc/.well-known/acme-challenge/O3QZnjbQehv0IBeCCQ0ZfR89vm60txfUSvWeGz1UsDk
Data: None
Response Code: None
Response: <urlopen error [Errno 113] No route to host>
Traceback (most recent call last):
File “/scripts/start.py”, line 86, in
main()
File “/scripts/start.py”, line 51, in main
init_letsencrypt()
File “/scripts/bootstrap.py”, line 67, in init_letsencrypt
call(’/scripts/ssl.sh {0} {1}’.format(ssl_dir, domain))
File “/scripts/utils/init.py”, line 68, in call
return subprocess.check_call(*a, **kw)
File “/usr/lib/python2.7/subprocess.py”, line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘/scripts/ssl.sh /shared/ssl xxx.dyn.cc’ returned non-zero exit status 1
*** /scripts/start.py exited with status 1.
*** Shutting down runit daemon (PID 27)…
*** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown…
Nov 1 16:35:54 02de1ec005fc syslog-ng[20]: syslog-ng shutting down; version=‘3.5.6’
Nov 1 16:35:54 02de1ec005fc syslog-ng[20]: EOF on control channel, closing connection;
*** Killing all processes…
*** Running /etc/my_init.d/01_create_data_links.sh…
*** Running /etc/my_init.d/10_syslog-ng.init…
Nov 1 16:40:04 02de1ec005fc syslog-ng[18]: syslog-ng starting up; version=‘3.5.6’
Nov 1 16:40:05 02de1ec005fc syslog-ng[18]: EOF on control channel, closing connection;
*** Running /etc/my_init.d/99_mysql_setup.sh…
*** Running /etc/rc.local…
*** Booting runit daemon…
*** Runit started as PID 25
*** Running /scripts/start.py…
Nov 1 16:40:05 02de1ec005fc cron[32]: (CRON) INFO (pidfile fd = 3)
Nov 1 16:40:05 02de1ec005fc cron[32]: (CRON) INFO (Skipping @reboot jobs – not system startup)
[2018-11-01 16:40:06] Preparing for letsencrypt …
[2018-11-01 16:40:06] Starting letsencrypt verification
Already up-to-date.
Parsing account key…
Parsing CSR…
Found domains: xxx.dyn.cc
Getting directory…
Directory found!
Registering account…
Already registered!
Creating new order…
Order created!
Verifying xxx.dyn.cc…
Traceback (most recent call last):
File “/shared/ssl/letsencrypt/acme_tiny.py”, line 198, in
main(sys.argv[1:])
File “/shared/ssl/letsencrypt/acme_tiny.py”, line 194, in main
signed_crt = get_crt(args.account_key, args.csr, args.acme_dir, log=LOGGER, CA=args.ca, disable_check=args.disable_check, directory_url=args.directory_url, contact=args.contact)
File “/shared/ssl/letsencrypt/acme_tiny.py”, line 144, in get_crt
raise ValueError(“Wrote file to {0}, but couldn’t download {1}: {2}”.format(wellknown_path, wellknown_url, e))
ValueError: Wrote file to /var/www/challenges/O3QZnjbQehv0IBeCCQ0ZfR89vm60txfUSvWeGz1UsDk, but couldn’t download http://xxx.dyn.cc/.well-known/acme-challenge/O3QZnjbQehv0IBeCCQ0ZfR89vm60txfUSvWeGz1UsDk: Error:
Url: http://xxx.dyn.cc/.well-known/acme-challenge/O3QZnjbQehv0IBeCCQ0ZfR89vm60txfUSvWeGz1UsDk
Data: None
Response Code: None
Response: <urlopen error [Errno 113] No route to host>
Traceback (most recent call last):
File “/scripts/start.py”, line 86, in
main()
File “/scripts/start.py”, line 51, in main
init_letsencrypt()
File “/scripts/bootstrap.py”, line 67, in init_letsencrypt
call(’/scripts/ssl.sh {0} {1}’.format(ssl_dir, domain))
File “/scripts/utils/init.py”, line 68, in call
return subprocess.check_call(*a, **kw)
File “/usr/lib/python2.7/subprocess.py”, line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘/scripts/ssl.sh /shared/ssl xxx.dyn.cc’ returned non-zero exit status 1
*** /scripts/start.py exited with status 1.
*** Shutting down runit daemon (PID 25)…
*** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown…
Nov 1 16:40:16 02de1ec005fc syslog-ng[18]: syslog-ng shutting down; version=‘3.5.6’
Nov 1 16:40:16 02de1ec005fc syslog-ng[18]: EOF on control channel, closing connection;
*** Killing all processes…


#32

Hast du die beiden Ports in deinem Router offen?


#33

Welche sollten das sein ?
443 habe ich auf die Ip des Servers weitergeleitet .


#34

Und Port 80?


#35

port 80 und 443 auf ip des servers. Keine Verbesserung


#36

Du musst nochmal den Container neu aufsetzen wegen dem ACME scheiß.


#37

okay.
sudo docker stop seafile
sudo docker rm seafile
sudo rm -rf /opt/seafile-data
und anschließend
sudo docker run -d --name seafile
-e SEAFILE_SERVER_LETSENCRYPT=true
-e SEAFILE_SERVER_HOSTNAME=meine dyn adress
-e SEAFILE_ADMIN_EMAIL=meine email adresse
-e SEAFILE_ADMIN_PASSWORD=mein passwort
-v /opt/seafile-data:/shared
-p 80:80
-p 443:443
seafileltd/seafile:latest

fette lange nummer bekommen .
Browserzugriff

Fehler: Verbindung fehlgeschlagen
mit ip , dyn und localhost


#38

Warte bitte mal nen Moment ich teste was

Du hast aber auch nie ne Meldung von nginx bekommen, oder?
Habs mal testweise aufgesetzt, hat funktioniert aber natürlich ohne Verschlüsselung.
Kannst du bitte ncohmal docker logs posten?


#39

von nginx habe ich nichts bekommen .

Ich habe jetzt zeitgleich einmal xxxx://manual.seafile.com/deploy/using_mysql.html
probiert.

mkdir haiwen
mv seafile-server_* haiwen
cd haiwen

after moving seafile-server_* to this directory

tar -xzf seafile-server_*
mkdir installed
mv seafile-server_* installed
sudo su
apt-get update
apt-get install python
apt-get install python2.7 libpython2.7 python-setuptools python-ldap python-urllib3 ffmpeg python-pip python-mysqldb python-memcache python-requests mysql-server
um filme direkt in der Weboberfläche abzuspeielen kann das noich instaliert werden.
pip install Pillow==4.3.0
pip install moviepy
exit
MariaDB fragt bei der Installation leider nicht nach einem Passwort für den Benutzer root. Dieses muss man erst setzen. Dies geht wie folgt:
sudo mysql -u root -p
Dort nacheinander folgende Befehle eingeben (‚geheim‘ muss durch ein sicheres Passwort ersetzt werden):
grant all on . to root@localhost identified by ‘geheim’ with grant option;

flush privileges;

quit;

Was jetzt passiert ist das die Weboberfläche mit https funktioniert .

Weiß jetzt aber nichtr wo der fehler war.
Will meine Doku aber so haben ads es kein zufall ist .
Wenn ich meinen Server sauber installieren kann werde ich mit sicherheit noch bei einigen meiner Freunde einen aufsetzen .
Da kann ich mit zufall nicht leben .
Werde jetzt nochmal eben ubunt neu drauf machen und so wie ich oben beschrieben habe neu aufsetzen .


#40

Im Community Manual steht doch schon die genaue Anleitung drin. Ich hoffen mal dass du für Seafile jetzt auch einen user seafile hast und den nicht unter root deployed hast. Und hast du nginx schon aufgesetzt?