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

The data directory is not mounted. #1

Open
Maximus2711 opened this issue Feb 18, 2024 · 9 comments
Open

The data directory is not mounted. #1

Maximus2711 opened this issue Feb 18, 2024 · 9 comments

Comments

@Maximus2711
Copy link

image

Is it any way to solve it? Its impossible to use addon when after reboot database will lost.

@gschmidl
Copy link
Owner

I found a way to solve it although this warning still appears. Unfortunately I don't know how to make the required directory automatically, but if you make it manually it works - I'll update the repository as soon as possible.

@Maximus2711
Copy link
Author

Oh, nice, i will wait. And it works as well? After restart addon database still fine?

@gschmidl
Copy link
Owner

As far as I can tell, yes. It's survived HA OS updates as well as turning the container off and on.

@gschmidl
Copy link
Owner

OK, I added the changes. You'll need to open a terminal in Home Assistant and do the following before starting the addon:

cd /config/addons_config
mkdir spoolman
chown 1000:1000 spoolman

@cnf
Copy link

cnf commented Feb 21, 2024

I think you should use addon_configs instead

see the end of https://developers.home-assistant.io/docs/add-ons/configuration/

@gschmidl gschmidl reopened this Feb 22, 2024
@gschmidl
Copy link
Owner

gschmidl commented Feb 22, 2024

I think you should use addon_configs instead

see the end of https://developers.home-assistant.io/docs/add-ons/configuration/

Hmm, that directory doesn't exist while the other one does and is used by e.g. mealie...

image

Would still like to find out how to automatically create and chown the directory.

@cnf
Copy link

cnf commented Feb 26, 2024

Sorry for the late reply, Generally it is expected you take care of that with something like a run script, for example This one

The default for the container you use is https://github.com/Donkie/Spoolman/blob/master/entrypoint.sh

I think if you want to auto create it, you'll need to make your own entry point, and and run that instead.

@matthewj301
Copy link
Contributor

Added a PR to make the manual commands more resilient, but will take a look at fixing this too

@huizebruin
Copy link
Contributor

i'm looking if i can find a sollution for this,

im looking an this one for info to check if i can find a soution.
https://github.com/zigbee2mqtt/hassio-zigbee2mqtt/blob/2.0.0/zigbee2mqtt/config.json

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

5 participants