petio-team / petio

Petio Request, Discover, Review
https://petio.tv
MIT License
253 stars 28 forks source link

Petio Setup won't connect to MongoDB - no saslprep library specified #542

Closed dom6770 closed 2 years ago

dom6770 commented 3 years ago

During the setup, the MongoDB connection test fails. Logfile shows:

2021-08-26 13:47:30 info: API: testing mongo connection: mongodb://petio:asdf@DockerServer:53035 (node:7092) [MONGODB DRIVER] Warning: Warning: no saslprep library specified. Passwords will not be sanitized

Same Connection string works with MongoDB Compass on the same machine as Petio itself. Test-NetConnection DockerServer -Port 53035 is also successful, so a connection issue isn't the problem.

Petio version 0.5.2-alpha Operatin System: Windows Server 2022

MongoDB version 5.0.2 running as docker container with host network directly listening on 53035.

edit: Switched to MongoDB 4.4.8, no difference.

dom6770 commented 3 years ago

I think you've misunderstood my environment, or my explanation isn't quite right. 😄

I have 2 VMs: 1) Windows Server 2022 w/ Plex, Sonarr, Radarr and Petio running (I want to keep all Plex related apps on one machine) 2) Debian 11 w/ Docker and a MongoDB container for Petio

After some discussion and troubleshooting on the Discord server, I ended up disabling authentication on my MongoDB instance and letting Petio connect to it without any username and password, because there might be a problem with connection strings with passwords. A Dev on Discord said it's an issue between them and mongoose.