MiGoller / docker-shinobi

These images are designed to be used in a micro-service environment. Many thanks to Shinobi Dev and MoeIsCool for their great work!
GNU General Public License v3.0
17 stars 22 forks source link

Docker container fails to start with error permission denied on /opt/shinobi/docker-entrypoint.sh #2

Closed MiGoller closed 6 years ago

MiGoller commented 6 years ago

A user was trying this docker image but couldn’t get it to run because of this error.

docker: Error response from daemon: OCI runtime create failed: container_linux.go:296: starting container process caused "exec: \"/opt/shinobi/docker-entrypoint.sh\": permission denied": unknown.

MiGoller commented 6 years ago

Issue confirmed. Looks like the execution permission on docker-entrypoint.sh is missing. Fix in progress.

MiGoller commented 6 years ago

Fixed missing permission for the docker-entry.sh files. Build succeeds locally and on Docker Hub.

Starting a container based on that new image succeeds.

1|Cron-App | Shinobi : cron.js started 0|Camera-A | NODE.JS version : v8.9.4 0|Camera-A | FFMPEG version : 3.2.10-1\~deb9u1\~bpo8+1 0|Camera-A | Shinobi - PORT : 8080 0|Camera-A | 2018-02-17T23:02:30+01:00 Critical update 1/2 already applied 0|Camera-A | 2018-02-17T23:02:30+01:00 Critical update 2/2 already applied 0|Camera-A | 2018-02-17T23:02:31+01:00 pluginInitiatorSuccess { f: 'init', 0|Camera-A | plug: 'Motion', 0|Camera-A | notice: 'Looks like you have the Motion plugin running. Don\'t forget to enable Send Frames to start pushing frames to be read.', 0|Camera-A | pluginKey: 'xxxxx' } 0|Camera-A | 2018-02-17T23:02:31+01:00 Connected to plugin : Detector - Motion - undefined 0|Camera-A | 2018-02-17T23:02:32+01:00 xxxxx : size check for videos : 0 0|Camera-A | 2018-02-17T23:02:32+01:00 xxxxx : end of size check for videos 1/2 0|Camera-A | 2018-02-17T23:02:32+01:00 xxxxx : size check for videos : 0 0|Camera-A | 2018-02-17T23:02:32+01:00 xxxxx : end of size check for videos 2/2 0|Camera-A | 2018-02-17T23:02:32+01:00 all users checked, wait to close open files and remove files over user limit 0|Camera-A | 2018-02-17T23:02:32+01:00 waiting to give unfinished video check some time. 3 seconds. 0|Camera-A | 2018-02-17T23:02:35+01:00 starting all monitors set to watch and record 0|Camera-A | 2018-02-17T23:02:35+01:00 Shinobi is ready.

MiGoller commented 6 years ago

Users reported Shinobi is starting. Thank you for your feedback.