Open b-zurg opened 4 years ago
Does anyone know why this would be happening?
Nucleus itself doesn't have a timeout on the upload. My guess is whatever you are using as an entry point (nginx, apache, etc.) has a connection timeout set to 2 minutes
I actually am using the atlassian/nucleus
docker image in a docker compose file and connecting directly through the configured port on local host. The rest of the configuration is pointing to S3 and an RDS postgres instance.
Maybe docker is the problem variable here but that would be surprising.
Looks like node has a default connection timeout of 2 minutes
https://nodejs.org/dist/latest-v12.x/docs/api/http.html#http_server_settimeout_msecs_callback
Oh! Interesting. I'm assuming this has to be done on the server side. I can try it out and make a pull request to either disable the timeout or make it configurable.
This was a very helpful find. I managed to configure the server to have a default 30 minute timeout. This worked perfectly. I tested in a similar fashion and was able to release to my s3 bucket without getting a socket hang up.
Would love any feedback :)
I've gone down a bit of a rabbit hole trying to figure out why I kept getting a socket timeout error from the electron-forge publisher.
I eventually realized that when I was doing the upload at exactly 2 minutes the upload was failing with this message:
I was simulating a prod server in a local docker compose file but connecting to an actual S3 bucket to test out aspects of the prod infrastructure.