Current2 min readUpdated

SE-STA-019: Backup could not be written

The Hub could not write the backup file. Read the reason after SE-STA-019.

What it says

SE-STA-019: backup could not be written

Where you see it

In the terminal, when sudo /usr/local/bin/sehub backup fails: "SE-STA-019: <reason>". The web page's Back up is a plain download, and what a browser shows when it fails was not settled from code.

What to do

  1. 01Read the reason after SE-STA-019.
  2. 02If it says there is no hub in the folder, run the command on the box the Hub runs on, or name its state folder with --state (the default is /var/lib/sehub).
  3. 03If it says it cannot write the file, give --to a folder that root can write to and that has room. A --to that is not an existing folder is taken as the file name, and its folders are created.
  4. 04Run the backup again: sudo /usr/local/bin/sehub backup --to <folder>.