Skip to content
AcuGIS Connect Documentation

Troubleshooting

Match the symptom, then follow the link back to the setup step. Service logs are in the journal:

journalctl -u acugis-backup.service -n 50 --no-pager

There is no separate AcuGIS Backup log file. AcuGIS Connect writes connect.log without passwords or private keys. Its path is in Connect troubleshooting.

Installation

The service fails to start

systemctl status acugis-backup.service --no-pager
journalctl -u acugis-backup.service -n 50 --no-pager
Message What to do
refusing to run as root Start it through acugis-backup.service, which sets User=acugis-backup. Do not run the binary as root.
admin_password_hash must be a bcrypt hash Replace the value with the output of /usr/local/bin/acugis-backup hash-password. The hash starts with $2.
credential key must be 32 bytes Recreate the key with the dd command in Install AcuGIS Backup.
credential key mode is …, want 0600 chmod 0600 /var/lib/acugis-backup/credential.key and chown acugis-backup:acugis-backup that file.
state_dir is required, credential_key_file is required, or allow_roots is required Restore the missing setting in /etc/acugis-backup/config.yaml.
listen must be host:port Use 127.0.0.1:8090, or another host:port value.
a non-loopback listen address requires tls_cert_file and tls_key_file Keep listen on 127.0.0.1, or set both TLS files. See Security.
tls_cert_file and tls_key_file must both be set Set both paths, or neither.

After a configuration change:

systemctl restart acugis-backup.service

The port is already in use

The journal reports bind: address already in use for 127.0.0.1:8090. Find the listener:

ss -lnt | awk '$4 ~ /:8090$/'

Stop the other program, or set listen to another loopback port and use that port as Remote port in AcuGIS Connect. Restart the service after the change.

A dependency is missing

PostgreSQL jobs need the binaries named by pg_dump_path and psql_path. If a path is empty or not absolute, the job reports tool path must be absolute. If the file is missing, the job reports tool path: and the operating-system error.

command -v pg_dump
command -v psql

Point the configuration at those absolute paths and restart the service. File-system jobs do not need pg_dump. zstd and gzip are part of the AcuGIS Backup binary. They are not separate packages.

SSH

These messages come from AcuGIS Connect. The full authentication page is SSH Authentication.

What you see What to check
SSH authentication failed Username, private key, and password. A generated key works after its public key is in ~/.ssh/authorized_keys for that SSH account.
SSH password is required or SSH private key passphrase is required Enter the secret. Select the checkbox if you want it saved in the operating system credential store.
SSH private key could not be used The path must be an OpenSSH private key that this account can read.
SSH agent is unavailable On Windows, start OpenSSH Authentication Agent and run ssh-add. On macOS, confirm ssh-add -l from the same login session.
SSH host key for … has changed The connection was refused and the stored key was not replaced. Confirm the new fingerprint, click Forget Saved Key, and connect again.
The connection sits until timeout SSH host, SSH port (usually 22), and the network path to the server. Timeout (seconds) in Advanced starts at 20.

Tunnel

What you see What to check
local port … is already in use Edit the connection and choose another local port from 1024 through 65535. Each active connection needs its own local port.
SSH is connected, the listener is up, and the status says the remote address is not reachable Remote host and Remote port. For the default installation those are 127.0.0.1 and 8090. On the server, confirm ss shows 127.0.0.1:8090 and that systemctl is-active acugis-backup.service prints active.
The browser did not open Click Open Backup, or open http://127.0.0.1: and the local port. Open Backup is shown for an AcuGIS Backup connection while the listener is active.
The browser cannot open the local page The tunnel must be connected. The address is http://127.0.0.1 and the local port, not the server's public address, and not port 8090 on your computer.
Open Backup does nothing useful The button stays disabled until the SSH transport and the local listener are up. Connect the profile first.

Disconnecting the Backup connection does not close a PostgreSQL tunnel. See Connect Using AcuGIS Connect.

Backup login

