Skip to content
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

RESPONSE 400 - azure storage #126

Closed
AdrianOsica opened this issue Jul 29, 2024 · 5 comments
Closed

RESPONSE 400 - azure storage #126

AdrianOsica opened this issue Jul 29, 2024 · 5 comments

Comments

@AdrianOsica
Copy link

AdrianOsica commented Jul 29, 2024

When try list or download backup from azure return RESPONSE 400

root@radius:/etc/postgresql/14/main# pg_back -c pg_back.conf  --list-remote azure
2024/07/29 12:51:13 FATAL: could not list contents of remote location: could not fully list Azure container radius: GET https://sqlbackup.blob.core.windows.net/radius/radius
--------------------------------------------------------------------------------
RESPONSE 400: 400 The requested URI does not represent any resource on the server.
ERROR CODE: InvalidUri
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<Error><Code>InvalidUri</Code><Message>The requested URI does not represent any resource on the server.
RequestId:7c71fbb0-001e-001e-0ca5-e1e20e000000
Time:2024-07-29T10:51:13.6431138Z</Message></Error>
--------------------------------------------------------------------------------

Uploud seem works

@dpunkturban
Copy link

Hi @AdrianOsica,

Could you please provide the details from pg_back.conf (without secrets, endpoint, bucket pls) ?
I'd be happy to try reproducing the issue.

@AdrianOsica
Copy link
Author

backup_directory = /var/backups/postgresql/main
port = 5432
checksum_algorithm = sha256
encrypt = true
cipher_pass = XXXXXX
purge_older_than = 90
upload = azure

azure_container = radius
azure_account = XXXXX
azure_key = XXXX

@dpunkturban
Copy link

dpunkturban commented Aug 6, 2024

Hi @AdrianOsica, I can reproduce it. I will try to fix it :)

https://sqlbackup.blob.core.windows.net/radius/radius

I think the correct URL should be https://sqlbackup.blob.core.windows.net/radius, right?

@AdrianOsica
Copy link
Author

AdrianOsica commented Aug 6, 2024

Hi @dpunkturban

i think so, microsoft azure storage explorer also use this url

image

dpunkturban pushed a commit to dpunkturban/pg_back that referenced this issue Aug 11, 2024
Signed-off-by: Dennis Urban (github@dennisurban.de)
@dpunkturban
Copy link

Hi Adrian,

I've fixed the issue in #128. You can test it locally by cloning my fork and checking out the branch, or you can wait until the review is complete and the new Docker image is published.

dpunkturban pushed a commit to dpunkturban/pg_back that referenced this issue Aug 17, 2024
Signed-off-by: Dennis Urban (github@dennisurban.de)
dpunkturban pushed a commit to dpunkturban/pg_back that referenced this issue Aug 17, 2024
Signed-off-by: Dennis Urban (github@dennisurban.de)
dpunkturban pushed a commit to dpunkturban/pg_back that referenced this issue Aug 17, 2024
Signed-off-by: Dennis Urban (github@dennisurban.de)
@orgrim orgrim closed this as completed in 6f26d59 Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants