o2r-project / o2r-transportar

Superseeded by https://github.com/o2r-project/o2r-transporter
http://o2r.info
Apache License 2.0
0 stars 0 forks source link

ERC download fails when docker images are included #7

Open jansule opened 7 years ago

jansule commented 7 years ago

The download of an erc works fine if docker images are excluded. If they are included the download fails and the browser shows me an Failed - Server problem. Tested with shinytainer.zip.

Here are the logs:

transportar_1    | Thu, 27 Apr 2017 14:50:05 GMT transportar GET /api/v1/compendium/bG0LE.tar
transportar_1    | Thu, 27 Apr 2017 14:50:05 GMT transportar Deserialize for 0000-0001-8842-8658
transportar_1    | Thu, 27 Apr 2017 14:50:05 GMT transportar undefined
transportar_1    | Thu, 27 Apr 2017 14:50:05 GMT transportar Going to tar /tmp/o2r/compendium/bG0LE (image: true, gzip: true)
transportar_1    | Thu, 27 Apr 2017 14:50:05 GMT transportar Tarball file exists at /tmp/o2r/compendium/bG0LE/data/dockerimage.tar but file size is 0
transportar_1    | Thu, 27 Apr 2017 14:50:05 GMT transportar Docker client set up to save image for bG0LE: {"modem":{"socketPath":"/var/run/docker.sock","protocol":"http"}}
transportar_1    | Thu, 27 Apr 2017 14:50:05 GMT transportar Found latest job rGFfF for compendium bG0LE and will include image bagtainer:rGFfF
transportar_1    | Thu, 27 Apr 2017 14:50:05 GMT transportar Found image: bagtainer:rGFfF
transportar_1    | Thu, 27 Apr 2017 14:50:05 GMT transportar Error inspecting image: Error: (HTTP code 404) no such image - no such image: bagtainer:rGFfF: No such image: bagtainer:rGFfF 
transportar_1    | Thu, 27 Apr 2017 14:50:05 GMT transportar Rejection or unhandled failure while saving image bagtainer:rGFfF to file: 
transportar_1    |  {"reason":"no such image","statusCode":404,"json":{"message":"no such image: bagtainer:rGFfF: No such image: bagtainer:rGFfF"}}
transportar_1    | Thu, 27 Apr 2017 14:50:05 GMT transportar Error saving image for bG0LE: {"reason":"no such image","statusCode":404,"json":{"message":"no such image: bagtainer:rGFfF: No such image: bagtainer:rGFfF"}}
nuest commented 7 years ago

Did you test this right after creating/uploading the ERC?

Please run docker images | grep bagtainer to see if the image acutally exists.

jansule commented 7 years ago

I tested both download right after upload and download after a week. Both fails. docker images | grep bagtainer lists images that are at least 4 months old. So, the required images do not exist.