12 Troubleshooting
liquibyte edited this page 2026-11-27 19:30:23 -06:00

Troubleshooting

What to do when something does not work. The page is ordered by what you see; each table says what you see, why, and what to do. Messages are quoted as the programs print them.

Messages from the site itself (the door, the program that answers every command, whether it comes from plain ssh, the folio command or the desktop program) begin with folio: . So do the folio command's own messages. The tables leave that out.

Commands that only look work with plain ssh (ssh folio@dur.example.org whoami). Commands that change something must be signed with your GPG key, so this page shows them as folio COMMAND (see Signed requests).

Seeing what is going on

Start here. Nearly every problem shows in one of these places, in plain words.

What you want to see Where
every command that reached the site, what was refused and why, imports, build nodes' requests, publishing on the server: sudo tail -F /srv/folio/private/activity.log (tail -F keeps showing new lines, also once the log is started again; Ctrl+C stops it). Each entry is one line of at most 500 bytes, with control characters written out (\n, \033); past 5 MB the log is kept as activity.log.1 and a new one is started
why one build failed the build's page on the site (Builds, then its number), with the full log
which projects were not imported, and why ssh folio@dur.example.org imports (members see their own; administrators see all)
what is sent to the forge, or why not folio admin publish-now
mail that is waiting on the server: sudo -u folio /usr/lib/folio/folio-mail --show
who changed what the Changes page, or ssh folio@dur.example.org admin log
what a build node is doing on the node, the output of folio-node run (see the Build Node Guide)

Getting in

What you see Why What to do
Permission denied (publickey). the site does not know the key ssh offered. Either it is not the key you were let in with, or your account is suspended (a suspended account's keys are taken out of the list of who may come in) use the computer and key you were let in with. If you have several keys, name it: ssh -i ~/.ssh/KEYFILE folio@dur.example.org whoami. If it is the right key, ask an administrator whether the account is suspended
WARNING: UNPROTECTED PRIVATE KEY FILE! and Permissions 0644 for '/home/you/.ssh/id_ed25519.pub' are too open, then Load key ".../id_ed25519.pub": bad permissions and Permission denied (publickey). the site's settings named the .pub file as the key to use (key= in ~/.config/folio/sites/NAME, or SSH private key: in the desktop program). ssh needs the private key file, and takes any file it is given with -i for one; a .pub file is readable by everyone, so ssh refuses it as an unprotected private key. Folio now uses the private key file beside a .pub file by itself, so this is seen with plain ssh -i only give ssh the private key file: ssh -i ~/.ssh/id_ed25519 ... (not .pub). If the private key file itself is readable by others: chmod 600 ~/.ssh/id_ed25519
Your SSH private key file ~/.ssh/id_ed25519 can be read by others, so ssh will not use it. Make it readable by you alone: chmod 600 ~/.ssh/id_ed25519 (from folio or the desktop program) the private key file's permissions let others read it; ssh would refuse it run the chmod 600 command it names
Uses your SSH key ~/.ssh/id_ed25519 (the private half of id_ed25519.pub, which never leaves this computer). you gave the .pub file as the site's key. That is fine: the private key file beside it is used nothing. The desktop program keeps the private key file in the site's settings by itself. folio, for a site's file that still names the .pub file, says how to keep it: write key=/home/you/.ssh/id_ed25519 in ~/.config/folio/sites/NAME
~/.ssh/NAME.pub is the public half of an SSH key, and its private half (NAME) is not beside it. Choose the private key file: the one without .pub. the .pub file given has no private key file next to it (it was copied there alone, say) give the private key file, or leave the key empty to use your usual one
There is no SSH key file FILE. Choose your SSH key, or leave it empty to use your usual one. the key file named for the site is not there name the right file, or none
FILE is not an SSH key file. ... or FILE holds the public half of an SSH key, and its name does not end in .pub, ... the file given is not an SSH private key (nor a .pub file with one beside it) give your private key file, for example ~/.ssh/id_ed25519
folio: ssh did not use your SSH private key file, because others can read it. ..., ssh could not read the SSH key file set for this site: it is not an OpenSSH private key. ..., The SSH key file set for this site is not there. ... or ssh could not load the SSH key file set for this site ... (after what ssh said; the desktop program adds the same) ssh said bad permissions or UNPROTECTED PRIVATE KEY FILE, invalid format, no such identity, or Load key as it says: chmod 600 the key file, or set the site's SSH key again (your private key file or its .pub file)
The site did not accept your SSH key. Is your key on your account there, and unlocked (ssh-add)? (after Permission denied (publickey)) ssh offered a usable key and the site did not take it see the first line of this table; with a passphrase, load the key (ssh-add)
the desktop program says the site did not accept your SSH key, though ssh in a terminal works your key has a passphrase and is not loaded. The program cannot ask for a passphrase in a terminal: ssh-add ~/.ssh/id_ed25519, then start the program again
ssh asks for a password you reached an SSH server that is not the site's door: the wrong port or the wrong computer. A Folio site never asks for a password check the port. The site's pages show the full command, with -p PORT if it needs one
ssh asks for a password, with the right port, on a newly installed site the server's sshd does not read the site's settings on the server, add Include /etc/ssh/sshd_config.d/*.conf at the top of /etc/ssh/sshd_config, then sudo service ssh reload
folio-install step 6 says PROBLEM: sshd will not start with its settings as they are. and It says: ... sshd finds a mistake in its settings: often no host keys yet on a fresh system, or a mistake in /etc/ssh/sshd_config.d/folio.conf after an edit by hand fix what the It says: line names (no host keys: sudo ssh-keygen -A). Then run folio-install again: it checks sshd's settings each time, and leaves your folio.conf as it is
Connection refused the wrong port, or the server's SSH is not running check the port on the site's pages. On the server: sudo service ssh status
Host key verification failed. the server's own SSH identity changed since you first connected. After a planned move to a new server that is expected; otherwise it can mean someone is in between compare with the keys the site publishes (curl -fsS --proto '=https' https://dur.example.org/ssh-host-keys | ssh-keygen -l -f -, see Checking the site's key) and ask the site's owner whether the server moved or was reinstalled. If it did: Backup and Restore. If not, do not go on
the desktop program says The site's SSH key does not match the keys it publishes at https://dur.example.org/ssh-host-keys, which are the ones this program trusts. Nothing was sent. Someone may be between you and the site: ask the site's owner before you go on. the server it reached showed a key that is not among those the site's pages publish, and the pages still list the keys the program trusts. ssh stopped before anything was sent do not go on. Ask the site's owner. If the server was replaced, its pages publish its new keys once folio-install (or any change on the site) has written them again; the program then shows the new fingerprints beside the old ones and asks Trust the new keys? (see The site's SSH keys)
the desktop program asks Trust the new keys?, with the fingerprints trusted until now and the ones listed now the site's pages list other SSH keys than the ones the program trusts: the owner changed them (after a break-in, or a move), or someone answers for the site's https name say Yes only if the owner told you the keys changed and gave you these fingerprints. No keeps the old ones: The SSH keys this program trusts for the site were not changed, and nothing was sent.
the desktop program says The site's web address is not set: click Site and give it (https://...). This program fetches the site's SSH keys from there before it connects. its settings were written by an older version, without the web address Site..., fill in Web address: (https://dur.example.org), OK
the desktop program says The site's SSH keys could not be fetched from https://dur.example.org/ssh-host-keys, so it was not contacted. the web address under Site... is wrong, the pages cannot be reached, or the site publishes no keys check the address in a browser: https://dur.example.org/ssh-host-keys should show one line per key. If it is missing, the site's owner runs folio-install again (see below)
the desktop program says This is a private key. It never leaves your computer: choose the file ending in .pub. you chose id_ed25519 (the private half) where the public key (id_ed25519.pub) was wanted choose the .pub file. Nothing was sent
the desktop program says That file is not an SSH public key. A .pub file holds one line that starts with ssh-ed25519, ssh-rsa, ecdsa-sha2- or sk-. the file is not one SSH public key choose the .pub file. Nothing was sent
the desktop program says This is a private PGP key. It never leaves your computer: send the public key (folio-mykeys export, or gpg --armor --export). what was to be sent as your PGP key held a private key nothing was sent. folio-mykeys export prints the public key only; check what it prints
folio: that is a private key. It never leaves your computer: send the public key, the one line of the file ending in .pub (from key add or admin node add) what was sent holds a private SSH key, or is a PuTTY key file send the .pub file: folio key add < ~/.ssh/id_ed25519.pub. The site kept nothing of it; if the private key was sent over a channel you do not trust, make a new key
folio: that is more than one line: send one SSH public key, the one line of a .pub file two keys at once, or a file with more in it send one .pub file at a time
folio: that is a private PGP key. It never leaves your computer: send the public key (folio-mykeys export, or gpg --armor --export) (from pgp set or admin pgp) what was sent holds a private PGP key folio-mykeys export | folio pgp set
folio-install step 6 says PROBLEM: the site's SSH keys could not be published sshd has no host keys in /etc/ssh yet, or the pages could not be written sudo ssh-keygen -A, then run folio-install again. Until the keys are published, the desktop program and build nodes do not connect
this site hosts no repositories. Put your project on your forge, then: ... you ran git push or git clone against the site projects live on your forge; the site imports them. Use folio watch or folio follow (see the Member Guide)
the site is busy; try again in a moment another change, a backup, or a sending to the forge held the site for more than half a minute try again in a minute. If it lasts, see The record

Signed requests

Every command that changes something must come as a request signed with the GPG key recorded for your account. The folio command (package folio-client) and the desktop program make and sign it for you. Plain ssh can only look. A refusal of a signed request ends in nothing was changed: you can fix the cause and send it again.

From the site

What you see Why What to do
that changes something, so it must come as a request signed with your GPG key: run it with the folio command (folio WORDS), or from the desktop program. Plain ssh can only look you sent a command that changes something with plain ssh run it as the message says: folio WORDS. To set folio up the first time, see the Quick Start
your account has no GPG key: it can look, but every change must be signed with your own GPG key. Make one (folio-mykeys pgp), send its public key (folio-mykeys export) to an administrator, and ask them to set it on your account (admin pgp NAME) your account was made before keys were needed, or its key was taken off (pgp remove). You cannot set the first key yourself: a stolen SSH key would be enough for that folio-mykeys pgp, then send what folio-mykeys export prints to an administrator, who runs folio admin pgp NAME < your-key.asc. The owner sets their own on the server (folio-setup --owner-pgp, see the Owner and Administrator Guide)
that is not a signed request as the folio command makes it (signed REQUEST SIGNATURE); nothing was changed what came after signed is not a request and signature as folio writes them: damaged on the way, made by hand, or with a line too many or too few. Also a signed request for the command signed send the command with folio or the desktop program. If you wrote a program of your own, compare its request with folio --request ...
this request is signed for the account A, but the SSH key that came in is B's; nothing was changed the request names one account, and the SSH key that came in is another account's. Both must be the same person's use the SSH key of the account you signed for (key= in ~/.config/folio/sites/NAME), or the GPG key of the account you came in as
this request was made for another site (this site's key is FPR); nothing was changed the request was signed for another Folio site, whose key it names. A request is of no use at any other site check ssh= and web= in ~/.config/folio/sites/NAME: they must both be this site's (folio --sites shows which site is in use). Then send it again
this request was signed at DAY TIME UTC, more than five minutes from the site's clock (TIME UTC): check your computer's clock and send it again; nothing was changed your computer's clock, or the server's, is more than five minutes off set your clock right (on Devuan: install ntpsec or chrony). If your clock is right, tell the site's owner that the server's is not
this request is not signed with NAME's GPG key (FPR); nothing was changed it was signed with another key than the one on your account, or the request was changed after it was signed folio-mykeys use FPR if you hold that key. If you lost it, an administrator sets your new one (folio admin pgp NAME). If neither, someone may have changed the request on the way: do not send it again before you know why
your GPG key FPR has run out (or the part of it that signs has), so the site takes nothing it signs. Renew it on your computer (gpg --quick-set-expire FPR 2y), then ask an administrator to set the renewed key on your account (admin pgp NAME); nothing was changed your GPG key, or its signing subkey, ran out gpg --quick-set-expire FPR 2y (for a subkey that ran out: gpg --quick-set-expire FPR 2y '*'), then folio-mykeys export > me.asc and ask an administrator to run folio admin pgp NAME < me.asc
your GPG key FPR has been revoked, so the site takes nothing it signs. Ask an administrator to set your new key on your account (admin pgp NAME); nothing was changed the key on your account was revoked make a new key (folio-mykeys pgp) and ask an administrator to set it (folio admin pgp NAME)
what came with the request is larger than 300000 bytes; nothing was changed more than 300000 bytes came on standard input send less: a comment is at most 5000 bytes, a key far less
what came with the request did not end within 60 seconds; nothing was changed standard input was not closed within the time the site waits for it (60 seconds, or what input-time in the server's folio.conf says): a program of your own that sends its input but does not close it, or a connection that stalled send it again with folio (which sends a file, and closes it). In a program of your own, close standard input once the input is sent
what came with the request could not be read; nothing was changed reading standard input failed on the server send it again; if it lasts, the site's owner looks at the server's disk (df -h /srv/folio)
that command is longer than 4096 bytes, more than any command of this site takes; nothing was done what was typed after ssh folio@HOST is longer than any command of the site. It is noted in the activity log by its size alone send the command as folio writes it; text belongs on standard input (a comment: folio comment PACKAGE)
the comment holds control characters (an escape, a carriage return, or another), which a comment may not; only line ends and tabs may be in one. Nothing was added the comment holds a character that is not text: an escape sequence (colours, a window title), a carriage return (a file written on Windows ends its lines in one), or another control character send it as plain text: for a Windows file, tr -d '\r' < FILE | folio comment PACKAGE
that change is the owner's (made by OWNER, or of OWNER's account, comments or packages); only OWNER can undo it (from admin undo) the change was made by the owner, or changed the owner's account, one of the owner's comments, or the meta or upload of one of the owner's packages: what an administrator may not do directly, they may not undo either ask the owner to undo it
not a usable account name: NAME (lower-case letters, digits, . _ + -, not starting with . or -) (from vouch) the name has another character, or starts with a dot or a - choose another name
in what folio or the desktop program shows, \033[..., \r or another \ and three digits text from the site (a comment, a description, a name) held a control character. The site's answer is shown with each written out, so that it can do nothing to your terminal nothing: that is the text as it is. New comments with such characters are refused
what came on standard input is not what was signed (its sha256 is another); nothing was changed what arrived on standard input is not what was signed: it changed on the way, or a program of your own sent other bytes than it signed send it again with folio. If it happens again, something between you and the site changes what you send
this request was sent before (its nonce was used already), and a signed request counts once; nothing was changed the very same request came twice: sent again by hand, or replayed by someone who saw it nothing, if you sent it twice yourself; folio makes a new request each time. If not, someone copied your request: it changed nothing
this site cannot check signatures (gpg is not installed), so it takes no changes the server has no gpg the site's owner: sudo apt install gnupg on the server
this site has no key of its own, so it cannot take signed requests (on the server: folio-key show) the site's own key is missing: a site that was never finished, or a broken restore the site's owner: sudo -u folio /usr/lib/folio/folio-key show on the server, and Backup and Restore
send both of the new person's keys: the one line of their SSH .pub file, then their PGP public key (cat KEY.pub KEY.asc | folio vouch NAME). Without a PGP key an account could only look (from vouch) only the SSH key was sent cat their-key.pub their-key.asc | folio vouch NAME
that is not an SSH public key (send the one line of their .pub file first, then their PGP public key: cat KEY.pub KEY.asc) (from vouch) what came first is not the line of a .pub file: the two keys in the wrong order, for example the SSH key first, then the PGP key, as the message shows
that is a private key. It never leaves your computer: send the public keys, the one line of the file ending in .pub, then the PGP public key (from vouch) what was sent holds a private key send the public halves only. If the private key went over a channel you do not trust, the new person makes a new one
admin pgp NAME, with their PGP public key on standard input admin pgp was given no name, or more than one word folio admin pgp NAME < their-key.asc
NAME owns this site; only NAME can change that account (from admin pgp) an administrator tried to set the owner's key the owner sets it: with folio admin pgp NAME (or folio pgp set, the same) on their own account, signed with their current key, while they still have it; or on the server (folio-setup --owner-pgp) when they lost it
send both of the build node's keys: the one line of its SSH .pub file, then its GPG public key (cat node.pub node.asc | folio admin node add NAME ...). A node signs every claim and result with its GPG key; without one the site takes nothing from it (from admin node add) only the node's SSH key was sent cat folio-node.pub folio-node.asc | folio admin node add NAME; the Build Node Guide, step 3, makes the GPG key
admin node key NAME, with the node's GPG public key on standard input admin node key was given no name, or more than one word folio admin node key NAME < folio-node.asc
whoami shows note: your account has no GPG key, so it can only look (see: help) as above: your account has no GPG key as above: ask an administrator to set yours

From the folio command

What you see Why What to do
no site is set up yet. Add one: folio --add-site NAME --ssh folio@HOST --web https://HOST (folio --help says more), or click Site in the desktop program there is no site in ~/.config/folio/sites/ add one: folio --add-site NAME --ssh folio@HOST --web https://HOST, or click Site..., Add... in the desktop program
which site? You have several (folio --sites lists them): choose one with folio --use NAME, or say it each time: folio --site NAME COMMAND there are several sites and none is named as the one in use folio --use NAME
there is no site NAME (folio --sites lists yours) --site NAME, FOLIO_SITE=NAME or --use NAME names a site that is not there folio --sites lists those there are
not a site's short name: NAME (1 to 64 letters, digits, dashes (-), underscores (_) and dots (.), not starting with a dot or a dash, not ending in .new) the name given holds a slash, a blank or another character a site's short name cannot hold, or ends in .new choose another
your site settings (~/.config/folio/site) are now the site "default" (~/.config/folio/sites/default); the old file was removed the one site file of an older version was made into the site default, once nothing: folio goes on with it
your site settings (~/.config/folio/site) could not be made into the site "default" (~/.config/folio/sites/default), so they were left as they are the folder ~/.config/folio/sites could not be written, or the old file is not a site file check the folder's owner and permissions; or add the site with folio --add-site and remove the old file
no GPG key is chosen to sign with. Make one with folio-mykeys pgp, or choose yours: folio-mykeys use FINGERPRINT (or write pgp=FINGERPRINT in ~/.config/folio/sites/NAME) neither pgp= in the site's file nor ~/.config/folio/pgp names a key folio-mykeys pgp makes one; folio-mykeys use FINGERPRINT names the one you have
the site NAME keeps its GPG keys in FOLDER, but names none to sign with: write pgp=FINGERPRINT in ~/.config/folio/sites/NAME (gpg --homedir FOLDER --list-secret-keys shows them) the site has gnupg= but no pgp= add the pgp= line, or choose the key under Site..., Edit... in the desktop program
the GnuPG home folder of the site NAME (FOLDER, gnupg= in ...) is not there gnupg= names a folder that does not exist correct gnupg=
your account there (NAME) has no GPG key, so it can only look. Send your public key (folio-mykeys export) to an administrator of the site and ask them to set it: admin pgp NAME the site says your account has no GPG key. Nothing was sent send what folio-mykeys export prints to an administrator, who runs folio admin pgp NAME < your-key.asc
the site knows NAME by the GPG key X, but folio would sign with Y. Choose that key (folio-mykeys use X), or have an administrator set yours (admin pgp NAME) the key folio would sign with is neither the one on your account nor a subkey under it that can sign (one that only encrypts, or is revoked or ran out, does not count). Nothing was sent folio-mykeys use X if you hold that key. If you lost it, an administrator sets your new one
your computer's clock is N seconds off the site's, and the site takes a request only within five minutes of its own time: set your clock right (it is never sent without that) your clock is more than four minutes off the site's. Nothing was sent set your clock right, then try again
gpg could not sign the request with your key FPR, so nothing was sent. Is the key there (gpg --list-secret-keys FPR), and is gpg-agent running and able to ask for its passphrase? the secret key is not on this computer, or gpg-agent could not ask for its passphrase (no terminal or desktop to ask on) gpg --list-secret-keys FPR. In a terminal with no desktop, export GPG_TTY=$(tty) first
the site's server showed an SSH key this computer does not trust for it, so nothing was sent., then the site's pages (WEB/ssh-host-keys) now list other SSH keys than the ones this computer trusts for the site NAME., the fingerprints trusted until now and listed now, and Trust the new keys? Type yes, or anything else to keep the old ones: the site's owner changed the server's SSH keys (after a break-in, or a move), or someone answers for the site's https name and its SSH address compare the new fingerprints with the ones the owner gave you, by a way you trust; answer yes only if they are the same (the site's new SSH keys are trusted from now on), then run the command again. Without a terminal it says To look at the new ones and trust them, in a terminal: folio --site NAME --host-keys
the site's pages (WEB/ssh-host-keys) list the same SSH keys this computer trusts for the site NAME already, so a server that shows another key is not the site's. Someone may be between you and the site; nothing was sent. Ask the site's owner. the server you reached showed a key the site's own pages do not list do not go on; ask the site's owner
the keys trusted for the site NAME are not changed; nothing was sent. the question was answered with something else than yes nothing; folio --site NAME --host-keys asks again
folio-audit: ... is not a git repository with a record in it that can be read safely (...) the copy's HEAD names no commit, or its objects folder is a link or names other places for objects (objects/info/alternates, as git clone --shared or --reference makes) clone it again without those (git clone --no-local, or git clone URL), then audit that
the site's SSH keys could not be fetched from WEB/ssh-host-keys, so it was not contacted web= in the site's file is wrong, the site's pages cannot be reached, or (after curl: (60) SSL certificate problem) the site's certificate comes from a certificate authority of its own that is not given for the site open the address in a browser; correct web=; for a site with its own authority, add it again with --ca FILE --ca-sha256 FINGERPRINT (Member Guide)
the certificate authority file of the site NAME (FILE) is not the one whose fingerprint was confirmed (it is now X), so the site was not contacted. ... ~/.config/folio/trust/NAME/ca.pem changed since its fingerprint was confirmed. Nothing was fetched or sent find out why it changed; then folio --remove-site NAME and add it again with --ca FILE --ca-sha256 FINGERPRINT, the fingerprint from the site's owner
the fingerprints are not the same, so the certificate authority was not trusted: FILE has X, and the one given is Y. ... the fingerprint given with --ca-sha256 is not the file's check the file and the fingerprint with the site's owner, in a way you trust
--ca needs --ca-sha256 FINGERPRINT: the fingerprint of the certificate authority that the site's owner gave you --ca was given without the fingerprint to compare it with, outside a terminal add --ca-sha256
FILE holds a private key. Choose the certificate authority's certificate (often ca.crt or ca.pem), never its key / FILE is not a certificate in PEM form ... / FILE holds more than one certificate. ... the file given with --ca is not the authority's certificate alone ask the site's owner for the certificate file
ca= in ~/.config/folio/sites/NAME has no ca-sha256= with the fingerprint it was confirmed with, so it is not trusted. ... the site's file was written by hand with ca= alone add the site again with --ca FILE --ca-sha256 FINGERPRINT
a command cannot hold control characters a word of the command holds a tab, a line end or another control character type the command again, without them
/usr/bin/gpg is not installed (it comes with the package gnupg), and every change is signed with it gnupg is missing sudo apt install gnupg (the package folio-client brings it)
web= in ~/.config/folio/sites/NAME must be the site's https address (https://...): its SSH keys are fetched from there web= is not an https:// address. There is no exception, not for localhost or 127.0.0.1 either: https is what vouches for the site's SSH keys give the site's https:// address. A site you try out on your own computer needs https too

From the desktop program

What you see Why What to do
No GPG key is chosen to sign with, so nothing was sent. Make one with "My keys..." (folio-mykeys pgp), or choose yours: folio-mykeys use FINGERPRINT (or under Site, Edit..., give it as the site's GPG key). no key is named to sign with My keys... makes one; folio-mykeys use FINGERPRINT names one you have
No GPG key is chosen to sign with, so nothing was sent. This site keeps its keys in FOLDER: under Site, Edit..., choose one of them as its GPG key. the site has a GnuPG home folder of its own but no GPG key Site..., Edit..., Choose... next to GPG key
The certificate authority file kept for this site is not the one whose fingerprint was confirmed, so nothing was fetched. Choose it again under Site, and confirm its fingerprint with the site's owner. the site's ca.pem changed since its fingerprint was confirmed Site..., Edit..., Choose... next to Certificate authority, and confirm its fingerprint with the site's owner
The fingerprints are not the same, so the certificate authority was not trusted. ... the fingerprint typed is not the chosen file's check the file, and the fingerprint with the site's owner
Your site settings (~/.config/folio/site) are now the site "default" ... the one site file of an older version became the site default, once nothing
Your account on the site (NAME) has no GPG key, so it can only look. Send your public key (folio-mykeys export) to an administrator of the site, and ask them to set it: admin pgp NAME as for folio above as for folio above
The site knows your account by the GPG key X, but this program would sign with Y. Choose that key (folio-mykeys use X), or have an administrator set yours (admin pgp NAME). as for folio above: the key chosen is neither the account's nor a signing subkey under it as for folio above
Your computer's clock is N seconds off the site's, and the site takes a request only within five minutes of its own time: set your clock right (nothing is sent without that). your clock is more than four minutes off the site's. Nothing was sent set your clock right (on Devuan: install ntpsec or chrony), then try again. The program asks the site's time when it first connects: after setting the clock, choose the site again (Site...)
Your GPG key could not sign the request, so nothing was sent. Is the key on this computer, and is gpg-agent running and able to ask for its passphrase? the secret key is not on this computer, or gpg-agent could not ask for the passphrase gpg --list-secret-keys; start the program from your desktop, where gpg-agent can ask
/usr/bin/gpg is not installed (it comes with the package gnupg). Every change is signed with your GPG key, so nothing was sent. gnupg is missing sudo apt install gnupg

Setting a site up

What you see Why What to do
folio-setup: the owner's GPG public key file cannot be read: 'FILE'. Every change to a site is signed with its account's own GPG key, so the owner needs one (folio-mykeys pgp makes one; folio-mykeys export prints its public key). Nothing was made. no file, or a wrong path, was given for the owner's GPG key on your own computer: folio-mykeys pgp, then folio-mykeys export > me.asc; copy me.asc to the server and give its path
folio-install: the owner's GPG public key file is needed (FOLIO_OWNER_PGP=/path/to/key.asc): every change is signed with it folio-install --yes was run without FOLIO_OWNER_PGP, or the file cannot be read sudo FOLIO_OWNER_PGP=/path/to/me.asc ... /usr/lib/folio/folio-install --yes, or run it without --yes and answer its question

Importing projects

ssh folio@dur.example.org imports (or folio imports) lists each project that was not imported, with its address and the reason. watch, follow and fetch print the reason when you type them. A project that was turned down is tried again by itself as soon as its repository has a new commit; to try at once, fetch PACKAGE (for a package the site has) or follow ADDRESS again (for a new one).

Reason it gives Why What to do
cannot tell how this project is built: it has no Makefile, meson.build, CMakeLists.txt, configure script or pyproject.toml. ... the site found no build system in the project's top folder add one, or write a .folio file with build-system = make (or meson, cmake, autotools, python). See the Settings Reference for .folio
.folio names a build system this site does not know: X (make, meson, cmake, autotools, python) a typing error in .folio use one of the five names
a repository address must start with https:// (http and git are not accepted) (from watch, follow or admin watch-forge) the address is http:// or git://. Someone between the site and the forge could hand the site another commit over those, so the site fetches over https only give the https:// address of the same repository
PACKAGE follows an insecure address (ADDRESS), and only https is accepted now; set it again: follow https://... PACKAGE, or in imports: warning: PACKAGE follows an insecure address (ADDRESS), so it is no longer imported: only https is accepted. Set it again: follow https://... PACKAGE the package was followed at an http:// or git:// address before https was required. It is not imported from there any more folio follow https://forge.example.org/you/project.git PACKAGE
the repository could not be fetched from ADDRESS (...) the address is wrong, the repository is private, or the site cannot reach the forge. The site fetches only https addresses, and has no password open the address in a browser while logged out: if you cannot see it, neither can the site
this would be version X, but the site already has Y: raise the version in the source the version the source states went down (for a project with its own debian/: the newest entry in debian/changelog) raise it (in VERSION, the Makefile, .folio and so on; or add a new entry to debian/changelog)
warning: the version is still X: computers that have it installed will not take this one (raise it in debian/changelog) a project with its own debian/ has a new commit, but the same version the import is taken; add a new entry to debian/changelog so that apt offers it as an update
the package X is built by Y already; choose another name another package on the site makes an installable package of the same name for a project without a debian/ folder: folio follow ADDRESS OTHER-NAME. For one with its own, change the name in its debian/control
there is a package called X already, looked after by Y; give another name: follow ADDRESS NAME the name belongs to someone else's package (from watch) folio follow ADDRESS OTHER-NAME
there is a package called X already, and you are not a maintainer of it the same, from follow folio follow ADDRESS OTHER-NAME
the package X follows another address (ADDRESS) a package of that name exists and is imported from somewhere else if this is the same project, moved: folio follow NEW-ADDRESS X. Otherwise folio follow ADDRESS OTHER-NAME
'X' cannot be a package's name ... the repository's name, in lower case, is not a usable package name. A name starts with a letter or digit and uses only lower-case letters, digits and + - . folio follow ADDRESS NAME
this repository is X, but the package inside is called Y the project has its own debian/ folder, whose Source: is another name than the package's follow it under the name in debian/control, or change that name
the project has a debian/ folder without a control file; complete it or remove it a debian/ folder that is not complete packaging complete it, or remove it so the site writes the packaging itself
missing debian/changelog, missing debian/rules or missing debian/source/format the project's own packaging lacks one of the files it needs beside control add it
unsigned commit: this site requires signed commits (git commit -S) the site requires signed commits (a new site does), and the project's newest commit is not signed sign it (git commit --amend -S --no-edit, or a new signed commit) and push; have your PGP key on the site first (pgp show; to change it, folio pgp set; see the Member Guide)
the commit is signed, but by a key that is on none of its maintainers' accounts (pgp set; for someone who has no key or lost theirs, an administrator sets one: admin pgp NAME) the newest commit is signed, but with a key that is not on the account of whoever imports it, the package's maintainer or a co-maintainer folio pgp set the key you sign with, or sign with the key the site has (pgp show). Someone who has no key on their account, or lost theirs, asks an administrator: folio admin pgp NAME < their-key.asc
the commit's signature is not valid (git commit --amend -S --no-edit) the signature does not hold sign the commit again
the commit's signature did not read the same twice the commit's signature is checked before its files are read and again before anything is recorded, and the two did not agree (a key changed on an account in between, for example) push again; if it happens again, tell the site's administrators
the project is not read: this computer cannot make the sandbox the site reads a project in (unshare, with user namespaces). Allow user namespaces ...; or, knowing that it weakens the site, the owner sets: admin set import-sandbox off the server cannot make the sandbox every project is read in: ordinary users may not make user namespaces, or a container does not let them. Without it nothing is read, so nothing is imported on the server, allow user namespaces (sysctl user.max_user_namespaces=15000, or on a kernel that has it sysctl kernel.unprivileged_userns_clone=1, and the same in /etc/sysctl.d/ to keep it); in a container, let it use unshare and mount. Only if that cannot be done, the owner may choose admin set import-sandbox off, which weakens the site (Settings Reference)
the activity log says the upload of NAME is read without a sandbox, as the setting import-sandbox = off allows the owner set import-sandbox = off, and the server cannot make the sandbox allow user namespaces, then admin set import-sandbox (with nothing after it)
admin verify says Warning: import-sandbox = off the same: the sandbox is not required as above
N more new repositories wait: they are looked at in the next timed imports (this site imports at most M new ones at a time, the setting import-per-pass) (from watch), or the activity log says N new repositories from watched forge accounts wait for the next pass the watched accounts hold more repositories new to the site than one pass imports (import-per-pass, 5 unless set), or the pass ran 10 minutes nothing: they come in the next passes, a few minutes apart, by turns between accounts. An administrator can raise import-per-pass
this site only imports from: ... (from watch) or this site only follows repositories at: ... (from follow) the site is limited to certain forges (the setting sources) use a forge on the list, or ask an administrator
PATH is not a plain file (no submodules) the project uses git submodules, which are not imported bring the code into the repository itself
PATH is a link that points outside the project (TARGET); links may only point inside it a symbolic link in the project names a file or folder outside it, or by its full path (/...). A link is never followed, but whoever unpacks the source could follow it make the link relative and inside the project, or put the file itself in the repository
PATH is a link with ../ after a folder's name (TARGET); put every ../ at the start a link like docs/../../x: the folder on the way could itself be a link, so where it leads cannot be told from its words write it with the ../ first (../x for the example)
PATH is a link; files in debian/ must be real files a file in debian/, or the folder debian itself, is a link put the file itself there
Makefile is a link, and the site reads only the project's real files (a link could lead outside the project): make it a real file (or another build file's name) the only file that says how the project is built is a link, which the site does not read make it a real file
the import says README.md is a link, so it was not read (only the project's real files are) a file the site looks for (a README, LICENSE, VERSION, .folio and so on) is a link; the site reads only real files the import is taken without it. To have it read, make it a real file
PATH is too large (N bytes, at most 20971520) one file in the project is over 20 MB take it out of the repository
the repository is N MB; this site takes at most M MB the whole repository is too large (the setting source-limit-mb) make it smaller, or ask an administrator
the repository is larger than M MB; this site takes at most M MB (the setting source-limit-mb) the fetch brought in more than the limit, and was stopped while it came in; the site keeps no copy of it make the repository smaller, or ask an administrator to raise source-limit-mb
the project's files come to more than M MB unpacked; this site takes at most M MB (the setting source-limit-mb) the files of the newest commit, unpacked, are larger than the limit (a repository can be small and its files large, when the same file is in it many times) take the large or repeated files out, or ask an administrator
the project has more than N files and folders; this site takes at most N (the setting source-limit-files) the newest commit's tree has more files, links and folders than the limit take files out, or ask an administrator to raise source-limit-files
the project has a path longer than 4096 characters, PATH is a link to a path longer than 4096 characters a file's path, or a link's target, is longer than any system takes shorten it
reading the project took longer than N seconds, the most this site gives it (the setting source-limit-seconds) listing, unpacking or reading the project, or writing its packaging, took longer than the limit make the project smaller; if it is an ordinary project on a slow server, ask an administrator to raise source-limit-seconds
the commit's own text (its author, message and signature) is N bytes; at most 1048576 the newest commit's author, committer, message or signature is far longer than any real one make the commit again, with an ordinary message (git commit --amend)
debian/control: the Description field of the package NAME holds a control character (an escape, a bell, a carriage return or another); a field may hold text and tabs only (or the Maintainer, Section, Homepage, Depends, Build-Depends, Architecture or X-Folio-Releases field) a field the site keeps holds a byte below 32 other than a tab (an escape sequence for colours, a carriage return from a file saved on Windows), the byte 127, or a C1 control (U+0080 to U+009F). Such a byte would act in the terminal of whoever lists the packages, and breaks the site's news feed take it out of debian/control (for a project without packaging, out of the text the site takes from it: the README's first paragraph, .folio), and push
debian/control: the Description field of the package NAME is not UTF-8 text (it has bytes that are no character in UTF-8); write the file in UTF-8 (or another field) the file is in another encoding (Latin-1, for example) save debian/control as UTF-8, and push
debian/changelog: the Source is longer than 200 characters (or the Version), debian/control: the FIELD field is longer than 16384 characters, debian/control describes more than 1000 packages the packaging has a value far longer than a real one, or very many packages correct debian/control or debian/changelog
only X's maintainers fetch it fetch is for the package's maintainers and administrators ask one of them
X does not follow a repository (follow URL X) the package was unfollowed folio follow ADDRESS X
nothing is listed, but a project is missing the forge did not list it: it is private; or the watched address is not the account that holds it, or is not spelt the way the forge spells it; or the account has more than 300 repositories check the watched address with whoami (the line watches:). For the last case: folio follow the missing ones one by one

New commits are not picked up

The site looks every two minutes. If nothing happens after five:

  1. folio fetch PACKAGE and read what it says. PACKAGE: nothing new at ADDRESS means the site already has the newest commit of the repository's default branch: check that you pushed to that branch.
  2. Is the package's maintainer suspended? Then new commits are not imported until the account is let back in.
  3. Was the package unfollowed? Then it stays as it is until someone types follow ADDRESS PACKAGE again.
  4. On the server, check that the timed job exists and cron runs: cat /etc/cron.d/folio and sudo service cron status.

Builds

Each build has a state, shown on the Builds page and by ssh folio@dur.example.org builds: queued, building, then succeeded, failed (the project did not build, or cannot build for that release), waiting (it needs a package of this site that is not published yet) or superseded (a newer commit replaced it).

What you see Why What to do
builds stay queued no build node is running, none is switched on, or none builds for that kind of processor ssh folio@dur.example.org nodes shows each node, whether it is enabled, and its kinds of processor. Start one (see the Build Node Guide)
builds that say "checks build N" stay queued the site has every build checked by a second node (the setting verify), and only a different node may take the check. There is only one node add a second node. Or switch checking off with folio admin set verify, and remove the waiting checks with folio admin build remove NUMBER
a build goes back to queued, with "NODE could not build it: ... (attempt 1 of 3 without a result; 2 left)" the node's own trouble, not the project's: for example the source could not be fetched from ADDRESS (the forge is down or cannot be reached from the node), fetching the source from ADDRESS timed out after 1800 seconds (the forge took the connection and then stopped answering, or is far too slow), the build system for RELEASE could not be made or sbuild could not start on the node, read the output of folio-node run; check the Build Node Guide, "What you need"
a build goes back to queued, with "NODE could not build it: this node has no keys for DIST (FILE): install PACKAGE, or set keyring-DIST = FILE" the build is for a release of another distribution (distribution-RELEASE, Debian for example), and that node does not have its archive keys, which it checks that distribution's mirror with on the node: sudo apt install PACKAGE (debian-archive-keyring for Debian). Where the keys are in another file, name it in the node's settings: keyring-DIST = FILE
admin set releases says "RELEASE is a release of DIST, and the site has no mirror for DIST" (or "does not know the package of DIST's archive keys") distribution-RELEASE names a distribution Folio knows neither the mirror nor the keys of (it knows Devuan's and Debian's) folio admin set mirror-DIST https://... and folio admin set keyring-DIST PACKAGE, then the releases again
a mail "A new release of DIST: NAME", "NAME is now DIST's stable release" or "NAME is gone from DIST's mirror" the daily check of the distributions' mirrors (admin releases shows it). Nothing was changed for a new release, if you want it built: the admin set suffix-NAME and admin set releases the mail gives. For one that has gone: leave it out of releases when you are ready to take its packages out of the archive
a build goes back to queued with "its build node was not heard from for 15 minutes (attempt 1 of 3 without a result; 2 left)" the node stopped while building nothing; the next node takes it
failed, "tried 3 times without a result; last: ..." the build ended three times in the node's own trouble or with no word from its node; the end of the note is the last reason. It is not tried again by itself, so newer builds are not held up behind it fix what the reason names (the forge, the repository's address, the node), then folio rebuild NUMBER: the new build starts counting again
waiting, "waiting for NAME, from this site, to be published for RELEASE in main; it is built again once it is" the build needs a package that another project of this site builds, and the site has not published it for that release yet nothing: once it is published, the build is queued again by itself ("built again: NAME is published for RELEASE now"). If that project failed to build for that release, fix it first
waiting with "in main", though the needed package is on the site the package being built is in the reviewed part (main), and builds there use only reviewed packages. The one it needs is in unsafe an administrator moves it (folio admin move PACKAGE main); once it is published there, the waiting build is queued again by itself
failed, "needs NAME, which RELEASE does not have" the build needs a package that release does not have (and no package of this site builds it for that release). It can never build there if the name is wrong, fix it (build-depends in .folio, or debian/control) and push. If the release does not have it, build for the others only: releases = ... in .folio, or X-Folio-Releases: in debian/control
failed, "needs NAME.pc, which RELEASE does not provide" a project without packaging cannot do without that pkg-config module, and no package of the release has it, nor any of the site's. Found before the build as above. If the module is in fact optional, write the build so that it says so (--exists, ifeq, required: false), or name what it needs in .folio (build-depends = ...)
failed, "needs NAME, which RELEASE has but cannot install (apt: ...)" the release has that package, but apt could not install it: in brackets, what apt said (a version that is too old, or what it needs in turn) ask for a version the release has; on ceres, where packages are sometimes not installable for a while, folio rebuild NUMBER later
a build goes back to queued with "the list of files in RELEASE could not be fetched from MIRROR", "the list of packages in RELEASE could not be fetched ..." or "what the build needs could not be fetched ..." the mirror (or the site's own archive) could not be reached from the node. That is never taken as "the release does not have it" nothing; if it stays so, check the node's network and the setting mirror
a build goes back to queued with "this site's archive could not be reached at ARCHIVE: ..." or "this site's archive key could not be fetched from ..." before sbuild, the node could not fetch the site's own archive. Without it the build would go on as if the site had no packages, so the node did not start it check that the archive (https://dur.example.org/apt/) can be reached from the node. After curl: (60) SSL certificate problem: the site has its own certificate authority, and the node's settings must give it (Build Node Guide)
a build goes back to queued with "apt in the build system could not fetch this site's archive: Failed to fetch ..." apt inside the build system could not fetch the site's archive, or not trust it, so the build had none of the site's packages. certificate verify failed there: the site has its own certificate authority, which the node's settings do not give the node's owner adds site-ca and site-ca-sha256 to the node's settings (Build Node Guide); otherwise check the archive from the node
a build goes back to queued with "NODE could not build it: it handed the build in as waiting without saying what is missing (...) (attempt 1 of 3 without a result; 2 left)" the node said the build's needs could not be installed, but sent no usable file missing: the site cannot tell what to wait for, so it counts as the node's trouble nothing, if another try works. If it keeps coming from one node, update folio-node there: a current node always says what is missing
a waiting build from before an update says "a package it needs to build is not available (yet)" a node (or a site) older than this was built: it did not say what was missing folio rebuild NUMBER
failed, "the commit COMMIT is not on the forge" the node fetched the repository, but the commit that was imported is no longer in it (a forced push, for example) push again; the site imports the new commit
failed, "debian/FILE is a link; files in debian/ must be real files" the project's own debian/ folder holds a link. The site refuses such a project when it imports it; a node checks again, as sbuild reads the source package outside the build's own small system put the file itself there; push
failed, "debian/watch names an address that is not https (ADDRESS); the original source is fetched over https only" a 3.0 (quilt) project whose debian/watch names an http://, ftp:// or other address (a line that is commented out counts too) make every address in debian/watch https://; push
failed, "the build took longer than 4 hours" the build reached the node's time limit (limit-time; the number is the node's own). It is stopped, and does not count against the node make the build faster (leave out long tests, for example), or ask for a node with a higher limit, then folio rebuild NUMBER
failed, "the build used more than 4 GB of memory" a program of the build could not have more memory than the node's limit (limit-memory, for each program) use less (fewer parallel jobs, or a lighter test), or ask for a node with a higher limit
failed, "the build ran more than 1024 processes at once" a program of the build could not start another process (limit-processes) start fewer at once
failed, "the build used more than 20 GB of disk space" the build's folder on the node held more than the node's limit (limit-disk), or one file was larger make the build write less, or ask for a node with a higher limit
a build goes back to queued with "fetching the original source (debian/watch) timed out after 1800 seconds" uscan had not fetched the original source in that time: where debian/watch points stopped answering, or is far too slow nothing, if it is the upstream server's passing trouble; else point debian/watch at a faster address
failed, "the source package could not be made" the source was fetched but could not be packed (for 3.0 (quilt), uscan could not fetch the original source, for example). The log says why fix the project; push
failed, "the package did not build", and the log ends in a compiler error the project does not build in that release fix the project; push
failed, and the log says a file or program was not found the build needs a package the site could not work out add it to .folio: build-depends = PACKAGE, and push
the log says not found in this release: pkg-config module X (or library -lX) that release has no package providing it the project cannot be built for that release as it is. If you know the package, add it as build-depends in .folio
the log says the Makefile has no install rule, and the build made no program called NAME. the site could not tell what to install give the Makefile an install rule, or say install = COMMAND in .folio
rebuild says build N is of an older upload; only the newest can be built again a newer commit was imported since rebuild a build of the newest version (builds PACKAGE), or folio rebuild PACKAGE
rebuild PACKAGE says PACKAGE VERSION is being built already (see: builds PACKAGE) a build of its newest upload is queued or being built wait for it; folio rebuild NUMBER once it has finished
a build succeeded but is not in the archive the package is in the reviewed part, and its newest upload waits for approval. Each new commit of a member or maintainer does (the owner's needs none, nor an administrator's to a package that is not the owner's; an administrator's to the owner's package waits for the owner), and a build made again (rebuild) still does, whoever asked for it. So does one approved by someone who is no longer an administrator an administrator or the owner (for the owner's package, or an upload of the owner's, only the owner): folio approve PACKAGE. The page "Waiting for review" lists them
a build succeeded but is not in the archive, and it is not waiting for review the site requires verified builds and no second node has built the same yet; or reprepro is not installed on the server; or publishing failed, which the build's page says ("could not be published: ...") ssh folio@dur.example.org admin settings (look for verify = required). On the server, sudo -u folio /usr/lib/folio/folio-publish publishes what is ready; it says folio-publish: reprepro is not installed; nothing was published if that is the cause: sudo apt install reprepro, then run it again
admin set releases or admin set architectures printed folio-publish: what the settings no longer name (...) could not be taken out of the archive; the archive was left as it was, and nothing is published any more the release or processor type left out could not be taken out of reprepro's database, which then refuses to work while it holds a table the settings no longer name. folio-publish copied the database first and put it back on the server, run sudo -u folio /usr/lib/folio/folio-publish to see why. To have the archive as it was, put the release or type back with folio admin set. If what is held of it is not wanted any more: sudo -u folio reprepro -b /srv/folio/private/reprepro --delete clearvanished (this takes what is published of it out of the archive), then run folio-publish again
folio-publish: the archive's database holds parts Folio does not make; its empty source indices were left in place an archive made by an earlier Folio had empty indices of source packages, which folio-publish takes out once; here the database holds something else besides, so it changed nothing and keeps them look with sudo -u folio reprepro -b /srv/folio/private/reprepro _listdbidentifiers; the archive keeps working as it is
old failed builds fill the Builds page they stay until removed an administrator: folio admin build remove NUMBER
superseded, "its package was removed" the package was removed from the site (an accepted request NAME delete, or a merge) while the build was queued or being built. A node building it is told to stop, and what it hands in afterwards is not taken nothing. If the project should come back, folio follow ADDRESS, or, where the site watches the whole forge, folio admit OWNER/PROJECT
not reproducible a second node built different files the project puts something changing into its files, such as the build time. The first build is still published, unless the site requires verification

On the build node

folio-node run says Why What to do
the site could not be reached: Permission denied (publickey). the node's key is not let in, or the node's settings name another key an administrator: cat KEY.pub KEY.asc | folio admin node add NAME. Check the key = line in ~/.config/folio-node/site
folio-node: ... has no 'pgp = FINGERPRINT' line: a node signs every claim and result with a GPG key of its own (see the top of this script for how to make one), and the site takes nothing unsigned the settings name no GPG key for the node make one and add the pgp and gnupg lines (Build Node Guide)
the site could not be reached: folio-node: the site has no GPG key for this node (NAME), so it takes neither claims nor results: give an administrator the node's public key (admin node key NAME < node.asc) the node was let in before nodes had GPG keys an administrator: folio admin node key NAME < folio-node.asc
the site could not be reached: folio: this request is not signed with the build node NAME's GPG key (FPR); nothing was taken the pgp line names another key than the one the site has for the node correct the pgp line, or have the right key set: folio admin node key NAME < folio-node.asc
the site could not be reached: folio-node: gpg could not sign with the node's key FPR: ... the keyring the gnupg line names does not hold that key, or the key has a passphrase point gnupg at the right keyring; a node's key has no passphrase
the site could not be reached: folio-node: this node's clock is N seconds off the site's, and the site takes a request only within five minutes of its own time: set the clock right the node's clock is wrong set it right (install ntpsec or chrony)
build N: STATE, but the result could not be handed in: folio: the result has a file with an unusable name: NAME; nothing was taken a file in the result is in a folder, or its name has a space or another character a package's file name does not have, starts with . or -, or holds ... The whole result is refused, and nothing of it is unpacked a folio-node builds only such results if something changed it: update it. See What a result may hold
build N: STATE, but the result could not be handed in: folio: the result has a file a build does not hand in: NAME (...) the result holds a file other than log, message, missing, .deb, .changes, .buildinfo, .dsc and source .tar files the same: update folio-node
build N: no longer wanted; the site took nothing after the build's package was removed (the site's answer says build N: its package was removed first) the package was removed from the site while the node built it nothing
build N: STATE, but the result could not be handed in: folio: the result did not come within 3600 seconds; nothing was taken the result was not sent whole within the time the site waits for it (an hour, or what result-time in the server's folio.conf says): a very slow connection, or one that stalled the build is given out again. On a slow connection the site's owner can give more time (result-time = SECONDS in /etc/folio/folio.conf)
build N: STATE, but the result could not be handed in: folio: what came on standard input is not the result that was signed (its sha256 is another); nothing was taken the archive changed between the node and the site nothing the node can mend: the build is not taken and is given out again. If it happens again, something between the node and the site changes what it sends
the site's SSH key does not match the keys it publishes at https://dur.example.org/ssh-host-keys: nothing was sent. Someone may be between this node and the site, or the site's keys changed: ask the site's owner. the server the node reached showed a key the site's pages do not publish. The node never goes on; run fetches the keys again and tries once a minute ask the site's owner
folio-node: the site's pages (https://dur.example.org/ssh-host-keys) list other SSH keys than the ones this node trusts for it, so the site was not contacted. If the site's owner told you that its keys changed (...), compare the new fingerprints with the ones the owner gives you, and trust them with: folio-node trust-host-keys. ... (after a mismatch: folio-node: the site's SSH key does not match the keys this node trusts: nothing was sent. ...) the site's pages list new keys: the owner changed them (after a break-in or a move), or someone answers for the site's https name ask the owner for the new fingerprints; then folio-node trust-host-keys, compare, and answer yes (Build Node Guide)
folio-node: the keys trusted for the site are not changed trust-host-keys was answered with something else than yes nothing; run it again to trust them
folio-node: ... has no 'site-key-fpr = FINGERPRINT' line: the site's own key, ... the settings do not name the site's key (a node set up before it was needed) add site-key-fpr = FINGERPRINT to ~/.config/folio-node/site, with the fingerprint the site's home page and setup.sh show; folio-node check shows the one the site's archive key has now, to compare
folio-node: site-key-fpr in ... is not a key's fingerprint: ... (or is not a key's whole fingerprint (40 or 64 hexadecimal digits): ...) the line holds something else than 40 or 64 hexadecimal digits correct it
build N: error (the archive key at ARCHIVE/archive-keyring.gpg is not the site's key, so the archive is not trusted: its master is X, and the site's key is Y (site-key-fpr in ...)) the archive's key has another master than the node's settings name: the line is wrong, or the answer did not come from the site check the line with the site's owner; the build goes back to the queue
folio-node: ... has no 'web = https://...' line: add the address of the site's pages (for example web = https://dur.example.org). The node fetches the site's SSH keys from there before it connects. the node's settings have no web line (written before it was needed) add web = https://dur.example.org to ~/.config/folio-node/site (Build Node Guide)
folio-node: the site's web address in ... must start with https:// (it is: ...) the web line is not https write the https address
folio-node: the site's SSH keys could not be fetched from https://dur.example.org/ssh-host-keys: ..., so the site was not contacted the pages cannot be reached from the node, the web line is wrong, or the site publishes no keys open the address from the node's computer; the site's owner runs folio-install again if the file is missing
folio-node: what https://dur.example.org/ssh-host-keys holds is not a list of SSH keys, so the site was not contacted the web line leads somewhere else than the site's pages correct the web line
folio-node: the site's certificate authority file FILE is not the one whose fingerprint is in ... (site-ca-sha256 = X; the file's is Y). So it is not trusted, and nothing is fetched from the site with it: check the file and the fingerprint with the site's owner the site-ca file is not the certificate whose fingerprint the site-ca-sha256 line holds: the file changed, or a line is wrong. Nothing was fetched. At the start of a build, the build goes back to the queue with "the site's certificate authority file FILE is not the certificate whose fingerprint is in the node's settings (site-ca-sha256)" find out why; confirm the certificate and its fingerprint with the site's owner again (Build Node Guide)
folio-node: the site's certificate authority file FILE (site-ca in ...) is not one certificate: ... the file cannot be read, holds a private key or more than one certificate, or is not a certificate in PEM form give the authority's certificate alone
folio-node: ... has site-ca but no 'site-ca-sha256 = FINGERPRINT' line: ... (or has site-ca-sha256 but no 'site-ca = FILE' line) the two lines go together add the missing line
folio-node: site-ca in ... must be a full path, starting with / (it is: ...), folio-node: site-ca-sha256 in ... is not a SHA-256 fingerprint ..., folio-node: the site's own certificate authority is trusted for the site's host name alone, and ... does not give a plain one ... a site-ca line, its fingerprint, or the web line is not one the node can use correct it
the site could not be reached: folio: this build node is switched off an administrator switched it off an administrator: folio admin node enable NAME
no settings: write ... the node has no settings file write ~/.config/folio-node/site (Build Node Guide)
folio-node: the steps before a build cannot be put in a sandbox on this computer (...), so nothing is built here. ... unshare could not make the sandbox the steps before a build run in (in brackets, what it said): the build user may not make user namespaces, or a container does not let it (Docker's default seccomp filter refuses unshare) allow user namespaces for the build user, as sbuild needs them too (Build Node Guide); in a container, allow unshare and mounting
folio-node: limit-time in ... is not a time: VALUE (write it as 4h, 90m or 600s) (or limit-memory, limit-processes, limit-disk) a limit- line in the node's settings is not one the node can read correct it (Build Node Guide)
folio-node check prints SEES PATH and the sandbox does not hide all of this node's own files a step before the build could see one of the node's own files do not build on this node; tell the site's administrators

The website

What you see Why What to do
"Welcome to nginx" instead of the site nginx's example site answers on the server: sudo rm /etc/nginx/sites-enabled/default, then sudo service nginx reload
nothing at all, or the browser cannot connect nginx is not running, the name does not lead to the server, or a firewall is in the way on the server: sudo service nginx status and sudo nginx -t
the search gives an error page its helper is not running on the server: sudo service fcgiwrap start
the search says The search is not set up: it runs as a user it must not run as (see the web server's log)., and nginx's error log has folio-search: refusing to run: its real user is root; run fcgiwrap as www-data (or ... is folio, which can reach the site's private files ...) fcgiwrap runs as root, or as the site's own user folio (or as folio-sign, the user that holds the signing keys). The search is the one program the internet reaches, so it refuses to run as a user that can read private/ run fcgiwrap as www-data, as Devuan's fcgiwrap service does (FCGI_USER=www-data in /etc/init.d/fcgiwrap), then sudo service fcgiwrap restart
no search box at all the setting is off folio admin set search yes
the search answers 429 Too Many Requests one address asked more than 10 times a second (with 20 more at once), or more than 4 times at the same time: the site's nginx file limits the search so that one client cannot keep it busy for everyone. Behind a server in front, every visitor comes from that server's address and all share the one limit wait a moment. Behind a server in front, have nginx take each visitor's own address (set_real_ip_from and real_ip_header, as the Owner Install Guide says under "Set up the server in front")
the theme does not change cookies are blocked for the site, the site is reached over plain http (the theme cookie goes over https only), or a server in front does not pass the site's name on allow the cookie; use the https:// address. In the server in front: proxy_set_header Host $host;
after a change of the site's keys, apt still says the old key signs a cache between the computer and the site kept the old index. The site has caches ask again each time for the archive's index, setup.sh and the key (Cache-Control: no-cache); a site whose nginx file is older does not on the server, run folio-install again and take the new nginx file (it is put beside yours as /etc/nginx/sites-available/folio.folio-new if you changed yours)
pages show an old name or address they are written from the settings folio admin set address https://dur.example.org (and name, ssh, ssh-port). For setup.sh, on the server: sudo -u folio /usr/lib/folio/folio-publish
/apt/ says not found nothing has been published yet it appears with the first published build

Installing with apt

What you see Why What to do
setup: this site does not build for this computer's release, or the script cannot tell which it is (...) your computer's release, as apt's sources and /etc/os-release name it, is none of those the site builds for if it is one of them under another name, sudo sh setup.sh --release NAME. Otherwise the site does not build for your release: ask its administrators
setup: this site does not build for NAME (it builds for: ...) --release named a release the site does not build for name one of those it lists
setup: gpg is not installed, so the site's key cannot be checked; nothing was changed. ... the key's fingerprint is checked with gpg, which is not installed sudo apt install gnupg, then run setup.sh again. Only if you cannot: sudo sh setup.sh --no-check, and compare the fingerprint it prints yourself
setup: the fetched key (...) is not the site's key (...); nothing was changed the key on the server differs from the one this setup.sh was written for: an old copy of setup.sh, or the key was changed on the way fetch setup.sh again from the site itself, over https
setup: there is no part called 'X' (there are: main unsafe) a mistyped part the parts are main and unsafe
setup: a mirror's address must start with https:// (http is not accepted) --from was given an http:// address. A mirror is reached over https only give the mirror's https:// address, as the site's Mirrors page lists it
setup: run it as administrator: sudo sh setup.sh it was run without sudo sudo sh setup.sh
removed /etc/apt/sources.list.d/folio-OLD.list, which an earlier setup.sh of this site wrote the site's short name or address changed since you last ran setup.sh; its files are named after it. The old files (marked with # Added by setup.sh of, and with the site's address or its key) are removed with the key they named, so that apt lists the site once nothing
(main is added: the site's keyring package is there) you asked for unsafe alone; the site's keyring package is in main nothing. apt still takes nothing from either part unless you ask for a package by name
The keyring package could not be installed. apt checks the site with /etc/apt/keyrings/folio-WORD-setup.gpg, which is NOT kept up to date apt could not install the site's keyring package: the site has published nothing for your release yet, or apt stopped for another reason (it says which above) the site works, but your computer will not learn of its next signing key. Run setup.sh again later; if it says the same, tell the site's owner
apt warns that the site is listed twice, or Conflicting values set for option Signed-By two files name the site: one written by hand, or by a setup.sh from before the files carried the mark, under a short name the site no longer has remove the older file in /etc/apt/sources.list.d/ (and the key it names in /usr/share/keyrings/), then run setup.sh again
step 3 ends with an error from apt, and no Done. the site does not build for your release sudo sh setup.sh --remove
apt says of the site The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ... (or, where apt uses sqv, Missing key ..., which is needed to verify signature) the archive is signed with a signing key your computer does not know: the site revoked a stolen one in an emergency and your computer did not upgrade in the 90 days the old key signed beside the new one, or your computer did not upgrade while a new one was being introduced (two weeks), or it never got the keyring package run the site's setup.sh again. It fetches the site's key anew and checks it
REFUSED: /usr/share/keyrings/folio-WORD-archive-keyring.gpg, which the keyring package VERSION installed, is not byte for byte the site's key fetched in step 1, so it is not used., then setup: the site's keyring package does not hold the site's key; apt checks the site with /etc/apt/keyrings/folio-WORD-setup.gpg for now (see above) the keyring package the archive serves does not hold the key the site publishes: a mirror (--from) that has not caught up, or an archive that is not the site's try again later, or without --from; if it stays, tell the site's owner
apt does not list PACKAGE from URL., then The keyring package could not be installed. apt read no keyring package from the archive for your release as for The keyring package could not be installed above
The keyring package installed is X, not Y, the one the site serves. apt kept another version than the one asked for (held, or pinned on this computer) remove the hold or the pin (apt-mark unhold PACKAGE), then run setup.sh again
apt says of the site The following signatures were invalid: REVKEYSIG ... (or signing key is revoked) the archive you reach is signed with a signing key the site has revoked: an old or forged copy, from a mirror or from someone between you and the site do not use that copy. Check that the sources file names the site itself (/etc/apt/sources.list.d/folio-*.list), or a mirror the site lists. If it is the site itself, tell its owner
apt says of the site EXPKEYSIG ... (or that the key has expired) the site's signing key ran out before the owner renewed it once the owner has renewed it, run setup.sh again
apt says the file named by signed-by cannot be read the keyring package was removed by hand (apt remove WORD-archive-keyring) run setup.sh again, or stop using the site: sudo sh setup.sh --remove
a package is not found it is in the unreviewed part, which you did not add; or it is not published for your release sudo sh setup.sh main unsafe; check the package's page

Publishing to the forge

folio admin publish-now sends what changed and says what happened. SHORT below is the site's short name in lower case.

What it says Why What to do
... could not be sent to the forge: the forge did not let the site's key in (admin publish-key shows the key to add there) the site's key is not on the forge, or has no right to write Forge Setup, B2. admin publish-key shows the key
... could not be sent to the forge: and a message about a repository that does not exist the forge does not create repositories on the first push create SHORT-record and SHORT-site there, empty (Forge Setup, B3)
The forge's package list is set, but no access token was given yet (admin registry-token). the package list is set but has no token Forge Setup, C2 and C3
The forge's package list: the forge did not accept the access token (it needs the right to write packages) the token is wrong, was deleted, or lacks the right to write packages make a new one with package: Read and Write and give it again
The forge's package list: the signer did not put build N into the package list: the registry address changed since the token was given (it was given for ADDRESS; the settings now name OTHER); give the token again: admin registry-token < FILE the token is kept with the package list it was given for, and registry-to names another one now. Nothing was sent if you changed the address: give a token for the new one (Forge Setup, C2 and C3). If nobody changed it on purpose, someone changed the site's settings without a signed request: do not give a token; look at admin log and the record's history (git log -- settings/site), and treat the server as broken into
The forge's package list: the registry address changed since the token was given; give the token again: admin registry-token < FILE (from the timed job, and in the activity log) a token given with admin registry-token was for another address than the settings name when the timed job came to hand it to the signer; it was deleted, and nothing was sent give the token again, now that the address is as it should be
... the access token was given before each token was kept with the address it is for; give the token again: admin registry-token < FILE the token came from an older Folio, and the upgrade (folio-install) found no package list to bind it to admin registry-to ADDRESS, then admin registry-token < FILE
name the forge's package list first: admin registry-to https://forge.example.org/you (the token is kept for that address alone); nothing was kept admin registry-token was given before any package list was named admin registry-to ADDRESS first (Forge Setup, C1)
The access token given before is for ADDRESS, and is never sent anywhere else: no package is put into the new package list until a token is given for it. (from admin registry-to) the package list's address changed give a token for the new address (Forge Setup, C2 and C3)
... the signer did not put build N into the package list: build N's FILE is not a plain file of at most 2147483648 bytes (a symbolic link, or it changed while it was read); nothing was sent (or build N's files are not in a folder of its own (a symbolic link?)) a build's files in /srv/folio/builds/N/files are not what Folio left there: a link, or something larger than 2 GB. Folio never makes either treat it as a sign that the server's user folio was broken into: look at what is there (ls -l), and do not remove it before you know who made it
folio-signer: the forge key's public half (forge/key.pub) is not the public half of its key; nothing was shown (from admin publish-key) the signer's /var/lib/folio-sign/forge/key.pub was changed as root, write it again from the key: ssh-keygen -y -f /var/lib/folio-sign/forge/key (the output, with a name after it, into key.pub)
This site publishes to no forge (admin publish-to ADDRESS). nothing is set Forge Setup, part B
the SSH host key of the forge's server could not be fetched from HOST (port PORT), at any address that name has: is the address right, and does that server answer there? Nothing was changed (from admin publish-to; the setup says the same after PROBLEM:) the site asked every address HOST has (IPv6 and IPv4), each for at most 30 seconds, and none answered with a key at that port check the address (and the port after the host, ssh://git@HOST:PORT/you), that the forge's SSH server runs, and that a firewall lets the server in. On the server, getent ahosts HOST lists the addresses asked
HOST/SHORT-record: the site may NOT write there yet: the forge did not let the site's key write there: ... (from the guided setup's check) the site's key is not on the forge yet, or it was added as a deploy key without Enable write access add it (Forge Setup, B2; admin publish-key shows it), then folio admin publish-now
HOST/SHORT-record: the site may NOT write there yet: there is no such repository, and the forge does not make one on the first push: create it there, empty (from the guided setup's check) the repositories do not exist, and the key is a deploy key or the forge does not create on push create SHORT-record and SHORT-site, empty (Forge Setup, B3)
HOST/SHORT-record: the site may NOT write there yet: the forge's server did not show the SSH host key confirmed for it (from the guided setup's check) another server answered than the one whose key was confirmed a moment before do not go on: find out who answers in the forge's name
The forge, left for later (...), at the end of the guided setup a part of the forge was skipped, or did not work; each line names the command that does it later run the commands it names, as the owner or an administrator (Forge Setup, parts B and C)
FINGERPRINT is not the fingerprint of a key the forge's server at HOST (port PORT) showed; nothing was changed. Fetch its key again with: admin publish-to ADDRESS the fingerprint given was not among those the first step showed for that address: a typing error, another address, or the server shows another key now folio admin publish-to ADDRESS again, compare, and confirm the fingerprint it shows
a fingerprint looks like SHA256:..., as ssh-keygen -lf shows it the second word is not a fingerprint give the SHA256:... the first step showed and you compared
... could not be sent to the forge: the forge's SSH host key is not confirmed yet, so nothing is sent: admin publish-to ADDRESS fetches it, to compare and confirm publish-to is set, but no host key was confirmed for it, and the server keeps none Forge Setup, B1
... could not be sent to the forge: the forge's server did not show the SSH host key confirmed for it (it was changed, or someone is in between), so nothing was sent. If the forge's key was changed on purpose: admin publish-to ADDRESS, compare the fingerprint it shows with the forge server's own (on that server: ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub), then confirm it: admin publish-to ADDRESS FINGERPRINT the forge's server showed another key than the one confirmed ask the forge's administrator whether its key changed on purpose. Only then confirm the new one (Forge Setup, B4)
The forge's SSH host key (SHA256:... (TYPE)) was trusted the first time the site wrote there, without being confirmed. Confirm it: ... (once, in admin publish-now, the activity log and a mail to the owner) the site published before forge keys were confirmed; it goes on with the key it took then confirm it: Forge Setup, B1, with the address the site has
Nothing has changed since the last time. there was nothing to send nothing
The site is busy; try again. another change held the site for a minute try again
the site's own two repositories show up as imports the site skips repositories named after its own short name. The short name changed after they were made set short-name back, or rename the two repositories on the forge
after admin set short-name, a message about a repository that does not exist the short name gave a new word, and the site now sends to NEW-record and NEW-site, which the forge does not have and does not make create them there, empty (Forge Setup, B3), or set short-name back

Mail

What you see Why What to do
the code never arrives the server has no mail program, or it is not set up Owner Install Guide, Part 4. On the server, sudo -u folio /usr/lib/folio/folio-mail sends now and says folio-mail: no mail program (/usr/sbin/sendmail); the messages wait if that is the cause. folio-mail --show shows the waiting message, code included
mail that waited is gone a message nobody could send for a week is dropped set up the mail program; ask again
that is N times in an hour, the most this site allows for this; try again later an hourly limit for each kind of action (comments, votes, imports, mail addresses and so on). Imports (follow, watch, fetch, admit) count under limit-import. Administrators are not limited wait. An administrator can raise the limit (see the Settings Reference)

Backups and restoring

See Backup and Restore for the steps.

What you see Why What to do
folio-backup: FILE exists already; choose a new name a backup is never written over another choose a new name, or move the old file away
folio-backup: the backup could not be written the user folio may not write into that folder, or the disk is full write it into /srv/folio; check df -h /srv
folio-backup: DIR may be written to by anyone, and is not sticky: another user could take the backup there. ... the folder is world-writable without the sticky bit write it into a folder of your own (/root/backups, /srv/folio)
folio-backup: FILE was made by someone else meanwhile; nothing was saved there. ... another user made a file of that name while the backup was being written: the backup never goes into a file someone else made choose a folder of your own; look at who made that file
folio-backup: the key KEY cannot encrypt: it has no encryption subkey ... --encrypt-to names a key that only signs (as folio-mykeys makes them) add an encryption subkey on the computer that holds the key, or name another key, as a file
folio-backup: no PGP key KEY to encrypt to: ... neither a public key file nor an account's fingerprint in the record give a file with the public key
folio-backup: FILE is encrypted (--encrypt-to): decrypt it first, ... an encrypted backup was given to restore gpg --decrypt FILE > backup.tar where its key is, then restore backup.tar
folio-backup: restore as the user folio (sudo -u folio .../folio-backup restore FILE), or as root with folio-install (FOLIO_RESTORE=FILE folio-install), which also puts the signer's keys back; nothing was changed restore was run as root: root never unpacks into the site's folder, where a link the user folio put there could lead its writes elsewhere run it as folio, or restore with folio-install as it says
WARNING: the site's master key is on this server, and is NOT in the backup a site of the older kind; a backup never holds the master move the master to your computer (Owner and Administrator Guide)
The site's signing keys and the forge's key are with its signer, and are not in this backup the backup was made as folio make it as root (sudo /usr/lib/folio/folio-backup save ...) to take them along
folio-install: FILE was changed by hand since Folio wrote it, so it is kept as it is. (or was written by an older Folio, or changed by hand), with a difference after an upgrade, the new Folio writes something else into an sshd, nginx, cron or sudo file you changed read the difference; take Folio's (mv FILE.folio-new FILE, then run folio-install again) or keep yours (rm FILE.folio-new)
folio-backup: the site is busy; try again the site was held for a minute by another change try again
folio-install: /srv/folio holds a site already, so the backup was not restored; nothing was changed. To replace that site with the one in the backup, move the old folder away first (mv /srv/folio /srv/folio.old), then run this again. folio-install restores only into a folder that holds no site; it stops before doing anything else if the site there is the one to replace: sudo mv /srv/folio /srv/folio.old, then run it again. (folio-backup restore refuses too: /srv/folio holds a site already; nothing was changed)
folio-install: FOLIO_RESTORE names a file that cannot be read: FILE a wrong path give the full path of the backup file
folio-backup: FILE is not a backup (not a tar file), or ... holds no Folio site the file is damaged, still encrypted, or something else decrypt it first (gpg -d), or use another backup
folio-backup: FILE was not restored, and nothing of it was unpacked: it holds a symbolic link: ... (or a hard link that leads out of the site, a member outside the parts a backup holds, or whose name leads out of the site, a member that is neither a file nor a folder); from folio-install the same after FILE was not restored, and nothing of it was unpacked: the backup was changed after it was made: folio-backup save writes none of these. Every member is listed before anything is unpacked, and the whole file is refused use another backup, and find out who changed this one
Left out, because they could make git or gpg run a program (Folio wrote its own):, then lines such as the setting gpg.program in .git/config, the hook .git/hooks/post-commit, GnuPG's settings private/gnupg/gpg.conf the backup carried the record's own git settings, hooks or GnuPG's settings (a backup made by an older Folio does; Folio itself writes none of those named). After a break-in as folio, they can be what the intruder left nothing: they were not restored. Read the activity log's restore: left out of the backup line; treat a backup that held one as made after a break-in
Left out of the signer's part (Folio does not write it there): signer/gnupg/gpg.conf (or another file) the signer's part of the backup held a file Folio never puts there; gpg.conf can name a program for gpg to start as the signer nothing: it was not restored. Treat the backup as one made after a break-in
WARNING: the site's key as the forge's record knows it is newer than the one here: the signing keys ..., which signed here, are revoked there. ... (or as the key you gave knows it) the backup is older than the last change of the site's key (an emergency, or revoked old keys): the forge's record, or your copy (FOLIO_SITE_KEY_PUBLIC), knows of a revocation the backup does not. It is merged in, and the site signs nothing with those keys on your computer folio-site-key emergency, then on the server sudo /usr/lib/folio/folio-key import BUNDLE. See Backup and Restore
(The forge's record could not be read, so the site's key is taken as it is here. If it changed since, give the owner's copy: folio-key merge FILE.) during a restore or an import the signer could not fetch the forge's record (no network, or the forge's key not added yet) if the key changed after the backup was made: gpg --armor --export MASTER > site-key.asc on your computer, copy it over, then sudo -u folio /usr/lib/folio/folio-key merge site-key.asc
this request was signed before the site was restored from a backup (at TIME UTC), so it may have been taken before; sign it again (send the command again); nothing was changed a request is taken only once; the restored site knows only the requests the backup knew, so it takes none made before the restore ended send the command again
the record could not be sent to the forge: the forge's record holds changes this site's record does not have: ... (activity log, admin publish-now) the site was restored from a backup older than what it sent to the forge before, or someone changed the forge's copy. The site never sends its record over a newer one see Backup and Restore
the forge's copy of the pages ends in a commit the site did not sign, so the site does not build on its history: the copy starts afresh, and replaces the forge's after a restore, the forge's SHORT-site held a commit someone else put there nothing: the site replaced it. Look at who could write to the forge
folio-key: the record names another site's key (OLD) than this server's (NEW), so it is checked against that key before it is taken. ... folio-key record after a restore from the forge alone, onto a server with a new key give the old key: on your computer gpg --armor --export OLD > old-key.asc, copy it over, then folio-key record old-key.asc
folio-key: the record does NOT hold with the site's key KEY (signatures: ...): it holds changes the site did not sign ... the record (above all a clone of the forge's) has changes that are unsigned, signed by a key the site does not know, or whose signature does not hold: someone else made them do not use that record. Restore from a backup you trust; check the forge's copy on your computer (folio-audit --key)
after a restore, admin verify reports changes signed by a key this server does not have, so they cannot be checked the record was brought back without the key it was signed with (a restore from the forge alone) expected after losing the key; see Backup and Restore. After a restore from a backup file, see The record
folio-key show says Due: the record's verify/site-key.asc is not the key this server holds (after a restore or a move?): folio-key record, or admin verify warns the record's verify/site-key.asc is not the key this server holds the record came from elsewhere (above all from the forge alone, onto a server with a new key), so its copy of the site's public key is not this server's. folio-audit, given no key, would check the record with the wrong one the owner, on the server: sudo -u folio /usr/lib/folio/folio-key record (with the old site's public key, folio-key record old-key.asc, when the record names another key: it checks every change against it first). It writes the key in as a signed change and says The record's verify/site-key.asc is the key this server holds now (FINGERPRINT).
after a restore, packages have no builds, and fetch PACKAGE says PACKAGE: nothing new at ADDRESS and (PACKAGE has no builds of it here; to build it: rebuild PACKAGE) the builds were not in what was restored, and the project has no new commit folio rebuild PACKAGE queues its newest upload again (its maintainers, administrators)

The record

The record is the site's folder of facts, /srv/folio/record, where every change is a commit signed with the site's key. ssh folio@dur.example.org admin verify checks every signature and counts them.

What you see Why What to do
admin verify counts changes not signed (made before the site had its key, or by hand on the server) they were made before the site had its key, or by hand on the server nothing; they are counted, not wrong
admin verify counts changes signed by a signing key of the site that has been replaced since (while it counted) the signing key was changed (folio-site-key new-signing-key, then revoke-old), or ran out; it signed those changes while it counted nothing; that is how it looks afterwards
admin verify counts changes signed by a signing key that was later revoked as stolen, before it was revoked. The thief can date a change back, so these do NOT hold until the owner has looked at each ..., lists each with what it changed:, and fails after an emergency (folio-site-key emergency): the stolen key signed them before the emergency. They may be the site's own, or the thief's, dated back compare each with a copy of the record from before the break-in: a backup, or the forge's copy (SHORT-record). Undo what is not the site's own (folio admin undo CODE). Then the owner accepts them: folio admin verify accept CODE..., or folio admin verify accept all (see If the server was broken into)
admin verify counts changes signed by a signing key that was later revoked as stolen, before it was revoked, and accepted by the owner since (verify/accepted) the owner looked at them and accepted them nothing; admin verify does not fail for these
folio: only the owner can accept changes that admin verify doubts an administrator tried admin verify accept the owner does it
folio: CODE was signed with a stolen signing key after it was revoked: it never holds, and cannot be accepted the change was signed with the stolen key after the emergency: it is not the site's it stays counted as not holding. Find out what it did (git show CODE, below) and treat the server as broken into
folio: CODE is not a change admin verify doubts (only those signed with a stolen signing key before it was revoked can be accepted) the code names a change whose signature holds, or one that cannot be checked nothing to accept; check the code against what admin verify lists
folio: admin verify doubts no change; there is nothing to accept admin verify accept all with nothing listed nothing
folio: admin verify finds changes that do not hold, or that the owner has not accepted; erasing would sign them again as the site's own. Settle that first (admin verify) admin erase while admin verify fails settle what admin verify lists first, then erase
admin verify counts changes signed by a key this server does not have, so they cannot be checked, and lists them they were signed with a key whose public half the server no longer has: the site's old key after a restore from the forge alone, or a key someone used by hand on the server after a restore from the forge alone, nothing: that is how it looks. Otherwise look at them as below. admin verify does not fail for these
admin verify counts changes with a signature that does NOT hold, and fails after look at:: a change was altered after it was signed. After signed by a stolen signing key, after it was revoked:, signed by a signing key after it was revoked or had run out: or signed by a key that is not the site's:: a change was signed with a key that did not count see below
the site is busy; try again in a moment another change was being made, or a backup or a sending to the forge is running; those hold the site for as long as they take try again in a minute
the site is busy, for many minutes a program that holds the site's lock is still running: a long import or erasure, a backup, a sending to the forge, or one that hangs. The lock is the kernel's (on the file private/lock.flock), and goes with the program that holds it, however that ends, so it is never left behind on the server, see which: sudo fuser -v /srv/folio/private/lock.flock (or ps aux | grep folio-). Let it finish, or stop the one that hangs (sudo kill PID); the lock is free once it has ended. (A folder private/lock left by an older version means nothing any more: it is removed by itself)

A signature that does not hold. admin verify names those changes by their short codes, after the line that says why. On the server:

sudo -u folio git -C /srv/folio/record show CODE

shows what that change did. A restore from the forge alone does not cause this (those changes are counted as signed by a key the server does not have). If you cannot explain it, treat the server as broken into:

  1. Take the site off the network.
  2. Compare the record with the copy on the forge (SHORT-record), if the site publishes one, and with your last backup, to see what changed.
  3. Set the site up again from the last backup you trust (Backup and Restore).
  4. Revoke the signing keys and make new ones, with the master (folio-site-key emergency; see the Owner and Administrator Guide).

The site's key

Every change of the key is made on the owner's computer with folio-site-key and brought to the server as a bundle (sudo /usr/lib/folio/folio-key import BUNDLE); folio-key itself runs on the server (see The site's key). folio-key show says where things stand, and what is due. Below, (HOW) stands for (on the owner's computer: folio-site-key STEP, then on the server: folio-key import BUNDLE), or, on a site of the older kind whose master is still on the server, (on the server: folio-key STEP).

What it says Why What to do
folio-key: the master is not on this server: on your own computer, folio-site-key STEP, then here: folio-key import BUNDLE the step needs the master, which is on the owner's computer do it there: folio-site-key STEP, then bring the bundle
folio-key: the master is not brought back to the server any more. On your own computer, once: folio-site-key adopt FILE; ... a master's file was given to a step on the server. The master never comes back to the server take the file onto your own computer with folio-site-key adopt FILE, delete it on the server (shred -u FILE), then make the step there
folio-key: that is not a key bundle (folio-site-key makes them, on the owner's computer) the file given to import is something else give the .bundle file folio-site-key wrote
folio-key: that bundle holds the site's master key, which never comes to a server. ... the file holds the master (an export of the whole key). Nothing was taken delete it on the server (shred -u FILE) and make the bundle with folio-site-key
folio-key: that bundle is for another key (...) than this site's (...) a bundle of another site's key, or of another --home use the GnuPG folder that holds this site's master (folio-site-key --home DIR show)
folio-key: this bundle holds signing keys, which go to the site's signer without passing through the user folio: run it as root (sudo /usr/lib/folio/folio-key import FILE) it was run as folio run it with sudo, as root
folio-key: the signing key FPR of that bundle runs out after N days, and this site's signing keys last DAYS days (signing-key-lifetime); nothing was taken (or ... never runs out ...) the bundle was made with another --lifetime than the site's setting, or with none where the site's is not 365 make it again on your own computer with the site's number: folio-site-key --lifetime DAYS STEP; or, if N days is what you want, admin set signing-key-lifetime N first, then bring the same bundle
folio-site-key: this folder (DIR) does not say which signing keys are the new ones (it is written when folio-site-key new-signing-key makes them), so nothing was revoked. ... revoke-old in a key folder without folio-change-MASTER: the change was begun with an older folio-site-key, or in another copy of the folder. It never picks keys by their creation time name the new keys as folio-key show on the server lists them: folio-site-key --new ARCHIVE --new RECORD revoke-old
folio-site-key: more signing keys count under MASTER than one for the archive and one for the record, and this folder does not say which are new ... new-signing-key while a change begun elsewhere is under way folio-site-key --new ARCHIVE --new RECORD new-signing-key, the keys as folio-key show lists them
folio-site-key: this computer's clock (...) is before the time a signing key under MASTER was made (...): set it right first; nothing was made the owner's computer's clock is behind set the clock, then run it again
folio-site-key: --new names the new signing key for the archive and the one for the record, both ..., ... (--new) is not a signing key under MASTER, ... is not a signing key for the archive or for the record alone --new was given one key, or one that is not one of the site's new ones give both, as folio-key show lists them
folio-key show lists Outgoing: FPR (revoked; signs the archive beside the new key until DATE, ...) after an emergency or revoke-old, the revoked archive key still signs the archive beside the new one, from a copy kept from before its revocation, so that computers that know only it learn of the revocation nothing: it stops by itself on that day
folio-key: that bundle revokes the signing key ..., which signs now (or is about to); nothing was taken. ... folio-site-key revoke-old was run before the server switched, or a hand-made revocation wait until folio-key show says Old signing key:, then make the bundle again. After a break-in, use folio-site-key emergency
folio-key: the bundle does not revoke the old signing key ...: make it again (folio-site-key revoke-old) the bundle came from a GnuPG folder where the old key is not revoked make it again in the folder that holds the master
folio-key: there is no new signing key to switch to: make one first (HOW) switch before step 1 start with folio-site-key new-signing-key
folio-key: there is no old signing key to revoke: a change of signing keys starts with new ones (HOW), or folio-site-key: there is no old signing key to revoke revoke-old with no change going on nothing, or start a change with new-signing-key
folio-key: the new signing key does not sign yet: switch first (folio-key switch, or wait until DATE), then bring this bundle again step 3 before step 2 wait for that day, or folio-key switch, then import the same bundle again
folio-key: a new signing key is published already (...): it takes over on DATE, ... step 1 again with other new keys finish the change first
folio-key: the signing key used before (...) still counts: revoke it first (HOW), then make new ones new-signing-key before the last change was finished folio-site-key revoke-old first
folio-key: the site's signing key ... ran out on DATE: computers would have no key to check the archive with while the new one is published. Renew it first (HOW), or if it was stolen: (HOW) a new signing key cannot be introduced through an archive nobody can check folio-site-key renew, then new-signing-key if you still want one
The new signing key ... is published already, The new signing key signs already: ..., The old signing key ... is revoked already (on DATE). the step was done before nothing; the next step is named
folio-key: the signing key ... is revoked; it cannot be renewed (HOW makes a new one) a revoked key stays revoked folio-site-key emergency
folio-key: the site is busy; try again a backup, a publishing or a change held the site for a minute try again
folio-key: that is not the code for this site's key (...) master-gone was given another code than folio-site-key adopt showed run adopt on your computer and copy its code
folio-site-key: ... could not be renewed (is the passphrase right?), or ... could not be made, ... could not be revoked the master's passphrase was wrong try again with the right one
folio-site-key: this keyring (DIR) holds no site key the wrong GnuPG folder give it with --home DIR
folio-signer: ... is the site's signing key for the archive; it does not sign for the record (or the other way round) something asked the signer to sign with the wrong key: a fault, or a break-in as folio look at /var/lib/folio-sign/sign.log and folio-key show; if you suspect a break-in, see If the server was broken into
folio-signer: that is not an apt Release file; nothing was signed, that is not a git commit object; ..., that commit's tree is not in the record or the site's copy; ... the signer was asked to sign something it does not sign the same
sudo: a password is required, or folio: this site has no signer the sudo rule /etc/sudoers.d/folio is missing or not read run sudo /usr/lib/folio/folio-install again; check that /etc/sudoers has @includedir /etc/sudoers.d
folio-publish: the site's signing key ... ran out on DATE; nothing was published. Renew it with the master, (HOW) (see: folio-key show) the signing key ran out before it was renewed; the archive is not signed with it folio-site-key renew. Computers that use the site then need setup.sh run again
folio-publish: the site's signer does not hold the secret part of the signing key ... (or, on an older site, the secret part of the signing key ... is not on this server) the signer lost the key (a restore from a backup made as folio, not as root) restore the signer's part from a backup made as root, or folio-site-key emergency
folio: the site's signing key ran out on DATE, so the site takes no changes until the owner renews it (HOW) shown to whoever tries a change (a comment, a vote, a follow, an admin command) while the signing key has run out. Nothing was changed; commands that only read still work the owner renews the key; then try again
folio: the site's signing key has been revoked and none signs after it, so the site takes no changes until the owner makes a new one (HOW) the signing key was revoked with no new one to sign after it (a hand-made revocation, or an emergency stopped half-way) the owner runs folio-site-key emergency and imports it
Due: The site's master key is on this server: ..., or the mail The site's master key is still on the server a site of the older kind move it to your computer: Owner and Administrator Guide
Due: The master's revocation certificate is on this server ... a site of the older kind, after master-out folio-site-key adopt FILE, then folio-key master-gone CODE
in the activity log: nothing was imported: the site's signing key ran out on DATE, ... the timed import ran while the signing key had run out; it brings nothing in, once each run the owner renews the key; the next run imports what waited
in the activity log: publish: the pages and the archive were not sent (the site's signing key ran out on DATE, ...) the copy for the forge is a signed commit too, and waits while the key has run out (the record itself is still sent) the owner renews the key
(This was not written in the record: ...) after a folio-key step the step changed the key, but the signing key still cannot sign, so the change of key was not written in verify/key-changes see folio-key show; once the key signs again, the next step is written
folio-publish: dpkg-deb is not installed, so the site's keyring package is not made the server lacks dpkg-deb sudo apt install dpkg-dev
folio-publish: the keyring package could not be made (dpkg-deb), or ... could not be put into RELEASE: ... dpkg-deb or reprepro failed run sudo -u folio /usr/lib/folio/folio-publish and look at what it says
the package NAME is the site's own keyring package; choose another name, or NAME is the name of the site's own keyring package; choose another name an import named a package like the site's keyring package the project must use another name

Asking for help

Say what you typed, what you saw, and the lines from the activity log around that time. Those three things answer most questions.