-
Notifications
You must be signed in to change notification settings - Fork 13
Maiden upload to host always fails. Subsequent are fine. #43
Comments
This is a two part bug. Codiusd is hanging for some reason, or the timeouts just aren't high enough and nginx is timing out and severing the connection so that needs to be fixed. But also, the codius CLI is not interpreting the status code of the response, since it shouldn't be trying to read JSON from a 504 error in the first place |
Maybe it's that most of the images we're uploading use similar base docker images, so the first upload of one contract will time out, but then will finish downloading the dependency images in the background making all future image downloads (even different images with a common dependency) faster |
I have gotten this error numerous times. Reuploading after the first attempt/error does not fix. I did fix it once however, but I can't be quite sure how I did it as I forgot. |
@cvanolm do you by chance have the error output you received when getting the similar error that you could post? |
Some debug-info on
Note: contract gets uploaded even with this error. Used https://upload.host1.codius.live/ for testing. Running Codiusd with: in /etc/systemd/system/codiusd.service using command
|
I've seen this issue on about 10 different codius hosts (unsure if to post issue here as I was using CLI, or on codiusd repo as it's when I'm connecting to a codiusd host).
The very first time uploading to a codius host after it has gone live returns a
invalid json body
error. Any subsequent attempt to upload works flawlessly.The text was updated successfully, but these errors were encountered: