installation scrips need some corrections to work in hda.
#4 Updated by smystaki over 10 years ago
normaly this user (who is the first admnin user) should be able to do that.
[smystaki@localhost ~]$ kmotion restart
Traceback (most recent call last):
File "./kmotion.py", line 137, in <module>
File "./kmotion.py", line 92, in main
File "/var/hda/web-apps/kmotion/html/core/init_core.py", line 360, in gen_vhost
f_obj1 = open('%s/www/vhosts/kmotion' % kmotion_dir, 'w')
IOError: [Errno 13] Permission denied: '/var/hda/web-apps/kmotion/html/www/vhosts/kmotion'
But can not. Thats why we need to reboot in order to restart services. Nor root can run this!!
#5 Updated by bigfoot65 over 10 years ago
I did not get this during my test install. Root does not run the script to start kmotion nor the actual kmotion install_core.py. These are both run as first admin user.
Recommend you uninstall, clear the browser cache, and the /tmp/amahi-download-cache as we did before.
If that does not help, this app may not be able to be automated with Amahi. I have to do a manual restart of motion as root, and kmotion as first admin user after adding a device. Once done, then it seems to work ok. The app design is not the best for the Amahi platform. Maybe the author can assist with modifying its code to be better suited.
Also available in: Atom