Page 1 of 2
Worked for 24 hours...
Posted: Wed Sep 28, 2005 11:43 pm
by stuorguk
Two days ago, I built my first dedicated ZM box. Worked fine for 24 hours, but after recompiling the kernel and rebooting, I get this...
/var/log/messages
Code: Select all
Sep 29 01:29:19 cctv bttv0: reset, reinitialize
Sep 29 01:29:19 cctv bttv0: PLL: 28636363 => 35468950 . ok
Sep 29 01:29:19 cctv zmc_d0[6142]: ERR [Sync failure for frame 0 buffer 1(1): In
valid argument]
Sep 29 01:29:19 cctv zmc_d0[6142]: ERR [Sync failure for frame 0 buffer 2(1): In
valid argument]
Sep 29 01:29:19 cctv zmc_d0[6142]: ERR [Sync failure for frame 0 buffer 3(1): In
valid argument]
Sep 29 01:29:19 cctv zmc_d0[6142]: ERR [Sync failure for frame 0 buffer 4(1): In
valid argument]
(END)
I went back to my original kernel (I had a backup of bzImage), but it's just the same.
kernel.shmall = 134217728
kernel.shmmax = 134217728
There is nothing in the ZM log files that looks bad, except for the watchdog kicking in. The bttv driver loads ok (cheap single-chip 4-port ebay card).
dmesg
Code: Select all
bttv0: PLL: 28636363 => 35468950 . ok
bttv0: timeout: drop=0 irq=0/0, risc=0f4d703c, bits: VSYNC HSYNC OFLOW RISCI PPERR
bttv0: reset, reinitialize
bttv0: PLL: 28636363 => 35468950 . ok
bttv0: timeout: drop=0 irq=0/0, risc=0f4d701c, bits: VSYNC HSYNC OFLOW RISCI PPERR
bttv0: reset, reinitialize
bttv0: PLL: 28636363 => 35468950 . ok
Help
Posted: Wed Sep 28, 2005 11:46 pm
by jameswilson
not sure but if memory serves correctly i had this on a live cd and....
Capture card was dead.
Was on mine check yours
James
Posted: Wed Sep 28, 2005 11:50 pm
by stuorguk
Is there any way of testing it? I don't have X installed.
Posted: Wed Sep 28, 2005 11:51 pm
by jameswilson
er...
have you got another card? if so slot it in and see
else its gonna have to come out and go in another box.
what card is it?
Posted: Wed Sep 28, 2005 11:55 pm
by stuorguk
I dont have another card. I was going to get a better one at some stage... guess that will have to be sooner than I had expected.
Thanks,
Stuart.
Posted: Wed Sep 28, 2005 11:58 pm
by jameswilson
before you do that id get someone to confirm what i say my memory is bad and gets worse every er.... lol
What card is it and if you reboot the machine what does it log then
James
Posted: Thu Sep 29, 2005 12:11 am
by stuorguk
It's a £15 UCC4 single chip thing I got off e-bay ages ago.
I have rebooted a zillion times. Pulled the power. Moved PCI slots. I put everything back as it was (as far as I know), and still it fails to work. I guess I could zap the mysql database settings, and start again, just in case I did something wrong while it was working.
Stuart.
Posted: Thu Sep 29, 2005 12:13 am
by jameswilson
if mysql was out you wouldnt be getting the card errors you posted at first. It might cause you not to be able to connect to the console and may not allow recording but capture would function (even if you couldnt see it)
BTW the card that failed on me was an ebay one too
James
Posted: Thu Sep 29, 2005 12:18 am
by stuorguk
I wasn't so much thinking mysql was bad... just that I may have changed a setting somewhere while it was working, and caused it to fail after the boot. That said, I didn't change much, and I have checked it all.
It's just that in the /messages log it says "Invalid argument", making me wonder if its a configuration problem?
S.
Posted: Thu Sep 29, 2005 12:21 am
by jameswilson
i assume you have checked the cam is ok or are there multiple cams that have died?
James
Posted: Thu Sep 29, 2005 12:38 am
by stuorguk
Just tried swapping the cameras again. Same.
Just noticed this pop up in the zmwatch log:
Code: Select all
Watchdog pausing for 30 seconds
DBD::mysql::st execute failed: MySQL server has gone away at /usr/local/bin/zmwatch.pl line 121.
Can't execute: MySQL server has gone away at /usr/local/bin/zmwatch.pl line 121.
Watchdog starting at 05/09/29 02:33:57
Watchdog pausing for 30 seconds
Posted: Thu Sep 29, 2005 12:50 am
by jameswilson
sounds like you have an issue there
Is sql running?
Posted: Thu Sep 29, 2005 12:51 am
by stuorguk
need to get to bed... will look at it tomorrow. For what it's worth, this is dmesg after a boot:
Code: Select all
bttv: driver version 0.9.15 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
PCI: Found IRQ 11 for device 0000:00:12.0
PCI: Sharing IRQ 11 with 0000:00:12.1
bttv0: Bt878 (rev 17) at 0000:00:12.0, irq: 11, latency: 64, mmio: 0xdddfe000
bttv0: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
bttv0: gpio: en=00000000, out=00000000 in=00f360ff [init]
bttv0: using tuner=-1
bttv0: i2c: checking for TDA9875 @ 0xb0... not found
bttv0: i2c: checking for TDA7432 @ 0x8a... not found
bttv0: i2c: checking for TDA9887 @ 0x86... not found
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: PLL: 28636363 => 35468950 .. ok
and this is dmesg after I start ZM:
Code: Select all
bttv0: reset, reinitialize
bttv0: PLL: 28636363 => 35468950 . ok
bttv0: timeout: drop=0 irq=0/0, risc=0eee503c, bits: VSYNC HSYNC RISCI PPERR
bttv0: reset, reinitialize
bttv0: PLL: 28636363 => 35468950 . ok
bttv0: timeout: drop=0 irq=0/0, risc=0eee501c, bits: VSYNC HSYNC RISCI PPERR
bttv0: reset, reinitialize
bttv0: PLL: 28636363 => 35468950 . ok
bttv0: timeout: drop=0 irq=0/0, risc=0eee503c, bits: VSYNC HSYNC RISCI PPERR
bttv0: reset, reinitialize
bttv0: PLL: 28636363 => 35468950 . ok
Posted: Thu Sep 29, 2005 12:53 am
by jameswilson
you may be right it may be a sql error cos if sql is down zm would know wether its a pal ntsc camera etc. you database might need a repair. Is his box contactable??
James
Posted: Thu Sep 29, 2005 8:35 am
by stuorguk
I have completely rebuilt the database, and reconfigured my camera, but the same old errors persist.
I still get
Code: Select all
Can't execute: MySQL server has gone away at /usr/local/bin/zmwatch.pl line 121.
Watchdog starting at 05/09/29 02:33:57
Watchdog pausing for 30 seconds
I'm wondering if thats just a consequence of some other failure.. either way, mysql seems fine. I can access the tables ok.