zhad3 / zrenderer

A renderer for Ragnarok Online sprites
MIT License
43 stars 14 forks source link

Fail to listen on localhost:11011 #49

Open rickborges93 opened 1 month ago

rickborges93 commented 1 month ago

Hi, how are you?

I'm trying to install in my VPS using Ubuntu 22.04. All the process is OK, all installation is OK, but I'm getting an error.

This error occours everytime I run the command ./zrenderer-server with ou without params.

Dub and ldc2 version: image

Error: image

Log: image

And that's is the folder was generated: image

Could you help me with this error, please?

Thank you :)

zhad3 commented 3 weeks ago

Hi @rickborges93, I am bit confused in the first screenshot it says it cannot listen to any interface but on the second it does state that it listened on localhost:11011.

Anyhow my first guess would be insufficient privileges to bind to interfaces. Does this also occur when you run the command as admin via sudo ./zrenderer-server?

rickborges93 commented 3 weeks ago

Hi @zhad3, thank you for reply.

It doesn't matter how param I use with the command, always throw me that same error: image

I can't use "sudo" because I installed this project in a docker container and I don't have this command in the bash. image

I've copied the error alert:

[main(----) WRN] Failed to listen on localhost:11011 object.Exception@/root/.dub/packages/vibe-d/0.9.6/vibe-d/http/vibe/http/server.d(2091): Failed to listen for incoming HTTP connections on any of the supplied interfaces. ??:? pure @safe noreturn std.exception.bailOut!(Exception).bailOut(immutable(char)[], ulong, scope const(char)[]) [0x55f9725187d0] ??:? @safe vibe.http.server.HTTPListener vibe.http.server.listenHTTPPlain(vibe.http.server.HTTPServerSettings, void delegate(vibe.http.server.HTTPServerRequest, vibe.http.server.HTTPServerResponse) @safe) [0x55f97260f0b0] ??:? _Dmain [0x55f9724a0190]

That's weird because I'm trying to get a result using the container console, nothing is more localhost than this to be necessary to make an other configuration.

Do you have another idea I can investigate and solve this problem?

Thank you.

zhad3 commented 2 weeks ago

Ah you're trying to run it in a docker container. Is there a reason you cannot use the image https://github.com/zhad3/zrenderer?tab=readme-ov-file#docker ?

Does it work if you run it not with localhost but with 0.0.0.0? zrenderer-server --hosts 0.0.0.0