Can't access control.htm

Camera model 920

What is the problem? Streams fine, but /webcam/control.htm gives me a 404 page error

What did you already try to solve it? Tried IP and URL access, reboot

Logs (/var/log/webcamd.log, syslog, dmesg, ... no logs, no support)

Additional information about your setup (OctoPrint version, OctoPi version, ...)
v1.4.0 on 3 PIs, same issue on each

I'm guessing you are running OctoPi (you didn't say for some unknown reason....)

The webcam server mjpg-streamer as bundled on OctoPi has been shipping without the control page for a while now (0.16 maybe?) since it doesn't secure said page and it therefore can be considered a security risk to have it enabled.

You can change that via octopi.txt:

If I remember correctly, change the default to

camera_http_webroot="./www"
camera_http_options=""

Hmmm, I already had those two lines enabled without # so not sure?

Also, good question! I assumed I had installed OctoPrint? Seems to say that everywhere, can't see OctoPi anywhere and says 1.4.0 in version number?

Note that I changed the contents of the variables, I didn't just remove the #

All sorted, spaghetti detective was stopping it. Once removed it all works :slight_smile:

Is the control.html page available in the current nightly build?

Just installed fresh 2020-09-23_2020-08-20-octopi-buster-armhf-lite-0.18.0.zip and there is available only index file at http://<ip:>8080/ with latest snapshot and live stream.

pi@octopi:~ $ ll mjpg-streamer/www-octopi/
total 4.0K
-rw-r--r-- 1 root root 252 Sep 23 01:09 index.html

I found this post, changed /boot/octopi.txt to

camera_http_webroot="./www"
camera_http_options=""

But something is missing (there are missing some assets but I think it is not the problem...)

EDIT: I have rpi cam v2

You may try like this: http://192.168.2.20/#control

I think they're looking at the mjpg_streamer control page, not the tab in OctoPrint.

1 Like

@ Ewald_Ikemann Thanks for quick reply! Yes it works.

Unfortunately, it is not what I'm looking for.. I'm looking for camera page settings, like this.

1 Like

This looks similarly.

Any ideas?

pi@octopi:~ $ cat /var/log/webcamd.log
Starting up webcamDaemon...

--- Configuration: ----------------------------
cfg_file:      /boot/octopi.txt
camera:        raspi
usb options:   -r 640x480 -f 10
raspi options: -x 1280 -y 720 -fps 20
http options:  -w ./www

Explicitly USB device:
-----------------------------------------------

Found video devices:
/dev/video0
/dev/video10
/dev/video11
/dev/video12
/dev/video13
/dev/video14
/dev/video15
/dev/video16
raspi
config file='/boot/octopi.txt':Start MJPG-streamer with video device: raspi
<13>Sep 23 18:46:54 root: Starting Raspberry Pi camera
Checking for VL805 (Raspberry Pi 4)...
  - It seems that you don't have VL805 (Raspberry Pi 4).
    There should be no problems with USB (a.k.a. select() timeout)
Running ./mjpg_streamer -o output_http.so -w ./www  -i input_raspicam.so -x 1280 -y 720 -fps 20
MJPG Streamer Version: git rev: 85f89a8c321e799fabb1693c5d133f3fb48ee748
 i: fps.............: 20
 i: resolution........: 1280 x 720
 i: camera parameters..............:

Sharpness 0, Contrast 0, Brightness 50
Saturation 0, ISO 0, Video Stabilisation No, Exposure compensation 0
Exposure Mode 'auto', AWB Mode 'auto', Image Effect 'none'
Metering Mode 'average', Colour Effect Enabled No with U = 128, V = 128
Rotation 0, hflip No, vflip No
ROI x 0.000000, y 0.000000, w 1.000000 h 1.000000
 o: www-folder-path......: ./www/
 o: HTTP TCP port........: 8080
 o: HTTP Listen Address..: (null)
 o: username:password....: disabled
 o: commands.............: enabled
 i: Starting Camera
Encoder Buffer Size 81920
Done bring up all configured video device

Goodbye...

Has been disabled by default for a while now due to security considerations. Looks into the mjpgstreamer options in octopi.txt.

It's not just the mjpegstreamer options. the raspberry pi mjpgstreamer .so does NOT implement the control page. The trick is to load the official raspicam driver on boot and to switch to the regular usb cam module. See this comment from another thread:

Not to necro an old thread; but I fixed this issue by disabling the plugin: The Spaghetti Detective, or others have mentioned Octoprint Anywhere.

You probably know this, but for anyone else reading this thread, TSD and OctoPrint Anywhere have a clever built in streamer that uses modern compression. However, there are no controls built-in (brightness, bitrate, etc...), so it's a tradeoff.