fanyx / docker-tmserver

Docker image for simple or customizable Trackmania Nations/United Forever server
https://hub.docker.com/r/fanyx/tmserver
GNU General Public License v3.0
17 stars 6 forks source link

jfreu.lite.php seems to be conflicting with jfreu.plugin.php #8

Open UncleEnk opened 2 months ago

UncleEnk commented 2 months ago

Keep getting the following error whenever I try to run the server:

trackmania_tmserver | Fatal error: Cannot redeclare init_jfreu() (previously declared in /var/lib/xaseco/plugins/jfreu.lite.php:48) in /var/lib/xaseco/plugins/jfreu.plugin.php on line 283 or in docker desktop: image I have tried to blacklist jfreu.lite.php (though instructions unclear on how to blacklist, so it may not have come into effect). I have tried to delete jfreu.lite.php. But this error is just inescapable.

The server keeps crashing, or restarting, or both, and I think this is why. Thanks for any help you can give.

fanyx commented 2 months ago

what does your blacklist file look like? it should look like this (assuming you want to disable jfreu.lite and keep the other two enabled):

jfreu.lite.php

maybe the blank line at the end is relevant, im not sure, i had some issues with it in the past that arent resolved tbh

that file should be mounted like in the example docker-compose.yaml i provided...

fanyx commented 2 months ago

deleting the file from the running container wont do any good, as the plugins.xml file XAseco reads from gets created on container boot by the xaseco/bin/plugins.sh script

UncleEnk commented 2 months ago

My blacklist.txt (should the file ending be txt, or should it be a binary?) file looks like what you showed. I'm not sure how I am supposed to mount it, I've just been doing docker compose up -d whenever I make a modification. I just un-deleted (not sure how I'm supposed to say that) the file. Thanks for the help btw.

Edit: Just deleted the docker image, then created it again so that it's up to date, still getting error.

fanyx commented 2 months ago

oh yeah it's supposed to be without .txt (but a text file basically) idk why i did things inconsistently

mount path has to be /var/lib/xaseco/blacklist

UncleEnk commented 2 months ago

Is there any way to just remove the plugin? The blacklist isn't working at all for me.