qJake / HADotNet.CommandCenter

📱 A web-based, wall-mountable command center for Home Assistant.
https://hacc.dev
Apache License 2.0
158 stars 11 forks source link

Cannot locate config.json file #117

Closed itzalgd24 closed 3 years ago

itzalgd24 commented 3 years ago

Forgive me for the questions. New to HACC and really like it.

My problem that it will not let me back up my config. I get a "Failed - network error" when trying to back up, and it kicks out the authentication so I have to put my HA path and LL token back in.

My volume is: ${USERDIR}/docker/hacc:/app/config.json

Trying to update to version 1.1 released today, but it will not update without repulling the image. I currently have 80 tiles configured and I do not want to lose all of that work.

I would be fine, if I could just find where the config file is stored so I could back it up.

Thanks.

qJake commented 3 years ago

The correct path housing the config file is /app/data/config.json, try mapping that to see if you can get it out.

And then, when you update to 1.1, use this argument to map the correct folder if you want to persist the config:

-v ${USERDIR}/docker/hacc:/app/data

I recently fixed the documentation to reflect this as well: https://hacc.dev/install/#running-hacc

itzalgd24 commented 3 years ago

Now I am getting somewhere. By following the thread and creating the config.json file in Linux first, I was able to get it to work, along with your recommendation. It appears that the config.json file is populating.

Unfortunately a little too late and I lost 100 tiles and two days worth of work before I got it working. :(

On Sun, Jan 31, 2021 at 11:15 PM Jake Burgy notifications@github.com wrote:

The correct path housing the config file is /app/data/config.json, try mapping that to see if you can get it out.

And then, when you update to 1.1, use this argument to map the correct folder if you want to persist the config:

-v ${USERDIR}/docker/hacc:/app/data

I recently fixed the documentation to reflect this as well: https://hacc.dev/install/#running-hacc

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/qJake/HADotNet.CommandCenter/issues/117#issuecomment-770551465, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKZGW6INUPFHRTFALBHH2ADS4YTFTANCNFSM4W35PGUQ .

-- PLEASE NOTE MY NEW EMAIL ADDRESS

qJake commented 3 years ago

Sorry to hear that. 😢

v1.1.x should be more stable in this regard, and as long as you have that path mapped, you can instruct your host system to back up that file regularly so you don't lose any more work.

Going to close this for now, if you experience this issue again, please comment / reopen. Thanks.