cog icon indicating copy to clipboard operation
cog copied to clipboard

Issue with upload url on s3 bucket

Open Sapessii opened this issue 1 year ago • 2 comments

Hi,

I am running docker cog built container on Paperspace but I am having issues to upload output predictions to aws s3 bucket.

I basically need to launch a prediction for more than 30 minutes and upload the file to s3 - explicit limit on Replicate, that's why I am using another platform for this task only.

This is the error that I always receive when I set the output_file_prefix in a synchronous request: No connection adapters were found for {url!r}\")\nrequests.exceptions.InvalidSchema: No connection adapters were found for 's3://my-bucket/out-0.png

I already set all the env with my aws secrets but still without success.

PS: I also saw that for async request I have to pass --upload-url to the docker run function, but since I can't find a way to edit the startup script, can I build the docker with this command already included?

Thank you!

Sapessii avatar Nov 25 '23 11:11 Sapessii

did you solve it?

alexblattner avatar Mar 05 '24 08:03 alexblattner

I had the same issue and was able to fix it but not sure if it's applicable for your situation. I had a local http server set up for viewing/uploading images and was getting the same error. I set up a reverse proxy and used the https link for the output_file_prefix and that resolved the issue for me.

momongah avatar Apr 21 '24 22:04 momongah