Cannot get docker to work at all

You can get help here if Freeciv doesn't start on your computer, or if you keep getting fatal errors while playing etc.
Post Reply
mickomoo
Posts: 1
Joined: Wed Nov 19, 2025 3:02 am

Cannot get docker to work at all

Post by mickomoo »

I'm trying to get a containerized version of freeciv / freeciv-web working on my local linux server on a macvlan docker. I'm new to networking but have been learning as part of my homelab for about a year. I wanted to host games on my LAN for my friends, but this has proven frustrating.

I've gotten the web UI to load, but every time I start a singleplayer game I get this "error: Unable to communicate with civclientlauncher servlet . Error: error null." I also don't even see UI elements to start a multiplayer game. And the Play By Mail doesn't work, and I haven't even gotten around to troubleshooting why.

Some things I've tried are:
1. Editing the config.dist and changing it to "config" I added:
- The FCW host as 127.0.0.1:8080 thinking that'd help connect to tomcat
- Tomcat credentials
- DB credentials
- Mail server credentials
But none of these except tomcat and DB credentials populate in configuration.sh when the container is running. I can't even tell if things like the FCW host and mail server credentials are being used in the container.

2. I thought this was an Nginx issue so I tried playing around with the proxy records, that didn't help. Mainly edited a "deny all" rule for the metaserver.

3. I tried to modify the dockerfile to ensure that permissions were right on scripts.

None of these things helped. From what I can tell here's what's happening:

1. Service starts everything initializes except for the play by mail service. Starting a game from the UI causes the error null.
2. Within about 3 minutes, I get this error in publite: "Freeciv-web port 6007 was terminated by signal 1"
3. Shortly after: "Error: Publite2 is unable to connect to Freeciv-web metaserver on http://localhost/freeciv-web/meta/metaserver, error[Errno 111] Connection refused"
4. The container 502s trying to access the UI gets me to an Nginx 502 error page.

I'm kind of at the limits of navigating this, I'm kind of not able to find and read logs that would help me understand better what's failing and why.
cazfi
Elite
Posts: 3413
Joined: Tue Jan 29, 2013 6:54 pm

Re: Cannot get docker to work at all

Post by cazfi »

Do you really need freeciv-web? Setting up regular freeciv server would be much much simpler.
Post Reply