I can access the web interface but get a grey screen then saying "Unable to open device".
I tried:
pi@octopi:~ $ ls /dev/video*
pi@octopi:~ $ /dev/video0
I can also take pictures with fswebcam so the hardware is working.
There seems to be a problem with /var/run/motion/motion.pid I tried give all permissions but the error is still there.
Here is the output from the command motion:
pi@octopi:~ $ motion
[0] [NTC] [ALL] conf_load: Processing thread 0 - config file /etc/motion/motion.conf
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "sdl_threadnr"
[0] [NTC] [ALL] motion_startup: Motion 3.2.12+git20140228 Started
[0] [NTC] [ALL] motion_startup: Logging to syslog
[0] [NTC] [ALL] motion_startup: Using log type (ALL) log level (NTC)
[0] [NTC] [ALL] become_daemon: Motion going to daemon mode
[0] [ERR] [ALL] myfopen: Error opening file /var/run/motion/motion.pid with mode w+:
Broadcast message from systemd-journald@octopi (Sat 2017-07-08 21:41:39 UTC):
motion[718]: [0] [EMG] [ALL] become_daemon: Exit motion, cannot create process id file (pid file) /var/run/motion/motion.pid:
Message from syslogd@octopi at Jul 8 21:41:39 ...
motion: [0] [EMG] [ALL] become_daemon: Exit motion, cannot create process id file (pid file) /var/run/motion/motion.pid:
[0] [EMG] [ALL] become_daemon: Exit motion, cannot create process id file (pid file) /var/run/motion/motion.pid: