files.unavailable
A store of files couldn't be reached, read or written by a jadpo files command, or its settings have no value here.
Area 14, Tools; not declinable; the next step is usually the human's.
Why Jadpo refuses it
jadpo files reaches a store as the deployed app does: a disk store at
its path: on the server's own disk, and an S3 store with the settings the
environment gives, then .env.local. When the folder isn't on this
machine, a setting has no value, or the store can't be reached or has no
room, there is nothing to read or write, so the command stops before it
does either.
Jadpo won't make a disk store's folder to read it, or guess at another store. The folder may be production's, on another server, and whether this is the right machine only you know.
What it looks like
A bakery keeps its price sheets on the server's disk, and its photos in an S3 bucket:
On a laptop, which keeps no /var/lib/bakery/sheets:
jadpo files ls sheets error The folder /var/lib/bakery/sheets isn't on this machine
- reason
sheetskeeps its files on the server's own disk, at/var/lib/bakery/sheets, and there is no such folder here.- next
- Run the command on the server that keeps the files, or add
--devforjadpo dev's copy (human) - rule
- files.
unavailable - help
- https://jadpo.
dev/docs/errors/files. unavailable
(human) at the end of the next: line tells your coding agent to stop
and ask you which fix you want, because the choice is yours to make: it
decides which machine, and so which copy of the files, the command
reaches.
With no value for the S3 store's settings here:
jadpo files ls photos error photos's setting photos_host has no value here
- reason
- An S3 store is reached with the settings the deployed app reads, from the environment and then
.env.local, andPHOTOS_HOSTgives none. - next
- Set
PHOTOS_HOSTas the deployment does, or add--devforjadpo dev's copy (human) - rule
- files.
unavailable - help
- https://jadpo.
dev/docs/errors/files. unavailable
How to fix it
If you meant the files jadpo dev keeps, add --dev:
jadpo files ls sheets --devThe command reads .jadpo/files/sheets/ instead.
If you meant production's, run the command on the server that keeps a disk store's files, or with the S3 store's settings set as the deployment sets them:
PHOTOS_HOST=https://acme.r2.cloudflarestorage.com PHOTOS_KEY_ID=… PHOTOS_SECRET=… jadpo files ls photosThe command reaches the bucket with them and lists what it keeps, never printing the secret.
If the store can't be reached or has no room, check it is up and has space, then run the command again:
jadpo files copy /var/lib/bakery/sheets photoscopy leaves the files it already copied, so it carries on from where it
stopped.
Related
Markdown for agents: /docs/errors/files.unavailable.md.Built from Jadpo's main branch at commit 9080dc3.