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

Ssstar create sometimes crashes with panic #69

Open
NDVas opened this issue Jan 13, 2023 · 0 comments
Open

Ssstar create sometimes crashes with panic #69

NDVas opened this issue Jan 13, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@NDVas
Copy link

NDVas commented Jan 13, 2023

Bug description

When running multiple commands with ssstar, got this error on creating a tar archive from s3:

[ec2-user@ip-172-31-29-209 ~]$ ssstar create s3://ssstar-test/ --file backup.tar
⠁           D/L parts (all): file122486 (part 4)                                     [##############>-----] 7.03 GiB/9.54 GiB (210.26 MiB/s)
⠈       D/L parts (ordered): file122486 (part 5)                                     [##############>-----] 7.01 GiB/9.54 GiB (182.18 MiB/s)
⠈        Write parts to tar: file122486 (part 5)                                     [##############>-----] 7.01 GiB/9.54 GiB (187.83 MiB/s)
⠚           D/L parts (all): file122486 (part 7)                                     [##############>-----] 7.05 GiB/9.54 GiB (426.82 KiB/s)
⠚       D/L parts (ordered): file122486 (part 12)                                    [##############>-----] 7.05 GiB/9.54 GiB (427.22 KiB/s)
⠁        Write parts to tar: file122486 (part 8)                                     [##############>-----] 7.03 GiB/9.54 GiB (427.00 KiB/s)
⠖         Tar bytes written: Writing                                                 [##############>-----] 7.02 GiB/9.54 GiB (440.22 MiB/s)
⠁  Tar bytes uploaded to S3:                                                         [--------------------] 0B/9.54 GiB (0B/s)                                                                            
The application panicked (crashed).
Message:  called `Option::unwrap()` on a `None` value
Location: /home/ec2-user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.24.1/src/fs/file.rs:642

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
Error:
   0: Error reading byte stream for object 'file122486' in S3 bucket 'ssstar-test'
   1: error reading a body from connection: Connection reset by peer (os error 104)
   2: error reading a body from connection: Connection reset by peer (os error 104)
   3: Connection reset by peer (os error 104)

Location:
   /home/ec2-user/.cargo/registry/src/github.com-1ecc6299db9ec823/ssstar-cli-0.2.0/src/main.rs:338

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.

To Reproduce

Steps to reproduce the behavior:

  1. Run ssstar create s3://ssstar-test/ --file backup.tar multiple times

Expected behavior

App shouldn't panic and if the job fails, the error message should be more clear

Environment

  • OS: Linux 2.0
  • ssstar version: 0.3.0
  • aws account: 558095615212
  • s3 bucket: ssstar-test
  • Elastio CLI: 0.22.28 (22c95e0 2022-12-08 19:46:20)
    Account-level stack: 2022-11-21
    Region-level stack: 0.22.28

Additionally:

s3://ssstar-test consists of 100 files (97.5 MiB each), that were made by running count=1 ; while true; do sudo -E dd if=/dev/urandom of=file$count bs=1024 count=100000 ; count=$((count + 1)) ; done

@NDVas NDVas added the bug Something isn't working label Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant