Page 1 of 1

failing to install webcam server

PostPosted: Wed Sep 16, 2020 4:05 pm
by josephouverney
Hi Admin,

I'm trying to install the webcam server but I'm having this message "Fail: start command failed"

do you now the reason by the way im already a donor and i have enterd with my id on my server.

please Help

Re: failing to install webcam server

PostPosted: Wed Sep 16, 2020 4:22 pm
by Jocko
Hi

The issue is not related at all with your donator status but seems to be linked with the firmware or with motion settings. Please to note webcam server is not a "donator" feature.

First, do you have an usb webcam plugged?
So check if the firmware detects it => go to the usb-devices menu and post here the content

Re: failing to install webcam server

PostPosted: Wed Sep 16, 2020 4:45 pm
by Jocko
I could reproduce the issue on my 5big2 and it is a lib issue:
Code: Select all
root@Acrab:/ # /usr/bin/motion -c /share/1100/motion-webcam/motion.conf -p /var/run/motion.pid
/usr/bin/motion: error while loading shared libraries: libavformat.so.52: cannot open shared object file: No such file or directory
And indeed 3 lib are missing with the last firmware version
Code: Select all
root@Acrab:/ # ldd /usr/bin/motion
        libm.so.6 => /lib/libm.so.6 (0xb6ece000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb6eae000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb6e88000)
        libavformat.so.52 => not found
        libavcodec.so.51 => not found
        libavutil.so.49 => not found
        libz.so.1 => /usr/lib/libz.so.1 (0xb6e68000)
        libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0xb6dd6000)
        libc.so.6 => /lib/libc.so.6 (0xb6c9a000)
        /lib/ld-linux.so.3 (0xb6f7e000)
        libdl.so.2 => /lib/libdl.so.2 (0xb6c8f000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb6c68000)
Now libav libraries are installed with some addons packages and we did not notice motion required some of them :pound
Currently you can fix the issue by installing minidlna and adding these symlinks (it seems there is no issue to use more recent lib versions with motion):
Code: Select all
Jocko: removed
With these symlink, motion starts without warning:
Code: Select all
root@Acrab:/ # ldd /usr/bin/motion
        libm.so.6 => /lib/libm.so.6 (0xb6e7b000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb6e5b000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb6e35000)
        libavformat.so.52 => /usr/lib/libavformat.so.52 (0xb6c35000)
        libavcodec.so.51 => /usr/lib/libavcodec.so.51 (0xb5967000)
        libavutil.so.49 => /usr/lib/libavutil.so.49 (0xb58d8000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb58b8000)
        libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0xb5826000)
        libc.so.6 => /lib/libc.so.6 (0xb56ea000)
        /lib/ld-linux.so.3 (0xb6f2b000)
        libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0xb56d1000)
        libswresample.so.2 => /usr/local/lib/libswresample.so.2 (0xb56b4000)
        liblzma.so.5 => /usr/lib/liblzma.so.5 (0xb568d000)
        libdl.so.2 => /lib/libdl.so.2 (0xb5682000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb565b000)
root@Acrab:/ # /usr/bin/motion -c /share/1100/motion-webcam/motion.conf -p /var/run/motion.pid
[0] [NTC] [ALL] conf_load: Processing thread 0 - config file /share/1100/motion-webcam/motion.conf
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "sdl_threadnr"
[0] [NTC] [ALL] motion_startup: Motion trunkREV554 Started
[0] [NTC] [ALL] motion_startup: Logging to file (/share/1100/motion-webcam/motion.log)

root@Acrab:/ # psx|grep motion
16739 pts/0    S+     0:00          \_ grep motion
16718 ?        Sl     0:02 /usr/bin/motion -c /share/1100/motion-webcam/motion.conf -p /var/run/motion.pid


For a complete fix, we have to find the old libs from previous firmware image

Re: failing to install webcam server

PostPosted: Wed Sep 16, 2020 5:24 pm
by Jocko
So the missing lib are very old and compiled by fvdw in 2009!. We removed them wrongly on version 18.x

To restore them do
Code: Select all
plugout download 6498
tar -xf /tmp/fvdw-sl-18-x-libav-2009.tgz -C /
check if you find them
Code: Select all
ls -l /opt/lib/libav*

Then update the library cache
Code: Select all
ldconfig


Now motion should start without issue

Re: failing to install webcam server

PostPosted: Wed Sep 16, 2020 5:53 pm
by josephouverney
Sorry how to i retore can you give some step by step. thansk

Re: failing to install webcam server

PostPosted: Wed Sep 16, 2020 5:56 pm
by Jocko
What is it that you do not understand with these commands ?
Code: Select all
plugout download 6498
tar -xf /tmp/fvdw-sl-18-x-libav-2009.tgz -C /
You just have to open a shell window to run them

Re: failing to install webcam server

PostPosted: Thu Sep 17, 2020 5:38 pm
by Jocko
Hi
It seems you managed to follow my instruction (at least download the package from your nas).

Any new about your issue ?