nVentiveUX / docker-ttrss

A multiarch docker image for Tiny Tiny RSS feed reader
https://hub.docker.com/r/nventiveux/ttrss/
19 stars 6 forks source link

Python error pyinit_main: can't initialize time on arm version #16

Closed kaiminator closed 3 years ago

kaiminator commented 3 years ago

Error starting arm version via docker run

docker run \
  --name ttrss \
  -e TZ="Europe/Berlin" \
  -e TTRSS_DB_TYPE="mysql" \
  -e TTRSS_DB_HOST="192.168.1.20" \
  -e TTRSS_DB_USER="tt-rss_user" \
  -e TTRSS_DB_PASS="$PASSWORD" \
  -e TTRSS_DB_NAME="tt-rss" \
  -e TTRSS_DB_PORT="3307" \
  -e TTRSS_SELF_URL_PATH="$URL" \
  -p 8000:80 \
  --network public_net \
  --ip 10.10.200.14 \
  -v /var/lib/docker/volumes/tt-rss:/config \
  nventiveux/ttrss-arm32v6:master

Error:

[07:37:36/8] Lock: update.lock
[07:37:36/8] Database schema is already at latest version.
Fatal Python error: pyinit_main: can't initialize time
Python runtime state: core initialized
PermissionError: [Errno 1] Operation not permitted

Current thread 0xb6fb0390 (most recent call first):
<no Python frame>

DB is MariaDB on an Baremetal Host. Docker runs on Raspberry Pi4

bigbrozer commented 3 years ago

Hi @kaiminator, This could be related to libseccomp2 version you are using on host (rpi4).

Thanks !

kaiminator commented 3 years ago

Hi @bigbrozer

thank you for your fast reply. Docker Host is a Rpi4 with Raspian based on buster

Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster

Linux docker1 5.10.17-v7l+ #1421 SMP Thu May 27 14:00:13 BST 2021 armv7l GNU/Linux

`root@docker1:~/create_docker_environment# apt-cache policy libseccomp2

libseccomp2: Installiert: 2.3.3-4 Installationskandidat: 2.3.3-4 Versionstabelle: *** 2.3.3-4 500 500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages 100 /var/lib/dpkg/status `

kaiminator commented 3 years ago

Update:

following your hint and updating libseccomp2

`wget http://ftp.us.debian.org/debian/pool/main/libs/libseccomp/libseccomp2_2.5.1-1_armhf.deb

sudo dpkg -i libseccomp2_2.5.1-1_armhf.deb`

the container is now running.

Thank you for your support

bigbrozer commented 3 years ago

You're welcome ! There is a nice explanation here and a set of available options about this issue. Seems I will have to test differently and maybe refactor the image to think about arm64 :smile: