Devika7733 opened a new issue, #43764:
URL: https://github.com/apache/superset/issues/43764
### Bug description
Hi Team, I am uploading a dataset using the curl command below. I have 293
datasets, which I zipped into one file called datasets.zip and uploaded via the
API. I was receiving the following error:
ERROR: Failed to import dataset from /tmp/repo/datasets/datasets.zip. HTTP
response code: 503
DEBUG [dataset]: Full response body:
upstream connect error or disconnect/reset before headers. reset reason:
connection termination
DEBUG [dataset]: Parsed error details:
ERROR: Import failed due to an unrecoverable error.
In the worker logs, I saw:
[2026-09-01 09:24:20 +0000] [1033] [CRITICAL] WORKER TIMEOUT (pid:1034)
[2026-09-01 09:24:22 +0000] [1034] [INFO] Worker exiting (pid:1034)
I then changed the timeout from 120 to 300 using the following command:
gunicorn -w 10 -k gevent --worker-connections 1000 --timeout 300
This fixed the issue.
I need to know: although I am uploading the zip file, is it just uploading
the data, or is it also running database queries each time I upload
datasets.zip?
curl -k -s -w "%{http_code}" -b cookies.txt -o
"${asset_type}_response_body.txt" \
--url "https://$APP_PREFIX$DOMAIN/$endpoint" \
--header 'accept: application/json' \
--header Authorization": Bearer $ACCESS_TOKEN" \
--header 'content-type: multipart/form-data' \
--header "referer: https://$APP_PREFIX$DOMAIN" \
--header "x-csrftoken: $CSRF_TOKEN" \
--form "formData=@$zip_file" \
--form overwrite=true \
--form "passwords=$passwords_json"
### Screenshots/recordings
_No response_
### Superset version
6.0.0
### Python version
3.11
### Node version
16
### Browser
Chrome
### Additional context
_No response_
### Checklist
- [ ] I have searched Superset docs and Slack and didn't find a solution to
my problem.
- [ ] I have searched the GitHub issue tracker and didn't find a similar bug
report.
- [ ] I have checked Superset's logs for errors and if I found a relevant
Python stacktrace, I included it here as text in the "additional context"
section.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]