rabilrbl / jiotv_go

Unlock the magic of JioTV across all your devices, without the need for the JioTV App. Crafted with love in Golang for a delightful blend of speed and efficiency! 🌟✨
https://jiotv_go.rabil.me/
Other
175 stars 55 forks source link

bug: no such file or directory in docker container from CASAOS homelab #255

Closed frankpolo closed 5 months ago

frankpolo commented 5 months ago

Bug description

Hi, First I would like to thank you for creating this . I'm able to install JIOTV in docker and run it successfully. However, I found that the after sometime (few hrs) the instance shutsdown. I have to restart the instance and it works fine again. Below is the data from Container inspector. Let me know if anything else is needed. thanks once again for developing this.

Steps to reproduce

Run the software in docker container . I'm using CASAOS and running it in my homelab.

Relevant log output

{
    "AppArmorProfile": "",
    "Args": [
        "serve",
        "--public"
    ],
    "Config": {
        "AttachStderr": true,
        "AttachStdin": false,
        "AttachStdout": true,
        "Cmd": [
            "serve",
            "--public"
        ],
        "Domainname": "",
        "Entrypoint": [
            "./jiotv_go"
        ],
        "Env": [
            "OPENAI_API_KEY=sk-xxxxxx",
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "JIOTV_PATH_PREFIX=/app/.jiotv_go"
        ],
        "ExposedPorts": {
            "5001/": {},
            "5001/tcp": {}
        },
        "Hostname": "b9f5ec5ffea4",
        "Image": "ghcr.io/rabilrbl/jiotv_go",
        "Labels": {
            "com.docker.compose.config-hash": "3984f8191c218775238297fb73769e48bbf03da041f80324f4a46ab35a21a149",
            "com.docker.compose.container-number": "1",
            "com.docker.compose.depends_on": "",
            "com.docker.compose.image": "sha256:26a7882826144730541848cca1dbcf59295723b410163616e952a3152a8e7131",
            "com.docker.compose.oneoff": "False",
            "com.docker.compose.project": "beautiful_jose",
            "com.docker.compose.project.config_files": "/var/lib/casaos/apps/beautiful_jose/docker-compose.yml",
            "com.docker.compose.project.working_dir": "/var/lib/casaos/apps/beautiful_jose",
            "com.docker.compose.replace": "3fb78ce9a7654755956f727e9663eed4a069c3120d432d7902b20cf075d9ba29",
            "com.docker.compose.service": "rabilrbl",
            "com.docker.compose.version": "",
            "org.opencontainers.image.created": "2024-01-26T16:20:46.885Z",
            "org.opencontainers.image.description": "Unlock the magic of JioTV across all your devices, without the need for the JioTV App. Crafted with love in Golang for a delightful blend of speed and efficiency! 🌟✨",
            "org.opencontainers.image.licenses": "NOASSERTION",
            "org.opencontainers.image.revision": "6af5579afe83bd71d18acb3e4c535c9abae642d3",
            "org.opencontainers.image.source": "https://github.com/rabilrbl/jiotv_go",
            "org.opencontainers.image.title": "jiotv_go",
            "org.opencontainers.image.url": "https://github.com/rabilrbl/jiotv_go",
            "org.opencontainers.image.version": "3.3.5"
        },
        "OnBuild": null,
        "OpenStdin": false,
        "StdinOnce": false,
        "Tty": false,
        "User": "",
        "Volumes": {
            "/app/.jiotv_go": {}
        },
        "WorkingDir": "/app"
    },
    "Created": "2024-01-31T03:20:36.685491125Z",
    "Driver": "overlay2",
    "ExecIDs": null,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/b7e93a74b02a5887212d7976f41006f2aa7499ba5a28f9d294a42a55cc75153f-init/diff:/var/lib/docker/overlay2/dda2bc1d082d3e6907ede2a1768f309a540bd39c30bbacb23ed14bcffa79b3fc/diff:/var/lib/docker/overlay2/1b15af14334d449403fb9022f2eae51a0fc7e48319752aebf6f89587c4ec11b7/diff:/var/lib/docker/overlay2/1178962d27ebd356482479ff8ad54d96a581d7fdd67a44ebad7b4cfc99dca849/diff",
            "MergedDir": "/var/lib/docker/overlay2/b7e93a74b02a5887212d7976f41006f2aa7499ba5a28f9d294a42a55cc75153f/merged",
            "UpperDir": "/var/lib/docker/overlay2/b7e93a74b02a5887212d7976f41006f2aa7499ba5a28f9d294a42a55cc75153f/diff",
            "WorkDir": "/var/lib/docker/overlay2/b7e93a74b02a5887212d7976f41006f2aa7499ba5a28f9d294a42a55cc75153f/work"
        },
        "Name": "overlay2"
    },
    "HostConfig": {
        "AutoRemove": false,
        "Binds": null,
        "BlkioDeviceReadBps": null,
        "BlkioDeviceReadIOps": null,
        "BlkioDeviceWriteBps": null,
        "BlkioDeviceWriteIOps": null,
        "BlkioWeight": 0,
        "BlkioWeightDevice": null,
        "CapAdd": [],
        "CapDrop": null,
        "Cgroup": "",
        "CgroupParent": "",
        "CgroupnsMode": "private",
        "ConsoleSize": [
            0,
            0
        ],
        "ContainerIDFile": "",
        "CpuCount": 0,
        "CpuPercent": 0,
        "CpuPeriod": 0,
        "CpuQuota": 0,
        "CpuRealtimePeriod": 0,
        "CpuRealtimeRuntime": 0,
        "CpuShares": 90,
        "CpusetCpus": "",
        "CpusetMems": "",
        "DeviceCgroupRules": null,
        "DeviceRequests": null,
        "Devices": null,
        "Dns": [],
        "DnsOptions": [],
        "DnsSearch": [],
        "ExtraHosts": [],
        "GroupAdd": null,
        "IOMaximumBandwidth": 0,
        "IOMaximumIOps": 0,
        "IpcMode": "private",
        "Isolation": "",
        "Links": null,
        "LogConfig": {
            "Config": {},
            "Type": "journald"
        },
        "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"
        ],
        "Memory": 2147483648,
        "MemoryReservation": 0,
        "MemorySwap": 4294967296,
        "MemorySwappiness": null,
        "Mounts": [
            {
                "Source": "/tmp/casaos-compose-app-444014518/.jiotv_go/secrets",
                "Target": "/app/secrets",
                "Type": "bind"
            }
        ],
        "NanoCpus": 0,
        "NetworkMode": "bridge",
        "OomKillDisable": null,
        "OomScoreAdj": 0,
        "PidMode": "",
        "PidsLimit": null,
        "PortBindings": {
            "5001/": [
                {
                    "HostIp": "",
                    "HostPort": "5001"
                }
            ]
        },
        "Privileged": false,
        "PublishAllPorts": false,
        "ReadonlyPaths": [
            "/proc/bus",
            "/proc/fs",
            "/proc/irq",
            "/proc/sys",
            "/proc/sysrq-trigger"
        ],
        "ReadonlyRootfs": false,
        "RestartPolicy": {
            "MaximumRetryCount": 0,
            "Name": "always"
        },
        "Runtime": "runc",
        "SecurityOpt": null,
        "ShmSize": 67108864,
        "UTSMode": "",
        "Ulimits": null,
        "UsernsMode": "",
        "VolumeDriver": "",
        "VolumesFrom": null
    },
    "HostnamePath": "/var/lib/docker/containers/b9f5ec5ffea43d89c00c5e4194a8d67119509d23f321ef5dabbcc61209dd64ac/hostname",
    "HostsPath": "/var/lib/docker/containers/b9f5ec5ffea43d89c00c5e4194a8d67119509d23f321ef5dabbcc61209dd64ac/hosts",
    "Id": "b9f5ec5ffea43d89c00c5e4194a8d67119509d23f321ef5dabbcc61209dd64ac",
    "Image": "sha256:26a7882826144730541848cca1dbcf59295723b410163616e952a3152a8e7131",
    "LogPath": "",
    "MountLabel": "",
    "Mounts": [
        {
            "Destination": "/app/secrets",
            "Mode": "",
            "Propagation": "rprivate",
            "RW": true,
            "Source": "/tmp/casaos-compose-app-444014518/.jiotv_go/secrets",
            "Type": "bind"
        },
        {
            "Destination": "/app/.jiotv_go",
            "Driver": "local",
            "Mode": "",
            "Name": "4f9d2ea4978c9e2eae5ccdcaa4efe0e0cdfc5b31468361a773c17123e9cf8f74",
            "Propagation": "",
            "RW": true,
            "Source": "/var/lib/docker/volumes/4f9d2ea4978c9e2eae5ccdcaa4efe0e0cdfc5b31468361a773c17123e9cf8f74/_data",
            "Type": "volume"
        }
    ],
    "Name": "/beautiful_jose-rabilrbl-1",
    "NetworkSettings": {
        "Bridge": "",
        "EndpointID": "",
        "Gateway": "",
        "GlobalIPv6Address": "",
        "GlobalIPv6PrefixLen": 0,
        "HairpinMode": false,
        "IPAddress": "",
        "IPPrefixLen": 0,
        "IPv6Gateway": "",
        "LinkLocalIPv6Address": "",
        "LinkLocalIPv6PrefixLen": 0,
        "MacAddress": "",
        "Networks": {
            "bridge": {
                "Aliases": null,
                "DNSNames": null,
                "DriverOpts": null,
                "EndpointID": "",
                "Gateway": "",
                "GlobalIPv6Address": "",
                "GlobalIPv6PrefixLen": 0,
                "IPAMConfig": null,
                "IPAddress": "",
                "IPPrefixLen": 0,
                "IPv6Gateway": "",
                "Links": null,
                "MacAddress": "",
                "NetworkID": "9eb076ea3f3f282c00cea0cb7a6997d9d3b226d261dac0846aca8dd8fa365980"
            }
        },
        "Ports": {},
        "SandboxID": "60a366f9d01364d440aba7f5299c69d50dc822654e026a3f32bf19b4ee6d0168",
        "SandboxKey": "/var/run/docker/netns/60a366f9d013",
        "SecondaryIPAddresses": null,
        "SecondaryIPv6Addresses": null
    },
    "Path": "./jiotv_go",
    "Platform": "linux",
    "ProcessLabel": "",
    "ResolvConfPath": "/var/lib/docker/containers/b9f5ec5ffea43d89c00c5e4194a8d67119509d23f321ef5dabbcc61209dd64ac/resolv.conf",
    "RestartCount": 0,
    "State": {
        "Dead": false,
        "Error": "no such file or directory",
        "ExitCode": 255,
        "FinishedAt": "2024-02-02T00:31:02.336036742Z",
        "OOMKilled": false,
        "Paused": false,
        "Pid": 0,
        "Restarting": false,
        "Running": false,
        "StartedAt": "2024-02-01T12:56:29.164356435Z",
        "Status": "exited"
    }
}

Screenshots or videos

No response

Solution

No response

Additional context

No response

Acknowledgements

rabilrbl commented 5 months ago

@frankpolo First of all, I do not have access to logs from JioTV Go. Please see if you could do shell access to the container and extract jiotv_go.log file from $HOME/.jiotv_go

Now, these are my assumptions, I am not familiar with your homelab server config. But I see that in a single line of error string that " no such file or directory" This is either because you have not mapped Volumes from docker appropriately or the user in docker container do not have neccessary permissions to create directory or it will be also beacuse of read-only file system.

Please review my assumptions above and for further support, please attach log files from JioTV Go next time.

Thank you

rabilrbl commented 5 months ago

Closing on stale. Re-open if required.