[HTTP_CONFIG]
; password for the stracker admin pages (leaving it empty results in disabled admin pages
admin_password = adminpassword
; username for the stracker admin pages (leaving it empty results in disabled admin pages
admin_username = adminusername
; Add anonymized players to blacklist (works only if stracker's AUTH feature is used in server).
auth_ban_anonymized_players = False
; Set to a file to be used for logging http authentication requests. Useful to prevent attacks with external program (e.g., fail2ban).
auth_log_file =
; icon to be used in webpages (leave empty for default Assetto Corsa icon)
banner =
; set to false if you do not want svg graphs in the http output (for saving bandwidth)
enable_svg_generation = True
; set to 1, if you want to start a http server for statistics access
enabled = True
; set to true to get the navbar inverted (i.e., dark instead of bright)
inverse_navbar = False
; number of items displayed per page
items_per_page = 20
; Additional columns to be displayed in LapTimes table (seperated by a + sign). Columns can be "valid", "aids", "laps", "date", "grip", "cuts", "collisions", "tyres", "temps", "ballast" and "vmax". Note that too many displayed columns might cause problems on some browsers.
lap_times_add_columns = valid+aids+laps+date+grip+tyres+temps+vmax
; listening address of the http server (normally there is no need to change the default value 0.0.0.0 which means that the whole internet can connect to the server)
listen_addr = 0.0.0.0
; tcp listening port of the http server
listen_port = 9601
; If set to true, http requests will be logged in stracker.log. Otherwise they are not logged.
log_requests = False
; Maximum number of streaming clients (LiveMap/Log users) allowed to connect to this server in parallel. The number of threads allocated for http serving will be max(10, max_streaming_clients + 5)
max_streaming_clients = 5
; Set to true if you want to use https. Note that you need a SSL certificate and key. If you enable this option, you can reach stracker at https://ip:port/ instead of http://ip:port/
ssl = False
; Path to the SSL certificate for https. Only used when ssl is True. A self-signed certificate can be generated with "openssl req -new -x509 -days 365 -key privkey.pem -out cert.pem"
ssl_certificate =
; Path to the SSL private key for https. Only used when ssl is True. A private key can be generated with "openssl genrsa -out privkey.pem 2048"
ssl_private_key =
; Valid values are "degc" or "degf".
temperature_unit = degc
; Valid values are "kmh" or "mph".
velocity_unit = kmh
Had this working years ago. New server, new install and this error appears.
Any solution?
Cheers
E:\TCAFiles\Games\ac>stracker.exe --stracker_ini stracker.ini
stracker[INFO ]: Logging to ./stracker.log
Traceback (most recent call last):
File "<string>", line 187, in <module>
File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
File "c:\vpython33\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module
File "stracker_lib\ac_monitor.py", line 38, in <module>
File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
File "c:\vpython33\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module
File "stracker_lib\http_server.py", line 51, in <module>
File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
File "c:\vpython33\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module
File "stracker_lib\http_server_base.py", line 70, in <module>
NameError: name 'static_base_dir' is not defined
stracker returned -1
Which OS? Windows? http_static http_templates folders uploaded?
Youre, welcomed ,indeed, sorry, I'm new here and did not expand the "SPOILER:ERROR" on the post above.
<edit> I uploaded http_statc & http_templates directories from stracker-V3.5.1 archive to linux. I runs now !
This is it ! I found 2 identical configurations for plugin and plugin_local.
Now it's really cool to see it running. Thanks !
I am now quite ready to learn how to lauch acserver and stracker as services
[Unit]
Description=AC - Stracker Start/Restart/Stop
[Service]
User= WhatEverUserYouLikeToRunIt
Group= users
Type=oneshot
ExecStart=/bin/true
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
[Unit]
Description=AC Server start/restart
Partof=start.service
After=start.service
[Service]
User= WhatEverUserYouLike
Group= users
WorkingDirectory=/home/pathtoyouracserver
ExecStart=/home/pathtoyouracserver/./acServer
Restart=on-failure
[Install]
WantedBy=ac-start.service
[Unit]
Description=server stracker
Partof=start.service
After=start.service
After=acserver.service
[Service]
User=WhatEverUserYouLikeToRunIt
Group=users
WorkingDirectory=/home/pathtoyourstrackerdirectory/stracker/stracker_linux_x86
ExecStart=/home/pathtoyourstrackerdirectory/stracker_linux_x86/./stracker --stracker_ini ../stracker4.ini
restart=on-failure
[Install]
WantedBy=start.service
sudo systemctl daemon-reload
sudo systemctl enable start acserver stracker
I might well be misunderstanding you, but if you're trying to do what I'm thinking, that would surely be unwise (opening up the proxy to the internet).Furthermore, I did some "netcat" or "nc" command on linux to see if UDP ports are listening on public IP and they are not. Is there something to do on stracker to make it reacheable from internet ?