Unable to view or delete uploaded image attachments in Minio #10897

Closed
opened 2025-12-29 21:37:26 +01:00 by adam · 5 comments
Owner

Originally created by @polipones on GitHub (Mar 15, 2025).

Deployment Type

Self-hosted

NetBox Version

v4.2.5

Python Version

3.10

Steps to Reproduce

  1. Run Netbox helm chart and deploy it with persistence: false. Set variables:

storageBackend: storages.backends.s3.S3Storage
storageConfig:
AWS_ACCESS_KEY_ID: 'some-key'
# AWS_SECRET_ACCESS_KEY is provided in secrets
AWS_STORAGE_BUCKET_NAME: 'netbox'
AWS_S3_ENDPOINT_URL: 'https://your_minio_s3_url'
2. Setup everything to be able to log in to web UI.
3. Upload image attachement (I used image attachement for one site), it completes successfully (I see the record in UI and also see the image in S3 console in web).
4. Try to view the image, getting error:

<Error>
<Code>SignatureDoesNotMatch</Code>
<Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message>
<Key>image-attachments/site_1_Test.png</Key>
<BucketName>netbox</BucketName>
<Resource>/netbox/image-attachments/site_1_Test.png</Resource>
<Region>region_name</Region>
<RequestId>182D04C123ADAA00</RequestId>
<HostId>dd9025bab4ad464b049177c95eb6ebf374d3b3fd1af9251148b658df7ac2e3e8</HostId>
</Error>

When trying to delete the attachement from web UI getting error:

Server Error
There was a problem with your request. Please contact an administrator.

The complete exception is provided below:

<class 'botocore.exceptions.ClientError'>

An error occurred (SignatureDoesNotMatch) when calling the DeleteObject operation: The request signature we calculated does not match the signature you provided. Check your key and signing method.

Python version: 3.12.3
NetBox version: 4.2.5-Docker-3.2.0
Plugins: None installed
If further assistance is required, please post to the [NetBox discussion forum](https://github.com/netbox-community/netbox/discussions) on GitHub.

Here is the image preview from the Minio console:

Image

I tried changing few settings in Minio configuration, but to no success. I am only reporting this error because I was able to upload the image successfully, but make no other operation with the image. If you need more info, let me know. Thanks :).

Expected Behavior

Image should be displayed or removed.

Observed Behavior

Getting errors described in Steps to reproduce.

Originally created by @polipones on GitHub (Mar 15, 2025). ### Deployment Type Self-hosted ### NetBox Version v4.2.5 ### Python Version 3.10 ### Steps to Reproduce 1. Run Netbox helm chart and deploy it with persistence: false. Set variables: storageBackend: storages.backends.s3.S3Storage storageConfig: AWS_ACCESS_KEY_ID: 'some-key' # AWS_SECRET_ACCESS_KEY is provided in secrets AWS_STORAGE_BUCKET_NAME: 'netbox' AWS_S3_ENDPOINT_URL: 'https://your_minio_s3_url' 2. Setup everything to be able to log in to web UI. 3. Upload image attachement (I used image attachement for one site), it completes successfully (I see the record in UI and also see the image in S3 console in web). 4. Try to view the image, getting error: ```xml <Error> <Code>SignatureDoesNotMatch</Code> <Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message> <Key>image-attachments/site_1_Test.png</Key> <BucketName>netbox</BucketName> <Resource>/netbox/image-attachments/site_1_Test.png</Resource> <Region>region_name</Region> <RequestId>182D04C123ADAA00</RequestId> <HostId>dd9025bab4ad464b049177c95eb6ebf374d3b3fd1af9251148b658df7ac2e3e8</HostId> </Error> ``` When trying to delete the attachement from web UI getting error: ``` Server Error There was a problem with your request. Please contact an administrator. The complete exception is provided below: <class 'botocore.exceptions.ClientError'> An error occurred (SignatureDoesNotMatch) when calling the DeleteObject operation: The request signature we calculated does not match the signature you provided. Check your key and signing method. Python version: 3.12.3 NetBox version: 4.2.5-Docker-3.2.0 Plugins: None installed If further assistance is required, please post to the [NetBox discussion forum](https://github.com/netbox-community/netbox/discussions) on GitHub. ``` Here is the image preview from the Minio console: <img width="1795" alt="Image" src="https://github.com/user-attachments/assets/07fa8f4b-4363-4b1f-8c76-2575e248cb01" /> I tried changing few settings in Minio configuration, but to no success. I am only reporting this error because I was able to upload the image successfully, but make no other operation with the image. If you need more info, let me know. Thanks :). ### Expected Behavior Image should be displayed or removed. ### Observed Behavior Getting errors described in Steps to reproduce.
adam added the type: bugstatus: needs ownerpending closureseverity: low labels 2025-12-29 21:37:26 +01:00
adam closed this issue 2025-12-29 21:37:27 +01:00
Author
Owner

@bctiemann commented on GitHub (Mar 18, 2025):

This will require someone with a MinIO setup to be able to reproduce this and investigate a solution.

@bctiemann commented on GitHub (Mar 18, 2025): This will require someone with a MinIO setup to be able to reproduce this and investigate a solution.
Author
Owner

@abhi1693 commented on GitHub (May 3, 2025):

It worked as expected for me on v4.3.0 using Minio

@abhi1693 commented on GitHub (May 3, 2025): It worked as expected for me on v4.3.0 using Minio
Author
Owner

@arthanson commented on GitHub (Jun 3, 2025):

@polipones looks like it is working from above, can you please confirm with NetBox v4.3.0

@arthanson commented on GitHub (Jun 3, 2025): @polipones looks like it is working from above, can you please confirm with NetBox v4.3.0
Author
Owner

@github-actions[bot] commented on GitHub (Sep 2, 2025):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Sep 2, 2025): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. **Do not** attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/main/CONTRIBUTING.md).
Author
Owner

@github-actions[bot] commented on GitHub (Oct 3, 2025):

This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.

@github-actions[bot] commented on GitHub (Oct 3, 2025): This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10897