ChatDeBlofeld / seafile-arm-docker-base

https://hub.docker.com/r/franchetti/seafile-arm
Apache License 2.0
14 stars 5 forks source link

The current version of python is not 3.x.x, please use Python 3.x.x . #35

Closed vulcain65 closed 1 year ago

vulcain65 commented 2 years ago

hello, in my rock64 debian the container seafile have the init error:

2022-10-07T20:35:11+02:00 [Init] Cleaning media folder
2022-10-07T20:35:12+02:00 [Init] Exposing media folder in the volume
ln: failed to create symbolic link './seafile-server-9.0.9/seahub/media': File exists
2022-10-07T20:36:16+02:00 [Entrypoint] Local time set to Europe/Paris
2022-10-07T20:36:16+02:00 [Entrypoint] Checking permissions

my .env :

PUID=1000
PGID=1000
TZ=Europe/Paris
URL=rock64
SEAFILE_ADMIN_EMAIL=***************
SEAFILE_ADMIN_PASSWORD=**********
USE_HTTPS=0
MYSQL_HOST=db
MYSQL_USER_PASSWD=secret
MYSQL_ROOT_PASSWD=secret
SEAFILE_CONF_DIR=./seafile/conf
SEAFILE_LOGS_DIR=./seafile/logs
SEAFILE_DATA_DIR=./seafile/seafile-data
SEAFILE_SEAHUB_DIR=./seafile/seahub-data
DATABASE_DIR=./db
SEAFILE_SQLITE_DIR=./seafile/sqlite
SWAG_DIR=./swag
ChatDeBlofeld commented 2 years ago

Hi, have you cleaned a previous install and used the former container to start a new initialization? Instead, just recreate it and everything should be fine.

I'll fix this in an upcoming version.

vulcain65 commented 2 years ago

i have remove containers/images/volume but error exist

ChatDeBlofeld commented 2 years ago

Can you please provide the logs of the seafile container? If you've cloned the repository with default name, command should be docker logs seafile-arm-docker-seafile-1

