ChatDeBlofeld / seafile-arm-docker

https://hub.docker.com/r/franchetti/seafile-arm
22 stars 6 forks source link

Installation and start seems to be okay, but no access to web #14

Closed Peter-Ries closed 1 month ago

Peter-Ries commented 1 month ago

Hi, thanks for your scripts. I could so start off to test-run seafile in my LAN on my old BananaPi.

I followed your instructions carefully and made changes to .env and seafile.noswag.conf as mentioned here: https://github.com/ChatDeBlofeld/seafile-arm-docker/issues/11#issuecomment-1416703040

Starting up the container gives me no errors, no logs, but my browser calling http://192.168.178.10 times out after minutes...

.env is

### Compose parameters

# 0: SQLite | 1: MariaDB | 2: MySQL
DBMS=0
NOSWAG=1

# Port on which the noswag nginx container is listening
# You don't have to bother about this if you use the swag version
NOSWAG_PORT=80

# Full path of the Seafile image
SEAFILE_IMAGE=franchetti/seafile-arm

### Run parameters

PUID=1000
PGID=1000
TZ=Europe/Berlin

### Init parameters

HOST=192.168.178.10
# Leave empty for 80/443
PORT=

SEAFILE_ADMIN_EMAIL=xxxxxxx@xxxxx.com
SEAFILE_ADMIN_PASSWORD=seafile_admin
USE_HTTPS=0

# You don't have to bother about this if you use SQLite
MYSQL_HOST=db
MYSQL_USER_PASSWD=secret
MYSQL_ROOT_PASSWD=secret

### Volume parameters

SEAFILE_CONF_DIR=./seafile/conf
SEAFILE_LOGS_DIR=./seafile/logs
SEAFILE_DATA_DIR=./seafile/seafile-data
SEAFILE_SEAHUB_DIR=./seafile/seahub-data

# SQLite/MariaDB/MySQL data dir
DATABASE_DIR=./db

# You don't have to bother about this if you use the noswag version
SWAG_DIR=./swag

and seafile.noswag.conf starts with this

log_format seafileformat '$http_x_forwarded_for $remote_addr [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" $upstream_response_time';

