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

dhermanns/rpi-nightscout:latest keeps restarting #10

Closed
Parallello opened this issue Dec 26, 2018 · 9 comments
Closed

dhermanns/rpi-nightscout:latest keeps restarting #10

Parallello opened this issue Dec 26, 2018 · 9 comments

Comments

@Parallello
Copy link

Parallello commented Dec 26, 2018

(Hi there. First of all a shoutout to the developer for giving so many people around the world a chance to have this low-cost solution to an otherwise complicated problem. Big thumbs up !)

I have an RPi 3 that has been hosting a nightscout instance for a friend of mine since last August.
I noticed the webpage was down this afternoon. The "dhermanns/rpi-nightscout:latest"-container is stuck in a restart loop.

I see this in the logfile:

Setting up new connection to MongoDB
the server/replset/mongos options are deprecated, all their options are supported at the top level of the options object [poolSize,ssl,sslValidate,sslCA,sslCert,sslKey,sslPass,sslCRL,autoReconnect,noDelay,keepAlive,connectTimeoutMS,family,socketTimeoutMS,reconnectTries,reconnectInterval,ha,haInterval,replicaSet,secondaryAcceptableLatencyMS,acceptableLatencyMS,connectWithNoPrimary,authSource,w,wtimeout,j,forceServerObjectId,serializeFunctions,ignoreUndefined,raw,bufferMaxEntries,readPreference,pkFactory,promiseLibrary,readConcern,maxStalenessSeconds,loggerLevel,logger,promoteValues,promoteBuffers,promoteLongs,domainsEnabled,keepAliveInitialDelay,checkServerIdentity,validateOptions,appname,auth]
GIT HEAD 9f7de63
Successfully established a connected to MongoDB
Mongo Storage system ready
/home/node/app/node_modules/mongodb/lib/mongo_client.js:433
throw err
^

SyntaxError: Error parsing /home/node/app/node_modules/jsonwebtoken/package.json: Unexpected token � in JSON at position 1042
at JSON.parse ()
at readPackage (module.js:116:52)
at tryPackage (module.js:126:13)
at Function.Module._findPath (module.js:208:20)
at Function.Module._resolveFilename (module.js:525:25)
at Function.Module._load (module.js:476:23)
at Module.require (module.js:568:17)
at require (internal/module.js:11:18)
at Object. (/home/node/app/lib/authorization/index.js:4:11)
at Module._compile (module.js:624:30)

I will admit I tried an apt-get update && upgrade right before the troubles started. This spits out:
The following packages have unmet dependencies: docker-ce-cli : Breaks: docker-ce (< 5:18.09) but 18.06.1~ce~3-0~raspbian is installed

Thanks for taking the time to look into this !

@dhermanns
Copy link
Owner

dhermanns commented Dec 26, 2018 via email

@Parallello
Copy link
Author

Right. I see.

Is it possible to 'extract' the API-tokens for the different devices that have been allowed access to the website and reuse them on the new installation ? Are they saved in the /var/lib/docker/overlay2/... somewhere ?

@dhermanns
Copy link
Owner

dhermanns commented Dec 29, 2018 via email

@mallert0
Copy link

mallert0 commented May 6, 2020

Hi, is it possible to upgrade nightscout from 10.3 to 13.0.1 using your way?
Maybe you can update like from 0.9 to 0.10.3..
Btw, Thanks for your description. It helps us a lot to handle our 2 years daughter Diabetes Type1...
many Thanks

@dhermanns
Copy link
Owner

dhermanns commented May 6, 2020 via email

@mallert0
Copy link

mallert0 commented May 7, 2020

Should be? But it is still on 0.10.3.1, when i try to reinstall like in your desciption?

@dhermanns
Copy link
Owner

If you modify the Dockerfile it should wird with later versions, too. If you have a look here:
https://hub.docker.com/r/dhermanns/rpi-nightscout/tags

If got it running using nightscout 0.12.4. If I'll find some time, I will update to the latest version...

Did you try to use 0.12.4 instead of latest? I will have to link latest to 0.12.4. Looks like it points to an older version right now.

@mallert0
Copy link

mallert0 commented May 7, 2020

Tried to update to 0.12.4, what worked for me, but is it possible that there is a forwarding directly to https ? This is not working for me :/ Pulled 0.12.4 but opening then the website didnt work because of https

@dhermanns
Copy link
Owner

No - not from the docker file. All that's done here is:
https://github.com/dhermanns/rpi-nightscout/blob/master/Dockerfile

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

3 participants