server-docker icon indicating copy to clipboard operation
server-docker copied to clipboard

docker run issue

Open micpro7 opened this issue 4 months ago • 1 comments

docker run -d
--name=Stremio
--network=host
-e CASTING_DISABLED=1
-v /mnt/SSD/Downloads/Stremio:/root/.stremio-server
-v /etc/localtime:/etc/localtime:ro
--restart unless-stopped
stremio/server:latest

Inside container log:

/stremio/server.js:1

^ SyntaxError: Unexpected token '<' at wrapSafe (internal/modules/cjs/loader.js:1029:16) at Module._compile (internal/modules/cjs/loader.js:1078:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10) at Module.load (internal/modules/cjs/loader.js:979:32) at Function.Module._load (internal/modules/cjs/loader.js:819:12) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12) at internal/main/run_main_module.js:17:47

micpro7 avatar Aug 10 '25 18:08 micpro7

The download_server.sh script is failing because the VERSION and BUILD variables used to construct the download URL are incorrect, leading to a 404 Not Found error. The default value for VERSION in the Dockerfile is master, and there is no file at the URL https://dl.strem.io/server/master/desktop/server.js.

To fix this, you need to edit your Dockerfile to use a specific, valid version number instead of the generic master branch.

Open your Dockerfile and change the ARG VERSION=master line to a specific version that is known to exist. A good stable version to use is v4.20.11.

micpro7 avatar Aug 14 '25 00:08 micpro7