Forum
[SOLVED] TFTrue only "half" working
Created 13th February 2016 @ 10:13
Add A Reply Pages: 1
SOLVED by disabling SElinux
Hello.
I’ve been struggling to fix a problem with my TF2 server, which is hosted on a Linux VPS, I use it to host lobbies on TF2Center.
I can’t seem to get TFTrue fully working, it is not uploading logs and not autostarting SourceTV. But it does respond to the “tftrue” commands and cvars, also responding to “!tfture, !log” commands (though it says no logs were uploaded). Typing cvar commands like “tftrue_logs_apikey” or “tftrue_tv_autorecord” in the console does produce the proper setting response. Typing “status” also shows the plugin as loaded.
I got the API key for logs.tf set, but it’s just not autouploading the logs, and the logs uploaded by TF2Center show the “Missing plugin for extended stats” message at the top.
The only plugin I have installed is TFTrue (.so and .vdf files).
Here is my server.cfg:
hostname “octane”
rcon_password “REDACTED”
sv_password “REDACTED”sv_minrate 50000
sv_maxrate 300000
sv_minupdaterate 66
sv_maxupdaterate 100
sv_mincmdrate 66
sv_maxcmdrate 100logstf_apikey 175d112c9c4c3c79cb7eedbc70b99ab9
tftrue_logs_apikey 175d112c9c4c3c79cb7eedbc70b99ab9
logstf_midgameupload 1
tftrue_logs_roundend 1
tftrue_logs_accuracy 1tftrue_freezecam 0
tftrue_no_hats 0
tftrue_no_misc 0
tftrue_no_action 0
tftrue_tournament_config 0
tftrue_tv_autorecord 1
tftrue_tv_demos_path demo
//tftrue_whitelist_id 4863
tftrue_restorestats 1
tftrue_logs_includebuffs 1
//exec ugc_HL_stopwatchlog on
I tried completely wiping the TF2 server installation and reinstalling it with steamcmd (only keeping the original maps folder and the server.cfg). I also applied chmod 777 on the .so and .vdf files.
Any help or ideas on how to troubleshoot this further would be highly appreciated.
Last edited by octane,
Quoted from Jan
Try removing logstf_* commands as they don’t belong to TFTrue but to LogsTF.
Just tried it and it did not help, unfortunately.
Maybe try generating new API key. For STV, make sure you have it enabled.
Here is my STV and TFTrue related config:
//STV
tv_enable 1
tv_delaymapchange_protect 1
tv_port 27028
tv_name "Recording big plays" // name that appears in server browser
tv_title "Recording big plays" // name of the 'player' that appears ingame
tv_maxclients 0 // maximum clients allowed on the local STV
tv_password ""
//TFTrue
tftrue_bunnyhop 0
tftrue_freezecam 1
tftrue_gamedesc "|FV|"
tftrue_logs_accuracy 1
tftrue_logs_apikey *SNIP*
tftrue_logs_includebuffs 1
tftrue_logs_prefix "|FV|"
tftrue_logs_roundend 0
tftrue_maxfov 90
tftrue_no_action 0
tftrue_no_hats 0
tftrue_no_misc 0
tftrue_restorestats 1
tftrue_tournament_config 0
tftrue_tv_autorecord 1
tftrue_tv_demos_path demos
tftrue_tv_prefix ""
tftrue_unpause_delay 5
tftrue_whitelist_id etf2l_6v6_s23
Thanks for posting your config, however, it didn’t help.
I copy pasted your config minus the API key and such, I generated a new API key, the sourceTV “player” appeared in spec but other than that everything remained the same. It didn’t actually record the demo and I again I got the “Missing plugin for extended stats” message on logs.tf on the log uploaded by TF2C. Also, TFTrue did not upload the logs by itself, again.
Any other ideas? Maybe the problem is not with the config.
Sorry, I’m all out of ideas. Maybe you can add AnAkkk (http://etf2l.org/forum/user/1276/) and ask him for help.
AnAkkk was kind enough to help me troubleshoot the problem.
Disabling SElinux fixed it, now everything works like it should. I don’t really know why it helped (I have yet to investigate), AnAkkk doesn’t know either.
I wonder if it’s only a problem with my system or is everyone running tf2 servers with TFTrue has selinux disabled? Because I failed to find any mention of this problem on the web.
its generally how selinux work
if u wanna allow addons to operate do audit2allow/audit2 and it gives u the instruction how to allow it to run. is tftrue installed on /home ?
what does log say from tail -f audit.log
have you read a documentation on selinux file labels?
Last edited by maidos,
Add A Reply Pages: 1