server {
    listen 80;
    server_name 192.168.178.10; # <-- Hostname of your server. Then access seahub at http://YourHostname

    proxy_set_header X-Forwarded-For $remote_addr;
...

starting docker without -d to see anything at all returns this:

+ docker-compose -f compose.seafile.common.yml -f compose.proxy.common.yml -f compose.seafile.sqlite.yml -f compose.proxy.noswag.yml down -v
Stopping seafile-arm-docker_reverse-proxy_1 ... done
Stopping seafile-arm-docker_seafile_1       ... done
Removing seafile-arm-docker_reverse-proxy_1 ... done
Removing seafile-arm-docker_seafile_1       ... done
Removing network seafile-arm-docker_seafile
Removing volume seafile-arm-docker_media
+ docker-compose -f compose.seafile.common.yml -f compose.proxy.common.yml -f compose.seafile.sqlite.yml -f compose.proxy.noswag.yml up
Creating network "seafile-arm-docker_seafile" with the default driver
Creating volume "seafile-arm-docker_media" with default driver
Creating seafile-arm-docker_seafile_1 ... done
Creating seafile-arm-docker_reverse-proxy_1 ... done
Attaching to seafile-arm-docker_seafile_1, seafile-arm-docker_reverse-proxy_1
seafile_1        | 2024-07-10 19:49:52 [Entrypoint] Local time set to Europe/Berlin
reverse-proxy_1  | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
seafile_1        | 2024-07-10 19:49:52 [Entrypoint] Checking permissions
seafile_1        | 2024-07-10 19:49:52 [Entrypoint] Adjusting identifiers
seafile_1        | usermod: no changes
reverse-proxy_1  | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
seafile_1        | 2024-07-10 19:49:53 [Entrypoint] Changing owner for /shared/media
seafile_1        | 2024-07-10 19:49:53 [Bind] Making symlink to latest version
seafile_1        | 2024-07-10 19:49:53 [Bind] Binding media folder with the volume
seafile_1        | 2024-07-10 19:49:53 [Bind] Binding internal configuration and data folders with the volume
seafile_1        | 2024-07-10 19:49:53 [Entrypoint] Running launch script
reverse-proxy_1  | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
seafile_1        | 2024-07-10 19:49:53 [Launch] Removing outdated media folder
seafile_1        | 2024-07-10 19:49:53 [Launch] Exposing new media folder in the volume
seafile_1        | 2024-07-10 19:49:57 [Launch] Properly expose avatars and custom assets
reverse-proxy_1  | 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
seafile_1        | 2024-07-10 19:49:57 [Launch] Launching seafile
seafile_1        | 
reverse-proxy_1  | 10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
reverse-proxy_1  | /docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh
reverse-proxy_1  | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
reverse-proxy_1  | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
reverse-proxy_1  | /docker-entrypoint.sh: Configuration complete; ready for start up
reverse-proxy_1  | 2024/07/10 17:49:57 [notice] 1#1: using the "epoll" event method
reverse-proxy_1  | 2024/07/10 17:49:57 [notice] 1#1: nginx/1.27.0
reverse-proxy_1  | 2024/07/10 17:49:57 [notice] 1#1: built by gcc 12.2.0 (Debian 12.2.0-14) 
reverse-proxy_1  | 2024/07/10 17:49:57 [notice] 1#1: OS: Linux 6.6.36-current-sunxi
reverse-proxy_1  | 2024/07/10 17:49:57 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
reverse-proxy_1  | 2024/07/10 17:49:57 [notice] 1#1: start worker processes
reverse-proxy_1  | 2024/07/10 17:49:57 [notice] 1#1: start worker process 29
reverse-proxy_1  | 2024/07/10 17:49:57 [notice] 1#1: start worker process 30
seafile_1        | Starting seafile server, please wait ...
seafile_1        | ** Message: 19:49:58.059: seafile-controller.c(621): No seafevents.
seafile_1        | 
seafile_1        | Seafile server started
seafile_1        | 
seafile_1        | Done.
seafile_1        | 
seafile_1        | LANG is not set in ENV, set to en_US.UTF-8
seafile_1        | LC_ALL is not set in ENV, set to en_US.UTF-8
seafile_1        | ./seafile-server-latest/seahub.sh: line 199: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
seafile_1        | Starting seahub at port 8000 ...
seafile_1        | 
seafile_1        | Seahub is started
seafile_1        | 
seafile_1        | Done.
seafile_1        | 
seafile_1        | 2024-07-10 19:50:09 [Launch] Done
seafile_1        | 2024-07-10 19:50:09 [Entrypoint] Waiting for termination

seafile.log has kind of these entries:

2024-07-10 19:49:58 ../common/seaf-utils.c(328): Use database sqlite
2024-07-10 19:49:58 http-server.c(199): fileserver: worker_threads = 10
2024-07-10 19:49:58 http-server.c(213): fileserver: fixed_block_size = 8388608
2024-07-10 19:49:58 http-server.c(228): fileserver: web_token_expire_time = 3600
2024-07-10 19:49:58 http-server.c(243): fileserver: max_indexing_threads = 1
2024-07-10 19:49:58 http-server.c(258): fileserver: max_index_processing_threads= 3
2024-07-10 19:49:58 http-server.c(280): fileserver: cluster_shared_temp_file_mode = 600
2024-07-10 19:50:02 start to serve on pipe client

docker stats show reverse_proxy_1 and seafile_1 running

I'm clueless where to start analyzing without errors or logs. Do you have any ideas?

Thx!!

ChatDeBlofeld commented 1 month ago

Hi, this is indeed confusing. Just tried your config and it works fine.

What I can think of is an aggressive https redirection from your browser, shouldn't be the default though (at least for what I can see on Firefox and Chromium), but maybe you have some extension like https everywhere that could interfere?

Then come the stupid questions, but is the server reachable (I guess it should since you've probably opened a ssh connection)? Any firewall or something? Sorry but I can't help much more, everything seems absolutely normal to me...

Peter-Ries commented 1 month ago

Thanks for your reply. I just tried directly from the box with "lxny http://localhost:80"... No luck, no log. If at least some log would tell me what's happening...

It's a fresh instal of Armbian (debian bookwork) firewall is not in place.

If I find a solution I'll post it here.

Peter-Ries commented 1 month ago

https://forum.armbian.com/topic/490-docker-on-armbian/?do=findComment&comment=197459