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

Panic in upload_path_new_chunked #219

Open
ttrssreal opened this issue Jan 12, 2025 · 1 comment
Open

Panic in upload_path_new_chunked #219

ttrssreal opened this issue Jan 12, 2025 · 1 comment

Comments

@ttrssreal
Copy link

ttrssreal commented Jan 12, 2025

I was testing a new instance by pushing a path, and atticd panics here
(This is in the server image version b8c5ab4)
Related? #193
Client side:

➜  jix git:(main) ✗ attic cache info nix-cache
               Public: true
           Public Key: nix-cache:RVZJIr5JlUjFYgfJIfx6Mt5tQyPyyCNIXTtU+yWsLyo=
Binary Cache Endpoint: https://cache.jessie.cafe/nix-cache
         API Endpoint: https://cache.jessie.cafe/
      Store Directory: /nix/store
             Priority: 41
  Upstream Cache Keys: ["cache.nixos.org-1"]
     Retention Period: Global Default
➜  jix git:(main) ✗ attic push nix-cache /nix/store/1q8w6gl1ll0mwfkqc3c2yx005s6wwfrl-hello-2.12.1
⚙️ Pushing 3 paths to "nix-cache" on "nix-cache" (1 already cached, 1 in upstream)...
❌ 2d5spnl8j5r4n1s4bj1zmra7mwx0f1n8-xgcc-13.3.0-libgcc: HTTP 500 Internal Server Error: Service panicked
❌ qwjjm4j652ck9izaid7bz63s4hd5bnha-libidn2-2.3.7: HTTP 500 Internal Server Error: Service panicked
❌ 6pqgj71r0850b0cd95yxx0d52zax016i-libunistring-1.2: HTTP 413 Payload Too Large: <html>
<head><title>413 Request Entity Too Large</title></head>
<body>
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>nginx</center>
</body>
</html>

Error: HTTP 500 Internal Server Error: Service panicked

Server side:

Attic Server 0.1.0 (release)
Starting API server...
Listening on [::]:8080...
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
thread 'thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
thread 'tokio-runtime-worker' panicked at server/src/api/v1/upload_path.rs:450:40:
called `Result::unwrap()` on an `Err` value: JoinError::Panic(Id(67), "called `Result::unwrap()` on an `Err` value: InvalidHeaderValue", ...)
2025-01-12T00:36:15.036718Z ERROR tower_http::catch_panic: Service panicked: called `Result::unwrap()` on an `Err` value: JoinError::Panic(Id(67), "called `Result::unwrap()` on an `Err` value: InvalidHeaderValue", ...)
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
2025-01-12T00:36:15.040234Z ERROR tower_http::catch_panic: Service panicked: called `Result::unwrap()` on an `Err` value: JoinError::Panic(Id(80), "called `Result::unwrap()` on an `Err` value: InvalidHeaderValue", ...)
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
thread 'tokio-runtime-worker' panicked at server/src/api/v1/upload_path.rs:450:40:
called `Result::unwrap()` on an `Err` value: JoinError::Panic(Id(80), "called `Result::unwrap()` on an `Err` value: InvalidHeaderValue", ...)
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
thread 'thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
thread 'tokio-runtime-worker' panicked at server/src/api/v1/upload_path.rs:450:40:
called `Result::unwrap()` on an `Err` value: JoinError::Panic(Id(120), "called `Result::unwrap()` on an `Err` value: InvalidHeaderValue", ...)
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
2025-01-12T00:36:41.281222Z ERROR tower_http::catch_panic: Service panicked: called `Result::unwrap()` on an `Err` value: JoinError::Panic(Id(120), "called `Result::unwrap()` on an `Err` value: InvalidHeaderValue", ...)
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
thread 'called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
thread 'tokio-runtime-worker' panicked at server/src/api/v1/upload_path.rs:450:40:
called `Result::unwrap()` on an `Err` value: JoinError::Panic(Id(141), "called `Result::unwrap()` on an `Err` value: InvalidHeaderValue", ...)
2025-01-12T00:36:41.310045Z ERROR tower_http::catch_panic: Service panicked: called `Result::unwrap()` on an `Err` value: JoinError::Panic(Id(141), "called `Result::unwrap()` on an `Err` value: InvalidHeaderValue", ...)
thread 'tokio-runtime-worker' panicked at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/aws-runtime-1.4.4/src/auth.rs:254:73:
called `Result::unwrap()` on an `Err` value: InvalidHeaderValue
@ttrssreal
Copy link
Author

(The HTTP 413 is separate, fix by setting client_max_body_size)

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