Migrate from Pi to syno-docker - need some advice

Hi,

As my SD-card got corrupted this morning I thought…
Lets move to my Syno-docker enviroment…

pulled the home-assistant official into docker, created a container, configed the “config” folder, and imported the config files from a previous Pi backup…

Looks like a golden solution…

But, the docker does not start, and Synology tells me it crashes and restarts home-assistant over and over again…
In my home-assistant.log I find:

2019-07-17 17:02:40 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/core.py", line 1127, in async_call
    raise ServiceNotFound(domain, service) from None
homeassistant.exceptions.ServiceNotFound: Unable to find service persistent_notification/create

Empty-ing the config folder, it starts without a problem… even a change in de configuration.yaml is denied…

what is the best way to port my config to my docker container?

Check the permissions on the config folder and files.
This is very likely an issue where your files do not have permissions allowing HA to use them.

did the owner and group to root (the one that is using the default created folder also)

Does your docker environment run as root?
If not, then you’ll need to make sure the Docker user and folder match.

Yep it does (can you change that? For instance for a single docker container?)

I found the issue… you were in the right direction…

The advanced permissions were all ticked…
When setting them like this it worked53