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.
However I use a mod that has a bug, it recreates a Mods folder in the game installation folder on occasion. So I end up with a Mods folder in UserDataFolder and an erroneous Mods folder in the game installation folder. So that's two Mods folders.
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.
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
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.
However I use a mod that has a bug, it recreates a Mods folder in the game installation folder on occasion. So I end up with a Mods folder in UserDataFolder and an erroneous Mods folder in the game installation folder. So that's two Mods folders.
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.
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
Last edited by a moderator: