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

[BUG] MongoDB startup #412

Closed
blackops786187 opened this issue Jul 31, 2021 · 9 comments
Closed

[BUG] MongoDB startup #412

blackops786187 opened this issue Jul 31, 2021 · 9 comments
Labels
is: bug Something isn't working

Comments

@blackops786187
Copy link

Describe the bug
Using the latest nightly fails to start the youtube dl docker image with mongo db. Have to wait until it falls back to local db

To Reproduce
Steps to reproduce the behavior:
Download nightly on windows docker (WSL2 backend and launch)

Expected behavior
Youtube dl sucessfuly starts without having to wait for fallback

Screenshots
image

Environment

  • Windows 10 21H1 - Docker with WSL2 Backend
@blackops786187 blackops786187 added the is: bug Something isn't working label Jul 31, 2021
@Tzahi12345
Copy link
Owner

Can you share your docker-compose.yml and the containers you have running? MongoDB should show up in both.

@Tzahi12345 Tzahi12345 changed the title [BUG] [BUG] MongoDB startup Jul 31, 2021
@QrchackOfficial
Copy link

I've experienced the same on my Debian-based LXC container with Docker when I tried switching to nightly yesterday.

I'm also using nginx reverse proxy, so I'm accessing youtubedl-material through ytdl.daphne.io, routed through a local DNS server that redirects ytdl.daphne.io -> daphne.io (via CNAME) -> local IP (via DNS record) on the browser side. I believe this can get the mongodb stuff confused, as I specifically removed all published ports from the container and instead route it through nginx. This means both the hostname and the IP in my browser is definitely not the hostname and IP of the container, or even the server running docker that the container it's in.

That said, it is working for me on latest for some reason. Had to switch back from nightly to get it working. It seems like it has lost data in the process though (videos show up in subscriptions, but not on the homepage)

@blackops786187
Copy link
Author

Hi Tzahi,

I'm new to docker so I'm not familiar with the intricacies of the docker system. I pulled the image down using "docker pull tzahi12345/youtubedl-material:nightly" and started it through the GUI. I have no other containers running

Hope this helps

@QrchackOfficial
Copy link

You probably want to use docker-compose instead, I suspect you've spinned up just this repo and not a mongodb to go with it. Using docker-compose you should get both the app and the db.

@Tzahi12345
Copy link
Owner

I just modified the config files so MongoDB is not in by default unless specified in the docker compose.

This should fix this issue for docker installs without compose.

@QrchackOfficial a backup was made of the users.json and db.json files, if you use those it should be fixed! Also, if you want to use the nightly you still can, you just need to set use_local_db to true in the default.json settings, and if migration already occurred, set it to false in the db.json. sorry the migration didn't go well for you, but it should be a relatively simple fix!

@QrchackOfficial
Copy link

@Tzahi12345 it's back, had to manually copy over entries from the diff, but the crisis is averted.

@Tzahi12345
Copy link
Owner

Oh nice!

Well I think this issue is resolved due to the changes in the default config, I'd like confirmation from @blackops786187 though, let me know if you still need help!

@blackops786187
Copy link
Author

Hi Tzahi,

Looks like its resolved now. Thanks

@Tzahi12345
Copy link
Owner

Awesome, great to hear!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants