Repository navigation
[WARN] image commit error 1 error occurred, invalid cross-device link #1959
Unanswered
tigerInLuck
asked this question in
Q&A
Replies: 2 comments 1 reply
|
It's OK: |
0 replies
|
The issue is caused by a filesystem boundary problem with the Docker volume mounting configuration. Looking at backend/app/store/image/fs_store.go:63, the code uses os.Rename() to move images from staging to permanent storage: if err := os.Rename(stagingImage, permImage); err != nil {
return fmt.Errorf("failed to commit image %s: %w", id, err)
}The Why This Happens with Your Docker Setup In your docker-compose.yml:
When Remark42 tries to commit an image, it attempts to rename from:
These are two different filesystems, so os.Rename() fails. Quick fix for you - Mount the staging directory as a volume too moved to discussion, because this is not really a bug report |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I deployed Remark42 through the Dock.
Docker-compose.yml file:
When I test posting a photo comment, I found an error message in the log:
error: invalid cross-device link
My picture is lost! How can I solve this problem?
All reactions