Skip to content

ENOENT error when running stremio-server #440

@SilverGreen93

Description

@SilverGreen93

Hi,

I just compiled this repository as per the instructions in DEBIAN.md file, but when I run the application, Stremio client starts fine, but the server crashes with this error:

Node.js v18.19.1
Cannot update settings ENOENT: no such file or directory, open '/home/mihai/.stremio-server/server-settings.json'
(node:2420) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
node:events:495
      throw er; // Unhandled 'error' event
      ^

Error: Invalid JSON (Unexpected "O" at position 2 in state STOP)
    at proto.charError (/home/mihai/sources/stremio-shell/build/server.js:72954:42)
    at proto.write (/home/mihai/sources/stremio-shell/build/server.js:72971:102)
    at Stream.<anonymous> (/home/mihai/sources/stremio-shell/build/server.js:72851:20)
    at stream.write (/home/mihai/sources/stremio-shell/build/server.js:73121:26)
    at Socket.ondata (node:internal/streams/readable:809:22)
    at Socket.emit (node:events:517:28)
    at Socket.emit (node:domain:489:12)
    at addChunk (node:internal/streams/readable:368:12)
    at readableAddChunk (node:internal/streams/readable:341:9)
    at Readable.push (node:internal/streams/readable:278:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
Emitted 'error' event on Stream instance at:
    at Stream.onerror (node:internal/streams/readable:828:14)
    at Stream.emit (node:events:517:28)
    at Stream.emit (node:domain:489:12)
    at parser.onError (/home/mihai/sources/stremio-shell/build/server.js:72899:20)
    at proto.charError (/home/mihai/sources/stremio-shell/build/server.js:72954:34)
    at proto.write (/home/mihai/sources/stremio-shell/build/server.js:72971:102)
    [... lines matching original stack trace ...]
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)

I tried creating the json file manually, but then I get other errors about json.
I checked and I do have permissions on my own home folder and I compiled it as my user, not as root, exactly following the instructions.

My system is Kubuntu 24.04 arm64 and I also do not use proxy/vpn.

What should I try to do?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions