factorio-server-manager icon indicating copy to clipboard operation
factorio-server-manager copied to clipboard

Allow updating server from UI

Open jjcf89 opened this issue 9 years ago • 20 comments

Moving this to its own issue. The updater script could be used for reference. https://github.com/narc0tiq/factorio-updater

jjcf89 avatar Apr 29 '16 22:04 jjcf89

I second this motion...

travisdieckmann avatar Oct 18 '16 15:10 travisdieckmann

Currently working on this.

sean-callahan avatar Nov 03 '16 00:11 sean-callahan

narc0tiq/factorio-updater uses the Factorio binary to update properly. This means that the server should be down for that time and then be restarted.

Some kind of inactivity detection may be needed for player convenience (e.g. tracking logged-in players or game state).

Wyrrrd avatar May 08 '19 14:05 Wyrrrd

If updating on manual command from a FSM admin, activity detection is likely not a requirement for initial implementation.

Later, such a feature could be added. Also, notifying the players in-game through RCon and giving them some configurable amount of time to find a stopping point would be a nice enhancement.

dgw avatar May 08 '19 23:05 dgw

A helpful link, where the update is done with the command-line: https://forums.factorio.com/viewtopic.php?t=14395

knoxfighter avatar Apr 06 '20 23:04 knoxfighter

Information about the download API: https://wiki.factorio.com/Download_API

More information about the downloading API (some parts are out of date): https://artentus.github.io/FactorioApiDoc/update-api/

knoxfighter avatar Aug 21 '20 15:08 knoxfighter

@knoxfighter me and @jannaahs just discussed this topic on discord.

Implementation for the linux headless version would be relatively easy, on the other hand I am not sure how this would work on windows.

Psychomantis71 avatar Aug 21 '20 15:08 Psychomantis71

It's been a while, but I had this partially implemented and my drive died. Whoops...

IIRC, the auto-downloaded Windows binary ran fine. The only problem was killing the existing process. Which I believe @knoxfighter has fixed since, right?

sean-callahan avatar Aug 21 '20 15:08 sean-callahan

Hey, any news regarding this feature ?

Bykow avatar Mar 03 '21 18:03 Bykow

Hello, any updates? 😢

pan-bubr avatar May 07 '21 09:05 pan-bubr

Nope, nothing has changed. We will post an update here, if there is any progress.

jannaahs avatar May 07 '21 11:05 jannaahs

Waiting there is something integrated in factorio-server-manager you can use https://github.com/Bisa/factorio-init on your server and use it just to update factorio (you can do more but then you start to have some features overlap with factorio-server-manager).

Then to update you can simply run factorio update :)

Maybe something that could be included in this project as it's "just" a shell script, but I understand that it is never easy to integrate other tools.

llann avatar Jun 19 '21 15:06 llann

Something like that is already included in the docker image. If you use our docker image, you can simply restart it and the newest version of factorio is downloaded (depending on the FACTORIO_VERSION env variable).

knoxfighter avatar Jun 19 '21 15:06 knoxfighter

Ok nice :)

I'm only using docker to dev not to host services, but thanks for the info :) Could be cool to integrate something in the non docker install. But I completly understand how it's not in your top priorities ;)

llann avatar Jun 19 '21 15:06 llann

Command line argument to apply a patch (downloadable from wube): --apply-update arg

knoxfighter avatar Jun 18 '22 18:06 knoxfighter

Greetings! Is there anyway to update from the Manager yet? I noticed there wasn't an update for some time.

How can I do it otherwise?

Eurymachus avatar Dec 16 '22 17:12 Eurymachus

Restart the docker container, it contains an update mechanism

knoxfighter avatar Dec 16 '22 17:12 knoxfighter

Running on linux not docker :D

Eurymachus avatar Dec 16 '22 17:12 Eurymachus

Then you have to update manually or use one of the update scripts, that exist. (Make sure the addon manager is turned off while doing so).

knoxfighter avatar Dec 16 '22 17:12 knoxfighter

Alrighty! Looking forward to when this is added into the manger! \o/

Eurymachus avatar Dec 16 '22 17:12 Eurymachus