Servatrice FAQ Troubleshooting - Cockatrice/Cockatrice GitHub Wiki

FAQ & Troubleshooting (Servatrice server related)

This page will list all frequently asked questions by the admins of Cockatrice servers (Servatrice) with appropriate answers, supplemented by a section about troubleshooting.

Frequently Asked Questions | Troubleshooting



Frequently Asked Questions (FAQ)


Quick Start Guide "How to set up a server?"

  1. Download and install the latest version of Cockatrice (even a portable install will work);

  2. Adapt servatrice.ini to your needs (you can find it in the install directory);

  3. For a simple install, you can hardcode rooms and an user password in the config file;

  4. A complete install would require you to install a database server to store users, rooms, replays, etc.. The software is available at https://dev.mysql.com/downloads/mysql/, then you need to create a database for servatrice following the steps at https://github.com/Cockatrice/Cockatrice/wiki/Setting-up-Servatrice

  5. You can then run servatrice.exe: it's a command-line program , so it has no graphical interface, it will just open a black window with log messages. By default it will look for its servatrice.ini somewhere inside your user profile folder, you can copy your configuration there or start servatrice.exe with the "--config c:\path\to\servatrice.ini" parameter.

  6. You may want to create a batch file to start servatrice with your favorite parameters, or even register it as a service to have it start automatically;

  7. You may also want to adapt your windows firewall / router settings to expose TCP port 4747 to the internet to make internet users able to connect.



Troubleshooting


Newly created server rooms don't show up in the Server tab

After properly creating your room(s), they show up in the SQL database. You still need to restart the server to make Servatrice poll these new entries from the database. Now the server room list in the Server tab should include all new rooms.

My server doesn't have enough entropy after installing servatrice

Servatrice does a lot of calculations with random numbers, which can decrease the amount of entropy available to the system. If your system has low entropy (less than 1000), you'll want to install rng-tools, which uses your motherboard's TPM to generate new entropy. If your motherboard doesn't have a TPM (it probably has one if it's from 2006 or later) you can install haveged.

You can check the amount of entropy available with cat /proc/sys/kernel/random/entropy_avail

⚠️ **GitHub.com Fallback** ⚠️