Return to “RPi Cam Web Interface”

by Darkelement
Sun Sep 15, 2019 7:55 pm
Forum: Camera board
Topic: RPi Cam Web Interface
Replies: 5212
Views: 1542208

Re: RPi Cam Web Interface

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
by btidey
Thu May 03, 2018 10:56 am
Forum: Camera board
Topic: RPi Cam Web Interface
Replies: 5212
Views: 1542208

Re: RPi Cam Web Interface

thenorm wrote:
Wed May 02, 2018 11:12 pm
I 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
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.

Connecting to camera issues are normally caused by
1. Ribbon camera cable. Try re-inserting both ends making sure they are the right way round and fully inserted. Also press down on the little ribbon on the module itself
2. Not enabling camera support. sudo raspi-config
3. Poor power supply or power supply cable producing extra dips when camera turns on.

Also try running raspistill to verify camera is working.

If the problem is with the installation itself please give more details.
by thenorm
Wed May 02, 2018 11:12 pm
Forum: Camera board
Topic: RPi Cam Web Interface
Replies: 5212
Views: 1542208

Re: RPi Cam Web Interface

I 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
by Gary Littlemore
Mon Mar 13, 2017 12:33 pm
Forum: Camera board
Topic: RPi Cam Web Interface
Replies: 5212
Views: 1542208

Re: RPi Cam Web Interface

budman1758 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.

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 
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.

I am going to try again tomorrow using the older Jessie image and see what happens. Otherwise, any ideas on this?
Thanks.
Search is your friend: search.php?keywords=could+not+create+co ... sf=msgonly
by budman1758
Sun Mar 12, 2017 3:05 am
Forum: Camera board
Topic: RPi Cam Web Interface
Replies: 5212
Views: 1542208

Re: RPi Cam Web Interface

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.

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 
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.

I am going to try again tomorrow using the older Jessie image and see what happens. Otherwise, any ideas on this?
Thanks.
by btidey
Tue May 17, 2016 11:30 am
Forum: Camera board
Topic: RPi Cam Web Interface
Replies: 5212
Views: 1542208

Re: RPi Cam Web Interface

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

Code: Select all

sudo sh start.sh
+ readlink -f 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)
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.
by centos90
Tue May 17, 2016 11:14 am
Forum: Camera board
Topic: RPi Cam Web Interface
Replies: 5212
Views: 1542208

Re: RPi Cam Web Interface

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

Code: Select all

sudo sh start.sh
+ readlink -f 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)
by centos90
Mon May 16, 2016 2:48 pm
Forum: Camera board
Topic: RPi Cam Web Interface
Replies: 5212
Views: 1542208

Re: RPi Cam Web Interface

Hi, I need some help to get this running, see errors below. thanks

pi@raspberrypi:~/RPi_Cam_Web_Interface $ sudo sh start.sh
+ readlink -f 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)
by btidey
Sat Jan 30, 2016 6:00 pm
Forum: Camera board
Topic: RPi Cam Web Interface
Replies: 5212
Views: 1542208

Re: RPi Cam Web Interface

guardian1691 wrote:I can't get it to work. When I run `./start.sh` I get this output

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
forever.

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?
Looks 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.

I would leave off adding web security until you have the basic part working.
by guardian1691
Fri Jan 29, 2016 2:12 pm
Forum: Camera board
Topic: RPi Cam Web Interface
Replies: 5212
Views: 1542208

Re: RPi Cam Web Interface

I can't get it to work. When I run `./start.sh` I get this output

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
forever.

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?
by btidey
Wed Oct 28, 2015 10:12 am
Forum: Camera board
Topic: RPi Cam Web Interface
Replies: 5212
Views: 1542208

Re: RPi Cam Web Interface

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
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.

The bit you need to worry about is why it is failing to 'create the camera'. This sounds like a generic camera problem rather than anything to do with the software.

Check out http://elinux.org/Rpi_Camera_Module#Cam ... ing_at_all
by caleedubya
Wed Oct 28, 2015 3:04 am
Forum: Camera board
Topic: RPi Cam Web Interface
Replies: 5212
Views: 1542208

Re: RPi Cam Web Interface

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
by bonzadog
Tue Jun 09, 2015 2:44 pm
Forum: Camera board
Topic: RPi Cam Web Interface
Replies: 5212
Views: 1542208

Re: RPi Cam Web Interface

Hello,
I have already installed the RPi Cam web and all went well.
Then I downloaded the lastest Rasbian from 2015.5.5 and re-istalled the Pan/tilt software and then the Cam Web Software.
There were no errors in the install.

But when I rebooted and then gave my IP address in firefox I got the following error
Error in RaspiMJPEG:
Restart RaspiMJPEG (./RPi_Cam_Web_Interface_Installer.sh start) or the whole RPi.
So I executed the start with the result:
pi@rpi229 ~/RPi_Cam_Web_Interface $ ./RPi_Cam_Web_Interface_Installer.sh start
motion: no process found
Stopped
"Install directory is /var/www/"
Is that right? <y/n> y

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)
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)
Started
pi@rpi229 ~/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)
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)
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)
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)


Any help on this.

I thought that teh Web Cam software was excellent!1

NT
by Robin B
Sun Jun 07, 2015 10:50 am
Forum: Camera board
Topic: RPi Cam Web Interface
Replies: 5212
Views: 1542208

Very impressive work, but....

I'm a newbie to the world of RPi and I'm experimenting with a bit of timelaspe as my first project. Whilst researching how to setup the basics necessary to use Raspistill and crontab I stumbled across your software, thought it looked very interesting and went ahead and installed (without having done a backup first, Doh!) Whilst I think your software is brilliant, and I might return to it in the future, it actually does too much for me at this stage in my learning curve. So I followed your instructions on how to remove (uninstall) it completely. Upon executing the following original script I now get the below errors:

Script:-
#!/bin/bash
DATE=$(date +"%Y%m%d-")
raspistill -w 1920 -h 1440 -rot 90 -q 20 -o /media/Toshiba-1TB/timelapse/$DATE%05d.jpg -t 600000 -tl 500

Errors:-
pi@raspberrypi ~ $ ./camera2.sh
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)
mmal: Failed to create camera component
mmal: main: Failed to create camera component
mmal: Camera is not detected. Please check carefully the camera module is installed correctly

I have rerun the Enable Camera option in Raspi-config and tried again but no luck. I would appreciate any advice you can offer to revert the system to an operational state without doing a complete OS reinstall (I feel I'm far too practiced at that already!).

Regards
Robin
by btidey
Fri Mar 20, 2015 3:58 pm
Forum: Camera board
Topic: RPi Cam Web Interface
Replies: 5212
Views: 1542208

Re: RPi Cam Web Interface

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
Not tried minibian but there do seem to be reports about vchiq service.

You could try chmod a+rw /dev/vchiq

If that works then it will only last until next reboot. A more permanent solution then is

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]
by DougieLawson
Fri Mar 20, 2015 3:55 pm
Forum: Camera board
Topic: RPi Cam Web Interface
Replies: 5212
Views: 1542208

Re: RPi Cam Web Interface

piecam 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
Have you added

Code: Select all

gpu_mem=128
start_x=1
to /boot/config.txt and rebooted?

Is the small SUNNY connector on the camera board pressed fully home in it's socket?

Is the camera detected if you run vcgencmd get_camera?
by piecam
Fri Mar 20, 2015 3:42 pm
Forum: Camera board
Topic: RPi Cam Web Interface
Replies: 5212
Views: 1542208

Re: RPi Cam Web Interface

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

Return to “RPi Cam Web Interface”