hkcam icon indicating copy to clipboard operation
hkcam copied to clipboard

"404 Page not found" error on visiting Web Interface

Open freumichCH opened this issue 2 years ago • 5 comments

Hello I'm getting a 404 Error on visiting the web interface. Issuing netstat shows following:

root@raspberrypi:~# netstat -tuplen | grep hkcam
tcp6       0      0 :::8081                 :::*                    LISTEN      0          21483      776/hkcam           
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           0          21484      776/hkcam           
udp6       0      0 :::5353                 :::*                                0          21488      776/hkcam       

Start command looks like following: ./hkcam -data_dir=/var/lib/hkcam/data -multi_stream=true -port=8081 -verbose

Can someone lead me in the right direction to solve this issue? Unfortunately i have no experience in golang.

Thanks in advance!

freumichCH avatar Jun 16 '22 07:06 freumichCH

Same here.. 404 page not found. I DHCP the pi on my router so I'm sure of it's IP address and double checked the port. Gandalf is still in the way ! -_-

Any idea of what I'm missing ?

GLOUPY-RnD avatar Jan 06 '23 16:01 GLOUPY-RnD

I'm seeing the same. I've tried:

/
/index.html

but I always get

404 page not found

This is the verbose logging:

sudo ./hkcam -data_dir=/var/lib/hkcam/data -multi_stream=true -port=8080 -verbose
INFO 2023/04/30 16:02:12 main.go:73: version v0.1.0 (built at 2022-03-04T21:28:23Z+0100)
DEBUG 2023/04/30 16:02:12 camera_control.go:194: {"assets":[]}
DEBUG 2023/04/30 16:02:12 server.go:208: listening at [::]:8080
DEBUG 2023/04/30 16:02:23 logger.go:161: "GET http://candle.local:8080/ HTTP/1.1" from 192.168.0.118:57428 - 404 19B in 87.291µs
DEBUG 2023/04/30 16:02:23 logger.go:161: "GET http://candle.local:8080/favicon.ico HTTP/1.1" from 192.168.0.118:57428 - 404 19B in 56.77µs
DEBUG 2023/04/30 16:02:37 logger.go:161: "GET http://candle.local:8080/index.html HTTP/1.1" from 192.168.0.118:57428 - 404 19B in 57.291µs

The directory is made:

ls /var/lib/hkcam/data
configHash  keypair  schema  uuid  version
  • Camera is a popular Logitech HD camera that is well supported.
  • The 99 loopback camera exists
  • Raspberry Pi 3 with 32 bit Raspberry Pi OS

flatsiedatsie avatar Apr 30 '23 14:04 flatsiedatsie

I've facing the same issue :(

svn2208 avatar Jun 09 '23 07:06 svn2208