vulcain65 commented 2 years ago
rock64@rock64:/data/docker/config$ git clone https://github.com/ChatDeBlofeld/seafile-arm-docker
# Cloning into 'seafile-arm-docker'...
# remote: Enumerating objects: 264, done.
# remote: Counting objects: 100% (8/8), done.
# remote: Total 264 (delta 7), reused 7 (delta 7), pack-reused 256
# Receiving objects: 100% (264/264), 39.16 KiB | 0 bytes/s, done.
# Resolving deltas: 100% (147/147), done.
rock64@rock64:/data/docker/config$ cd seafile-arm-docker/
rock64@rock64:/data/docker/config/seafile-arm-docker$ cat /etc/debian_version 
# 9.13
rock64@rock64:/data/docker/config/seafile-arm-docker$ docker -v
# Docker version 19.03.15, build 99e3ed8
rock64@rock64:/data/docker/config/seafile-arm-docker$ uname -a
# Linux rock64 4.4.132-1075-rockchip-ayufan-ga83beded8524 #1 SMP Thu Jul 26 08:22:22 UTC 2018 aarch64 GNU/Linux
rock64@rock64:/data/docker/config/seafile-arm-docker$ docker ps -a|grep seafile
rock64@rock64:/data/docker/config/seafile-arm-docker$ docker images -a|grep seafile
rock64@rock64:/data/docker/config/seafile-arm-docker$ docker volume ls |grep seafile
rock64@rock64:/data/docker/config/seafile-arm-docker$ cp ../seafile/.env .
rock64@rock64:/data/docker/config/seafile-arm-docker$ cat .env
# SQLITE=0
# NOSWAG=1
# NOSWAG_PORT=99
# PUID=1000
# PGID=1000
# TZ=Europe/Paris
# #URL=seafile.b.emdayo.fr
# URL=rock64
# SEAFILE_ADMIN_EMAIL=admin@server.fr
# SEAFILE_ADMIN_PASSWORD=password
# USE_HTTPS=0
# MYSQL_HOST=db
# MYSQL_USER_PASSWD=secret
# MYSQL_ROOT_PASSWD=secret
# SEAFILE_CONF_DIR=./seafile/conf
# SEAFILE_LOGS_DIR=./seafile/logs
# SEAFILE_DATA_DIR=./seafile/seafile-data
# SEAFILE_SEAHUB_DIR=./seafile/seahub-data
# DATABASE_DIR=./db
# SEAFILE_SQLITE_DIR=./seafile/sqlite
# SWAG_DIR=./swag
rock64@rock64:/data/docker/config/seafile-arm-docker$ ls
# README.md            compose.proxy.common.yml  compose.proxy.swag.yml      compose.seafile.mariadb.yml  compose.sh
# compose.mariadb.yml  compose.proxy.noswag.yml  compose.seafile.common.yml  compose.seafile.sqlite.yml   nginx
rock64@rock64:/data/docker/config/seafile-arm-docker$ ./compose.sh up -d
# + docker-compose -f compose.seafile.common.yml -f compose.proxy.common.yml -f compose.seafile.mariadb.yml -f compose.mariadb.yml -f compose.proxy.noswag.yml up -d
# Creating network "seafile-arm-docker_seafile" with the default driver
# Creating volume "seafile-arm-docker_media" with default driver
# Pulling seafile (franchetti/seafile-arm:)...
# latest: Pulling from franchetti/seafile-arm
# 00f50047d606: Pull complete
# 556118b89880: Pull complete
# 182cca8159e0: Pull complete
# ec1fd8b401d8: Pull complete
# 364a8af2facb: Pull complete
# a383e58325bd: Pull complete
# ced9acdbd6e7: Pull complete
# Digest: sha256:24f2af475d33bb0f9343919094d2b05774097695d0a0c77d8507272daf92abba
# Status: Downloaded newer image for franchetti/seafile-arm:latest
# Creating seafile-arm-docker_reverse-proxy_1 ... done
# Creating seafile-arm-docker_db_1            ... done
# Creating seafile-arm-docker_seafile_1       ... done
rock64@rock64:/data/docker/config/seafile-arm-docker$ docker ps -a|grep seafile
#759a133cd902        linuxserver/mariadb                    "/init"                   36 seconds ago      Up 22 seconds               3306/tcp                                                                   seafile-arm-docker_db_1
#aacd405adb3a        franchetti/seafile-arm                 "/docker_entrypoint.…"    36 seconds ago      Up 19 seconds                                                                                          seafile-arm-docker_seafile_1
#2bf9563c045b        nginx                                  "/docker-entrypoint.…"    36 seconds ago      Up 14 seconds               0.0.0.0:99->80/tcp                                                         seafile-arm-docker_reverse-proxy_1
rock64@rock64:/data/docker/config/seafile-arm-docker$ docker images -a|grep seafile
# franchetti/seafile-arm          latest              15ac5c6500ca        2 weeks ago         407MB
rock64@rock64:/data/docker/config/seafile-arm-docker$ docker volume ls |grep seafile
# local               seafile-arm-docker_media
rock64@rock64:/data/docker/config/seafile-arm-docker$ docker logs  -f seafile-arm-docker_seafile_1|tail -n 15
# 2022-10-09T10:19:05+02:00 [Init] Cleaning media folder
# 2022-10-09T10:19:06+02:00 [Init] Exposing media folder in the volume
# ln: failed to create symbolic link './seafile-server-9.0.9/seahub/media': File exists
# 2022-10-09T10:19:37+02:00 [Entrypoint] Local time set to Europe/Paris
# 2022-10-09T10:19:37+02:00 [Entrypoint] Checking permissions
# 2022-10-09T10:19:37+02:00 [Entrypoint] Adjusting identifiers
# usermod: no changes
# 2022-10-09T10:19:38+02:00 [Entrypoint] No config found. Running init script
# 2022-10-09T10:19:39+02:00 [Init] Setting default environment
# 2022-10-09T10:19:39+02:00 [Init] Using MySQL/MariaDB setup
# 2022-10-09T10:19:39+02:00 [Init] Auto mode detected
# 2022-10-09T10:19:39+02:00 [Init] Waiting for db
# 2022-10-09T10:19:39+02:00 [Init] Cleaning media folder
# 2022-10-09T10:19:40+02:00 [Init] Exposing media folder in the volume
# ln: failed to create symbolic link './seafile-server-9.0.9/seahub/media': File exists
rock64@rock64:/data/docker/config/seafile-arm-docker$ 
vulcain65 commented 2 years ago
rock64@rock64:/data/docker/config/seafile-arm-docker$ ls -R
# .:
# README.md            compose.proxy.common.yml  compose.proxy.swag.yml      compose.seafile.mariadb.yml  compose.sh  nginx
# compose.mariadb.yml  compose.proxy.noswag.yml  compose.seafile.common.yml  compose.seafile.sqlite.yml   db          seafile
# 
# ./db:
# custom.cnf  databases  log
# 
# ./db/databases:
# 759a133cd902.err  aria_log.00000001  aria_log_control  ib_buffer_pool  ib_logfile0  ibdata1  ibtmp1  multi-master.info  mysql  mysql_upgrade_info  performance_schema
# 
# ./db/databases/mysql:
# column_stats.MAD  event.MAI        gtid_slave_pos.frm  help_topic.MAD          plugin.MAI        roles_mapping.MAD  table_stats.frm            time_zone_name.MAI
# column_stats.MAI  event.frm        gtid_slave_pos.ibd  help_topic.MAI          plugin.frm        roles_mapping.MAI  tables_priv.MAD            time_zone_name.frm
# column_stats.frm  func.MAD         help_category.MAD   help_topic.frm          proc.MAD          roles_mapping.frm  tables_priv.MAI            time_zone_transition.MAD
# columns_priv.MAD  func.MAI         help_category.MAI   index_stats.MAD         proc.MAI          servers.MAD        tables_priv.frm            time_zone_transition.MAI
# columns_priv.MAI  func.frm         help_category.frm   index_stats.MAI         proc.frm          servers.MAI        time_zone.MAD              time_zone_transition.frm
# columns_priv.frm  general_log.CSM  help_keyword.MAD    index_stats.frm         procs_priv.MAD    servers.frm        time_zone.MAI              time_zone_transition_type.MAD
# db.MAD            general_log.CSV  help_keyword.MAI    innodb_index_stats.frm  procs_priv.MAI    slow_log.CSM       time_zone.frm              time_zone_transition_type.MAI
# db.MAI            general_log.frm  help_keyword.frm    innodb_index_stats.ibd  procs_priv.frm    slow_log.CSV       time_zone_leap_second.MAD  time_zone_transition_type.frm
# db.frm            global_priv.MAD  help_relation.MAD   innodb_table_stats.frm  proxies_priv.MAD  slow_log.frm       time_zone_leap_second.MAI  transaction_registry.frm
# db.opt            global_priv.MAI  help_relation.MAI   innodb_table_stats.ibd  proxies_priv.MAI  table_stats.MAD    time_zone_leap_second.frm  transaction_registry.ibd
# event.MAD         global_priv.frm  help_relation.frm   plugin.MAD              proxies_priv.frm  table_stats.MAI    time_zone_name.MAD         user.frm
# 
# ./db/databases/performance_schema:
# db.opt
# 
# ./db/log:
# mysql
# 
# ./db/log/mysql:
# mariadb-bin.000001  mariadb-bin.000002  mariadb-bin.000003  mariadb-bin.index
# 
# ./nginx:
# seafile.conf  seafile.noswag.conf
# 
# ./seafile:
# conf  logs  seafile-data  seahub-data
# 
# ./seafile/conf:
# 
# ./seafile/logs:
# 
# ./seafile/seafile-data:
# 
# ./seafile/seahub-data:
# 
ChatDeBlofeld commented 2 years ago

Please don't tail ahah.

The symlink just doesn't exist until the container restarts for whatever reason I can't figure out. The first initialization could be helpful.

vulcain65 commented 2 years ago

rock64@rock64:/data/docker/config/seafile-arm-docker$ docker logs -f seafile-arm-docker_seafile_1

2022-10-09T10:17:03+02:00 [Entrypoint] Local time set to Europe/Paris
2022-10-09T10:17:03+02:00 [Entrypoint] Checking permissions
2022-10-09T10:17:03+02:00 [Entrypoint] Adjusting identifiers
usermod: no changes
2022-10-09T10:17:06+02:00 [Entrypoint] Changing owner for /shared/conf
2022-10-09T10:17:06+02:00 [Entrypoint] Changing owner for /shared/logs
2022-10-09T10:17:06+02:00 [Entrypoint] Changing owner for /shared/media
2022-10-09T10:17:06+02:00 [Entrypoint] Changing owner for /shared/seafile-data
2022-10-09T10:17:06+02:00 [Entrypoint] Changing owner for /shared/seahub-data
2022-10-09T10:17:06+02:00 [Entrypoint] No config found. Running init script
2022-10-09T10:17:08+02:00 [Init] Setting default environment
2022-10-09T10:17:08+02:00 [Init] Using MySQL/MariaDB setup
2022-10-09T10:17:08+02:00 [Init] Auto mode detected
2022-10-09T10:17:08+02:00 [Init] Waiting for db
Still waiting... Is [db:3306] reachable from within the container?
2022-10-09T10:17:24+02:00 [Init] Cleaning media folder
2022-10-09T10:17:24+02:00 [Init] Exposing media folder in the volume
2022-10-09T10:17:31+02:00 [Init] Running installation script
Checking python on this machine ...

