Tzahi12345 / YoutubeDL-Material

Self-hosted YouTube downloader built on Material Design
MIT License
2.66k stars 275 forks source link

[BUG] Docker installation not working #850

Open OckhamOdyssey opened 1 year ago

OckhamOdyssey commented 1 year ago

Describe the bug Looks like Node.js is not listening on the exposed port. Starting the docker image just gives a connection error and no logs

To Reproduce Steps to reproduce the behavior:

  1. Download the docker-compose.yml as the setup instructions says.
  2. Execute docker compose up -d
  3. Watch how the images start downloading and the containers executes
  4. Try to access localhost:8998 and enjoy the ERR_CONNECTION_RESET error.

Expected behavior YoutubeDL-Material container starting correctly.

Environment

Other observation The mongo container has the port 27017 exposed with the default compose file, this is a security issue as it must be seen just by the youtubedl-material container.

Logs

WARN[0000] Can't retrieve logs for "mongo-db": Error response from daemon: configured logging driver does not support reading 
youtubedl-material-ytdl_material-1  | 
youtubedl-material-ytdl_material-1  | > backend@1.0.0 start
youtubedl-material-ytdl_material-1  | > pm2-runtime --raw pm2.config.js
youtubedl-material-ytdl_material-1  | 
youtubedl-material-ytdl_material-1  | 2023-03-30T13:31:37: PM2 log: Launching in no daemon mode
youtubedl-material-ytdl_material-1  | 2023-03-30T13:31:37: PM2 log: [Watch] Start watching YoutubeDL-Material
youtubedl-material-ytdl_material-1  | 2023-03-30T13:31:37: PM2 log: App [YoutubeDL-Material:0] starting in -fork mode-
youtubedl-material-ytdl_material-1  | 2023-03-30T13:31:37: PM2 log: App [YoutubeDL-Material:0] online
youtubedl-material-ytdl_material-1  | 2023-03-30T13:31:37.970Z INFO: Cannot find config file. Creating one with default values...
youtubedl-material-ytdl_material-1  | 2023-03-30T13:31:37.975Z INFO: Config items set using ENV variables.
youtubedl-material-ytdl_material-1  | 2023-03-30T13:31:38.100Z INFO: Beginning migration: 4.1->4.2+
youtubedl-material-ytdl_material-1  | 2023-03-30T13:31:38.109Z INFO: 4.1->4.2+ migration complete!
youtubedl-material-ytdl_material-1  | 2023-03-30T13:31:38.109Z INFO: Beginning migration: 4.2->4.3+
youtubedl-material-ytdl_material-1  | 2023-03-30T13:31:38.112Z INFO: 4.2->4.3+ migration complete!
youtubedl-material-ytdl_material-1  | 2023-03-30T13:31:38.112Z INFO: Checking if tasks manager role permissions exist for admin user...
youtubedl-material-ytdl_material-1  | 2023-03-30T13:31:38.112Z INFO: Task manager permissions check complete!
youtubedl-material-ytdl_material-1  | 2023-03-30T13:31:38.113Z INFO: Restarting server...
youtubedl-material-ytdl_material-1  | 2023-03-30T13:31:38: PM2 log: App [YoutubeDL-Material:0] exited with code [1] via signal [SIGINT]
youtubedl-material-ytdl_material-1  | 2023-03-30T13:31:38: PM2 log: App [YoutubeDL-Material:0] starting in -fork mode-
youtubedl-material-ytdl_material-1  | 2023-03-30T13:31:38: PM2 log: App [YoutubeDL-Material:0] online
youtubedl-material-ytdl_material-1  | 2023-03-30T13:31:38.668Z INFO: Config items set using ENV variables.
Tzahi12345 commented 1 year ago

Try this:

curl localhost:8998

What's the response? This is likely a network issue on your end

brakdag commented 1 year ago

I just try this with a low resource server, and get AVX problem with mongodb5+, then i changed mongodb form :4 to :3 and no had idea. I revised docker logs, but in youtubedl there was nothing, and then i just went to take a cup of coffe and, me i returned, te app was working.