Tzahi12345 / YoutubeDL-Material

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

[BUG] unable to get it working #1080

Closed hereisderek closed 10 months ago

hereisderek commented 10 months ago

Describe the bug It used to work with local database, after trying to integrate mongo db i'm now not able to get it to work again, even a clean deploy without remote db

To Reproduce Steps to reproduce the behavior: normal docker deployment

Expected behavior A clear and concise description of what you expected to happen.

Screenshots image

Environment

logs:

2024-01-19T10:51:55: PM2 log: Launching in no daemon mode
2024-01-19T10:51:55: PM2 log: [Watch] Start watching YoutubeDL-Material
2024-01-19T10:51:55: PM2 log: App [YoutubeDL-Material:0] starting in -fork mode-
2024-01-19T10:51:55: PM2 log: App [YoutubeDL-Material:0] online
2024-01-18T21:52:00.439Z INFO: Cannot find config file. Creating one with default values...
2024-01-18T21:52:00.470Z INFO: Config items set using ENV variables.
(node:37) DeprecationWarning: uuidv4() is deprecated. Use v4() from the uuid module instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
2024-01-18T21:52:00.581Z INFO: Beginning migration: 4.1->4.2+
2024-01-18T21:52:00.624Z INFO: 4.1->4.2+ migration complete!
2024-01-18T21:52:00.625Z INFO: Beginning migration: 4.2->4.3+
2024-01-18T21:52:00.652Z INFO: 4.2->4.3+ migration complete!
2024-01-18T21:52:00.653Z INFO: Checking if tasks manager role permissions exist for admin user...
2024-01-18T21:52:00.657Z INFO: Task manager permissions check complete!
2024-01-18T21:52:00.658Z INFO: Checking if archives have been migrated...
2024-01-18T21:52:00.663Z INFO: Archives migration complete!
2024-01-18T21:52:00.711Z INFO: Restarting server...
2024-01-19T10:52:00: PM2 log: App [YoutubeDL-Material:0] exited with code [1] via signal [SIGINT]
2024-01-19T10:52:00: PM2 log: App [YoutubeDL-Material:0] starting in -fork mode-
2024-01-19T10:52:00: PM2 log: App [YoutubeDL-Material:0] online
2024-01-18T21:52:06.571Z INFO: Config items set using ENV variables.
(node:48) DeprecationWarning: uuidv4() is deprecated. Use v4() from the uuid module instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
2024-01-18T21:52:08.937Z INFO: YoutubeDL-Material v4.3.2 started on PORT 17442
 /opt docker inspect youtubedl
