Space Backup Manual

Troubleshooting and logs

Chapter 13 of 14 · Contents

Where Space Backup keeps its logs and files on each platform, how to make a diagnostic bundle, which ports it needs, and a list of common problems with their causes and fixes.

First steps#

Most problems are explained by four commands. Run them in a terminal (Windows: PowerShell or Command Prompt, with sbctl; macOS and Linux: spacebackup):

sbctl status          # what it is doing now, last and next backup, warnings
sbctl dest list       # every destination: online, free space, how it is reached, last check
sbctl runs show last  # the newest run in detail: per destination, slowest and failed items
sbctl log --tail 100  # the last 100 lines of the app log

Add --json to any command for machine-readable output. If a command answers "Space Backup is not running", see The app is not running.

The tray (or menu-bar) icon also tells you a lot: a yellow ! is a warning (hover for the tooltip, open the menu for the status line), a red × an error. The Notifications list keeps the computer's own warnings (a folder not backed up, a drive missing or full, an update rolled back, a drive back and catching up); see Notification history.

Logs per platform#

Space Backup writes three kinds of records:

Windows#

Everything is in the data folder %APPDATA%\SpaceBackup (type it in Explorer's address bar):

File or folderWhat it is
log.txt, log.old.txtthe app log (Open Space Backup → Settings → Open log; log)
txlog\the transaction log, runs and events
requests\the requests log (7 days)
config.json, config.json.baksettings, folders, destinations (the previous version is kept as .bak)
identity.jsonthe sign-in, this computer's keys (protected for your Windows user; never in a diagnostic bundle)
notifications.jsonthe notification history
runs\journals of runs in progress or interrupted (empty otherwise)
scrub\, index\, commits\, fanout.journal, writelane.journal, speeds.jsonthe check's state, per-destination indexes, crash-safety journals, measured drive speeds
updates\, update-guard\downloaded updates; the record of an update that was rolled back
gdrive.json, gdrive\Google Drive accounts, sign-ins and mirrors
profiles\<name>\a test instance started with --profile <name>

The program itself is in %LOCALAPPDATA%\Programs\SpaceBackup (with sbctl.exe); the Explorer badge's DLL, when installed, in %ProgramFiles%\Space Backup.

macOS#

Everything is in ~/Library/Application Support/SpaceBackup (in Finder: Go → Go to Folder…):

File or folderWhat it is
log.txt, log.old.txtthe app log (menu → Open log)
daemon.out.txtthe service's own output, as started by macOS at login (the same lines with a short time, plus anything it printed before the log was open)
txlog/the transaction log, runs and events
config.jsonsettings, folders, destinations
identity.jsonthe sign-in and this Mac's device key (readable by your user only)
notifications.jsonthe notification history
control.sockhow the menu-bar app and spacebackup talk to the service
profiles/<name>/a test instance

The company key and the relay token are in your login Keychain (service "Space Backup"), not in files. The service is a LaunchAgent, ~/Library/LaunchAgents/net.spacebackup.daemon.plist, started at login and again after a crash.

The service does not write to macOS's unified log, so Console's live stream does not show it: open log.txt in Console (File → Open…) or any text editor, or use spacebackup log --follow.

Linux#

PathWhat it is
~/.local/state/spacebackup/log.txt, log.old.txtthe app log (tray/window → Open log)
~/.local/state/spacebackup/txlog/the transaction log, runs and events
~/.local/state/spacebackup/also run journals, indexes, the check's state, notifications.json, downloaded updates, Google Drive mirrors
~/.config/spacebackup/config.jsonsettings, folders, destinations
~/.config/spacebackup/identity.jsonthe sign-in and keys
~/.config/spacebackup/company-key, relay-tokensecrets, mode 600 (never in a diagnostic bundle)
~/.config/spacebackup/linux.jsonLinux-only state (for example that the firewall rules were added)
$XDG_RUNTIME_DIR/spacebackup.sockhow spacebackup and the GUI talk to the service

(XDG_STATE_HOME and XDG_CONFIG_HOME move the first two folders if you set them; --profile <name> instances live in profiles/<name>/ under each.)

The service runs as the systemd user unit spacebackup.service, and every log line also goes to the journal:

journalctl --user -u spacebackup            # everything
journalctl --user -u spacebackup -f         # follow live
journalctl --user -u spacebackup --since today
systemctl --user status spacebackup         # is it running?

iPhone and iPad#

The phone keeps no files you can reach. Its Backup log (a row on the Backup tab, after Last backup and Next backup) lists every run in detail, and also the scheduled runs iOS began that could not start, with why. What the computers did with the phone's backups is in the logs of the computers holding them. See The iPhone and iPad app.

Reading the logs from the command line#

CommandShows
log --tail 200the last 200 lines of the app log
log --followthe app log live, until Ctrl+C (or --for 10m)
status [--watch]the state now; --watch prints again whenever it changes (--until-idle stops when nothing runs)
events [--follow] [--since 2h]the high-level events: state changes, warnings, computers up and down, runs starting and ending, updates, setting changes
runs list [--since 7d] [--folder F]every run: trigger (schedule, catch-up, drive-back, peer-back, now, selection, resume, …), start and end, files and bytes copied, linked, skipped and failed, result
runs show <id>one run in full (last for the newest; 4+ characters of an id are enough)
tx [--run last] [--kind copy] [--path <glob>] [--result fail] [--since 2h] [--follow]the transaction log, filtered
explain <path>everything known about one file: which folder covers it, its schedule, every destination and date that holds it, hashes, last copy, check, and why it was or was not copied last run
transferswhat is moving right now: file, from → to, done / total, speed, time left
queuepending work: scheduled runs, fan-out backlog per destination, check progress, retries waiting
stats [--days 7]per destination and per computer: bytes in and out, files, average speed, errors, online %, relay use
notifications listthe notification history

All of them accept --json (streams print one JSON object per line). The full reference is in Transaction log and diagnostics commands.

Diagnostic bundle#

When you contact support, send a diagnostic bundle: one zip file with what is needed to understand the problem.

sbctl diag                         # Windows: written to your temp folder, the path is printed
spacebackup diag --out ~/diag.zip  # macOS, Linux: anywhere you like

It answers, for example: diagnostic bundle written: C:\Users\anna\AppData\Local\Temp\SpaceBackup-diag-ANNA-PC-20261018-101500.zip (2.1 MB, 24 files; the company key and relay token are not in it).

What is in it: the settings (config.json with secrets removed), the app log and the previous one, the last days of the transaction log with the runs and events, the check's state, the versions (app, system, install kind), the status, folders, destinations, paired computers, settings, the account's state without its secrets, the queue, the update state, the firewall state, the last 50 runs and the disks. On Linux also linux.json.

What is never in it: the company key, the relay token, identity.json (the sign-in and keys), or any of your backed-up files. File and folder names of your backups do appear in the logs.

Firewall and ports#

PortDirectionUsed for
TCP 47800incomingother computers of the company connecting to this one's destinations (the setting port, CLI only, changes it)
UDP 47801incoming and outgoingfinding the other computers on the local network (multicast 239.255.47.80 and broadcast)
TCP 47900 to relay.spacebackup.netoutgoingSpace Relay, for computers at other sites
HTTPS (443) to spacebackup.netoutgoingsign-in, the company, notifications, updates

A computer with no destinations of its own needs no incoming rule; outgoing connections work regardless. Computers find each other only on the same network segment (no routing across subnets or VPNs); computers elsewhere meet through Space Relay. The app never asks your router to forward a port: computers at other sites reach this one only through Space Relay.

Windows Firewall#

The app adds two inbound Allow rules, Space Backup TCP (TCP 47800) and Space Backup UDP (UDP 47801), for private and domain networks, not tied to the program's path (so an update does not prompt again). It replaces any older rule whose name contains "spacebackup", including the Block rules Windows creates when its prompt is cancelled.

That needs administrator rights, which the app normally does not have. Until the rules are there:

Click either: Windows asks for administrator rights once and the rules are added. From an administrator PowerShell: sbctl firewall (exit code 5 without administrator rights); sbctl firewall --check tells whether they are there. The warning goes away only when both rules are present and enabled for private and domain networks and no Block rule of Space Backup's applies.

Note: If the network is set to Public in Windows, the rules (private and domain) do not apply. Set your office network to Private.

Linux: ufw and firewalld#

When ufw or firewalld is active and the rules were not added yet, the main window shows Other PCs can't reach this PC yet with Allow. Allow adds both rules through the desktop's administrator prompt (one prompt) and tells the service, which remembers it. A cancelled prompt changes nothing. status says "warning: Other PCs can't reach this PC yet …" meanwhile.

From a terminal, spacebackup firewall prints the exact commands; for ufw:

sudo ufw allow 47800/tcp comment 'Space Backup'
sudo ufw allow 47801/udp comment 'Space Backup discovery'

for firewalld:

sudo firewall-cmd --permanent --add-port=47800/tcp --add-port=47801/udp && sudo firewall-cmd --reload

spacebackup firewall --allow runs them (as root, or with sudo when it needs no password; exit code 5 otherwise). If you add the rules yourself, run spacebackup firewall --allowed so the warning goes away (the rules cannot be read without root).

macOS#

When the macOS firewall is on, macOS asks once whether Space Backup may accept incoming connections: click Allow. If you clicked Deny, allow it again in System Settings → Network → Firewall → Options.

Problems and fixes#

The app is not running (exit code 3)#

Signs: every sbctl/spacebackup command answers "Space Backup is not running (start it: sbctl start)" and exits with code 3; the tray icon is gone; on Linux the window says the service is not running and offers Start; on a Mac the menu shows Start Space Backup.

Fix:

A destination is missing or offline#

Signs: yellow tray icon; Destinations shows Offline; a notification "… is missing"; now --wait exits 4; the run says a destination was skipped.

Causes: an external drive unplugged, a network share not connected (or its server off), a drive letter changed, another computer switched off or asleep, or its drive unplugged.

Fix:

A destination is full#

Signs: Destinations shows Full (under 1 GB free); a notification that a drive is full; copies to it fail.

Causes: too many dated backups for the drive's size; a FAT32 or exFAT drive (no hard links, so every date takes the full size); a new big folder.

Fix:

A folder was not backed up#

Check sbctl folders list, then sbctl explain <a file in it>, which says why it was or was not copied. Common causes:

SignCauseFix
"<folder> was not backed up: its drives are no longer available"every destination chosen for it was removedchoose its destinations again (Destinations of the selected folder:)
"<path> is missing on this PC: it was not backed up."the folder was renamed, moved or deleted, or its drive is unpluggedplug the drive in, or add the folder at its new place and remove the old path (Moving a folder)
Next start in the future, never rana new folder waits for its first time in the night windowwait, or click Back up now
"only with Back up now"an Only once folder that is done, or Manual onlychange its frequency, or use Back up now
Shown in yellow, "2 of 3 copies (only 2 PCs available)"Auto cannot place all copiesadd destinations or computers, or lower the number of copies
"CHIA3 isn't signed in to Acme yet, so Projects isn't backed up there."the other computer is not in your company yetsign in on CHIA3 with an email of your company
The computer was asleep or off at nightmissed runit runs within 10 minutes of the next start; on Windows turn on Wake this PC for backups
Files skippedlocked or unreadable files, or files changing during the copythey are tried again next run; tx --run last --result fail lists them

Another computer is offline or not seen#

Signs: its drives show Offline; peers list shows it as not reachable; "Other computers appear here after they sign in with the same company."

Check:

  1. Is it on and awake, and is Space Backup running there?
  2. Is it signed in to the same company? account status on both. A computer not signed in, or in another company, cannot pair.
  3. Same network? Computers find each other only on the same network segment; across subnets, VPNs or sites they meet through Space Relay (settings get relay-status must not say "Can't reach the relay").
  4. The firewall on the computer that owns the drives: see Firewall and ports.
  5. peers list shows how each computer was last reached (lan, relayed) and when it was last seen. A computer not heard from for 100 seconds counts as offline.
  6. "other PCs cannot connect: another program is using Space Backup's network port" in the tray: another program took TCP 47800; close it, or move Space Backup to another port with settings set port <n> and restart it (the other computers learn the new port from its announcements).

A destination that is busy serving other computers answers "busy, retry in N s"; that is not an error: the backup waits its turn (see Incoming backups in Replication).

Space Relay: "Activation needed"#

Sign: Settings → Space Relay says "Activation needed: this month's free relay traffic is used (PCs on the same network keep working)", with Activate Space Relay….

Cause: the company used its free relay traffic for the month (50 GB per company) and has no prepaid credit. Only computers at other sites are affected; computers on the same network keep working.

Fix: an owner or admin clicks Activate Space Relay… (or Buy relay credit…) and buys a pack; relay balance shows the credit, relay buy --open opens the buy page. Or wait for the next month. See Billing and prices.

Space Relay: "Can't reach the relay"#

Sign: "Can't reach the relay (offline?)"; the tray turns yellow after 2 minutes; Destinations says "Computers at other places can't be reached right now. Those on this network still can."

Causes and fixes:

The sign-in mail does not arrive#

Fix:

The sign-in code expired or is refused#

A link and its code are valid for 15 minutes and once. After 5 wrong codes the sign-in is dead; a wrong code shows the attempts left in red. Click Use another email (or send the sign-in email again) to get a new link and code. The link can be opened on any device (your phone too): it signs in the computer that asked, and the window notices by itself within a few seconds. Mail scanners that open links do not use them up.

"Ask your company's admin to invite you" (exit code 6)#

Sign: after the sign-in: "Ask your company's admin to invite anna@gmail.com." with Check again and Create my own company; account join exits with code 6; account status --json has memberStatus: invite-needed.

Cause: a personal address (gmail.com, outlook.com, …) joins a company only by invitation.

Fix: an owner or admin invites exactly that address on the admin page or with account invite anna@gmail.com (see Inviting people). Then click Check again (the app also checks every minute) or run account join. Choose Create my own company only when you are setting up Space Backup for a new company.

A work address at the company's domain may also wait for approval ("Waiting for an admin of Acme to approve this email.") when the company does not let its domain join automatically: an owner or admin approves it on the admin page.

"Another computer in your company is already called …" (exit code 7)#

Sign: "Another computer in your company is already called ANNA-PC. Choose a name for this computer:" with a free name (ANNA-PC-2) and Use this name; account join or account code exits with code 7.

Fix: accept the suggestion or type another name, and click Use this name; or settings set machine-name ANNA-LAPTOP. Space Backup restarts with the name. If the computer already had backups, they stay under the old name and new ones go under the new one. If the other computer of that name is an old one that is gone, an owner or admin can remove it from the devices list first (Devices). See Choose a computer name.

Waiting for the company key#

Sign: Settings → Account says "Waiting for the company key…", "Waiting for ANNA-PC to hand over the company key. Open Space Backup on it, or approve this computer from the email we sent to …", or "No device of your company holds the company key. …"; folders set to Encrypt show "Yes, once signed in".

Cause: a newly signed-in computer gets the company key from another computer of the company that has it, end to end. If none hands it over within 2 minutes (they are off, or the only one is a sleeping phone), the owner and admins get an Approve mail.

Fix: turn on (or open Space Backup on) one of the computers named, or have an owner or admin click Approve in the mail, on the admin page, or run devices approve <name> on a computer that has the key. See A device waiting for the company key. Backups keep running meanwhile (plain until the key arrives).

A restore fails#

MessageCauseFix
"Nothing this PC can restore: the selection is encrypted with another PC's key."the backup is another computer's and encryptedRestore another PC's backups… → Ask to restore, and wait for approval; or have its owner share it with you (Another computer's backups)
"… is encrypted, and this PC may not read it yet …" (exit 1)as above, from the command lineas above
"… are not shared with you and no restore of them was approved for this PC …"--pc for a computer that is neither shared with you nor approvedrecover request <PC>, or ask its owner to share it
"Nothing to restore: the selection is not inside a Space Backup date folder."Explorer's restore on a folder outside the backupsopen a date folder under SpaceBackup first, or use Open Space Backup → Backup → Restore
"No backup of … on this PC's destinations or on the PCs holding its backups (an offline PC: try again when it is on)."the computer holding the backups is offturn it on, or restore from another date or destination
A file is not restored, "marked damaged"the copy no longer matches its fingerprintchoose another date or destination; the check repairs it when a good copy exists
Files skippedthey already exist and Skip it was chosenchoose Replace or Keep both
exit code 4some files failed, the others were restoredruns show last / tx --kind restore --result fail lists them

A computer that replaces a lost or dead one restores the old one's encrypted backups as another computer's. Signed in with the same email, it gets the old computer's key by itself within a minute of having the company key (no approval, no email); then Restore… lists the old computer. For a colleague's computer: Settings → Account → Restore another PC's backups… → Ask to restore, and the colleague or another owner or admin approves (see Approving a restore of another computer); the key is released only after that approval.

An update was rolled back#

Sign: "The update to 0.12.2 could not be completed on this PC; Space Backup stays on 0.12.1." (a notification); update status says the version is held: "… It is tried again after <time>."

Cause: on Windows, the new version did not start within 2 minutes, or its program could not be opened (most often an antivirus blocking a freshly replaced program), so the previous version was put back. On Linux, an update that did not complete is recorded the same way.

Fix: nothing is lost and backups go on. The same version is tried again after a day; a newer version is not held. To try at once: update now or the tray's Update to Space Backup …. If your antivirus blocked it, allow Space Backup in it. update status --json and the diagnostic bundle show the reason (failedReason).

The tray menu is still the long one#

Sign (Linux): the tray menu still lists Status…, the folders, Destinations…, Check backups now, Backed-up folders…, Photos…, Restore…, Settings… and Open log, and its first line is an old version ("Space Backup 0.14.6"), although spacebackup version says a newer one.

Cause: the tray icon was started before the service updated itself, and versions up to 0.16.18 did not restart it: it kept running the old program until you logged out. The menu now has only the status, Back up now (or Cancel backup), Notifications, Open Space Backup and Quit, as on a Mac; everything else is in the Space Backup window.

Fix: nothing is lost: the backups run in the service, which is up to date. Click Quit in the tray menu, then open Space Backup from the applications menu (or run spacebackup gui); or log out and in. Since 0.16.19 the service restarts the tray icon by itself when it updates, an old one too.

The iPhone is not backing up#

The Explorer badge is missing#

Open Settings and read the Explorer badge line (or sbctl shell status):

On Linux the emblem shows in Nautilus (icon view) and Nemo, not in Dolphin. No Space Backup items in Nautilus: install python3-nautilus, run spacebackup integrate and nautilus -q.

Backups are slow#

Find out where the time goes:

sbctl transfers        # what moves now, speed and time left
sbctl stats --days 7   # average speed per destination and per computer, errors, relay use
sbctl dest list        # write speed and backlog of each destination, how each computer is reached
sbctl runs show last   # the slowest items of the last run
sbctl queue            # what waits

Common causes:

Finding out what happened#

Contacting support#

Write to support@spacebackup.net with:

  1. What you expected and what happened, with the exact words of any message (a screenshot is fine).
  2. The computer's system (Windows, macOS, Linux distribution, iPhone or iPad) and the version: sbctl version or spacebackup version (or Settings).
  3. A diagnostic bundle from the computer concerned (sbctl diag); for a problem between two computers, from both. It holds no keys and none of your files.
  4. For a single file: the output of explain <path>.

Support never needs your company key, a sign-in code or a password: do not send them.

Space Backup is made by Digital Sign Technologies Inc., Mississauga, Ontario, Canada. Website: https://spacebackup.net.