Jump to content

Error starting server on second instance only


Recommended Posts

G'day all,

I've been having this issue for awhile now (probably a year?). I have 2 servers running on one dedicated server install, using separate saved games folders.

For the second instance only, the first mission opens just fine when starting the server, however when I go hit restart in the UI or hit run on a different mission, I get the "error starting server" message. It doesn't happen all the time, but typically seems to happen after the server has had a client online and the mission was running. IE, I'll go on, play for a bit, log off, then go into the UI to restart the mission back to it's start state, or run a different mission. Once this has happened, the only way to get it going again is to force close then restart the server instance.

In the spoiler is what I believe to be the relevant portion of the log file, and I've included the whole log file for reference.

Spoiler

2022-01-01 18:33:51.250 ERROR   Dispatcher: Mission Load Error: Cannot decompress mission: failed to open C:\Users\kelly\AppData\Local\Temp\instance2\/~mis0000794A
2022-01-01 18:33:51.250 INFO    NET: Registering server as 198.166.96.61:10309 (port is forwarded by UPNP)
2022-01-01 18:34:04.651 INFO    NET: server has stopped
2022-01-01 18:34:04.651 INFO    NET: server has started
2022-01-01 18:34:04.653 INFO    NET: Using LEDBAT for UDP congestion control.
2022-01-01 18:34:04.708 ERROR   NET: AddPortMapping(8089, 8089, 192.168.1.66, TCP) failed with code 718 (ConflictInMappingEntry)
2022-01-01 18:34:04.755 ERROR   NET: GetSpecificPortMappingEntry(8089, TCP) failed with code 714 (NoSuchEntryInArray)
2022-01-01 18:34:04.848 ERROR   NET: AddPortMapping(8089, 8089, 192.168.1.66, TCP) failed with code 718 (ConflictInMappingEntry)
2022-01-01 18:34:04.893 ERROR   NET: GetSpecificPortMappingEntry(8089, TCP) failed with code 714 (NoSuchEntryInArray)
2022-01-01 18:34:04.893 ERROR   NET: UPNP failed to map HTTP port 8089
2022-01-01 18:34:04.893 INFO    NET: Successfully set up Dual-Stack socket, using both IPv4 and IPv6
2022-01-01 18:34:04.894 INFO    NET: Listen to IPv6 on port 10309
2022-01-01 18:34:04.896 INFO    Dispatcher: loadMission C:\Users\kelly\Saved Games\Missions\Sandman's Server - PG - V1.2 no stennis.miz
2022-01-01 18:34:04.897 INFO    WORLDGENERAL: loading mission from: "C:\Users\kelly\Saved Games\Missions\Sandman's Server - PG - V1.2 no stennis.miz"
2022-01-01 18:34:04.937 ERROR   VFS: VFS_open_write: CreateFile(C:\Users\kelly\AppData\Local\Temp\instance2\/~mis00004E64): The system cannot find the path specified.

It seems to me to be some kind of permissions issue (cannot decompress mission, failed to open). I've tried running as administrator, forcing permission through windows, etc. Originally I had been using one common folder within the first instance's mission folder and pointing the UI to those missions, but I changed that to a common folder that's not within either instance's saved games to see if that helped - it didn't.

I'm kind of at a loss now as to what to try next. Anyone have any ideas?

 

Cheers!

 

dcs.log

Ryzen 7 5800X3D / Asus Crosshair VI Hero X370 / Corsair H110i / Sapphire Nitro+ 6800XT / 32Gb G.Skill TridentZ 3200 / Samsung 980 Pro M.2 / Virpil Warbrd base + VFX and TM grips / Virpil CM3 Throttle / Saitek Pro Combat pedals / Reverb G2

Link to comment
Share on other sites

your web server port is conflicting that is what this line is:

 

2022-01-01 18:34:04.708 ERROR   NET: AddPortMapping(8089, 8089, 192.168.1.66, TCP) failed with code 718 (ConflictInMappingEntry)

as HC said your autoexec.cfg if you've made one would help but basically it should look like this (goes in the savegames\config folder)

Quote

crash_report_mode = "silent"

webgui_port = 8089

the first line will automatically send crash dumps if you have one with out needing you to enter data. 

the second is the webgui port that your server gui is running on and you need a seperate port for this just like you need seperate ports for the main server.

but you also have another issue which is weird and that is when the server tries to read part of your mission it's erroring have you got virus protection running or something if so maybe make certain dcs is in excluded stuff.. because 

WORLDGENERAL: loading mission from: "C:\Users\kelly\Saved Games\Missions\Sandman's Server - PG - V1.2 no stennis.miz"
2022-01-01 18:34:04.937 ERROR   VFS: VFS_open_write: CreateFile(C:\Users\kelly\AppData\Local\Temp\instance2\/~mis00004E64): The system cannot find the path specified.

 

Because taht is basically saying it can't find a file in your Temp folder .. but i'd start with fixing your webgui issue and see if that rectifies issues and also antivirus incase it's deleting the mission temp files.

i7 13700k, 64gb DDR5, Warthog HOTAS, HP Reverb G2 VR, win 11, RTX 3070

TGW Dedicated Server Admin, Australian PVE/PVP gameplay. (taskgroupwarrior.info/2020)

Link to comment
Share on other sites

Thanks for the replies guys.

I'm tempted to say the GUI ports are a red herring - I'm running my first instance on 8088, and my second instance on 8089, so there should not be a conflict here. I've posted the autoexec file from my second instance. Interestingly, my first instance doesn't have an autoexec file - presumably it's going with the default of 8088. I'll try creating one and forcing 8088 to be sure, but I've never had a problem with the Web UI connecting to instance 1 on 8088 and instance 2 on 8089, they've always connected correctly.

autoexec.cfg

I think the issue is with the second line, with the inability to open the mission file from the temp folder. I'll dig around in the antivirus, but if it was excluded from the AV, it would have this error every time, no? The server starts fine the first time, it only seems to error when it's already running and I try to switch the mission or restart the running mission. 

Strange...

Edit: So I just examined the log for a successful startup of the server, and the mention of the GUI ports is still there. What is not there is the error regarding finding the specified path, so I do believe it's related to this.


Edited by Sandman1330

Ryzen 7 5800X3D / Asus Crosshair VI Hero X370 / Corsair H110i / Sapphire Nitro+ 6800XT / 32Gb G.Skill TridentZ 3200 / Samsung 980 Pro M.2 / Virpil Warbrd base + VFX and TM grips / Virpil CM3 Throttle / Saitek Pro Combat pedals / Reverb G2

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...