[
    {
        "Id": "b30a1f64409587f835c9a640a8de44e6c9522c932b977e0ca9df9c502ed15208",
        "Created": "2024-01-18T21:51:51.436689423Z",
        "Path": "/app/entrypoint.sh",
        "Args": [
            "npm",
            "start"
        ],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 2115585,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2024-01-18T21:51:52.44992066Z",
            "FinishedAt": "0001-01-01T00:00:00Z"
        },
        "Image": "sha256:fc4aeb996febe4ffd2783f053f7d8916d8052a81bc18c6294a63c30798d7a3e6",
        "ResolvConfPath": "/var/lib/docker/containers/b30a1f64409587f835c9a640a8de44e6c9522c932b977e0ca9df9c502ed15208/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/b30a1f64409587f835c9a640a8de44e6c9522c932b977e0ca9df9c502ed15208/hostname",
        "HostsPath": "/var/lib/docker/containers/b30a1f64409587f835c9a640a8de44e6c9522c932b977e0ca9df9c502ed15208/hosts",
        "LogPath": "/var/lib/docker/containers/b30a1f64409587f835c9a640a8de44e6c9522c932b977e0ca9df9c502ed15208/b30a1f64409587f835c9a640a8de44e6c9522c932b977e0ca9df9c502ed15208-json.log",
        "Name": "/youtubedl",
        "RestartCount": 0,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "docker-default",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "/mnt:/mnt:rw",
                "/mnt/unionfs/downloads:/downloads:rw",
                "/etc/timezone:/etc/timezone:ro",
                "/opt/youtubedl/appdata:/app/appdata:rw",
                "/opt/youtubedl/users:/app/users:rw",
                "/mnt/unionfs/Media/youtubedl/audio:/app/audio:rw",
                "/mnt/unionfs/Media/youtubedl/video:/app/video:rw",
                "/mnt/unionfs/Media/youtubedl/subscriptions:/app/subscriptions:rw"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {
                    "max-file": "3",
                    "max-size": "10m"
                }
            },
            "NetworkMode": "saltbox",
            "PortBindings": {},
            "RestartPolicy": {
                "Name": "unless-stopped",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "ConsoleSize": [
                0,
                0
            ],
            "CapAdd": [],
            "CapDrop": null,
            "CgroupnsMode": "private",
            "Dns": null,
            "DnsOptions": null,
            "DnsSearch": null,
            "ExtraHosts": [],
            "GroupAdd": null,
            "IpcMode": "private",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": [],
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": null,
            "BlkioDeviceReadBps": null,
            "BlkioDeviceWriteBps": null,
            "BlkioDeviceReadIOps": null,
            "BlkioDeviceWriteIOps": null,
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": [],
            "DeviceCgroupRules": null,
            "DeviceRequests": null,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": null,
            "PidsLimit": null,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "MaskedPaths": [
                "/proc/asound",
                "/proc/acpi",
                "/proc/kcore",
                "/proc/keys",
                "/proc/latency_stats",
                "/proc/timer_list",
                "/proc/timer_stats",
                "/proc/sched_debug",
                "/proc/scsi",
                "/sys/firmware",
                "/sys/devices/virtual/powercap"
            ],
            "ReadonlyPaths": [
                "/proc/bus",
                "/proc/fs",
                "/proc/irq",
                "/proc/sys",
                "/proc/sysrq-trigger"
            ],
            "Init": false
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/abe9a75a81dcfb49ae498b4ba5366f31b61430a005d1431cb6dab9b23baaa1bc-init/diff:/var/lib/docker/overlay2/557852d19dc0c03e6d2152b94c4ed52074d9b56527605c6b486f9ba375a8dd11/diff:/var/lib/docker/overlay2/3d1bd60434b215ee0af76b4d054b292ab8673a7f04c2452bc0328f8e98a365dd/diff:/var/lib/docker/overlay2/d7566e0c4b39fc262fc62832b05a2f35643f9134f9a604d8d56234609098e05d/diff:/var/lib/docker/overlay2/40a65967fc589cb36a4489b7e46f4ee28a1511be4d5cac3febe9fa1b658535be/diff:/var/lib/docker/overlay2/83b845954357abce8a14338330082d030f6e637257e641f769462fbcd0f140e1/diff:/var/lib/docker/overlay2/81fefee0b38bee2edb52eb948ebdb6f681cb307d87aa617bbccaa198f468810d/diff:/var/lib/docker/overlay2/6d1450cef01c18eb42073d44d464a0b092b74bc12a09645ba6cec6ddccf66c12/diff:/var/lib/docker/overlay2/09117869cb9875597f026dda7afaa7dd833d04082948e787de1c9af638fdc424/diff:/var/lib/docker/overlay2/231df3e225c05993b362fe0eeab2900282c272c22d4f85c1de481007183ceef0/diff:/var/lib/docker/overlay2/67fab7d607ce1752d02c800affb6b6b580f2fefc815409ccc227c9c714f00152/diff:/var/lib/docker/overlay2/3c4b02643dd6af8926cf7e5663043f9a04f2ec3b88272c6bd28b024fc3212f9a/diff",
                "MergedDir": "/var/lib/docker/overlay2/abe9a75a81dcfb49ae498b4ba5366f31b61430a005d1431cb6dab9b23baaa1bc/merged",
                "UpperDir": "/var/lib/docker/overlay2/abe9a75a81dcfb49ae498b4ba5366f31b61430a005d1431cb6dab9b23baaa1bc/diff",
                "WorkDir": "/var/lib/docker/overlay2/abe9a75a81dcfb49ae498b4ba5366f31b61430a005d1431cb6dab9b23baaa1bc/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/mnt/unionfs/Media/youtubedl/audio",
                "Destination": "/app/audio",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/mnt/unionfs/Media/youtubedl/video",
                "Destination": "/app/video",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/mnt/unionfs/Media/youtubedl/subscriptions",
                "Destination": "/app/subscriptions",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/mnt",
                "Destination": "/mnt",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/mnt/unionfs/downloads",
                "Destination": "/downloads",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/etc/timezone",
                "Destination": "/etc/timezone",
                "Mode": "ro",
                "RW": false,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/opt/youtubedl/appdata",
                "Destination": "/app/appdata",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/opt/youtubedl/users",
                "Destination": "/app/users",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "youtubedl",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "17442/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "UID=1000",
                "GID=1000",
                "ytdl_use_local_db=true",
                "write_ytdl_config=true",
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "USER=youtube",
                "NO_UPDATE_NOTIFIER=true",
                "PM2_HOME=/app/pm2",
                "ALLOW_CONFIG_MUTATIONS=true"
            ],
            "Cmd": [
                "npm",
                "start"
            ],
            "Image": "tzahi12345/youtubedl-material:latest",
            "Volumes": null,
            "WorkingDir": "/app",
            "Entrypoint": [
                "/app/entrypoint.sh"
            ],
            "OnBuild": null,
            "Labels": {
                "autoheal": "true",
                "autoheal.stop.timeout": "10",
                "com.github.saltbox.saltbox_managed": "true",
                "diun.enable": "true",
                "org.opencontainers.image.created": "2023-05-27T06:39:19.872Z",
                "org.opencontainers.image.description": "Self-hosted YouTube downloader built on Material Design",
                "org.opencontainers.image.licenses": "MIT",
                "org.opencontainers.image.ref.name": "ubuntu",
                "org.opencontainers.image.revision": "13a03a722c565b7fb21bf8977765e5968afc4a0d",
                "org.opencontainers.image.source": "https://github.com/Tzahi12345/YoutubeDL-Material",
                "org.opencontainers.image.title": "YoutubeDL-Material",
                "org.opencontainers.image.url": "https://github.com/Tzahi12345/YoutubeDL-Material",
                "org.opencontainers.image.version": "4.3.2",
                "traefik.enable": "true",
                "traefik.http.routers.youtubedl-http.entrypoints": "web",
                "traefik.http.routers.youtubedl-http.middlewares": "globalHeaders@file,redirect-to-https@docker,cloudflarewarp@docker,authelia@docker",
                "traefik.http.routers.youtubedl-http.priority": "20",
                "traefik.http.routers.youtubedl-http.rule": "Host(`youtubedl.home.***`)",
                "traefik.http.routers.youtubedl-http.service": "youtubedl-http",
                "traefik.http.routers.youtubedl.entrypoints": "websecure",
                "traefik.http.routers.youtubedl.middlewares": "globalHeaders@file,secureHeaders@file,cloudflarewarp@docker,authelia@docker",
                "traefik.http.routers.youtubedl.priority": "20",
                "traefik.http.routers.youtubedl.rule": "Host(`youtubedl.home.***`)",
                "traefik.http.routers.youtubedl.service": "youtubedl",
                "traefik.http.routers.youtubedl.tls.certresolver": "cfdns",
                "traefik.http.routers.youtubedl.tls.options": "securetls@file",
                "traefik.http.services.youtubedl-http.loadbalancer.server.port": "17442",
                "traefik.http.services.youtubedl.loadbalancer.server.port": "17442"
            },
            "StopTimeout": 10
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "ce65034a62a2660ecf939a53463ef0d6b5c159f6dd35b1c2c25eef102be71438",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {
                "17442/tcp": null
            },
            "SandboxKey": "/var/run/docker/netns/ce65034a62a2",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "MacAddress": "",
            "Networks": {
                "saltbox": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": [
                        "youtubedl",
                        "b30a1f644095"
                    ],
                    "NetworkID": "a29483fe7be45ab23d20a4fa42155a3c59287bdf7209e369316466f2c337e47d",
                    "EndpointID": "190e18668b52ca8f183dda67890bb27893b12f002f40ec8a17aaaf413690ffa7",
                    "Gateway": "172.19.0.1",
                    "IPAddress": "172.19.0.25",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "02:42:ac:13:00:19",
                    "DriverOpts": null
                }
            }
        }
    }
]
hereisderek commented 10 months ago

closing as it was a misconfiguration on traefik