I just go it installed and now it keeps populating this message. Any help would be great. Thank you!
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
sh: 1: /var/www/html/macros/error_hard.sh: Permission denied
Searched query: could - create component 'vc.ril.camera'
Return to “RPi Cam Web Interface”
Sorry. I don't understand your issue. You say problem is running installation but the errors you posted look like the run time errors you get when the software is run but can't connect to the camera.thenorm wrote: ↑Wed May 02, 2018 11:12 pmI can't get past the step 4 in installation. I tried " chmod u+x *.sh" but that wasn't it. I even tried running it as root.
sh: 1: /var/www/html/macros/error_hard.sh: Permission denied
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
sh: 1: /var/www/html/macros/error_hard.sh: Permission denied
Search is your friend: search.php?keywords=could+not+create+co ... sf=msgonlybudman1758 wrote:Not sure what is going on here. I have installed this software on 2 RPI Zero's and all is working great on those two. On the third camera install I get this error...The error repeats over and over in the terminal window right after the install process ends and asks for start or not.
The only difference in any of this is on the 3rd camera setup I am using the newest version of Jessie Lite as opposed to and older (but updated b4 cam software install). This has happened twice now using 2 SD cards, 2 different PI's and 2 different camera boards.Code: Select all
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1) sh: 1: /var/www/cam/macros/error_hard.sh: Permission denied mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM) mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1) sh: 1: /var/www/cam/macros/error_hard.sh: Permission denied
I am going to try again tomorrow using the older Jessie image and see what happens. Otherwise, any ideas on this?
Thanks.
Code: Select all
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
sh: 1: /var/www/cam/macros/error_hard.sh: Permission denied
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
sh: 1: /var/www/cam/macros/error_hard.sh: Permission denied This software only works with a Raspberry Pi camera. It takes advantage of more sophisticated access to the camera system via the MMAL interface. It will not work with USB cameras.centos90 wrote:Thanks for the info,
I followed very closely the following link http://elinux.org/index.php?title=RPi-Cam-Web-Interface
I am running raspbian jessie
should this work OK with a usb camera? or it only works with a raspberry pi camera board?
the output I get after starting RPi Cam Web Interface+ readlink -f start.shCode: Select all
sudo sh start.sh
+ dirname /home/pi/RPi_Cam_Web_Interface/start.sh
+ cd /home/pi/RPi_Cam_Web_Interface
+ source ./config.txt
start.sh: 40: start.sh: source: not found
+ fn_stop
+ sudo killall raspimjpeg
raspimjpeg: no process found
+ sudo killall php
php: no process found
+ sudo killall motion
motion: no process found
+ sudo mkdir -p /dev/shm/mjpeg
+ sudo chown www-data:www-data /dev/shm/mjpeg
+ sudo chmod 777 /dev/shm/mjpeg
+ sleep 1
+ sudo su -c raspimjpeg > /dev/null & www-data
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
sh: 1: /var/www/html/macros/error_hard.sh: Permission denied
+ [ -e /etc/debian_version ]
+ sleep 1
+ sudo su -c php /var/www//schedule.php > /dev/null & www-data
pi@raspberrypi:~/RPi_Cam_Web_Interface $ mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
sh: 1: /var/www/html/macros/error_hard.sh: Permission denied
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
Code: Select all
sudo sh start.shLooks like there is a problem with the low level camera i/f. Have you tested the camera with say raspistill? Common problems are less than perfect power supply / USB power cable and camera cable not fully seated at both ends of the connection.guardian1691 wrote:I can't get it to work. When I run `./start.sh` I get this output
forever.Code: Select all
motion: no process found mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM) mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1) sh: 1: /var/www/html/macros/error_hard.sh: Permission denied osmc@KylarsRoom:~/RPi_Cam_Web_Interface$ mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM) mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1) sh: 1: /var/www/html/macros/error_hard.sh: Permission denied mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM) mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1) sh: 1: /var/www/html/macros/error_hard.sh: Permission denied
I have run that with and without `sudo` in front of it.
I also ran `chmod -R g+w RPi_Cam_Web_Interface` and `chmod =x RPi_Cam_Web_Interface/`. I've also uploaded a screenshot of the page that shows when I open a browser to the address. I set a user with a password for RPi Cam Web Interface but was never prompted for it when opening the page.
How can I get this to start running?
Code: Select all
motion: no process found
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
sh: 1: /var/www/html/macros/error_hard.sh: Permission denied
osmc@KylarsRoom:~/RPi_Cam_Web_Interface$ mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
sh: 1: /var/www/html/macros/error_hard.sh: Permission denied
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
sh: 1: /var/www/html/macros/error_hard.sh: Permission denied
Don't worry about the permission denied message. That is just a warning because by default the macro file error_hard.sh has not been given execution rights. That is deliberate to ensure the user controls which macros can get executed. In this case the macro is just there to allow actions to be taken if there is a fatal error. It is not part of the normal operation.caleedubya wrote:Ok I feel like I'm getting closer here...
I've gone and edited /etc/passwd but when I run RPi Cam in debug mode I'm still getting a permissions denied error specifically here's what I'm getting.
RaspiMJPEG Version 5.2.11
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
Error: Could not create camera
Executing macro /var/www/html/macros/error_hard.sh "Could not create camera"
sh: 1: /var/www/html/macros/error_hard.sh: Permission denied
Thoughts?
Calee
p.s. If it's not obvious I'm both a newb and on Jessie. Thanks
Not tried minibian but there do seem to be reports about vchiq service.piecam wrote:HI Robet,
My current pi with your software works fine. I put another pie with camera with same system(minibian,your webinterfce). But, I encountered the followings,
root@raspberrypi:~/RPi_Cam_Web_Interface# ./RPi_Cam_Web_Interface_Installer.sh start
Started
root@raspberrypi:~/RPi_Cam_Web_Interface# mmalipc: mmal_vc_init: could not open vchiq service
mmal: mmal_vc_component_create: failed to initialise mmal ipc for 'vc.ril.camera' (7:EIO)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (7)
Error: Could not create camera
^C
Any ideas why?
thanks
Code: Select all
sudo echo 'SUBSYSTEM=="vchiq",GROUP="video",MODE="0660"' > /etc/udev/rules.d/10-vchiq-permissions.rules
usermod -a -G video [your_username]Have you addedpiecam wrote:My current pi with your software works fine. I put another pie with camera with same system(minibian,your webinterfce). But, I encountered the followings,
root@raspberrypi:~/RPi_Cam_Web_Interface# ./RPi_Cam_Web_Interface_Installer.sh start
Started
root@raspberrypi:~/RPi_Cam_Web_Interface# mmalipc: mmal_vc_init: could not open vchiq service
mmal: mmal_vc_component_create: failed to initialise mmal ipc for 'vc.ril.camera' (7:EIO)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (7)
Error: Could not create camera
Code: Select all
gpu_mem=128
start_x=1