Motion on Raspberry Pi: Problems with 2 camera's on USB 4 channel composite video capture device - camera

I'm using Motion on an rPi 4B as a multi camera solution to be used on a boat (to get 180° front view). I tested it with 2 IP camera's and one USB camera and that worked fine. I was able to view the live streams of these 3 cameras side by side on a HTML page.
However, the cameras I need to use on the boat are composite video cameras. They are simple car backup cameras as can be found on eBay and AliExpress. To get them to work on the rPi, I bought a generic "EasyCap 4 channel USB Video Capture Device". It has 4 composite video inputs and 1 audio input. It is recognized by Raspbian as the STK1160 (which is correct).
One of the two CV cameras is connected to input 1 of the capture device, the other to input 2. Each camera has its own config file:
Camera 1:
# /etc/motion/conf.d/camera1.conf
#
text_left This is camera 1
videodevice /dev/video0
input 0
norm 1
stream_port 8083
Camera 2:
# /etc/motion/conf.d/camera2.conf
#
text_left This is camera 2
videodevice /dev/video0
input 1
norm 1
stream_port 8084
The only difference between the two config files being the input channel and the streaming port.
Problem is, when both config files are enabled, neither work. Instead of two live streams, I see two broken image icons on the HTML page. If I enable just one of the two, regardless of which one, I can see that camera's stream.
Here is the motion log with both config files enabled:
[29750920:motion] [NTC] [ALL] [Jul 26 11:07:27] motion_startup: Using log type (ALL) log level (NTC)
[29750920:motion] [NTC] [ALL] [Jul 26 11:07:27] become_daemon: Motion going to daemon mode
[29750920:motion] [NTC] [ALL] [Jul 26 11:07:27] become_daemon: Created process id file /var/run/motion/motion.pid. Process ID is 644
[29750920:motion] [NTC] [ALL] [Jul 26 11:07:27] motion_startup: Motion running as daemon process
[29750920:motion] [NTC] [ENC] [Jul 26 11:07:27] ffmpeg_global_init: ffmpeg libavcodec version 58.35.100 libavformat version 58.20.10
0
[0:motion] [NTC] [ALL] [Jul 26 11:07:28] main: Camera ID: 1 is from /etc/motion/cameras.d/camera2.conf
[0:motion] [NTC] [ALL] [Jul 26 11:07:28] main: Camera ID: 1 Camera Name: (null) Device: /dev/video0
[0:motion] [NTC] [ALL] [Jul 26 11:07:28] main: Camera ID: 2 is from /etc/motion/cameras.d/camera1.conf
[0:motion] [NTC] [ALL] [Jul 26 11:07:28] main: Camera ID: 2 Camera Name: (null) Device: /dev/video0
[1:ml1] [NTC] [ALL] [Jul 26 11:07:28] motion_init: Camera 1 started: motion detection Disabled
[1:ml1] [NTC] [VID] [Jul 26 11:07:28] vid_start: Opening V4L2 device
[1:ml1] [NTC] [VID] [Jul 26 11:07:28] v4l2_start: Using videodevice /dev/video0 and input 1
[1:ml1] [NTC] [VID] [Jul 26 11:07:28] v4l2_get_capability:
------------------------
cap.driver: "stk1160"
cap.card: "stk1160"
cap.bus_info: "usb-0000:01:00.0-1.4"
cap.capabilities=0x85200001
------------------------
[1:ml1] [NTC] [VID] [Jul 26 11:07:28] v4l2_get_capability: - VIDEO_CAPTURE
[2:ml2] [NTC] [ALL] [Jul 26 11:07:28] motion_init: Camera 2 started: motion detection Disabled
[1:ml1] [NTC] [VID] [Jul 26 11:07:28] v4l2_get_capability: - READWRITE
[1:ml1] [NTC] [VID] [Jul 26 11:07:28] v4l2_get_capability: - STREAMING
[2:ml2] [NTC] [VID] [Jul 26 11:07:28] vid_start: Opening V4L2 device
[1:ml1] [NTC] [VID] [Jul 26 11:07:28] v4l2_select_input: name = "Composite1", type 0x00000002, status 00000000
[0:motion] [NTC] [ALL] [Jul 26 11:07:28] main: Waiting for threads to finish, pid: 644
[1:ml1] [NTC] [VID] [Jul 26 11:07:28] v4l2_select_input: - CAMERA
[0:wc0] [NTC] [STR] [Jul 26 11:07:28] http_bindsock: listening on any IPv4 address port 8080
[1:ml1] [NTC] [VID] [Jul 26 11:07:28] v4l2_select_input: - video standard NTSC
[0:wc0] [NTC] [STR] [Jul 26 11:07:28] httpd_run: Started motion-httpd server on port 8080 (auth Disabled)
[1:ml1] [NTC] [VID] [Jul 26 11:07:28] v4l2_select_input: - video standard NTSC-M
[1:ml1] [NTC] [VID] [Jul 26 11:07:28] v4l2_select_input: Set standard method 45056
[1:ml1] [NTC] [VID] [Jul 26 11:07:28] v4l2_set_pix_format: Configuration palette index 17 (YU12) doesn't work.
[1:ml1] [NTC] [VID] [Jul 26 11:07:28] v4l2_set_pix_format: Supported palettes:
[1:ml1] [NTC] [VID] [Jul 26 11:07:28] v4l2_set_pix_format: (0) UYVY (UYVY 4:2:2)
[1:ml1] [NTC] [VID] [Jul 26 11:07:28] v4l2_set_pix_format: 0 - UYVY 4:2:2 (compressed : 0) (0x59565955)
[1:ml1] [NTC] [VID] [Jul 26 11:07:28] v4l2_do_set_pix_format: Testing palette UYVY (1280x720)
[1:ml1] [WRN] [VID] [Jul 26 11:07:28] v4l2_do_set_pix_format: Adjusting resolution from 1280x720 to 720x480.
[1:ml1] [NTC] [VID] [Jul 26 11:07:28] v4l2_do_set_pix_format: Using palette UYVY (720x480) bytesperlines 1440 sizeimage 691200 colorspace 00000001
[1:ml1] [NTC] [VID] [Jul 26 11:07:28] v4l2_set_pix_format: Selected palette UYVY
[1:ml1] [NTC] [VID] [Jul 26 11:07:28] v4l2_scan_controls: found control 0x00980900, "Brightness", range 0,255
[1:ml1] [NTC] [VID] [Jul 26 11:07:28] v4l2_scan_controls: "Brightness", default 128, current 128
[1:ml1] [NTC] [VID] [Jul 26 11:07:28] v4l2_scan_controls: found control 0x00980901, "Contrast", range 0,127
[1:ml1] [NTC] [VID] [Jul 26 11:07:28] v4l2_scan_controls: "Contrast", default 64, current 64
[1:ml1] [NTC] [VID] [Jul 26 11:07:28] v4l2_scan_controls: found control 0x00980902, "Saturation", range 0,127
[1:ml1] [NTC] [VID] [Jul 26 11:07:28] v4l2_scan_controls: "Saturation", default 64, current 64
[1:ml1] [NTC] [VID] [Jul 26 11:07:28] v4l2_scan_controls: found control 0x00980903, "Hue", range -128,127
[1:ml1] [NTC] [VID] [Jul 26 11:07:28] v4l2_scan_controls: "Hue", default 0, current 0
[1:ml1] [NTC] [ALL] [Jul 26 11:07:28] image_ring_resize: Resizing pre_capture buffer to 1 items
[2:ml2] [NTC] [ALL] [Jul 26 11:07:28] image_ring_resize: Resizing pre_capture buffer to 1 items
[2:ml2] [NTC] [VID] [Jul 26 11:07:28] v4l2_select_input: name = "Composite0", type 0x00000002, status 00000000
[2:ml2] [NTC] [VID] [Jul 26 11:07:28] v4l2_select_input: - CAMERA
[2:ml2] [NTC] [VID] [Jul 26 11:07:28] v4l2_select_input: - video standard NTSC
[2:ml2] [NTC] [VID] [Jul 26 11:07:28] v4l2_select_input: - video standard NTSC-M
[2:ml2] [NTC] [VID] [Jul 26 11:07:28] v4l2_select_input: - video standard NTSC-M-JP
[2:ml2] [NTC] [VID] [Jul 26 11:07:28] v4l2_select_input: - video standard NTSC-M-KR
[2:ml2] [NTC] [VID] [Jul 26 11:07:28] v4l2_select_input: Set standard method 45056
[2:ml2] [NTC] [VID] [Jul 26 11:07:28] v4l2_set_input: set_input_skip_frame switch_time=1627290448.273007
[1:ml1] [NTC] [STR] [Jul 26 11:07:28] http_bindsock: listening on any IPv4 address port 8084
[1:ml1] [NTC] [ALL] [Jul 26 11:07:28] motion_init: Started motion-stream server on port 8084 (auth Disabled)
(It's a bit confusing camera1.conf gets camera ID 2, and camera2.conf gets camera ID 1 but that can be easily fixed by setting the ID in the config files).
So what's going on here?

Related

Can't start Varnish cache on port 80 Ubuntu 16.04

Help me please make friends with my Ubuntu 16.04 apache2 web-server!
After installing Varnish cache started normally. But after putting it on port 80 varnish can't start:
Creating /etc/systemd/system/varnish.service.d/customexec.conf:
[Service]
ExecStart=
ExecStart=/usr/sbin/varnishd -a :80 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s default,256m
Then
systemctl daemon-reload
service varnish start
Varnish do not start:
varnish.service - Varnish Cache, a high-performance HTTP accelerator
Loaded: loaded (/lib/systemd/system/varnish.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/varnish.service.d
└─customexec.conf
Active: failed (Result: exit-code) since Thu 2020-07-23 09:41:12 MSK; 21s ago
Process: 5886 ExecStart=/usr/sbin/varnishd -a :80 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s default,256m (code=exited,
Main PID: 20786 (code=exited, status=0/SUCCESS)
Jul 23 09:41:12 mj33 systemd[1]: Starting Varnish Cache, a high-performance HTTP accelerator...
Jul 23 09:41:12 mj33 varnishd[5886]: Error: Cannot open -S file (/etc/varnish/secret): No such file or directory
Jul 23 09:41:12 mj33 varnishd[5886]: (-? gives usage)
Jul 23 09:41:12 mj33 systemd[1]: varnish.service: Control process exited, code=exited status=255
Jul 23 09:41:12 mj33 systemd[1]: Failed to start Varnish Cache, a high-performance HTTP accelerator.
Jul 23 09:41:12 mj33 systemd[1]: varnish.service: Unit entered failed state.
Jul 23 09:41:12 mj33 systemd[1]: varnish.service: Failed with result 'exit-code'.
Tried to create security file and edit /etc/systemd/system/varnish.service.d/customexec.conf:
[Service]
ExecStart=
ExecStart=/usr/sbin/varnishd -a :80 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,256m
Varnish started first time, but after stop/start it does not start again:
● varnish.service - Varnish Cache, a high-performance HTTP accelerator
Loaded: loaded (/lib/systemd/system/varnish.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/varnish.service.d
└─customexec.conf
Active: failed (Result: exit-code) since Fri 2020-07-24 10:52:41 MSK; 8s ago
Process: 9974 ExecStart=/usr/sbin/varnishd -a :80 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,256m (code=exited, status=2
Main PID: 8395 (code=exited, status=0/SUCCESS)
Jul 24 10:52:40 mj33 systemd[1]: Starting Varnish Cache, a high-performance HTTP accelerator...
Jul 24 10:52:41 mj33 varnishd[9974]: Debug: Version: varnish-6.0.6 revision 29a1a8243dbef3d973aec28dc90403188c1dc8e7
Jul 24 10:52:41 mj33 varnishd[9974]: Debug: Platform: Linux,4.4.0-135-generic,x86_64,-junix,-smalloc,-sdefault,-hcritbit
Jul 24 10:52:41 mj33 varnishd[9974]: Empty secret-file "/etc/varnish/secret"
Jul 24 10:52:41 mj33 varnishd[9976]: Version: varnish-6.0.6 revision 29a1a8243dbef3d973aec28dc90403188c1dc8e7
Jul 24 10:52:41 mj33 varnishd[9976]: Platform: Linux,4.4.0-135-generic,x86_64,-junix,-smalloc,-sdefault,-hcritbit
Jul 24 10:52:41 mj33 systemd[1]: varnish.service: Control process exited, code=exited status=255
Jul 24 10:52:41 mj33 systemd[1]: Failed to start Varnish Cache, a high-performance HTTP accelerator.
Jul 24 10:52:41 mj33 systemd[1]: varnish.service: Unit entered failed state.
Jul 24 10:52:41 mj33 systemd[1]: varnish.service: Failed with result 'exit-code'.
The problem was:
Debug: Child (20551) Started
Error: Child (20551) Acceptor start failed:
Listen failed on socket ':80': Address already in use
Debug: Stopping Child
Info: Child (20551) ended

USB DAC on Raspbian produces error

I finally got a USB DAC (HiFimeDIY Sabre DAC) for my Raspberry Pi (running on Raspbian Wheezy) today, but of course, just plugging it in doesn't do the trick. I've been messing around for quite some time with ALSA configuration now, but to no avail. Audio playback through the 3.5" headphone jack works just fine, but I can't seem to get the audio to play through USB. aplay -L gives
pi#raspberrypi ~ $ aplay -L
...
pulse
Playback/recording through the PulseAudio sound server
sysdefault:CARD=DAC
HiFimeDIY DAC, USB Audio
Default Audio Device
front:CARD=DAC
HiFimeDIY DAC, USB Audio
Default Audio Device
...
sysdefault:CARD=ALSA
bcm2835 ALSA, bcm2835 ALSA
Default Audio Device
front:CARD=ALSA
bcm2835 ALSA, bcm2835 ALSA
Default Audio Device
I wonder if both cards being marked as "Default Audio Device" is a good thing?
Anyways, testing playback via
pi#raspberrypi ~ $ aplay /usr/share/sounds/alsa/Front_Center.wav -D sysdefault:CARD=ALSA
Playback: WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate: 48000 Hz, mono
works fine, but
pi#raspberrypi ~ $ aplay /usr/share/sounds/alsa/Front_Center.wav -D sysdefault:CARD=DAC
ALSA lib pcm_direct.c:980:(snd1_pcm_direct_initialize_slave) unable to install hw params
ALSA lib pcm_dmix.c:1030:(snd_pcm_dmix_open) unable to initialize slave
aplay: main:682: Fehler beim Öffnen des Gerätes: Datenübergabe unterbrochen (broken pipe)
(Sry for german, it says something like Error while opening device: data stream interrupted)
My /etc/asound.conf looks as follows:
pcm.!default {
type hw
card 0
device 0
}
and /etc/modprobe.d/alsa-base.conf has the following entries:
# Keep snd-usb-audio from beeing loaded as first soundcard
options snd-usb-audio index=0
options snd_bcm2835 index=1
What am I doing wrong? Help would be much appreciated!
Edit:
Systemlog says the following:
Nov 7 18:30:29 raspberrypi kernel: [ 2.534311] usb 1-1: new full-speed USB device number 2 using dwc_otg
Nov 7 18:30:29 raspberrypi kernel: [ 2.546658] Indeed it is in host mode hprt0 = 00021501
Nov 7 18:30:29 raspberrypi kernel: [ 2.752653] usb 1-1: not running at top speed; connect to a high speed hub
Nov 7 18:30:29 raspberrypi kernel: [ 2.765131] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
Nov 7 18:30:29 raspberrypi kernel: [ 2.776874] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber$
Nov 7 18:30:29 raspberrypi kernel: [ 2.790194] hub 1-1:1.0: USB hub found
Nov 7 18:30:29 raspberrypi kernel: [ 2.799746] hub 1-1:1.0: 5 ports detected
Nov 7 18:30:29 raspberrypi kernel: [ 3.082453] usb 1-1.1: new full-speed USB device number 3 using dwc_otg
Nov 7 18:30:29 raspberrypi kernel: [ 3.192745] usb 1-1.1: not running at top speed; connect to a high speed hub
Nov 7 18:30:29 raspberrypi kernel: [ 3.205857] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
Nov 7 18:30:29 raspberrypi kernel: [ 3.218650] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumb$
Nov 7 18:30:29 raspberrypi kernel: [ 3.239311] smsc95xx v1.0.4
...
Nov 7 18:30:29 raspberrypi kernel: [ 3.308141] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb$
Nov 7 18:30:29 raspberrypi kernel: [ 3.432526] usb 1-1.3: new full-speed USB device number 4 using dwc_otg
Nov 7 18:30:29 raspberrypi kernel: [ 3.626813] usb 1-1.3: New USB device found, idVendor=1852, idProduct=7022
Nov 7 18:30:29 raspberrypi kernel: [ 3.647601] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumb$
Nov 7 18:30:29 raspberrypi kernel: [ 3.664695] usb 1-1.3: Product: HiFimeDIY DAC
Nov 7 18:30:29 raspberrypi kernel: [ 3.676431] usb 1-1.3: Manufacturer: HiFimeDIY Audio
Nov 7 18:30:29 raspberrypi kernel: [ 3.703597] input: HiFimeDIY Audio HiFimeDIY DAC as /devices/platform/bcm27$
Nov 7 18:30:29 raspberrypi kernel: [ 3.721606] hid-generic 0003:1852:7022.0001: input,hidraw0: USB HID v1.00 D$
Nov 7 18:30:29 raspberrypi kernel: [ 7.529882] usbcore: registered new interface driver snd-usb-audio
but as soon as the boot process is finished, I get this a jillion times in a row:
Nov 7 18:30:38 raspberrypi kernel: [ 41.221205] INFO:: schedule_periodic: Insufficient periodic bandwidth for p$
Nov 7 18:30:38 raspberrypi kernel: [ 41.221205]
Nov 7 18:30:38 raspberrypi kernel: [ 41.221261] ERROR::dwc_otg_hcd_urb_enqueue:544: DWC OTG HCD URB Enqueue fai$
Nov 7 18:30:38 raspberrypi kernel: [ 41.221261]
Nov 7 18:30:38 raspberrypi kernel: [ 41.221288] cannot submit urb 0, error -1: unknown error
Also:
Nov 7 18:45:21 raspberrypi kernel: [ 861.969647] bcm2835_audio_set_ctls:558 Controls set for stream 0
Nov 7 18:47:58 raspberrypi pulseaudio[2390]: [pulseaudio] module-always-sink.c: Unable to load module-null-sink
and
Nov 7 18:48:46 raspberrypi pulseaudio[2494]: [pulseaudio] module-udev-detect.c: Tried to configure /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.1/sound/card0 (alsa_card.usb-HiFimeDIY_Audio_HiFimeDIY_DAC-01-DAC) more often than 5 times in 10 seconds
Edit 2:
Contents of /proc/asound/card0/stream0 are
HiFimeDIY Audio HiFimeDIY DAC at usb-bcm2708_usb-1.3, full speed : USB Audio
Playback:
Status: Stop
Interface 3
Altset 1
Format: S16_LE
Channels: 2
Endpoint: 3 OUT (ADAPTIVE)
Rates: 8000, 16000, 32000, 44100, 48000, 96000
Interface 3
Altset 2
Format: S24_3LE
Channels: 2
Endpoint: 3 OUT (ADAPTIVE)
Rates: 8000, 16000, 32000, 44100, 48000, 96000
Capture:
Status: Stop
Interface 2
Altset 1
Format: S16_LE
Channels: 2
Endpoint: 2 IN (ADAPTIVE)
Rates: 8000, 16000, 32000, 44100, 48000, 96000
Interface 2
Altset 2
Format: S24_3LE
Channels: 2
Endpoint: 2 IN (ADAPTIVE)
Rates: 8000, 16000, 32000, 44100, 48000, 96000
Every time I want to force sound through the USB card (below I set it to be the default audio device in .asoundrc)I get
pi#raspberrypi ~ $ aplay piano2.wav
Wiedergabe: WAVE 'piano2.wav' : Signed 16 bit Little Endian, Rate: 48000 Hz, stereo
aplay: set_params:1145: Fehler beim Setzen der Hardware-Parameter:
ACCESS: RW_INTERLEAVED
FORMAT: S16_LE
SUBFORMAT: STD
SAMPLE_BITS: 16
FRAME_BITS: 32
CHANNELS: 2
RATE: 48000
PERIOD_TIME: 125000
PERIOD_SIZE: 6000
PERIOD_BYTES: 24000
PERIODS: 4
BUFFER_TIME: 500000
BUFFER_SIZE: 24000
BUFFER_BYTES: 96000
TICK_TIME: 0
(the german part says "aplay: set_params:1145: unable to install hw params:).
Additionally, aplay -L still gives me
Karte 0: DAC [HiFimeDIY DAC], Gerät 0: USB Audio [USB Audio]
Sub-Geräte: 1/1
Sub-Gerät #0: subdevice #0
Karte 0: DAC [HiFimeDIY DAC], Gerät 1: USB Audio [USB Audio #1]
Sub-Geräte: 1/1
Sub-Gerät #0: subdevice #0
and when I use aplay -D hw:0,1 sound.wav, playback seems to work (no error message is thrown out), but I can't hear anything at all. Is Card 0,1 the recording device? If I use onboard sound, everything works fine. I'm not using a usb hub (DAC is plugged directly into the pi). Might this be a power issue?
lsusb has
pi#raspberrypi ~ $ lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 1852:7022 GYROCOM C&C Co., LTD
At the moment, a printer is plugged in (switched off though) and unplugging it changes nothing, lsusb still shows the same devices (I'm wondering why there are 4 and 3 of them different, while the Pi only has 2 ports, in one of which is the DAC). When the pi is starting up and the speakers are plugged into the DAC, I get a couple crackles, just like when they are plugged into the headphone jack.
Even i faced the similar issue.
Possible solution :
Check the kernel configs ( zcat /proc/config.gz | grep 'CONFIG_FW_LOADER' ). If that config is not enabled then try to build a kernel with this config enabled.
I tried similar approach across the different kernel for the same ROOT FILE SYSTEM, then checked for the configs i found out the above solution.
Thanks and Regards,
Sandesh K A
Let me know if this solution worked for you.
A while ago, I was experiencing the same issue. I've manage to fix it by double checking the config files. In my case, I've run alsa mixer after i've configured ~/.asoundrc. By running the alsa mixer / unplugging the usb, alsa automatically updates ~/.asoundrc file. Hence, overwritten my previous config.
Make sure that your changes in conf file are still in place before trying again. I hope this works on you as well.
Set up Raspberry Pi 3 USB mic ( creative sound blaster )

WAMP install issues, 403 Forbidden

I've installed WAMP successfully and it works as expected until I've tried to use it with a Dropbox folder, having followed a tutorial.
Owing to that challenge, I've uninstalled, deleted all the files, and have re-installed WAMP after a system restore.
I can access localhost, but not localhost/phpmyadmin; I keep getting a Forbidden error (403) with the following message: you do not have permission to view this directory.
I literally spent all afternoon yesterday and all morning reading every single Google result I could for solutions and I still can't fix it.
I've already tried common solutions such as modifying the configuration files to no avail.
Below is the content of my Apache error log:
[Tue Jan 24 15:53:39 2012] [notice] Apache/2.2.21 (Win32) PHP/5.3.8 configured -- resuming normal operations
[Tue Jan 24 15:53:39 2012] [notice] Server built: Sep 10 2011 11:34:11
[Tue Jan 24 15:53:39 2012] [notice] Parent: Created child process 4992
[Tue Jan 24 15:53:40 2012] [notice] Child 4992: Child process is running
[Tue Jan 24 15:53:40 2012] [notice] Child 4992: Acquired the start mutex.
[Tue Jan 24 15:53:40 2012] [notice] Child 4992: Starting 64 worker threads.
[Tue Jan 24 15:53:40 2012] [notice] Child 4992: Starting thread to listen on port 80.
[Tue Jan 24 15:53:40 2012] [notice] Child 4992: Starting thread to listen on port 80.
[Tue Jan 24 15:53:50 2012] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Tue Jan 24 15:53:50 2012] [notice] Child 4992: Exit event signaled. Child process is ending.
[Tue Jan 24 15:53:51 2012] [notice] Child 4992: Released the start mutex
[Tue Jan 24 15:53:52 2012] [notice] Child 4992: All worker threads have exited.
[Tue Jan 24 15:53:52 2012] [notice] Child 4992: Child process is exiting
[Tue Jan 24 15:53:52 2012] [notice] Parent: Child process exited successfully.
[Tue Jan 24 15:53:53 2012] [notice] Apache/2.2.21 (Win32) PHP/5.3.8 configured -- resuming normal operations
[Tue Jan 24 15:53:53 2012] [notice] Server built: Sep 10 2011 11:34:11
[Tue Jan 24 15:53:53 2012] [notice] Parent: Created child process 4576
[Tue Jan 24 15:53:53 2012] [notice] Child 4576: Child process is running
[Tue Jan 24 15:53:53 2012] [notice] Child 4576: Acquired the start mutex.
[Tue Jan 24 15:53:53 2012] [notice] Child 4576: Starting 64 worker threads.
[Tue Jan 24 15:53:53 2012] [notice] Child 4576: Starting thread to listen on port 80.
[Tue Jan 24 15:53:53 2012] [notice] Child 4576: Starting thread to listen on port 80.
[Tue Jan 24 15:54:01 2012] [error] [client ::1] client denied by server configuration: C:/WAMP/apps/phpmyadmin3.4.5/, referer: http://localhost/
There was no PHP log.
Following, is the content of the MySQL error log:
120124 15:53:38 [Note] Plugin 'FEDERATED' is disabled.
120124 15:53:38 InnoDB: The InnoDB memory heap is disabled
120124 15:53:38 InnoDB: Mutexes and rw_locks use Windows interlocked functions
120124 15:53:38 InnoDB: Compressed tables use zlib 1.2.3
120124 15:53:38 InnoDB: Initializing buffer pool, size = 128.0M
120124 15:53:38 InnoDB: Completed initialization of buffer pool
InnoDB: The first specified data file .\ibdata1 did not exist:
InnoDB: a new database to be created!
120124 15:53:38 InnoDB: Setting file .\ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
120124 15:53:39 InnoDB: Log file .\ib_logfile0 did not exist: new to be created
InnoDB: Setting log file .\ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
120124 15:53:39 InnoDB: Log file .\ib_logfile1 did not exist: new to be created
InnoDB: Setting log file .\ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: 127 rollback segment(s) active.
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
120124 15:53:41 InnoDB: Waiting for the background threads to start
120124 15:53:42 InnoDB: 1.1.8 started; log sequence number 0
120124 15:53:43 [Note] Event Scheduler: Loaded 0 events
120124 15:53:43 [Note] wampmysqld: ready for connections.
Version: '5.5.16-log' socket: '' port: 3306 MySQL Community Server (GPL)
Apparently your server is configured to block your IPv6 loopback address:
[Tue Jan 24 15:54:01 2012] [error] [client ::1] client denied by server configuration: C:/WAMP/apps/phpmyadmin3.4.5/, referer: http://localhost/
Try allowing it or if that fails try disabling IPv6 on your network interface.

Two virtual machines limited in one physical machine above Eucalyptus Xen

I have an Eucalyptus-based cloud using Xen with 3 nodes. When I run a VM more than twice the number of physical machines in the xen cluster, the extra VMs never boot up, they always change state from pending to terminate, and the log file shows the node controller shutoff the extra VM after it check the instances number. When I manually shutdown some VM, then I can easily start up some VM exactly as the number I've shutdown.
The log shows this error:
ERROR: [Tue Jan 17 12:51:05 2012][004231][EUCAERROR ] libvirt: POST
operation failed: xend_post: error from xen daemon: (xend.err 'Device
2049 (vbd) could not be connected. /etc/xen/scripts/block failed;
error detected.') (code=11) [Tue Jan 17 12:51:05
2012][004231][EUCADEBUG ] doDescribeResource() invoked [Tue Jan 17
12:51:06 2012][004231][EUCADEBUG ] doDescribeInstances() invoked [Tue
Jan 17 12:51:06 2012][004231][EUCADEBUG ] doDescribeInstances():
instanceId=i-3BB00757 publicIp=192.168.4.165 privateIp=192.168.4.165
mac=d0:0d:3B:B0:07:57 vlan=-1 networkIndex=-1 [Tue Jan 17 12:51:06
2012][004231][EUCADEBUG ] doDescribeInstances(): instanceId=i-473807EE
publicIp=192.168.4.112 privateIp=192.168.4.112 mac=d0:0d:47:38:07:EE
vlan=-1 networkIndex=-1 [Tue Jan 17 12:51:06 2012][004231][EUCADEBUG ]
doDescribeInstances(): instanceId=i-348A06AE publicIp=0.0.0.0
privateIp=0.0.0.0 mac=d0:0d:34:8A:06:AE vlan=-1 networkIndex=-1 [Tue
Jan 17 12:51:06 2012][004231][EUCAERROR ] libvirt: POST operation
failed: xend_post: error from xen daemon: (xend.err 'Device 2049 (vbd)
could not be connected. /etc/xen/scripts/block failed; error
detected.') (code=11) [Tue Jan 17 12:51:08 2012][004231][EUCAERROR ]
libvirt: POST operation failed: xend_post: error from xen daemon:
(xend.err 'Device 2049 (vbd) could not be connected.
/etc/xen/scripts/block failed; error detected.') (code=11) [Tue Jan 17
12:51:09 2012][004231][EUCAERROR ] libvirt: POST operation failed:
xend_post: error from xen daemon: (xend.err 'Device 2051 (vbd) could
not be connected. /etc/xen/scripts/block failed; error detected.')
(code=11) [Tue Jan 17 12:51:10 2012][004231][EUCAERROR ] libvirt: POST
operation failed: xend_post: error from xen daemon: (xend.err 'Device
2051 (vbd) could not be connected. /etc/xen/scripts/block failed;
error detected.') (code=11) [Tue Jan 17 12:51:10
2012][004231][EUCAFATAL ] hypervisor failed to start domain [Tue Jan
17 12:51:10 2012][004231][EUCADEBUG ] state change for instance
i-348A06AE: Staging -> Shutoff (Extant) [Tue Jan 17 12:51:10
2012][004231][EUCAERROR ] libvirt: Domain not found:
xenUnifiedDomainLookupByName (code=42) [Tue Jan 17 12:51:10
2012][004231][EUCAINFO ] cleaning up state for instance i-348A06AE
Is this a limitation for CentOS 5.* and RedHat 5.? Is it fixed on CentOS 6.?
http://docs.vmd.citrix.com/XenServer/5.0.0/1.0/en_gb/guest.html#rhel5_limitations
"Only 3 virtual network interfaces are supported in versions below 5.2. For 5.2 and above, 7 virtual network interfaces are supported."
I opened this topic in both CentOS and Eucalyptus forums without luck:
https://www.centos.org/modules/newbb/viewtopic.php?topic_id=35491&forum=38
http://open.eucalyptus.com/forum/unable-run-more-4-instances-even-extra-resources
Thanks, Leandro
The error you are seeing seems related to disk not to network (Device 2049 (vbd) could not be connected. /etc/xen/scripts/block failed; error detected). I don't see that script on a CentOS 5.7 install I have here, so you may want to dig into that script to see if there is some obvious error.
The solution was to increase number of loop devices in CentOS 5, as detailed in the following link:
http://open.eucalyptus.com/participate/wiki/increase-number-loop-devices-centos-5
As the link is no longer valid, you have to go to archive.org or see this similar answer:
how to increase the loop devices number

Crash - Booted out of app to Apple logo screen (Crash restarted iPad)

I have been getting these random crashes with my app. I am running it in debug or release mode and it boots me out of the app and sends me straight to the black apple screen and not to the Springboard screen.
I am using a fair bit of core animations with CAAnimationGroup's and using AVAudioPlayer for sounds
Here is the crash log that was displayed in the Device Logs of the organiser window.
Aug 16 17:06:53 unknown HRG[86] <Warning>: -[CAETimelineObjectSound audioPlayerDidFinishPlaying:successfully:] Audio "snd_01_01.caf" play finished; successfully=1
Aug 16 17:06:54 unknown ReportCrash[88] <Notice>: Formulating crash report for process SpringBoard[27]
Aug 16 17:06:54 unknown ReportCrash[88] <Error>: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/SpringBoard_2011-08-16-170654_Test-iPad-2.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
Aug 16 17:06:54 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.COMPANY.AppName[0x4e02]) Bug: launchd_core_logic.c:3794 (24506):3
Aug 16 17:06:54 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.COMPANY.AppName[0x4e02]) Bug: launchd_core_logic.c:3202 (24506):10
Aug 16 17:06:54 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.COMPANY.AppName[0x4e02]) Working around 5020256. Assuming the job crashed.
Aug 16 17:06:54 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.COMPANY.AppName[0x4e02]) Job appears to have crashed: Segmentation fault: 11
Aug 16 17:06:54 unknown com.apple.debugserver-50[85] <Warning>: 1 [0055/1503]: error: ::read ( 4, 0x2ff879f0, 1024 ) => -1 err = Bad file descriptor (0x00000009)
Aug 16 17:06:55 unknown com.apple.launchd[1] <Warning>: (com.apple.SpringBoard) Job appears to have crashed: Bus error: 10
Aug 16 17:06:55 unknown kernel[0] <Debug>: virtual void AppleRGBOUT::do_power_state_change(): fSoft: 1 fHard: 1 swapBusy: 0 fController: 0 -> 1
Aug 16 17:06:55 unknown kernel[0] <Debug>: bool AppleRGBOUT::power_up_hardware()
Aug 16 17:06:55 unknown kernel[0] <Debug>: set_crc_notification_state 0
Aug 16 17:06:55 unknown kernel[0] <Debug>: virtual void AppleRGBOUT::do_power_state_change(): fSoft: 0 fHard: 1 swapBusy: 0 fController: 1 -> 0
Aug 16 17:06:55 unknown kernel[0] <Debug>: bool AppleRGBOUT::power_down_hardware()
Aug 16 17:06:55 unknown kernel[0] <Debug>: bool AppleRGBOUT::power_down_hardware(), clock down RGBOUT
Aug 16 17:06:55 unknown kernel[0] <Debug>: bool AppleRGBOUT::power_down_hardware(), RGB_CTRL (0x00000000) clk_down_ready is not set after 60 msecs
Aug 16 17:06:55 unknown kernel[0] <Debug>: IOReturn AppleRGBOUT::set_display_device_gated(uint32_t), 1
Aug 16 17:06:55 unknown kernel[0] <Debug>: virtual void AppleRGBOUT::do_power_state_change(): fSoft: 1 fHard: 1 swapBusy: 1 fController: 0 -> 1
Aug 16 17:06:55 unknown kernel[0] <Debug>: bool AppleRGBOUT::power_up_hardware()
Aug 16 17:06:55 unknown kernel[0] <Debug>: set_crc_notification_state 0
Aug 16 17:06:55 unknown kernel[0] <Debug>: virtual void AppleRGBOUT::do_power_state_change(): fSoft: 0 fHard: 1 swapBusy: 0 fController: 1 -> 0
Aug 16 17:06:55 unknown kernel[0] <Debug>: IOReturn IOMobileFramebufferUserClient::set_hotplug_notify(void*, void*) 0x30b6d911 0x201642b0
Aug 16 17:06:55 unknown kernel[0] <Debug>: IOReturn IOMobileFramebufferUserClient::set_hotplug_notify(void*, void*) 0x8bed3c00 0x8a3de06c 0x30b6d911 0x201642b0
Aug 16 17:06:55 unknown SpringBoard[89] <Warning>: No AppleBaseband service detected. Cellular data disabled.
Aug 16 17:06:55 unknown SpringBoard[89] <Error>: WiFi: Consulting "no-sdio-devices" property.
Aug 16 17:06:55 unknown SpringBoard[89] <Error>: WiFi: "no-sdio-devices" property not found.
Aug 16 17:06:55 unknown SpringBoard[89] <Notice>: CLTM: initial thermal level is 0
Aug 16 17:06:55 unknown SpringBoard[89] <Notice>: MultitouchHID(1f5694f0) uilock state: 1 -> 0
Aug 16 17:06:55 unknown locationd[22] <Error>: hidd died. Reestablishing connection.
Aug 16 17:06:56 unknown kernel[0] <Debug>: bool AppleRGBOUT::power_down_hardware()
Aug 16 17:06:56 unknown kernel[0] <Debug>: bool AppleRGBOUT::power_down_hardware(), clock down RGBOUT
Aug 16 17:06:56 unknown kernel[0] <Debug>: bool AppleRGBOUT::power_down_hardware(), RGB_CTRL (0x00000000) clk_down_ready is not set after 60 msecs
Aug 16 17:06:56 unknown SpringBoard[89] <Warning>: lockdown says the device is: [Activated], state is 3
Aug 16 17:06:56 unknown misd[92] <Notice>: port forwarding is allowed
Aug 16 17:06:56 unknown misd[92] <Info>: checking for carrier provisioning
Aug 16 17:06:56 unknown misd[92] <Info>: carrier service is not available
Aug 16 17:06:56 unknown misd[92] <Debug>: published changes: success
Aug 16 17:06:56 unknown misd[92] <Info>: maximum number of wireless tethered hosts is 3
Aug 16 17:06:56 unknown misd[92] <Debug>: published changes: success
Aug 16 17:06:56 unknown misd[92] <Debug>: attached to SpringBoard (0x1f666cc0, port 0x3c0b)
Aug 16 17:06:56 unknown misd[92] <Debug>: detached from SpringBoard (0x1f666cc0, port 0x1f666d00)
Aug 16 17:06:56 unknown misd[92] <Debug>: no clients left; resuming idle timer
Aug 16 17:06:56 unknown SpringBoard[89] <Warning>: BTM: attaching to BTServer
Aug 16 17:06:56 unknown SpringBoard[89] <Debug>: spd:_libspd_initialize_protocol:142 Registered notification port with spd [PID=93]
Aug 16 17:06:56 unknown SpringBoard[89] <Debug>: spd:_libspd_initialize_notify:241 All set up for spd wake notifications
Aug 16 17:06:56 unknown misd[92] <Debug>: attached to SpringBoard (0x1f666d60, port 0x400b)
Aug 16 17:06:56 unknown misd[92] <Debug>: detached from SpringBoard (0x1f666d60, port 0x1f666da0)
Aug 16 17:06:56 unknown misd[92] <Debug>: no clients left; resuming idle timer
Aug 16 17:06:56 unknown SpringBoard[89] <Error>: mms: ***** isMmsConfigured = 0
Aug 16 17:06:56 unknown SpringBoard[89] <Warning>: BTM: posting notification BluetoothAvailabilityChangedNotification
Aug 16 17:06:57 unknown com.apple.printd[94] <Notice>: Accepted connection from localhost:631 (Domain)
Aug 16 17:06:57 unknown com.apple.printd[94] <Notice>: Closing connection from localhost:631 (Domain)
Aug 16 17:06:57 unknown SpringBoard[89] <Error>: WiFi: Consulting "no-sdio-devices" property.
Aug 16 17:06:57 unknown SpringBoard[89] <Error>: WiFi: "no-sdio-devices" property not found.
Aug 16 17:06:57 unknown com.apple.printd[94] <Notice>: Accepted connection from localhost:631 (Domain)
Aug 16 17:06:57 unknown com.apple.printd[94] <Notice>: Closing connection from localhost:631 (Domain)
Aug 16 17:07:04 unknown SpringBoard[89] <Notice>: MultitouchHID(1f5694f0) uilock state: 0 -> 1
Aug 16 17:07:16 unknown SpringBoard[89] <Debug>: spd:___libspd_initialize_protocol_block_invoke_2:172 spd [PID=93] went bye-bye
Aug 16 17:07:56 unknown misd[92] <Debug>: now quitting (60 sec idle)
Aug 16 17:07:56 unknown misd[92] <Info>: exit: 0
There are no other logs saved on to my computer or on the device.
Has anyone seen this before?