I run a server on Ubuntu Linux 20.04.
I use a custom UserDataFolder location to keep all mods, prefabs and other configs out of the 7DaysToDie installation folder.
This should mean that I have a single Mods folder and when I do everything starts and runs fine.
Two of the major server manager mods (ServerTools and Botman) have a bug in them whereby they recreate the Mods folder inside the server installation, I have contacted the developers and they are aware of the issue.
The fact that they have this bug in them has raised what I believe is a separate bug in the way 7Days loads mods. (possibly only those with DLLs, not 100% sure about that)
It seems that when the two Mods folders exist 7DaysToDie is searching both locations for mods to add, good idea. However it seems to duplicate mods in the list to be loaded.
The duplication takes place even when the mod in question is only installed in one of the Mods folders.
This is evidenced by the the attached log.
It is more evident with mods such as allocs webserver and CPM which open ports for a web api. With the mods being loaded twice they attempt to open ports twice and that obviously fails.
The snippet of log that is of interest is this piece (full log below):
[CSMM_Patrons] Error in Web.ctor: System.Net.HttpListenerException (0x80004005): Prefix already in use.
at System.Net.EndPointListener.AddSpecial (System.Collections.ArrayList coll, System.Net.ListenerPrefix prefix) [0x00039] in <6fcfdd162b5d4836bef3c96f53194db6>:0
at System.Net.EndPointListener.AddPrefix (System.Net.ListenerPrefix prefix, System.Net.HttpListener listener) [0x00036] in <6fcfdd162b5d4836bef3c96f53194db6>:0
at System.Net.EndPointManager.AddPrefixInternal (System.String p, System.Net.HttpListener listener) [0x00063] in <6fcfdd162b5d4836bef3c96f53194db6>:0
at System.Net.EndPointManager.AddListener (System.Net.HttpListener listener) [0x0009c] in <6fcfdd162b5d4836bef3c96f53194db6>:0
at System.Net.HttpListener.Start () [0x0000f] in <6fcfdd162b5d4836bef3c96f53194db6>:0
at CSMM_Patrons.Web.Web. (System.Net.HttpListener ) [0x00000] in <7e330f67f9d74778a7998c9c13ea60ea>:0
at CSMM_Patrons.Web.Web..ctor () [0x00209] in <7e330f67f9d74778a7998c9c13ea60ea>:0
where you can see the 'Prefix already in use' error message. This bug may only effect mods with DLLs, not 100% sure as I don't have enough information to verify.
I have also verified this by having only CPM mod loaded, with all default settings, so it should open a port which is controlpanel port +3 (8083 by default).
With an empty Mods folder in the game installation location the error occurs.
With only the Mods folder in the UserDataFolder location it works fine.
The pastebin of my log is here: https://pastebin.com/vcLxww18
Recommended Comments
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now