#Workshop item version is different from server's

40 messages · Page 1 of 1 (latest)

velvet sequoia
#

I just recently got amodded server running a few days ago. I am writing this post because I need a solution for the workshop item version different from server's error. I am very well aware of the cause of this is due to when you make a server with mods and a mod updates, and you try to load into your server it give you that error because you no longer have the version you started the server with. Is there anyway to lock steam workshop mods from updating.
And yes, I do know a way to fix it by deleting the mods on your workshop folder for zomboid and forcing your steam account to install that version but is there a more convenient fix to this problem. Or do I have to manually do it every time when a mod updates

worthy temple
#

my work around was to auto restart the server every 6 hours or so to pull the latest versions

potent knot
# velvet sequoia I just recently got amodded server running a few days ago. I am writing this pos...

Mods update virtually daily, any time a mod updates, you will need to restart the server. (Everytime you will have to do this if a mod gets an update, otherwise people joining will not be able to join).

Mods on servers do not update until the server is restarted.

You are running a new version of the mod, so you won't be able to connect until the server restarts.

#mod_support for mod related queries

velvet sequoia
worthy temple
#

how are you hosting it?

potent knot
# velvet sequoia is there a way to run an auto save command every 6 hours

You can set the server to restart, it will be in your server.ini

But remember if you have it set to restart every 6 hours, you could have a mod that updates before that time period, so you would have to manually restart.

Udderly (Udderly up to date) has a mod that auto restarts the server upon detection of a mod update.

On the mod page it will tell you what you need to do to set it up.

If you are hosting with the likes of "Indifferent Broccoli", they have options for server auto restarts, but there should be an option in your Server.ini file

velvet sequoia
velvet sequoia
#

every 6 hours

#

and pick out the saves before an update

worthy temple
#

wdym

velvet sequoia
worthy temple
potent knot
#

I have mine set up where it will auto restart every time a mod updates, but then I have a small mod list for my server.

If you have like, 100 mods, your server is going to be going up and down pretty regularly.

But 6 hours is fine, or 24 hours.

You can always restart manually when people try to join and it needs to be restarted

worthy temple
#

yeah I have a bunch of mods, so I do 6hours restarts

#

plus I gave my friends the ability to manually restart it

#

you can probably do a cronjob to do 6hour restarts

velvet sequoia
worthy temple
#
#

i run it through this

#

kind of a pain to set up, but if you host a bunch of different servers it pays off to set it up

velvet sequoia
potent knot
#

oof

worthy temple
#

yeah you are better off setting restarts at an interval then

potent knot
#

Your server would be up and down like a yo yo

velvet sequoia
#

yeah two mods updated today

#

I figured

#

we're kinda just running a draft of mods for this server atm, so we can finalize the rest of the mods once I have everyone's opinions

worthy temple
#

yeah I wish you could set it up so the client downloads the mods directly from the server pain

velvet sequoia
#

I dont exactly know how it works but the way I resolve my updated mods was I just checked my subscribed mod in pz and sorted by updated and got their mod ids

#

then deleted them from the workshop folder in steam on the server pc

#

so when I start it it forces the download from the ini file

worthy temple
#

i think there is a flag in one of the server files to auto update mods on server boot

#

pretty sure it's enabled by default

potent knot
#

No need to delete or unsubscribe and re-subscribe to the mods as it is not on your side.

Steam will automatically download mods that have been updated to your files, the one that is on the server though, will never update until a restart has been performed.

Subbing and un-subbing will not do anything

velvet sequoia
#

I just have to restart the server

worthy temple
#

for a hacky solution to restarting the server with cron, you can probably do something like:

set up RCON in server.ini,
install rcon-cli:https://github.com/gorcon/rcon-cli
create a restart script for the server that does something like the following:

#!/bin/bash
./rcon -a 127.0.0.1:27015 -p mypassword save
./rcon -a 127.0.0.1:27015 -p mypassword quit
./start-server.sh

then create a cronjob for that script 0 */6 * * * ./rebootpz.sh