Server

Troubleshooting.

Steps for the person who runs the server, when something is not doing what they expected. Each section says what the commands change. A warning comes before anything that deletes an installation.

The container name is already in use

docker compose up -d stops with The container name "/farwing" is already in use when an older container still has that name. Compose will not start a second one. Removing the container leaves /data and /srv/files on the machine.

From the folder that holds compose.yml:

docker rm -f farwing
docker compose up -d

docker rm -f stops that container and deletes it. docker compose stop only stops it, so the name stays taken and the next up fails the same way.

Start over

This deletes the installation in /data. Accounts, settings, the license, the install ID and the certificates go with that folder. Files under /srv/files stay where they are. The renamed folder is the backup. Do this when you want a new server.

From the folder that holds compose.yml:

docker rm -f farwing
mv /data "/data.backup.$(date +%F-%H%M%S)"
mkdir -p /data /srv/files
docker compose up -d

Remove the container before renaming /data, so nothing is still using that folder. The backup name includes the date and time, so a later run leaves the earlier backup in place. ls -d /data.backup.* prints it. Open https://<hostname>:8443. The setup wizard runs again. The new installation has a new install ID, so load the license again.

To put the previous installation back, remove the container and swap the folders. Use the name ls -d /data.backup.* printed, in place of the sample below:

docker rm -f farwing
mv /data /data.new
mv /data.backup.2026-10-10-090000 /data
docker compose up -d

Delete /data.new after you have signed in and the previous installation is the one you wanted. A copy taken while the server is still running is covered in nightly backups.

Go back to the version before an upgrade

Before an upgrade changes the database, the server saves the database, settings, license and keys in /data/backups/before-upgrade-<date>-<time>-from-<version>. The last three are kept. If there is not enough free space for that copy, the upgrade stops before changing anything and says how much it needs.

An upgrade that does not change the database makes no copy, and the earlier version runs on the database as it is, with everything done since the upgrade. To go back, change image: in compose.yml to the version you had before and run docker compose up -d. To find out which case you are in, run docker compose run --rm farwing status with the earlier version: if the schema in the database is higher than the schema that version understands, restore the copy as below.

Changes made since the upgrade are taken out of use. Accounts, settings and transfer history added after the upgrade are not in the copy. The restore moves the database, settings, license and keys it replaces into /data/backups/before-restore-<date>-<time> before it puts the copy in place, so nothing is deleted. Files under /srv/files are not touched.

From the folder that holds compose.yml, with the newer version still in it:

docker rm -f farwing
docker compose run --rm farwing restore --before-upgrade

The first command stops and removes the container. The second puts back the newest copy from before an upgrade and prints the folder it used. Then change image: in compose.yml to the version you had before, such as ghcr.io/farwing-io/server:1.0.0, and start it:

docker compose up -d

To use an older copy, name its folder instead: docker compose run --rm farwing restore /data/backups/before-upgrade-…. Without Docker, stop the service, run farwing-server restore --data /data --before-upgrade, install the earlier version and start the service again.

Forgotten password

On the sign-in page, choose Forgot password when this server can send mail. That keeps every setting.

When mail is not set up, or the message does not arrive, set a new password from the machine. Use the administrator's existing address. The hostname, storage, license and certificates stay as they are. The password must be at least 12 characters. The server is stopped until the last command. /data and /srv/files stay on the machine.

docker rm -f farwing
printf '%s' 'a new password at least 12 characters' | docker compose run --rm -T farwing create-admin --email [email protected]
docker compose up -d

Without Docker, stop the service, then run printf '%s' 'a new password at least 12 characters' | farwing-server create-admin --data /data --email [email protected] and start the service again.

This leaves an authenticator app in place. After the new password, sign in with a recovery code, or have another administrator clear the authenticator on the People page. An administrator who has lost the password, the authenticator and the recovery codes, with no other administrator who can sign in, has to start over.

Directory sign-in stops at the certificate

Test connection on Admin → User management → LDAP / Active Directory stops at the Certificate step. These steps change only the directory settings. Nothing is restarted.

  1. If it says Farwing does not trust the certificate authority, choose Trust this certificate authority. Check the fingerprint with your IT team, then choose Trust this certificate. Or add the CA file from your IT team under Trusted certificate authority. See Your company's certificate authority.
  2. If it says the certificate is for other names, enter one of those names as the domain controller, not an IP address or a short name. See Several domain controllers.
  3. If it says the certificate expired, ask your IT team to renew it on the domain controller. Then run Test connection again.

You do not need to edit the Compose file or restart the server for any of these.

Directory sign-in cannot find the domain controller

Test connection stops at Find the name, or at Reach the port.

  1. For Find the name, check the spelling first. If the name only works inside your company network, let this server use your company's DNS. Or open Advanced under the domain controller and enter its IP address in Use this IP address for this name. Farwing still checks the certificate against the name. See When Farwing cannot find the domain controller's name.
  2. For Reach the port, ask your network team to let this server reach the domain controller on that port: 636 for LDAPS, 389 for StartTLS.

Uploads are refused but the disk has room

The upload says a quota is full. The message names the limit: a person's quota, a group's total, a space, or a storage location. These steps only change limits. No files are moved or deleted.

  1. For a person, open Admin → User management → People, find the person, and look at their home and shared quotas. From groups shows the amount and which group sets it.
  2. For a group, open Admin → User management → Groups, open the group, and look at the Storage tab: the total for the group and the most for one member.
  3. For a space, open Admin → Storage → Spaces and edit the space's quota.
  4. For a location, open Admin → Storage → Locations and edit its quota.
  5. Raise the limit, clear it for no limit, or ask the person to delete files they no longer need. The next upload is checked against the new limit straight away.

Uploads are refused: the server has no space left

The upload stops before it starts, saying the server has no space left, how much it needs and how much the disk has free. A quota is a limit, not space set aside, so a person can have quota left on a disk that is full.

  1. Open Admin → Storage → Locations. Each location on this server shows how much is free on its disk. This only reads.
  2. On the machine, run df -h /srv/files to see the disk and how full it is, and docker system df to see what Docker images and containers take on it. Both only read.
  3. Delete files that are no longer needed, or grow the volume that holds /srv/files. Growing the volume moves no files.
  4. Start the upload again. It is checked against the free space when it starts.

Usage looks wrong

Files added or removed outside Farwing, for example straight on the disk or in the bucket, are not seen until the next count. Farwing counts every location each night.

  1. Open Admin → Storage → Locations.
  2. Choose Recount now on the location, or Recount all. This reads the folders again and changes only the usage numbers. Uploads keep working while it runs.
  3. On S3 storage, incomplete multipart uploads and old object versions are not counted. Clean them up with a lifecycle rule in the bucket if the bucket's own total is much larger.

Warning: limit is more than this storage can hold

Saving a quota can show warnings, such as a space quota that is larger than its location, or group totals that add up to more than the disk holds. The quota is saved anyway. The smallest limit that applies is what really stops uploads, and the form shows it as the effective limit.

  1. Read which limit caps it: the location, a space, a group, or the free space on the disk.
  2. Lower the quota you just saved, or raise the one that caps it, so the numbers agree. Or leave it: overcommitting is allowed, and uploads stop at whichever limit is reached first.

Large uploads in the browser fail behind a proxy

The browser sends a large file in parts of 16 to 128 MiB, several at once. A reverse proxy or load balancer in front of the server that limits the size of a request refuses those parts, often with 413 Request Entity Too Large. Small files still upload, because they go in pieces of 8 MiB.

  1. Find the request size limit in the proxy's settings. In nginx it is client_max_body_size; other proxies call it the maximum request body or upload size.
  2. Set it to at least 128 MiB for the server's address, or turn the limit off there. Also turn off request buffering if the proxy has it (proxy_request_buffering off in nginx), so parts go straight through instead of being saved on the proxy first. This changes only the proxy. Nothing on the server changes.
  3. Reload the proxy and start the upload again.

The server runs in Docker Desktop on a Mac

Docker Desktop on a Mac runs the server inside its own small virtual machine and passes connections through to it. Two things behave differently from a Linux machine.

Ports below 1024 answer only on the Mac itself. With the portal on port 443, or port 80 open for Let's Encrypt, the server answers on the Mac but not from other machines. To fix it:

  1. Open Docker Desktop → Settings → Advanced.
  2. Turn on Allow privileged port forwarding and apply. Docker Desktop restarts its engine, and the server container restarts with it. No settings or files change.
  3. From another machine, open https://<hostname> to check that the portal answers.

Transfers over Farwing UDP do not get through. Docker Desktop's network on a Mac does not carry the UDP data port reliably, even with the router forwarding it. Transfers still work: Farwing Desktop and the command line use Farwing TCP when it answers, or else HTTPS, but more slowly than over UDP. For full speed, run the server on Linux:

  1. Use a Linux machine, or a Linux virtual machine on the Mac with its network in bridged mode, so it has its own address on your network.
  2. Install the server there as in Install and run.
  3. Point the router's port forwards, for the web port and the data port, at that machine's address instead of the Mac's.

Related