Server troubleshooting
Find your problem below. If it's not here, see Getting help. Bring your logs.
Where the logs are:
- Windows Server launcher: the log in the launcher window, and
%APPDATA%\A Township Tale\Servers\-1\Logs\logs\unity-log.csv. - Docker:
docker compose logs --tail 300. - Panels: the panel's console.
- Wine:
~/att-server/game/MelonLoader/Latest.log, orjournalctl -u att-serverif you made the service.
Nobody can connect
Work through these in order.
- Is the server running and finished starting? TavernLib logs
Starting auth listening cyclewhen it's ready. On Docker,docker compose psshould sayUp, notRestarting. - Can you join from the same machine or network? Try
127.0.0.1on the server PC, or its local IP from another device at home. If that fails too, it's not a port problem. Read the logs. - Port forwards. Check the three rules (
1757UDP,1761and1762TCP) point at the right local IP, and that your PC still has that IP. See Ports and port forwarding. - Firewalls. Windows Firewall on the server PC. On a VPS, your provider's firewall in their control panel (Hetzner Cloud Firewalls, AWS security groups, Oracle Cloud, Azure and others all block by default). UFW and Docker can't see what those drop.
- CGNAT. If your router's internet IP doesn't match ifconfig.me, port forwarding can't work. See When port forwarding isn't possible.
- Changed ports. If you moved any ports, forward the new ones, and players need an SRV record to find them.
- Testing from inside. Joining your own public IP from home often fails even when it works for everyone else. Ask a friend to try, or test from your phone's data.
On Linux, check the server's listening:
sudo ss -ulpn | grep 1757
sudo ss -tlpn | grep -E '1761|1762'
Players load in but the forest is missing or broken
- They joined too early. A new world spends its first few minutes generating the forest. Anyone who joins before that finishes gets a broken forest. Restart the server and wait a few minutes before joining.
- The web port is blocked. Players load the forest from port
1761TCP. Check it's forwarded and open.
Players get "Bizarre mode detected."
They tried to join in Fly mode without the role for it. Give them fly, moderator or owner (see Roles), or have them pick their headset instead.
Players get "You are missing mods that are required for this server."
Their mods don't match the server's. If they join through the launcher, it fixes this by itself on the next try. If it keeps happening, see Mods.
Mods
- Mod changes didn't do anything. Mods only change when the server starts. Restart it.
- A modlist mod didn't install. Check the log for TavernLib's mod messages. Mods only come from the default TavernMods source and sources added with
modmanager addrepo. Check the id is spelled right (Author.Mod, likeModdingTavern.TavernEssentials). - The server takes ages on the first start with a modlist. It's downloading. It gives up after 5 minutes and starts anyway.
- Players can't join after a mod update. A version can be withdrawn if it's broken or harmful. Players can't join a server still running a withdrawn version until you update it.
Saves are lost when the server stops
The server has to save before it closes. On Docker, stop_grace_period: 5m gives it time. Saving while a new world is still generating can take minutes, so give it at least 4 CPUs and let a stop finish instead of forcing it.
If the console can't be reached, the server is stopped without saving. Check the logs for a console error.
Console logins are all refused
TavernLib signs every console token with server_secret.key in its config folder. If the file is missing or can't be read, nothing works. Restore it from a backup, or delete it to make a new one (all old tokens stop working, get the new owner token afterwards).
"Nobody can join" error about the login port
Something else is using the login port (1762 by default). Another server, or an old copy of this one that didn't close. Stop it, or move this server's ports.
Not on Community Servers
- Did you restart after turning on
community_listed? It only starts listing at startup. - The server needs to reach the internet to post its listing.
- A
public_hostnamethat doesn't point at your server's IP is refused by the list. Fix the A record, or remove it. - Shows up but Offline? Players can't reach your login port. See Nobody can connect.
Docker
-
"A Township Tale.exe is missing from /game-files". The game isn't directly inside
game-source.ls game-sourceshould showA Township Tale.exeandA Township Tale_Data, not another folder. -
A
PATCHER:error about GitHub. The first start downloads MelonLoader, TavernLib and the patch, so it needs internet. Later starts work offline. -
The server dies after a while and the logs just stop. Usually Linux running out of memory.
sudo dmesg | grep -i "out of memory"confirms it. Add swap:sudo fallocate -l 2G /swapfilesudo chmod 600 /swapfilesudo mkswap /swapfilesudo swapon /swapfileecho '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab -
Disk full (
no space left on device).df -hshows what's using it. Delete any leftover zip, rundocker image prune -f, and check the log archives inserver-data/Servers/-1/Logs/logs/Archives. -
docker: permission deniedon the Docker socket. Your session started before you joined thedockergroup. Log out and back in. -
ufw statusdoesn't list the game ports. That's expected. Docker opens published ports itself, around UFW. -
Wine complains about the prefix, or a server that worked starts misbehaving.
docker compose down, thendocker volume rm att-server_wine-prefix(the name starts with your folder's name,docker volume lsshows it), thendocker compose up -d. Your saves and config aren't in the prefix.
Game panels
- The panel never shows the server online. It waits for TavernLib's
Starting auth listening cycleline. If players can connect but the panel disagrees, open an issue with the last few console lines. - AMP doesn't list A Township Tale. Check the repository is
ChatonIsHere/a-township-container:amp-templates, click Fetch again and refresh. With Controller/Target, check the target has it too. - Nobody can connect. Every port needs an allocation or binding in the panel, and needs to be open in any firewall in front of the node.
- Wine trouble on a panel. Stop the server, delete
.wineand start again. A fresh prefix is copied in and your saves and config are linked back.
Wine
- The server takes forever and nobody can join, with no errors. MelonLoader didn't load. Check
WINEDLLOVERRIDESincludesversion=n,band thatversion.dlland theMelonLoaderfolder are in the game folder. - Wine won't start the game.
chmod +x "A Township Tale.exe". Copying files from Windows or unzipping on some panels drops the execute bit. - It dies straight away about a display. Xvfb isn't running, or
DISPLAYisn't:1. The game needs a display even with-nographics. - It crashes about audio. Check
~/.asoundrcsends sound to the null device. - Old Wine.
wine --versionshould be 10.0 or newer, from WineHQ.
VPS and SSH
- Locked out of SSH. Use your host's web console in their control panel. It doesn't go through SSH. Log in as
attwith the password fromadduser, fix what broke (usually/etc/ssh/sshd_config.d/00-hardening.confor a missing UFW rule) withsudo nano, and runsudo systemctl restart ssh. - "Permission denied (publickey)". You're connecting as the wrong user (use
att),authorized_keyshas the wrong content (it needs the singlessh-line from PuTTYgen's box), or thechown/chmodlines were skipped. - Password login still works after locking down SSH. Another config file is winning.
sudo sshd -T | grep -i passwordauthenticationshould sayno. If not, look in/etc/ssh/sshd_config.d/for a file like50-cloud-init.confand make sure yours sorts before it (that's what the00-is for).
Windows Server launcher
- Setup won't finish. It's the same Setup as the client. See Setup troubleshooting.
- "Open Server" does nothing or closes straight away. Check the log in the launcher window. Another server might already be using the console port. Close it first.