-
Notifications
You must be signed in to change notification settings - Fork 19
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
Can't run any scripts #16
Comments
The container only has access to locations that are mounted in the docker run command. By default, the config folder is mounted under /config You need to use the internal maooed location of the script (and first make sure that location is mounted) |
Thanks for Your response! |
|
Good to hear that python works. Just so you know, the script will only have access to the libraries and modules inside the container, which is ubuntu. If you want to test/troubleshoot your python script, it is best to do inside the container so you can see the console output. You can exec into the container with |
Thanks for this hint! |
maybe try with |
Yes, but then it doesn't find python3. |
or just |
OMG, sure ist has to be |
YESSS! Buuuut: |
ha-bridge 4.5.0 runs on my synology via docker.
Everything works fine, but I can't get any exec-command to work.
Most of the times I get a "file not found" error.
Tried everything I can imagine.
I get a green response in the ha-bridge interface but nothing is executed by using for example:
/usr/bin/python3 /volume1/Data/haactions/py/aquosOFF.py
The same for shell scripts.
I guess, it is a question of user-rights.
Am I right, that everything is executed by root (how can I find out?), but on the synology the user root has limited rights?
How could I get around this?
The text was updated successfully, but these errors were encountered: