MEDIA_UPLOADS_MOVE_REFUSED
`nextly media move-uploads` refused to start, because moving the files as things stand could lose one or leave them unserved.
Cause
nextly media move-uploads refused to start, because moving the files as things stand could lose one or leave them unserved.
The move checks before it copies anything, and refuses when:
- the app has no route serving
/uploads/...from outsidepublic/(src/app/uploads/[...path]/route.ts); public/uploadsis a mounted disk of its own, such as a Docker volume, which the files would leave;- the two folders are one folder under two names, or one is inside the other;
- the destination has less free space than the files need;
- another move is running.
Nothing was moved or changed. The Why line names each reason.
Fix
- Do what the Why line says: add the uploads route, mount the volume at
.nextly/uploads(or.nextly/), free some space, or wait for the other move to finish. - Check with
nextly media move-uploads --dry-run, then runnextly media move-uploads. - To keep uploads in
public/uploadsinstead, set the local storage'sbasePathto it. See Media & Storage.
Example
✗ Nothing was moved: the move cannot start as things stand.
Why: public/uploads is a mounted disk of its own. Files moved off it are no longer on that disk. Mount it at .nextly/uploads instead (or copy its files there), or keep this folder by setting the local storage's basePath to it.
Next: Fix what the Why line names, check with `nextly media move-uploads --dry-run`, then run `nextly media move-uploads`.
Docs: https://nextlyhq.com/docs/cli/errors/media-uploads-move-refused (MEDIA_UPLOADS_MOVE_REFUSED)MEDIA_THUMBNAILS_NOT_REMOVED
Some left-behind thumbnails could not be removed, or could not be checked just before their removal.
MEDIA_UPLOADS_MOVE_UNFINISHED
`nextly media move-uploads` left some files where they were, because a different file has the same name at their new place or they changed while they were copied.