cmccambridge / mosquitto-unraid

Docker container for eclipse-mosquitto with unRAID ease-of-use tweaks
19 stars 7 forks source link

unRAID Docker Issue - /docker-entrypoint.sh: no such file or directory #36

Open UsamaWaheed opened 10 months ago

UsamaWaheed commented 10 months ago

Downloaded the cmccambridge/mosquitto-unraid:latest from the Apps in unRAID. The docker wouldn't start so I clicked on logs and it just says this:

exec /docker-entrypoint.sh: no such file or directory exec /docker-entrypoint.sh: no such file or directory

Press ANY KEY to close this window

Attaching screenshots of everything in case I have missed something. My docker settings: image The error in console: image File directory output: - Dont see any config file - the script that it cannot find might be the one creating it but wasnt sure. image

Please let me know if any additional information is required.

cmccambridge commented 10 months ago

Hmm... I haven't seen that failure mode before. Could you share the output of docker image inspect cmccambridge/mosquitto-unraid:latest ? Looking to confirm that you've got the latest image... Should have a sha256 starting c0ccaa5a:

# docker image inspect cmccambridge/mosquitto-unraid:latest
[
    {
        "Id": "sha256:c0ccaa5a65fb9a1f9eaedac4b92e4e7d394fa28175ce0b7ec7cb5f82c82157d2",
        "RepoTags": [
            "cmccambridge/mosquitto-unraid:beta",
            "cmccambridge/mosquitto-unraid:latest"
        ],
        "RepoDigests": [
            "cmccambridge/mosquitto-unraid@sha256:10e159e37b8c17688bcdea9b25eab5ad3f18e6ab9970866aae742611edf4ff8e"
        ],
....
UsamaWaheed commented 10 months ago

Thank you for coming back so quickly. Here is the requested info. Summary: The SHA256 match the one you showed.

root@Tower:~# docker image inspect cmccambridge/mosquitto-unraid:latest
[
    {
        "Id": "sha256:c0ccaa5a65fb9a1f9eaedac4b92e4e7d394fa28175ce0b7ec7cb5f82c82157d2",
        "RepoTags": [
            "cmccambridge/mosquitto-unraid:latest"
        ],
        "RepoDigests": [
            "cmccambridge/mosquitto-unraid@sha256:10e159e37b8c17688bcdea9b25eab5ad3f18e6ab9970866aae742611edf4ff8e"
        ],
        "Parent": "",
        "Comment": "buildkit.dockerfile.v0",
        "Created": "2023-11-28T20:22:10.766142337Z",
        "Container": "",
        "ContainerConfig": {
            "Hostname": "",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": null,
            "Cmd": null,
            "Image": "",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": null
        },
        "DockerVersion": "",
        "Author": "",
        "Config": {
            "Hostname": "",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "1883/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "VERSION=2.0.18",
                "DOWNLOAD_SHA256=d665fe7d0032881b1371a47f34169ee4edab67903b2cd2b4c083822823f4448a",
                "GPG_KEYS=A0D6EEA1DCAE49A635A3B2F0779B22DFB3E717B7",
                "LWS_VERSION=4.2.1",
                "LWS_SHA256=842da21f73ccba2be59e680de10a8cce7928313048750eb6ad73b6fa50763c51"
            ],
            "Cmd": [
                "mosquitto"
            ],
            "ArgsEscaped": true,
            "Image": "",
            "Volumes": {
                "/mosquitto/data": {},
                "/mosquitto/log": {}
            },
            "WorkingDir": "",
            "Entrypoint": [
                "/docker-entrypoint.sh"
            ],
            "OnBuild": null,
            "Labels": {
                "description": "mosquitto-unraid: Eclipse Mosquitto Broker tweaked for unRAID",
                "maintainer": "Colin McCambridge <colin@mccambridge.org>"
            }
        },
        "Architecture": "amd64",
        "Os": "linux",
        "Size": 15105427,
        "VirtualSize": 15105427,
        "GraphDriver": {
            "Data": null,
            "Name": "btrfs"
        },
        "RootFS": {
            "Type": "layers",
            "Layers": [
                "sha256:cc2447e1835a40530975ab80bb1f872fbab0f2a0faecf2ab16fbbb89b3589438",
                "sha256:14233cdf36337746978bf4c8b4e9333c775b608fd4dd32e684c493a3cfe40997",
                "sha256:b12a799fc5efcf6143bb6b88b87edc106c94877b447c0359302ca17021dc323d",
                "sha256:a08db3a9ce29d2a20b3121ceaf01a776e420d82188a4381b34cdd7b98d173799",
                "sha256:d8eec649823d1d3bf5af4b3d4e954b018af51aaf35360319c7bbecbdf05515c9",
                "sha256:3ee1224aadee5e6a9a18e99c535d358c4c3c47a98757e5f0bf73517a98114406",
                "sha256:c46326248c999e7d3af5af9f40ca944e4b5e868d2ebf1fb774f2179b46e8d989"
            ]
        },
        "Metadata": {
            "LastTagTime": "0001-01-01T00:00:00Z"
        }
    }
]

Screenshot for the same image

cmccambridge commented 10 months ago

Everything here honestly looks correct. I don't know whether Docker validates the content of downloaded images on an ongoing basis... perhaps the image is simply corrupted? I would try just deleting the image and pulling it again:

docker image rm cmccambrige/mosquitto-unraid:latest
docker pull cmccambridge/mosquitto-unraid:latest

and try it again...

Could also try to run the docker command manually from the command line to ensure that there are no hidden parameters (e.g. under the Advanced tab on the Docker config page?) that are included there that aren't captured in your screenshot.

UsamaWaheed commented 9 months ago

Hey

Followed the steps you suggested, still the same error, unfortunately :( image

cmccambridge commented 1 week ago

Hi @UsamaWaheed did you ultimately have any success with this error? I haven't seen it reproduced from my side, and forgot to follow up here.