Closed bartwell closed 7 years ago
You must enable and run the stop cloud service before the RTSP service can be used.
Hi @DavidRayner! When I try to start 00-stop-cloud script I get Cloud is disabled
message.
Whoops, I didn't see that you disabled cloud apps. I'm not sure what is causing the problem in this case, sorry
I've found a solution. Here is no permissions to execute snx_rtsp_server. I successfully fix it with this command and now RTSP works well:
chmod 766 /media/mmcblk0p2/data/usr/bin/snx_rtsp_server
And same with other scripts:
chmod 766 /media/mmcblk0p2/data/usr/bin/fang-ir-control.sh
I also set execute permissions for ftpd and busybox, but it doesn't work. It looks like missed arguments for busybox, but I am not sure.
chmod 766 /media/mmcblk0p2/data/bin/busybox
chmod 766 /media/mmcblk0p2/data/usr/sbin/ftpd
@samtap it looks like a bug. Is it possible to add auto checking permissions for scripts? And probably fix bug with busybox... Anyway thank you for your work.
@bartwell All files you mention are executable by default so there's no bug. Did you flash the image or clone the repo and create your own sdcard? Usually what happens is people edit scripts on Windows and the execute flag is lost in transmission over (S)FTP. And sometimes sdcards get corrupted, which may be why you can't change attributes on busybox and ftpd?
Did you flash the image or clone the repo and create your own sdcard? Yes, I just create two partitions on SD card and copy files using Explorer on Windows 10.
why you can't change attributes on busybox and ftpd? I am changed it successfully. But it still doesn't works. I am trying to launch it manually
/media/mmcblk0p2/data/usr/sbin/ftpd
but it doesn't works (it shows BusyBox help).
There're many things that can go wrong if you manually create a card. I suggest you try the image instead.
My bad, you are completely right. Thanks a lot.
Hello! I get a problem: I can't run RTSP server. I always get "NOK" when I start it. Please, help me to run RTSP server. Here is screenshots of configuration and logs:
Process list:
Mounts:
Contents of /tmp/hacks.log: Wed Dec 31 21:00:05 GMT 1969 - /etc/fang_hacks.sh: Executing script (enabled: 1) Wed Dec 31 21:00:05 GMT 1969 - /etc/fang_hacks.sh: Cloud apps are disabled Wed Dec 31 21:00:05 GMT 1969 - /etc/fang_hacks.sh: Mounting /media/mmcblk0p1 Wed Dec 31 21:00:05 GMT 1969 - /etc/fang_hacks.sh: Starting boa webserver... Wed Dec 31 21:00:05 GMT 1969 - /etc/fang_hacks.sh: Linking /media/mmcblk0p1/bootstrap/www/action -> /tmp/www/cgi-bin/action Wed Dec 31 21:00:06 GMT 1969 - /etc/fang_hacks.sh: Linking /media/mmcblk0p1/bootstrap/www/func.cgi -> /tmp/www/cgi-bin/func.cgi Wed Dec 31 21:00:06 GMT 1969 - /etc/fang_hacks.sh: Linking /media/mmcblk0p1/bootstrap/www/network -> /tmp/www/cgi-bin/network Wed Dec 31 21:00:06 GMT 1969 - /etc/fang_hacks.sh: Linking /media/mmcblk0p1/bootstrap/www/scripts -> /tmp/www/cgi-bin/scripts Wed Dec 31 21:00:06 GMT 1969 - /etc/fang_hacks.sh: Linking /media/mmcblk0p1/bootstrap/www/status -> /tmp/www/cgi-bin/status Wed Dec 31 21:00:06 GMT 1969 - /etc/fang_hacks.sh: Failed to find hacks in /media/mmcblk0p2/data! Wed Dec 31 21:00:06 GMT 1969 - /media/mmcblk0p1/snx_autorun.sh: Running (device: mmcblk0p1) Wed Dec 31 21:00:06 GMT 1969 - /etc/fang_hacks.sh: Mounted /media/mmcblk0p2/data Wed Dec 31 21:00:06 GMT 1969 - /media/mmcblk0p1/snx_autorun.sh: Created /tmp/www/cgi-bin Wed Dec 31 21:00:06 GMT 1969 - /etc/fang_hacks.sh: Running startup scripts Wed Dec 31 21:00:13 GMT 1969 - /etc/fang_hacks.sh: Finished