nightscout / nightscout.github.io

website, meta repo for whole project
GNU General Public License v2.0
104 stars 228 forks source link

error while opening app #162

Closed akvareli2 closed 1 year ago

akvareli2 commented 1 year ago

Errors occurred during startup:

Unable to setup authorization {"stack":"MongoError: user is not allowed to do action [find] on [test.auth_roles] at MessageStream.messageHandler (/app/node_modules/mongodb/lib/cmap/connection.js:266:20) at MessageStream.emit (node:events:513:28) at processIncomingData (/app/node_modules/mongodb/lib/cmap/message_stream.js:144:12) at MessageStream._write (/app/node_modules/mongodb/lib/cmap/message_stream.js:42:5) at writeOrBuffer (node:internal/streams/writable:391:12) at _write (node:internal/streams/writable:332:10) at MessageStream.Writable.write (node:internal/streams/writable:336:10) at TLSSocket.ondata (node:internal/streams/readable:754:22) at TLSSocket.emit (node:events:513:28) at addChunk (node:internal/streams/readable:315:12)","message":"user is not allowed to do action [find] on [test.auth_roles]","ok":0,"code":8000,"codeName":"AtlasError","name":"MongoError"} tempImageeIdtq0

Знімок екрана 2022-10-20 о 11 45 01
psonnera commented 1 year ago

Which database are you using?

akvareli2 commented 1 year ago

Mongo DB

psonnera commented 1 year ago

You mean Atlas?

akvareli2 commented 1 year ago

this

Знімок екрана 2022-10-20 о 13 12 14
psonnera commented 1 year ago

Perfect, can you check your database user has all rights? https://nightscout.github.io/troubleshoot/atlas/#mongodb-in-read-only-mode

akvareli2 commented 1 year ago

I added admin rights. Now everything is fine. Thanks a lot!

psonnera commented 1 year ago

Great!