threefoldtech / rfs

A fuse filesystem in rust
Apache License 2.0
1 stars 1 forks source link

ERROR [rfs::pack] failed to upload file (...): failed to execute query: error returned from database: (code: 5) database is locked #42

Closed steveej closed 4 months ago

steveej commented 6 months ago

i'm seeing a lot of these error messages when rfs packing a directory tree to an s3 storage endpoint:

2024-03-13 19:41:42,980 ERROR [rfs::pack] failed to upload file ("result/nix/store/01rij9mgykvr69h98ia7phbhsyj4jk0h-nano-7.0/share/locale/sr/LC_MESSAGES/nano.mo"): failed to execute query: error returned from database: (code: 5) database is locked

this shows the structure of the directory tree:

$ tree --filelimit=5 result
result
├── boot
│   ├── initrd.img
│   └── vmlinuz
├── nix
│   └── store  [630 entries exceeds filelimit, not opening dir]
├── nix-path-registration
├── nix-support
│   ├── hydra-build-products
│   └── system
└── sbin
    └── init -> /nix/store/h887aswc89nikhpfckvci02nv61byly7-nixos-system-nixos-22.11pre-git/init

from my first look in the code this seems like a critical error, because it means that database and the remote storage both miss the files that have had errors.

steveej commented 4 months ago

fixed by #45