Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init_interp_main: can't initialize time #175

Closed
RoboMagus opened this issue Feb 23, 2021 · 5 comments
Closed

init_interp_main: can't initialize time #175

RoboMagus opened this issue Feb 23, 2021 · 5 comments
Assignees
Labels

Comments

@RoboMagus
Copy link

After updating my dsmr-reader container last weekend, the application remains unavailable.
After reverting to the previous version the issue is resolved.

Setup/Architecture information

Running on Raspberry PI 4B

Version of the Docker image

xirixiz/dsmr-reader-docker:latest
(Resolved when reverting to xirixiz/dsmr-reader-docker:latest-v4.11.0-arm32v7)

Configuration

  dsmr-reader:
    image: xirixiz/dsmr-reader-docker:latest
    container_name: dsmr-reader
    hostname: dsmr-reader
    restart: unless-stopped
    networks:
      - default
    depends_on:
      - dsmrdb
    volumes:
      - ./Volumes/dsmr-reader/backups:/dsmr/backups
    environment:
      - DJANGO_TIME_ZONE=Europe/Amsterdam
      - DJANGO_DATABASE_USER=dsmrreader

Describe the bug

After updating dsmr-reader base image to the latest version last weekend, the application remains down.
There's a permission error: init_interp_main: can't initialize time

Debug log


[ INFO ] Removing existing PID files...
[ INFO ] Creating log directory...
[ INFO ] Fixing /dev/ttyUSB* security...
[ INFO ] Verifying if the DSMR web credential variables have been set...
[ INFO ] Verifying database connectivity to host: dsmrdb with port: 5432...
: getaddrinfo: Try again
: getaddrinfo: Try again
Testing database connectivity: 1 second(s) of 30 seconds...
Testing database connectivity: 2 second(s) of 30 seconds...
[ INFO ] Database connectivity successfully verified!
[ INFO ] Running post configuration...
Fatal Python error: init_interp_main: can't initialize time
Python runtime state: core initialized
PermissionError: [Errno 1] Operation not permitted

Current thread 0xb6fd2390 (most recent call first):
<no Python frame>
Fatal Python error: init_interp_main: can't initialize time
Python runtime state: core initialized
PermissionError: [Errno 1] Operation not permitted

Current thread 0xb6f01390 (most recent call first):
<no Python frame>
Fatal Python error: init_interp_main: can't initialize time
Python runtime state: core initialized
PermissionError: [Errno 1] Operation not permitted

Current thread 0xb6fe5390 (most recent call first):
<no Python frame>
[ INFO ] Checking for NGINX SSL configuration...
[ INFO ] ENABLE_NGINX_SSL is disabled, nothing to see here. Continuing...
[ INFO ] Checking for HTTP AUTHENTICATION configuration...
[ INFO ] ENABLE_HTTP_AUTH is disabled, nothing to see here. Continuing...
[ INFO ] Configuring DSMR in standlone datalogger mode....
[ INFO ] Starting supervisord...
[ INFO ] Logfiles can be found at: /var/log/supervisor/*.log and /tmp/supervisord.log
Fatal Python error: pyinit_main: can't initialize time
Python runtime state: core initialized
PermissionError: [Errno 1] Operation not permitted

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

@RoboMagus
Copy link
Author

I see now that an issue that I thought was unrelated is describing the exact same issues:
Duplicate of #173

@PeterEIER
Copy link

PeterEIER commented Feb 24, 2021

experiencing this error also with the latest build/container. Solution for now, install previous version and all will be working fine again.

@xirixiz
Copy link
Owner

xirixiz commented Feb 25, 2021

Today I'll deploy a new release based on Debian. Probabaly at the end of the day as I need to work first :)

@xirixiz xirixiz closed this as completed Feb 25, 2021
@xirixiz
Copy link
Owner

xirixiz commented Feb 25, 2021

Images based on Debian are now available (development tag). Please verify and let me know if eveything is working properly again so I can proceed and create a PR to the master branch and build new "production" releases.
https://hub.docker.com/r/xirixiz/dsmr-reader-docker/tags?page=1&ordering=last_updated&name=development-v4.12.0

@PeterEIER
Copy link

PeterEIER commented Feb 25, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants