prom3theu5 / ConanExilesServerUpdater

Dedicated Server Updater For Conan Exiles
Apache License 2.0
11 stars 2 forks source link

[1.5] Update at Start works, but does not check for updates #6

Closed Aoxmodeus closed 7 years ago

Aoxmodeus commented 7 years ago

Updated at the start per my config, but I can't get this version to check for updates.

I've got the version in the json set lower than live, and it's not checking, or updating.

Aoxmodeus commented 7 years ago

Is there a way to pull down 1.4 compiled?

prom3theu5 commented 7 years ago

When did you pull the 1.5 version? There was an issue when I pushed it live, and I replaced the executable about 45 minutes ago.

Can you check now please, as I'm running the new 1.5 on my server

prom3theu5 commented 7 years ago

In hindsight - I should have pushed it as 1.5.1

Aoxmodeus commented 7 years ago

No worries, pulling down now.

prom3theu5 commented 7 years ago

Thanks :) There was also a bug with the tasks spawned in the GeneralServices service (Raid settings, and Monitoring server uptime) They are both fixed too.

Aoxmodeus commented 7 years ago

Left for work with it running, came back to Error in Application, and 150 megs worth of log file. Will capture more data.

prom3theu5 commented 7 years ago

config.json has changed - can you post me some of the logs please 150mb???

Aoxmodeus commented 7 years ago

Started Running 02/09/2017 18:42:25 2017-02-09 10:42:25.539 -08:00 [Information] The "ConanExilesUpdater$ConanExilesUpdater" service is now running, press Control+C to exit. 2017-02-09 10:42:25.581 -08:00 [Information] Starting To Monitor Server is Running 2017-02-09 10:42:26.340 -08:00 [Information] Discord Connected! 2017-02-09 10:47:30.297 -08:00 [Information] Detected SteamVersion as: 1620241. Your version is: "1601110" An Update is required. 2017-02-09 10:47:30.308 -08:00 [Information] Monitor Service has been stopped successfully 2017-02-09 10:47:55.622 -08:00 [Error] Error in Application Monitor: "The operation was canceled." 2017-02-09 10:47:55.625 -08:00 [Error] Error in Application Monitor: "The operation was canceled." 2017-02-09 10:47:55.626 -08:00 [Error] Error in Application Monitor: "The operation was canceled." 2017-02-09 10:47:55.627 -08:00 [Error] Error in Application Monitor: "The operation was canceled." 2017-02-09 10:47:55.627 -08:00 [Error] Error in Application Monitor: "The operation was canceled." 2017-02-09 10:47:55.628 -08:00 [Error] Error in Application Monitor: "The operation was canceled."

prom3theu5 commented 7 years ago

Ok thanks - looks like an issue with task termination in generalservices. I will debug

Aoxmodeus commented 7 years ago

My config.json:

{ "Twitch": { "OAuth": null, "Username": null, "Channel": null }, "Discord": { "DiscordToken": "#REMOVED#", "ChannelId": 179624XXXXXX0224 }, "Conan": { "FolderPath": "e:\exiles\", "Executable": "ConanSandboxServer.exe", "StartupParameters": "Multihome=192.168.50.32 -nosteamclient", "RaidingProtectionHoursEnabled": false, "RaidingStartHour": 0, "RaidingLengthInHours": 0 }, "Update": { "ShouldInstallSteamCmdIfMissing": false, "ShouldInstallConanServerIfMissing": false, "SteamCmdPath": "e:\steamcmd\", "AnnounceDiscord": true, "AnnounceTwitch": false, "AnnounceMinutesBefore": 5, "UpdateCheckInterval": 5, "InstalledBuild": 1610241, "UpdateOnLaunch": false }, "General": { "ShouldRestartConanOnNotRunning": true, "RestartServerAfterHours": 6 } }

Aoxmodeus commented 7 years ago

Sounds good, I'm setting up another update test to see if I can replicate the error.

Aoxmodeus commented 7 years ago

Ok, I can replicate the error. Same issue. It updates the client, it updates the version listed in the config.json, but then spews errors at a rate of about 20 per millisecond. Impressive.

prom3theu5 commented 7 years ago

:D Haha Thanks https://github.com/prom3theu5/ConanExilesServerUpdater/releases/download/TestTaskFix/TestBuild.zip Can you give that a test please buddy

Aoxmodeus commented 7 years ago

Pulling down now.

prom3theu5 commented 7 years ago

Thank you :) Oh thanks so much for the donation - Will get a cold one with it :)

Aoxmodeus commented 7 years ago

Ok, you've got success so far on this run. Launched updater, it saw server process wasn't running, it started it up. After 1 minute, it alerted our discord that an update was coming in 1 minute. Then it halted the server process, and after about 1 minute, launched the update, updated the config.json, and relaunched the server process. I'm getting the console updates now that my version is => steam. If this restarts the server at the proper interval, I'd say it's clean for a 1.6 release. Shall we give it an hour and see if it works? Will the app recognize if I set the restart interval to be say .5 or .1 hour?

prom3theu5 commented 7 years ago

Awesome Thanks for that :) Unfortunately they are integer values, so has to be whole numbers. Did the monitoring service start back up after the restart of the server post update? (I.e. if you crash / close it, does it recover?)

If it did/does, should be ready for a 1.6 release. Drank far too much coffee today and overlooked a simple issue with the task cancellation tokens :D

Aoxmodeus commented 7 years ago

testing server process recovery now

Aoxmodeus commented 7 years ago

Server process was restarted cleanly, and is being monitored. Looks good!

prom3theu5 commented 7 years ago

Thanks a lot :) Will merge and push a new release now

prom3theu5 commented 7 years ago

All sorted :)

https://github.com/prom3theu5/ConanExilesServerUpdater/releases/download/1.6/1.6.zip