What you see What to check
The password is not correct. The password you chose for acugis-backup hash-password. Connect does not store this password. Generate a new hash and replace admin_password_hash if the password is lost, then restart the service.
too many login attempts Five failures from the same address within 15 minutes. Wait and try again. Through the SSH tunnel the service sees the loopback address.

Backup jobs

The source path is rejected

Message Meaning
select a directory or a file Enter at least one absolute path under Directories or Files.
path is outside the allowed roots The path is not under a directory in allow_roots.
path is not allowed The path is /root, /etc itself, a credential file, or another rejected location.
path must be absolute The path does not start at /.
path does not exist The path is not on this server.
permission denied acugis-backup cannot read it. Add a group or an ACL, and a BindReadOnlyPaths line when the path is under /home. See Install AcuGIS Backup.
paths overlap: … One selected path contains another. Archive the parent, or exclude the child.
exclude pattern must be a relative slash pattern Use a pattern such as *.log, not an absolute path.

PostgreSQL authentication failed

List databases and the backup both use psql or pg_dump. The error text includes psql failed: or pg_dump failed: and the client message.

  • Peer connects as the operating-system user acugis-backup, with no stored password. pg_hba.conf must accept that user on the local socket. If the database role has another name, pg_ident.conf must map acugis-backup to that role.
  • Password requires the password on the connection form. The cluster must allow password authentication for that role.
  • Listing databases connects to the database named postgres. The role needs permission to connect to it.
  • The role needs CONNECT on each selected database and the right to read the objects pg_dump should include.
  • Select a PostgreSQL connection. means the job has no connection. select a database means no checkbox was selected after List databases.

SFTP destination

Message What to check
SFTP connection failed Host, Port, and the server's outbound path to that SFTP server.
SFTP authentication failed Username, password or private key, and SSH host key. A host key that does not match is reported with this same message.
SSH host key is invalid Paste one OpenSSH public key or one known_hosts line.
SFTP directory is not available Remote directory must already exist and be a directory the account can open.
remote SHA-256 does not match The uploaded file did not match the archive. The run is failed.
invalid SSH private key The pasted key is not an OpenSSH private key this program can parse. An encrypted key also needs Key passphrase.

S3 and Google Cloud Storage

Message What to check
S3 endpoint must use HTTPS Endpoint must be HTTPS. Do not use http://.
S3 endpoint must not include credentials Put the keys in Access key and Secret key, not in the URL.
bucket is invalid or bucket name is invalid Use the bucket name only, without a path.
access key and secret key are required Both S3 key fields are required.
S3 connection failed: Test could not reach the bucket. Check the endpoint, region, addressing mode, keys, and outbound HTTPS.
S3 object size does not match or S3 checksum does not match The stored object did not match the archive. The run is failed.
Google Cloud credentials were rejected or are not available. Application Default Credentials are missing, or the JSON key was rejected. See Configure Backup Destinations.
The GCS bucket was not found. Bucket name does not match a bucket this account can see.
GCS permissions are not sufficient. Grant storage.buckets.get, storage.objects.create, storage.objects.get, and storage.objects.delete on that bucket.
The GCS object size does not match. or The GCS checksum does not match. The stored object did not match the archive.
Destination is reachable. The test succeeded.

The job was saved but the run failed

Open the run from Last run or from History and read the error.

Message Meaning
not enough free space for a backup Free space on the state volume is below min_free_bytes (1 GiB in the example configuration).
archive is empty or archive contains no files The selection produced no files, often because every entry was excluded or unreadable.
not a valid zstd archive or not a valid tar archive The file-system archive could not be read back. The run is failed.
dump header missing or not a valid gzip file The PostgreSQL dump failed verification.
Skipped, with error job is already running This job already has a run in progress. A second copy is not started. Wait, or click Cancel.
A job with that name already exists. Choose another job name.

Cancelled means Cancel was clicked. Interrupted means the service restarted during the run. Successful with Verified means the checks for that job passed. It does not mean the backup has been restored. Recovery is described in Security.