home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.52k stars 30.71k forks source link

Minio: invalid_file_path #113706

Open maxime1992 opened 7 months ago

maxime1992 commented 7 months ago

The problem

Trying to use https://www.home-assistant.io/integrations/minio, I have been able to remove a file successfully on the Minio instance using this integration but I have never succeeded into uploading a file from HA, to Minio.

I have read about allowlist_external_dirs and I have added that to my config but it just never seems to find the file I'm referring to. Ideally, I'd like to upload an HA backup to Minio, so I'd like to give access to /backup but that doesn't seem to work when I check the config file before restarting.

I have also tried creating a file in /homeassistant and /tmp, both times giving the file full rights 777 with a chmod to be sure it wasn't a permission issue.

What version of Home Assistant Core has the issue?

core-2024.3.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Minio

Link to integration documentation on our website

https://www.home-assistant.io/integrations/minio

Diagnostics information

I can share HA logs:

image

Example YAML snippet

minio:
  host: my-host
  port: 443
  access_key: my-bucket
  secret_key: my-secret-key
  secure: true

and then in an automation I try to run the following:

service: minio.put
metadata: {}
data:
  bucket: my-bucket
  key: test.txt
  file_path: /tmp/test.txt

Anything in the logs that might be useful for us?

Given already

Additional information

It might be nice to give a few more explanations on the documentation about where does the path starts, what can we have access and eventually illustrate the main example to target the upload of an HA backup file, as I'm guessing it might be one of the biggest use case

home-assistant[bot] commented 7 months ago

Hey there @tkislan, mind taking a look at this issue as it has been labeled with an integration (minio) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `minio` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign minio` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


minio documentation minio source (message by IssueLinks)

issue-triage-workflows[bot] commented 4 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

maxime1992 commented 4 months ago

Still happening

issue-triage-workflows[bot] commented 1 month ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

maxime1992 commented 1 month ago

Up