tf2-servers icon indicating copy to clipboard operation
tf2-servers copied to clipboard

Unable to update

Open ktwrd opened this issue 1 year ago • 4 comments

tf2-base image seems to be outdated and I can't find out a way to update the game. The version reported is 8568259 but the latest version for TF2DS is 8596679.

This is my docker-compose.yml file

version: '3.6'

services:
  tf2:
    restart: always
    image: ghcr.io/melkortf/tf2-base
    volumes:
      - ./addons:/home/tf2/server/tf/addons
      - ./maps:/home/tf2/server/tf/maps
      - ./cfg:/home/tf2/server/tf/cfg
    ports:
      - "0.0.0.0:27015:27015/tcp"
      - "0.0.0.0:27015:27015/udp"
      - "0.0.0.0:27020:27020/tcp"
      - "0.0.0.0:27020:27020/udp"
    environment:
      - "RCON_PASSWORD=XXXXXXXX"

ktwrd avatar Dec 19 '23 07:12 ktwrd

Yeah, I need to trigger release of a new version each time TF2 gets updated; I didn't have means to do it last couple of days, apologies. I'll fix it by creating a dedicated pipeline for that. Besides, the autoupdate feature is bundled in, so TF2 should get updated each time your container starts. Look for some errors in the container logs; also, make sure the container has write permissions to your maps directory.

garrappachc avatar Dec 19 '23 22:12 garrappachc

... make sure the container has write permissions to your maps directory.

All folders are set with 777 to make sure it doesn't break

Besides, the autoupdate feature is bundled in...

Doesn't work at all with no errors, except that force_install_dir is set after login anonymous.

ktwrd avatar Dec 21 '23 01:12 ktwrd

@ktwrd does this issue still apply?

garrappachc avatar Jul 24 '24 07:07 garrappachc

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] avatar Sep 29 '24 01:09 github-actions[bot]

Hey, @garrappachc I'm having the same issue that is mentioned above, I can't use my servers because they are running an old version.

I'm deploying my servers using Google Cloud VM (With Containers). Even if I create a new VM with the latest version of the image, I get the same error.

These days, Valve releases two new versions, and I can't update to the last one.

Do you know how to fix it?

galdoway avatar Oct 12 '24 21:10 galdoway

Hey, @garrappachc I'm having the same issue that is mentioned above, I can't use my servers because they are running an old version.

I'm deploying my servers using Google Cloud VM (With Containers). Even if I create a new VM with the latest version of the image, I get the same error.

These days, Valve releases two new versions, and I can't update to the last one.

Do you know how to fix it?

Do you have any logs from the game server? I think the update may fail if some permissions aren't set correctly.

garrappachc avatar Oct 12 '24 21:10 garrappachc

Hey, @garrappachc I'm having the same issue that is mentioned above, I can't use my servers because they are running an old version. I'm deploying my servers using Google Cloud VM (With Containers). Even if I create a new VM with the latest version of the image, I get the same error. These days, Valve releases two new versions, and I can't update to the last one. Do you know how to fix it?

Do you have any logs from the game server? I think the update may fail if some permissions aren't set correctly.

Yeah, These are my logs.

Auto detecting CPU
Using default binary: ./srcds_linux
Updating server using Steam.
----------------------------
Redirecting stderr to '/home/tf2/.steam/logs/stderr.txt'
Logging directory: '/home/tf2/.steam/logs'
[  0%] Checking for available updates...
[----] Verifying installation...
UpdateUI: skip show logoSteam Console Client (c) Valve Corporation - version 1728594755
-- type 'quit' to exit --
Loading Steam API...OK
@ShutdownOnFailedCommand 1
"@ShutdownOnFailedCommand" = "1"
@NoPromptForPassword 1
"@NoPromptForPassword" = "1"

Connecting anonymously to Steam Public...OK
Waiting for client config...OK
Waiting for user info...OK
force_install_dir /home/tf2/server
Please use force_install_dir before logon!
app_update 232250
 Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
 Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
Error! App '232250' state is 0x426 after update job.
quit
CWorkThreadPool::~CWorkThreadPool: work complete queue not empty, 6 items discarded.
----------------------------
Your server will be restarted on map change.
Your server will be restarted on map change.
Your server needs to be restarted in order to receive the latest update.
Your server needs to be restarted in order to receive the latest update.

galdoway avatar Oct 13 '24 09:10 galdoway

Most likely this is directory permission issue. Make sure you have 777 chmod set for the maps directory.

I've triggered a new release, so pulling the new image should fix your problem for now.

garrappachc avatar Oct 13 '24 10:10 garrappachc

Most likely this is directory permission issue. Make sure you have 777 chmod set for the maps directory.

I've triggered a new release, so pulling the new image should fix your problem for now.

I tried to run the competitive image without maps directory, and I got same error.

I will pull the new version and see if it works. Thank you for taking the time to respond to my comments, I appreciate it :).

galdoway avatar Oct 13 '24 10:10 galdoway

I tried to run the competitive image without maps directory, and I got same error.

That's the point, you can't do that - maps should be mounted to a local directory that has chmod set to 777. Otherwise, the tf2 server will try to update, but it will fail, hence the error.

garrappachc avatar Oct 13 '24 10:10 garrappachc

I tried to run the competitive image without maps directory, and I got same error.

That's the point, you can't do that - maps should be mounted to a local directory that has chmod set to 777. Otherwise, the tf2 server will try to update, but it will fail, hence the error.

Got It! I'll try that. By the way, would you mind to trigger a new release?

There was a new update a few days ago and I can't update it, please!

galdoway avatar Oct 20 '24 20:10 galdoway

Got It! I'll try that. By the way, would you mind to trigger a new release?

There was a new update a few days ago and I can't update it, please!

Sure thing! Done.

garrappachc avatar Oct 20 '24 20:10 garrappachc