Yooooomi / your_spotify

Self hosted Spotify tracking dashboard
GNU General Public License v3.0
2.77k stars 110 forks source link

How to upgrade Mongo? #276

Open chrisg991 opened 12 months ago

chrisg991 commented 12 months ago

I have been successfully running mongodb 4.4.10. When I changed my docker-compose file to mongodb 6, the Docker container will not start, giving me exit code 62.

A bit of googling suggests that this is because I have not upgraded my database to support mongo 6. Is this something that I can do within your_spotify in order to retain my data, or would I have to create a fresh install and request my privacy data from Spotify and reimport it to your_spotify?

Thank you

Yooooomi commented 12 months ago

Hello! Did you follow this to upgrade your mongodb database?

chrisg991 commented 12 months ago

I didn't, but I will! Thank you for bringing this to my attention

chrisg991 commented 12 months ago

Hello! Did you follow this to upgrade your mongodb database?

I've. tried this and got exit code 62 again when starting with mongo 6.0. Version 5.0 seemed to work fine. Does it take a while for the upgrade to take place? (By that I mean, should I leave it running as version 5.0 for some time to allow it to upgrade the database?)

Yooooomi commented 10 months ago

Hello, sorry for the delay. The upgrade should be done in seconds. Are you still having trouble?

chrisg991 commented 9 months ago

No worries!

Yes, I'm still having the same problem. I had pinned it at mongo:5 and it was working fine but I have just tried mongo:6.0 again today and the mongo container is still exiting with error code 62, as before.