deislabs / bindle

Bindle: Object Storage for Collections
Apache License 2.0
263 stars 37 forks source link

Got writeEPIPE error unexpectedly #367

Open matiaslareo opened 1 year ago

matiaslareo commented 1 year ago

An unhandled rejection occurred: Error: write EPIPE

This is what i receive when iam trying to push a parcel to a bindle server.

023-03-30T16:22:10.414004Z DEBUG request{method=GET path=/v1/_i/92779be989e9506dcf53a2b93dfbc939df3db0d63312b43dba59cceae0ee27b5/1.0.0 version=HTTP/1.1 remote.addr=1.1.1.1.1.1.1.1.1}: warp::filters::trace: received request
2023-03-30T16:22:10.414015Z  INFO request{method=GET path=/v1/_i/92779be989e9506dcf53a2b93dfbc939df3db0d63312b43dba59cceae0ee27b5/1.0.0 version=HTTP/1.1 remote.addr=1.1.1.1.1.1.1.1.1}: warp::filters::trace: processing request
2023-03-30T16:22:10.414066Z DEBUG request{method=GET path=/v1/_i/92779be989e9506dcf53a2b93dfbc939df3db0d63312b43dba59cceae0ee27b5/1.0.0 version=HTTP/1.1 remote.addr=1.1.1.1.1.1.1.1.1}: warp::filters::query: route was called without a query string, defaulting to empty
2023-03-30T16:22:10.414085Z DEBUG request{method=GET path=/v1/_i/92779be989e9506dcf53a2b93dfbc939df3db0d63312b43dba59cceae0ee27b5/1.0.0 version=HTTP/1.1 remote.addr=1.1.1.1.1.1.1.1.1}: bindle::provider::file: Found invoice in cache, returning
2023-03-30T16:22:10.414099Z DEBUG request{method=GET path=/v1/_i/92779be989e9506dcf53a2b93dfbc939df3db0d63312b43dba59cceae0ee27b5/1.0.0 version=HTTP/1.1 remote.addr=1.1.1.1.1.1.1.1.1}: bindle::server::reply: Parsed accept header into list accept_value=application/json, text/plain, */* accept_items=["application/json", "text/plain", "*/*"]
2023-03-30T16:22:10.414110Z DEBUG request{method=GET path=/v1/_i/92779be989e9506dcf53a2b93dfbc939df3db0d63312b43dba59cceae0ee27b5/1.0.0 version=HTTP/1.1 remote.addr=1.1.1.1.1.1.1.1.1}: bindle::server::reply: Selected a best-fit MIME best_fit=application/json
2023-03-30T16:22:10.414138Z  INFO request{method=GET path=/v1/_i/92779be989e9506dcf53a2b93dfbc939df3db0d63312b43dba59cceae0ee27b5/1.0.0 version=HTTP/1.1 remote.addr=1.1.1.1.1.1.1.1.1}: warp::filters::trace: finished processing with success status=200
2023-03-30T16:22:10.414194Z DEBUG hyper::proto::h1::io: flushed 1031 bytes
2023-03-30T16:22:10.828203Z DEBUG hyper::proto::h1::io: parsed 5 headers
2023-03-30T16:22:10.828226Z DEBUG hyper::proto::h1::conn: incoming body is empty
2023-03-30T16:22:10.828251Z DEBUG request{method=GET path=/v1/_i/92779be989e9506dcf53a2b93dfbc939df3db0d63312b43dba59cceae0ee27b5/1.0.0 version=HTTP/1.1 remote.addr=1.1.1.1.1.1.1.}: warp::filters::trace: received request
2023-03-30T16:22:10.828272Z  INFO request{method=GET path=/v1/_i/92779be989e9506dcf53a2b93dfbc939df3db0d63312b43dba59cceae0ee27b5/1.0.0 version=HTTP/1.1 remote.addr=1.1.1.1.1.1.1.}: warp::filters::trace: processing request
2023-03-30T16:22:10.828326Z DEBUG request{method=GET path=/v1/_i/92779be989e9506dcf53a2b93dfbc939df3db0d63312b43dba59cceae0ee27b5/1.0.0 version=HTTP/1.1 remote.addr=1.1.1.1.1.1.1.}: warp::filters::query: route was called without a query string, defaulting to empty
2023-03-30T16:22:10.828344Z DEBUG request{method=GET path=/v1/_i/92779be989e9506dcf53a2b93dfbc939df3db0d63312b43dba59cceae0ee27b5/1.0.0 version=HTTP/1.1 remote.addr=1.1.1.1.1.1.1.}: bindle::provider::file: Found invoice in cache, returning
2023-03-30T16:22:10.828358Z DEBUG request{method=GET path=/v1/_i/92779be989e9506dcf53a2b93dfbc939df3db0d63312b43dba59cceae0ee27b5/1.0.0 version=HTTP/1.1 remote.addr=1.1.1.1.1.1.1.}: bindle::server::reply: Parsed accept header into list accept_value=application/json, text/plain, */* accept_items=["application/json", "text/plain", "*/*"]
2023-03-30T16:22:10.828371Z DEBUG request{method=GET path=/v1/_i/92779be989e9506dcf53a2b93dfbc939df3db0d63312b43dba59cceae0ee27b5/1.0.0 version=HTTP/1.1 remote.addr=1.1.1.1.1.1.1.}: bindle::server::reply: Selected a best-fit MIME best_fit=application/json
2023-03-30T16:22:10.828399Z  INFO request{method=GET path=/v1/_i/92779be989e9506dcf53a2b93dfbc939df3db0d63312b43dba59cceae0ee27b5/1.0.0 version=HTTP/1.1 remote.addr=1.1.1.1.1.1.1.}: warp::filters::trace: finished processing with success status=200
2023-03-30T16:22:10.828458Z DEBUG hyper::proto::h1::io: flushed 1031 bytes
2023-03-30T16:22:11.236572Z DEBUG hyper::proto::h1::io: parsed 7 headers
2023-03-30T16:22:11.236593Z DEBUG hyper::proto::h1::conn: incoming body is content-length (116175 bytes)
2023-03-30T16:22:11.236619Z DEBUG request{method=POST path=/v1/_i/92779be989e9506dcf53a2b93dfbc939df3db0d63312b43dba59cceae0ee27b5/1.0.0@f635119a775ca6604707e4027fba4fb76b81477e9c9f13cfb6772c5c8630fd4c version=HTTP/1.1 remote.addr=1.1.1.1.1.1}: warp::filters::trace: received request
2023-03-30T16:22:11.236630Z  INFO request{method=POST path=/v1/_i/92779be989e9506dcf53a2b93dfbc939df3db0d63312b43dba59cceae0ee27b5/1.0.0@f635119a775ca6604707e4027fba4fb76b81477e9c9f13cfb6772c5c8630fd4c version=HTTP/1.1 remote.addr=1.1.1.1.1.1}: warp::filters::trace: processing request
2023-03-30T16:22:11.236702Z DEBUG request{method=POST path=/v1/_i/92779be989e9506dcf53a2b93dfbc939df3db0d63312b43dba59cceae0ee27b5/1.0.0@f635119a775ca6604707e4027fba4fb76b81477e9c9f13cfb6772c5c8630fd4c version=HTTP/1.1 remote.addr=1.1.1.1.1.1}: bindle::provider::file: Found invoice in cache, returning
2023-03-30T16:22:11.236719Z DEBUG request{method=POST path=/v1/_i/92779be989e9506dcf53a2b93dfbc939df3db0d63312b43dba59cceae0ee27b5/1.0.0@f635119a775ca6604707e4027fba4fb76b81477e9c9f13cfb6772c5c8630fd4c version=HTTP/1.1 remote.addr=1.1.1.1.1.1}: bindle::provider::file: Validating bindle -> parcel relationship
2023-03-30T16:22:11.236728Z DEBUG request{method=POST path=/v1/_i/92779be989e9506dcf53a2b93dfbc939df3db0d63312b43dba59cceae0ee27b5/1.0.0@f635119a775ca6604707e4027fba4fb76b81477e9c9f13cfb6772c5c8630fd4c version=HTTP/1.1 remote.addr=1.1.1.1.1.1}: bindle::provider::file: Found invoice in cache, returning
2023-03-30T16:22:11.240041Z DEBUG request{method=POST path=/v1/_i/92779be989e9506dcf53a2b93dfbc939df3db0d63312b43dba59cceae0ee27b5/1.0.0@f635119a775ca6604707e4027fba4fb76b81477e9c9f13cfb6772c5c8630fd4c version=HTTP/1.1 remote.addr=1.1.1.1.1.1}: bindle::provider::file: Parcel directory already exists path=/bindle-data/bindles/parcels/f635119a775ca6604707e4027fba4fb76b81477e9c9f13cfb6772c5c8630fd4c
2023-03-30T16:22:11.240061Z DEBUG request{method=POST path=/v1/_i/92779be989e9506dcf53a2b93dfbc939df3db0d63312b43dba59cceae0ee27b5/1.0.0@f635119a775ca6604707e4027fba4fb76b81477e9c9f13cfb6772c5c8630fd4c version=HTTP/1.1 remote.addr=1.1.1.1.1.1}: bindle::server::handlers::v1: Got error while creating parcel in store error=resource already exists
2023-03-30T16:22:11.240075Z DEBUG request{method=POST path=/v1/_i/92779be989e9506dcf53a2b93dfbc939df3db0d63312b43dba59cceae0ee27b5/1.0.0@f635119a775ca6604707e4027fba4fb76b81477e9c9f13cfb6772c5c8630fd4c version=HTTP/1.1 remote.addr=1.1.1.1.1.1}: bindle::server::reply: Parsed accept header into list accept_value=application/toml accept_items=["application/toml"]
2023-03-30T16:22:11.240086Z DEBUG request{method=POST path=/v1/_i/92779be989e9506dcf53a2b93dfbc939df3db0d63312b43dba59cceae0ee27b5/1.0.0@f635119a775ca6604707e4027fba4fb76b81477e9c9f13cfb6772c5c8630fd4c version=HTTP/1.1 remote.addr=1.1.1.1.1.1}: bindle::server::reply: Selected a best-fit MIME best_fit=application/toml
2023-03-30T16:22:11.240104Z  WARN request{method=POST path=/v1/_i/92779be989e9506dcf53a2b93dfbc939df3db0d63312b43dba59cceae0ee27b5/1.0.0@f635119a775ca6604707e4027fba4fb76b81477e9c9f13cfb6772c5c8630fd4c version=HTTP/1.1 remote.addr=1.1.1.1.1.1}: warp::filters::trace: unable to serve request (client error) status=409 error=None
2023-03-30T16:22:11.240156Z DEBUG hyper::proto::h1::io: flushed 148 bytes

I think the most important log is this one

2023-03-30T16:22:11.240104Z  WARN request{method=POST path=/v1/_i/92779be989e9506dcf53a2b93dfbc939df3db0d63312b43dba59cceae0ee27b5/1.0.0@f635119a775ca6604707e4027fba4fb76b81477e9c9f13cfb6772c5c8630fd4c version=HTTP/1.1 remote.addr=1.1.1.1.1.1}: warp::filters::trace: unable to serve request (client error) status=409 error=None

but i dont understand whats going on

Do someone face the same issue ?