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

Error after restart #151

Closed
Calimerorulez opened this issue Nov 3, 2020 · 6 comments
Closed

Error after restart #151

Calimerorulez opened this issue Nov 3, 2020 · 6 comments

Comments

@Calimerorulez
Copy link

Calimerorulez commented Nov 3, 2020

Hi,

I just restarted my container, because it was still at 4.5, but now I'm erroring out:

[ INFO ] Verifying if the DSMR web credential variables have been set...
[ INFO ] Verifying if DSMR_RELEASE has been set correctly!
[ INFO ] Fixing /dev/ttyUSB* security...
[ INFO ] Removing existing PID files...
[ INFO ] Creating log directory...
[ INFO ] Using the latest release.
[ INFO ] Either the current release is out of sync, or no version has been installed yet! Installing null...
/dsmr /

--2020-11-03 21:49:32--  https://github.com/dennissiemensma/dsmr-reader/archive/null.tar.gz

Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently

Location: https://github.com/dsmrreader/dsmr-reader/archive/null.tar.gz [following]

--2020-11-03 21:49:32--  https://github.com/dsmrreader/dsmr-reader/archive/null.tar.gz

Reusing existing connection to github.com:443.

HTTP request sent, awaiting response... 302 Found


Location: https://codeload.github.com/dsmrreader/dsmr-reader/tar.gz/null [following]


--2020-11-03 21:49:32--  https://codeload.github.com/dsmrreader/dsmr-reader/tar.gz/null


Resolving codeload.github.com (codeload.github.com)... 140.82.121.10
Connecting to codeload.github.com (codeload.github.com)|140.82.121.10|:443... connected.

HTTP request sent, awaiting response... 404 Not Found

2020-11-03 21:49:33 ERROR 404: Not Found.

tar: can't open 'null.tar.gz': No such file or directory


/


cp: can't stat '/dsmr/dsmrreader/provisioning/django/settings.py.template': No such file or directory

ERROR: Could not open requirements file: [Errno 2] No such file or directory: '/dsmr/dsmrreader/provisioning/requirements/base.txt'


WARNING: You are using pip version 20.2.2; however, version 20.2.4 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.

Collecting psycopg2

Downloading psycopg2-2.8.6.tar.gz (383 kB)

Building wheels for collected packages: psycopg2
Building wheel for psycopg2 (setup.py): started

I deleted the old container, pulled the most recent image, and recreated the container, but no luck :(

Please help?

@Calimerorulez
Copy link
Author

Calimerorulez commented Nov 3, 2020

Update:

'curl -Ssl 'https://api.github.com/repos/dsmrreader/dsmr-reader/releases/latest' | jq -r .tag_name'

geeft bij mij wel v4.6.0 en niet null

@ghost
Copy link

ghost commented Nov 4, 2020

dsmrreader/dsmr-reader#1174

@xirixiz
Copy link
Owner

xirixiz commented Nov 4, 2020

You can't just restart the container, you need to remove it. After that you need to download and run the updated Docker image in a container.

docker pull xirixiz/dsmr-reader-docker

@xirixiz xirixiz closed this as completed Nov 4, 2020
@xirixiz
Copy link
Owner

xirixiz commented Nov 4, 2020

dsmrreader/dsmr-reader#1174

This is indeed done in the new Docker image 😃

@Calimerorulez
Copy link
Author

Calimerorulez commented Nov 4, 2020

Nou ja, ik had een

docker stop dsmr
docker rm dsmr
docker rmi xirixiz/dsmr-reader-docker

en mijn docker-compose gedraaid, dat werkte niet.

Zojuist nogmaals geprobeerd, alleen bestaat de tag latest-amd64 niet meer sinds net (?), dus gebruik ik nu geen tag meer.

ERROR: manifest for xirixiz/dsmr-reader-docker:latest-amd64 not found: manifest unknown: manifest unknown

Stappen hierboven herhaald, en nu werkt het :)

@xirixiz
Copy link
Owner

xirixiz commented Nov 4, 2020

Klopt de tags zijn aangepast, update on startup bleek in de praktijk voor problemen/verschillen te zorgen. Ik ben dus weer overgestapt op immutable/version releases. Wanneer je latest gebruikt is dat automatisch de laatste versie van DSMR en het is meteen valide voor meerdere architecturen.

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

No branches or pull requests

2 participants