The current version of python is not 3.x.x, please use Python 3.x.x .

Error occured during setup. 
Please fix possible problems and run the script again.

2022-10-09T10:17:31+02:00 [Init] Installation failed. Maybe the db wasn't really ready?
2022-10-09T10:17:31+02:00 [Init] Cleaning failed configuration
2022-10-09T10:17:31+02:00 [Init] Waiting for db... again
2022-10-09T10:17:31+02:00 [Init] Cleaning old databases
2022-10-09T10:17:32+02:00 [Init] Retrying install
Checking python on this machine ...

The current version of python is not 3.x.x, please use Python 3.x.x .

Error occured during setup. 
Please fix possible problems and run the script again.

2022-10-09T10:17:41+02:00 [Entrypoint] Local time set to Europe/Paris
2022-10-09T10:17:41+02:00 [Entrypoint] Checking permissions
2022-10-09T10:17:41+02:00 [Entrypoint] Adjusting identifiers
usermod: no changes
2022-10-09T10:17:42+02:00 [Entrypoint] No config found. Running init script
2022-10-09T10:17:42+02:00 [Init] Setting default environment
2022-10-09T10:17:42+02:00 [Init] Using MySQL/MariaDB setup
2022-10-09T10:17:42+02:00 [Init] Auto mode detected
2022-10-09T10:17:42+02:00 [Init] Waiting for db
2022-10-09T10:17:42+02:00 [Init] Cleaning media folder
2022-10-09T10:17:43+02:00 [Init] Exposing media folder in the volume
ln: failed to create symbolic link './seafile-server-9.0.9/seahub/media': File exists
2022-10-09T10:17:51+02:00 [Entrypoint] Local time set to Europe/Paris
2022-10-09T10:17:51+02:00 [Entrypoint] Checking permissions
2022-10-09T10:17:51+02:00 [Entrypoint] Adjusting identifiers
usermod: no changes
2022-10-09T10:17:51+02:00 [Entrypoint] No config found. Running init s
vulcain65 commented 2 years ago

rock64@rock64:/data/docker/config/seafile-arm-docker$ ./compose.sh ps

               Name                             Command               State         Ports       
------------------------------------------------------------------------------------------------
seafile-arm-docker_db_1              /init                            Up      3306/tcp          
seafile-arm-docker_reverse-proxy_1   /docker-entrypoint.sh ngin ...   Up      0.0.0.0:99->80/tcp
seafile-arm-docker_seafile_1         /docker_entrypoint.sh            Up

rock64@rock64:/data/docker/config/seafile-arm-docker$ docker stop seafile-arm-docker_seafile_1

seafile-arm-docker_seafile_1

rock64@rock64:/data/docker/config/seafile-arm-docker$ ./compose.sh ps

+ docker-compose -f compose.seafile.common.yml -f compose.proxy.common.yml -f compose.seafile.mariadb.yml -f compose.mariadb.yml -f compose.proxy.noswag.yml ps
               Name                             Command                State           Ports       
---------------------------------------------------------------------------------------------------
seafile-arm-docker_db_1              /init                            Up         3306/tcp          
seafile-arm-docker_reverse-proxy_1   /docker-entrypoint.sh ngin ...   Up         0.0.0.0:99->80/tcp
seafile-arm-docker_seafile_1         /docker_entrypoint.sh            Exit 127

rock64@rock64:/data/docker/config/seafile-arm-docker$ date

Sun Oct  9 12:55:26 CEST 2022

rock64@rock64:/data/docker/config/seafile-arm-docker$ date

Sun Oct  9 12:59:23 CEST 2022

rock64@rock64:/data/docker/config/seafile-arm-docker$ docker start seafile-arm-docker_seafile_1

seafile-arm-docker_seafile_1

rock64@rock64:/data/docker/config/seafile-arm-docker$ docker logs -f seafile-arm-docker_seafile_1

2022-10-09T12:54:10+02:00 [Init] Using MySQL/MariaDB setup
2022-10-09T12:54:10+02:00 [Init] Auto mode detected
2022-10-09T12:54:10+02:00 [Init] Waiting for db
2022-10-09T12:54:10+02:00 [Init] Cleaning media folder
2022-10-09T12:54:11+02:00 [Init] Exposing media folder in the volume
ln: failed to create symbolic link './seafile-server-9.0.9/seahub/media': File exists
/docker_entrypoint.sh: line 10: ./seafile-server-latest/seahub.sh: No such file or directory
2022-10-09T12:59:42+02:00 [Entrypoint] Local time set to Europe/Paris
2022-10-09T12:59:42+02:00 [Entrypoint] Checking permissions
2022-10-09T12:59:42+02:00 [Entrypoint] Adjusting identifiers
usermod: no changes
2022-10-09T12:59:44+02:00 [Entrypoint] No config found. Running init script
2022-10-09T12:59:44+02:00 [Init] Setting default environment
2022-10-09T12:59:44+02:00 [Init] Using MySQL/MariaDB setup
2022-10-09T12:59:44+02:00 [Init] Auto mode detected
2022-10-09T12:59:44+02:00 [Init] Waiting for db
2022-10-09T12:59:45+02:00 [Init] Cleaning media folder
2022-10-09T12:59:46+02:00 [Init] Exposing media folder in the volume
ln: failed to create symbolic link './seafile-server-9.0.9/seahub/media': File exists
2022-10-09T12:59:58+02:00 [Entrypoint] Local time set to Europe/Paris
2022-10-09T12:59:58+02:00 [Entrypoint] Checking permissions
2022-10-09T12:59:58+02:00 [Entrypoint] Adjusting identifiers
usermod: no changes
2022-10-09T12:59:59+02:00 [Entrypoint] No config found. Running init script
2022-10-09T12:59:59+02:00 [Init] Setting default environment
2022-10-09T12:59:59+02:00 [Init] Using MySQL/MariaDB setup
2022-10-09T12:59:59+02:00 [Init] Auto mode detected
2022-10-09T12:59:59+02:00 [Init] Waiting for db
2022-10-09T13:00:00+02:00 [Init] Cleaning media folder
2022-10-09T13:00:01+02:00 [Init] Exposing media folder in the volume
ln: failed to create symbolic link './seafile-server-9.0.9/seahub/media': File exists
2022-10-09T13:00:13+02:00 [Entrypoint] Local time set to Europe/Paris
2022-10-09T13:00:13+02:00 [Entrypoint] Checking permissions
2022-10-09T13:00:13+02:00 [Entrypoint] Adjusting identifiers
usermod: no changes
2022-10-09T13:00:14+02:00 [Entrypoint] No config found. Running init script
2022-10-09T13:00:14+02:00 [Init] Setting default environment
2022-10-09T13:00:14+02:00 [Init] Using MySQL/MariaDB setup
2022-10-09T13:00:14+02:00 [Init] Auto mode detected
2022-10-09T13:00:14+02:00 [Init] Waiting for db
2022-10-09T13:00:15+02:00 [Init] Cleaning media folder
2022-10-09T13:00:15+02:00 [Init] Exposing media folder in the volume
ln: failed to create symbolic link './seafile-server-9.0.9/seahub/media': File exists
2022-10-09T13:00:23+02:00 [Entrypoint] Local time set to Europe/Paris
2022-10-09T13:00:23+02:00 [Entrypoint] Checking permissions
2022-10-09T13:00:23+02:00 [Entrypoint] Adjusting identifiers
usermod: no changes
2022-10-09T13:00:25+02:00 [Entrypoint] No config found. Running init script
2022-10-09T13:00:25+02:00 [Init] Setting default environment
2022-10-09T13:00:25+02:00 [Init] Using MySQL/MariaDB setup
2022-10-09T13:00:25+02:00 [Init] Auto mode detected
2022-10-09T13:00:25+02:00 [Init] Waiting for db
2022-10-09T13:00:25+02:00 [Init] Cleaning media folder
2022-10-09T13:00:26+02:00 [Init] Exposing media folder in the volume
ln: failed to create symbolic link './seafile-server-9.0.9/seahub/media': File exists
2022-10-09T13:00:35+02:00 [Entrypoint] Local time set to Europe/Paris
2022-10-09T13:00:35+02:00 [Entrypoint] Checking permissions
2022-10-09T13:00:35+02:00 [Entrypoint] Adjusting identifiers
usermod: no changes
2022-10-09T13:00:36+02:00 [Entrypoint] No config found. Running init script
2022-10-09T13:00:36+02:00 [Init] Setting default environment
2022-10-09T13:00:36+02:00 [Init] Using MySQL/MariaDB setup
2022-10-09T13:00:36+02:00 [Init] Auto mode detected
2022-10-09T13:00:36+02:00 [Init] Waiting for db
2022-10-09T13:00:36+02:00 [Init] Cleaning media folder
2022-10-09T13:00:37+02:00 [Init] Exposing media folder in the volume
ln: failed to create symbolic link './seafile-server-9.0.9/seahub/media': File exists
ChatDeBlofeld commented 2 years ago

OK thanks, here we are:

2022-10-09T10:17:31+02:00 [Init] Running installation script
Checking python on this machine ...

The current version of python is not 3.x.x, please use Python 3.x.x .

Error occured during setup. 
Please fix possible problems and run the script again.

This is obviously a total non-sense. You can try to exec the following:

docker exec seafile-arm-docker-seafile-1 which python3 
docker exec seafile-arm-docker-seafile-1 python3 --version

Expected:

docker exec seafile-arm-docker-seafile-1 which python3                                                           
# /usr/bin/python3
docker exec seafile-arm-docker-seafile-1 python3 --version
# Python 3.10.4
vulcain65 commented 2 years ago

i stop, franchetti/seafile-arm is in error

thank you for your help

rock64@rock64:/data/docker/config/seafile/seafile$ docker run --rm  --name seafile \
>              -v /data/docker/config/seafile/seafile/data/:/shared \
>              -p 8000:8000 -p 8001:8082 \
>              -e PUID=1000 -e PGID=1000 \
>              -e TZ=Europe/Paris \
>              -e SERVER_IP=191.168.1.22 \
>              -e USE_HTTPS=0 \
>              -e SEAFILE_ADMIN_EMAIL=me@my.domain \
>              -e SEAFILE_ADMIN_PASSWORD=secret \
>              -e SQLITE=1 \
>              franchetti/seafile-arm
2022-10-09T21:33:26+02:00 [Entrypoint] Local time set to Europe/Paris
2022-10-09T21:33:26+02:00 [Entrypoint] Checking permissions
2022-10-09T21:33:26+02:00 [Entrypoint] Adjusting identifiers
usermod: no changes
2022-10-09T21:33:28+02:00 [Entrypoint] No config found. Running init script
2022-10-09T21:33:28+02:00 [Init] Setting default environment
2022-10-09T21:33:28+02:00 [Init] Using SQLite setup
2022-10-09T21:33:28+02:00 [Init] Auto mode detected
2022-10-09T21:33:28+02:00 [Init] Cleaning media folder
2022-10-09T21:33:28+02:00 [Init] Exposing media folder in the volume
2022-10-09T21:33:29+02:00 [Init] Running installation script
Checking packages needed by seafile ...

Checking python on this machine ...

The current version of python is not 3.x.x, please use Python 3.x.x .

Error occured during setup. 
Please fix possible issues and run the script again.

2022-10-09T21:33:29+02:00 [Init] Something went wrong
rock64@rock64:/data/docker/config/seafile/seafile$ 
ChatDeBlofeld commented 2 years ago

Fair enough :) I honestly can't see where does this come from. Updating might works (your kernel reached EOL and the docker version is quite old) but I can't guarantee it will solve anything nonetheless.

ChatDeBlofeld commented 1 year ago

Closing this since tech stack is fairly outdated.