-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Guidance help #537
Comments
Hi, to be sure are you trying to use s3proxy with an Azure backend ? |
@alifirat hi, yes with an azure backend |
Please check https://github.com/gaul/s3proxy/wiki/Storage-backend-examples Just set the authentication method to none and also the one about that ignores unknown headers. |
@alifirat set as above, server still returns 501 not implemented, If i navigate to endpoint with bucket in path https://itestproxy.azurewebsites.net/testBucketname i see this response The logs from S3proxy state Unknown method POST with URI /Testbucketname |
Did you try to add a folder after testBucket ? Also can you share your s3proxy configuration ? |
Cheers @alifirat Forgive my ignorance S3 is new to me. so if i misunderstand please correct me. I created a folder in the backend called Uploads as that is what the client is trying to save to (along with random guid string folders). I can see this at the endpoint now so i know it can see my azure side https://testproxy.azurewebsites.net/testbucketname Config is created by environment variables here |
Looking at the code where the unsupported gets thrown, none of the headers in the request match the list but the form data does have policy in In s3proxyhandler.java my request headers POST /mytestbucket HTTP/1.1 Formdata payload Cache-Control: max-age=31557600 I believe the client is using presigned URLS but not sure what policy is, is there any way of working around this @gaul |
I am really desperate now to get this resovled. Its been 4 weeks of hell trying to get outline to work with s3 storage and i am no closer to a solution. As far as i can see above outline makes a valid S3 request but 501 is returned and i cant see how. If it is never gonna work with S3proxy then i just need to move on, anybody able to see what the issue is? |
I'm having a look tomorrow |
Could you try testing with the new azureblob-sdk provider from #606? |
I ended up using minio hosted in a vm but when I get chance I will try this again as if I can get it to work I won't need to host a vm in azure. I will close this for now as it may a while before I can try |
Hi
I have been trying to implement this project in Azure app Service docs.getoutline.com. It requires s3 storage. I have setup s3proxy as another container in Azure i am trying to set it up to function. It appears outline requires the following variables to be filled in or it will not attempt to send files to s3
AWS_REGION=us-east-2
AWS_S3_FORCE_PATH_STYLE=false
AWS_S3_UPLOAD_BUCKET_NAME=my-bucket-name
AWS_S3_UPLOAD_BUCKET_URL=https://my-bucket-name.s3.us-east-2.amazonaws.com
AWS_S3_UPLOAD_MAX_SIZE=26214400
AWS_ACCESS_KEY_ID=AK66L9HZpTtfrpFFgtVxcxOUTn
AWS_SECRET_ACCESS_KEY=97L9HfssZpTtfrxOUTVxcnpgtSa
I note that the bucket is part of the url, but in order to use s3proxy i am unsure what i need to change above for it to work. I have created an app registration in azure and have the secret as well as the storage account key but what is the bucket URL i need, also what would i put in AWS_S3_UPLOAD_BUCKET_NAME?
Any help would be very much appreciated, spent 3 weeks so far getting this setup and this is my last challenge now, hoping it wont all have been for waste
I have got much further now, i did not realise that it was javascript running in the browser that is sending the requests. I configured CORS and some other bits and i have got further now but i am getting a 501 response back
A header you provided implies functionality that is not implemented
@gaul i see there is another issue with the same error #73
I can provide the post headers and payload if it can help. It could be i have missed some settings as i see this in log
2023-08-02T21:56:35.165188289Z [s3proxy] E 08-02 21:56:35.155 S3Proxy-Jetty-14 o.gaul.s3proxy.S3ProxyHandler:769 |::] Unknown method POST with URI /mybucket
The text was updated successfully, but these errors were encountered: