Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attic_server::error: Storage error: Storage error: Failed to create directory /var/lib/atticd/storage/5/5b: Permission denied (os error 13) #213

Open
volker-schukai opened this issue Dec 3, 2024 · 0 comments

Comments

@volker-schukai
Copy link

volker-schukai commented Dec 3, 2024

I have a strange error that I cannot explain. After a certain period of time when everything is running smoothly, the following error appears in the journal logs:

Dez 03 18:19:24 nix-cache atticd[68592]: 2024-12-03T17:19:24.705840Z ERROR tower_http::trace::on_failure: response failed classification=Status code: 500 Internal Server Error latency=8 ms
Dez 03 18:19:26 nix-cache atticd[68592]: 2024-12-03T17:19:26.857985Z ERROR attic_server::error: Storage error: Storage error: Failed to create directory /var/lib/atticd/storage/4/40: Permission denied (os error 13)
Dez 03 18:19:26 nix-cache atticd[68592]: 2024-12-03T17:19:26.858060Z ERROR tower_http::trace::on_failure: response failed classification=Status code: 500 Internal Server Error latency=133 ms
Dez 03 18:25:23 nix-cache atticd[68592]: 2024-12-03T17:25:23.910497Z ERROR attic_server::api::binary_cache: Stream error: Storage error: Permission denied (os error 13)
Dez 03 18:25:24 nix-cache atticd[68592]: 2024-12-03T17:25:24.232282Z ERROR attic_server::api::binary_cache: Stream error: Storage error: Permission denied (os error 13)
Dez 03 18:25:24 nix-cache atticd[68592]: 2024-12-03T17:25:24.961380Z ERROR attic_server::api::binary_cache: Stream error: Storage error: Permission denied (os error 13)
Dez 03 18:25:26 nix-cache atticd[68592]: 2024-12-03T17:25:26.392670Z ERROR attic_server::api::binary_cache: Stream error: Storage error: Permission denied (os error 13)
Dez 03 18:25:29 nix-cache atticd[68592]: 2024-12-03T17:25:29.162361Z ERROR attic_server::api::binary_cache: Stream error: Storage error: Permission denied (os error 13)
Dez 03 18:30:45 nix-cache atticd[68592]: 2024-12-03T17:30:45.345670Z ERROR attic_server::error: Storage error: Storage error: Failed to create directory /var/lib/atticd/storage/8/89: Permission denied (os error 13)
Dez 03 18:30:45 nix-cache atticd[68592]:    0: attic_server::api::v1::upload_path::upload_path
Dez 03 18:30:45 nix-cache atticd[68592]:              at server/src/api/v1/upload_path.rs:118
Dez 03 18:30:45 nix-cache atticd[68592]:    1: tower_http::trace::make_span::request
Dez 03 18:30:45 nix-cache atticd[68592]:            with method=PUT uri=/_api/v1/upload-path version=HTTP/1.1
Dez 03 18:30:45 nix-cache atticd[68592]:              at /build/cargo-vendor-dir/tower-http-0.5.2/src/trace/make_span.rs:109
Dez 03 18:30:45 nix-cache atticd[68592]:    0: attic_server::api::v1::upload_path::upload_path
Dez 03 18:30:45 nix-cache atticd[68592]:              at server/src/api/v1/upload_path.rs:118
Dez 03 18:30:45 nix-cache atticd[68592]:    1: tower_http::trace::make_span::request
Dez 03 18:30:45 nix-cache atticd[68592]:            with method=PUT uri=/_api/v1/upload-path version=HTTP/1.1
Dez 03 18:30:45 nix-cache atticd[68592]:              at /build/cargo-vendor-dir/tower-http-0.5.2/src/trace/make_span.rs:109

The file attributes also look ok as far as I can see, user is atticd and rwx is set.

drwx------  2 atticd atticd  92K  3. Dez 00:33 40

The interesting thing is that the directory exists. There is also still enough memory and inodes available. After a systemctl restart it works again.

Have I overlooked something? In any case, I don't think it should output a rust trace either way.

attic --version
attic-client 0.1.0

NixOS 24.11 (Vicuna)
BUILD_ID="24.11.710050.62c435d93bf0"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant