From: Gordon <mo...@re...> - 2010-02-05 19:21:03
|
The default Ubuntu motion.conf specifies where the pid file will be placed (/var/run/motion). If I comment that setting out, it works fine. I discovered that fix by copying a previous motion.conf from an older machine. Chris, does the motion.conf that works for you have the pid file setting commented out? I, too, first tried to create the /var/run/motion directory to address the problem. The fix didn't hold, because for some reason the directory I created was deleted after I reboot the machine. Chris: Is your Xubuntu 9.10 install 32-bit or 64-bit? Sergio? I still wonder if these problems are isolated to the 64-bit installations only, and have nothing to do with being newer kernel and program versions. ----- Original Message ----- From: "Joel Avery" <joe...@ya...> To: "Motion discussion list" <mot...@li...> Sent: Friday, February 5, 2010 1:28:43 PM GMT -05:00 US/Canada Eastern Subject: Re: [Motion-user] MJGrab + Lighttpd Problems on Ubuntu 9.10 + Motion Starting Problem I have motion running on Kubuntu 9.10 and on a command line only machine installed from xubuntu 9.10. I installed motion from the repositories on both machines and it just worked (using USB web cams) as it always has for the last couple of years. I let motion install and run as user motion of which I added myself to the motion group. It starts automatically. I have no /var/run/motion folder. From: Sergio A.S. de Aguiar <ssa...@ss...> To: mot...@li... Sent: Fri, February 5, 2010 7:28:01 AM Subject: Re: [Motion-user] MJGrab + Lighttpd Problems on Ubuntu 9.10 + Motion Starting Problem I also have some problems with ubuntu 9.10: When it starts motion, as the /var/run/motion folder can't be created, it will not start automatically (I already created the motion user and assign to it all administrator rights). So, I have to create the folder /var/run/motion, as root (mkdir /var/run/motion). Then, when motion starts, I have the same problems: green screen and/or grey screen with no captured data. I have to restart motion several times to make it work. It happens also with mencoder wich is using another capture board. It will also show a green screen. I can make it work if, I said, restart the programs again or if (very strange) if I do a 'cat /dev/video0' and/or 'cat /dev/video1' in a bash, as root, then a control + C and restart the programs. I think this is related to ubuntu 91. I just don't know if the /var/run problem is motion related or ubuntu related. Sergio Em 5/2/2010 03:03, mo...@re... escreveu: > Compiled Motion to replace the Ubuntu version to see if that might help, but still have the same problems. > > I did install thttpd and disabled lighttpd to try to eliminate lighttpd as the source of mjgrab not working. Same problem. Lighttpd generated a less-than-helpful "server error 500" message, but thttpd provides a backtrace. Does this mean anything to anyone? > > *** buffer overflow detected ***: nph-mjgrab terminated > ======= Backtrace: ========= > /lib/libc.so.6(__fortify_fail+0x37)[0x7f91a24ae647] > /lib/libc.so.6[0x7f91a24ad5f0] > /lib/libc.so.6(__fread_chk+0x15b)[0x7f91a24addcb] > nph-mjgrab[0x400c28] > /lib/libc.so.6(__libc_start_main+0xfd)[0x7f91a23d5abd] > nph-mjgrab[0x4009a9] > ======= Memory map: ======== > 00400000-00401000 r-xp 00000000 08:02 262275 /var/www/cgi-bin/nph-mjgrab > 00601000-00602000 r--p 00001000 08:02 262275 /var/www/cgi-bin/nph-mjgrab > 00602000-00603000 rw-p 00002000 08:02 262275 /var/www/cgi-bin/nph-mjgrab > 00887000-008a8000 rw-p 00000000 00:00 0 [heap] > 7f91a21a0000-7f91a21b6000 r-xp 00000000 08:01 562 /lib/libgcc_s.so.1 > 7f91a21b6000-7f91a23b5000 ---p 00016000 08:01 562 /lib/libgcc_s.so.1 > 7f91a23b5000-7f91a23b6000 r--p 00015000 08:01 562 /lib/libgcc_s.so.1 > 7f91a23b6000-7f91a23b7000 rw-p 00016000 08:01 562 /lib/libgcc_s.so.1 > 7f91a23b7000-7f91a251d000 r-xp 00000000 08:01 179 /lib/libc-2.10.1.so > 7f91a251d000-7f91a271c000 ---p 00166000 08:01 179 /lib/libc-2.10.1.so > 7f91a271c000-7f91a2720000 r--p 00165000 08:01 179 /lib/libc-2.10.1.so > 7f91a2720000-7f91a2721000 rw-p 00169000 08:01 179 /lib/libc-2.10.1.so > 7f91a2721000-7f91a2726000 rw-p 00000000 00:00 0 > 7f91a2726000-7f91a2745000 r-xp 00000000 08:01 176 /lib/ld-2.10.1.so > 7f91a2939000-7f91a293b000 rw-p 00000000 00:00 0 > 7f91a2940000-7f91a2944000 rw-p 00000000 00:00 0 > 7f91a2944000-7f91a2945000 r--p 0001e000 08:01 176 /lib/ld-2.10.1.so > 7f91a2945000-7f91a2946000 rw-p 0001f000 08:01 176 /lib/ld-2.10.1.so > 7fffba992000-7fffba9a7000 rw-p 00000000 00:00 0 [stack] > 7fffba9ff000-7fffbaa00000 r-xp 00000000 00:00 0 [vdso] > ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] > > Mjprox works perfectly with thttpd and lighttpd, but mjgrab won't work on either. > > > ----- Original Message ----- > From: mo...@re... > To: "Motion User"< mot...@li... > > Sent: Tuesday, January 12, 2010 12:55:05 PM GMT -05:00 US/Canada Eastern > Subject: [Motion-user] MJGrab + Lighttpd Problems on Ubuntu 9.10 + Motion Starting Problem > > Having some problems with Motion, and MJ-Grab with Lighttpd on Ubuntu 9.10. > > 1. Problem getting mj-grab working, but mj-prox is working OK. > > System is a Core 2 Dell Vostro 200. It was running either Ubuntu server 8.04 LTS or 8.10 (can't remember, and it may have been 32-bit version) with no problems for over a year; Motion version was from the repositories. I upgraded the system to 9.10 in steps over a couple of days. > > CGI on Lighttpd is broken on 9.10, but I found a work-around for that ( http://ubuntuforums.org/showthread.php?p=8601210 ). Once I got CGI working again, the mj-prox + cambozola worked fine, but mj-grab did not. I recompiled the programs, but that didn't help. I've checked every possible permissions problem I could think of, comparing it to an older working server side-by-side, but found nothing. > > I can view the camera feeds directly in Firefox, so that's OK (makes sense, as mj-prox works). I try to access the mj-grab program directly with http://192.168.67.4/cgi-bin/mj-grab?1 and get "500 - Internal Server Error." Accessing mj-prox the same way works fine. > > I eventually did a fresh install of 9.10 (64-bit) and reinstalled everything, only to find the same problem occurs. The Motion version in Ubuntu 9.10 is 3.2.11, and it recently was updated, probably to include the fixes in 3.2.11.1. I can get mj-grab to work on a similarly configured 64-bit Core i5 with Kubuntu 9.10 Desktop and a bttv camera, so the problem must not be present in all 9.10 Ubuntu 64-bit installs. > > On the webpage I use to show the camera images wtih mj-grab, it *will* show a green screen on only the one bttv camera when Motion does not start properly (see problem #2 below). The other image places show the usual broken image graphic. Once I restart Motion to get it running properly, the bttv camera green image turns into the same broken graphic image placeholder just like the other cameras. > > 2. Motion shows green screen on BTTV cameras when first started > > Motion shows a green screen for BTTV cameras (generic eBay card) when it is started by the start-up scripts on reboot. If I issue sudo /etc/init.d/motion restart once, it will start viewing the camera properly. This problem I observe on both the Core 2 system and the Core i5 system mention above. Motion will also show a green screen the first time after a reboot even if Motion is started interactively, with daemon mode disabled; stopping and restarting gets it running properly. > > Maybe both of these problems are unique to Ubuntu 9.10, but I thought it made sense to ask about them here first. Is the PPA mentioned under the bug fix section ( http://www.lavrsen.dk/foswiki/bin/view/Motion/BugReport2008x07x20x094957 ) something I should try? It looks like the current Ubuntu 9.10 Motion package would include any fixes mentioned there, so I would guess not. thanks, Gordon > > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Motion-user mailing list > Mot...@li... > https://lists.sourceforge.net/lists/listinfo/motion-user > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Motion-user mailing list > Mot...@li... > https://lists.sourceforge.net/lists/listinfo/motion-user > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome > > ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Motion-user mailing list Mot...@li... https://lists.sourceforge.net/lists/listinfo/motion-user http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome Make your browsing faster, safer, and easier with the new Internet Explorer® 8. Optimized for Yahoo! Get it Now for Free! ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Motion-user mailing list Mot...@li... https://lists.sourceforge.net/lists/listinfo/motion-user http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome |