Comments (7)
Hmm.. more digging online (without specifying motioneye or 8765) I found some similar errors on different ports. (All the motioneye-specific pages I found weren't helpful)
Which lead me to try this command on the RasPi:
curl 127.0.0.1:8765
And that returned a screenful of HTML. Which supports the output of netstat showing python3 listening on that port.
Now I'm wondering if the error in the logfile is just a timing issue (i.e. it's coming up, but isn't up yet when that curl command gets run in the log), and the real error lies elsewhere.
I don't have any firewall or proxy configured.
DHCP appears to be working (shown in original testing).
from motioneye.
Okay, so the motion.service
is not running, that is good. I wonder why it was running just an hour before the last motionEye logs entries? Did you install motionEye freshly?
You said you changed the line in motioneye.conf
to 0.0.0.0
, but in the linked file, I see:
listen 127.0.0.1
This means, it accepts connections from the very same system only, no remote access, which would explain perfectly fine that a local curl
works, while accessing from another browser does not.
EDIT: And the netstat
output proves it: See 127.0.0.1:8765
compared to 0.0.0.0:9081
for the functional motion/camera port.
from motioneye.
I'd manually started/stopped motion, which is why that shows up.
We're thinking along the same lines - I've changed the listen value in motioneye.conf multiple times. (you can see those commented out). Last night I was testing out more things and noticed that the :7999 connection had broken, but the :9081 was still working.
Going from memory, the netstat at that time was:
tcp 0 0 0.0.0.0:8765 0.0.0.0:* LISTEN 26721/python3
tcp 0 0 127.0.0.1:7999 0.0.0.0:* LISTEN 26730/motion
tcp 0 0 0.0.0.0:9081 0.0.0.0:* LISTEN 26730/motion
So that would explain the loss of :7999, but still not explain :8765 not working.
I'll confirm in a few hours when I get home.
from motioneye.
Got home and checked
-motioneye.conf had listen on 0.0.0.0
-motion.conf had webcontrol_localhost on
This gave a netstat result of:
tcp 0 0 0.0.0.0:8765 0.0.0.0:* LISTEN 26721/python3
tcp 0 0 127.0.0.1:7999 0.0.0.0:* LISTEN 26730/motion
tcp 0 0 0.0.0.0:9081 0.0.0.0:* LISTEN 26730/motion
With the ability to connect and see the video on 9081, and "refused to connect" on the others.
Changing motion.conf to "webcontrol_localhost off" and restarting now gives a netstat of:
tcp 0 0 0.0.0.0:8765 0.0.0.0:* LISTEN 26721/python3
tcp 0 0 0.0.0.0:7999 0.0.0.0:* LISTEN 26730/motion
tcp 0 0 0.0.0.0:9081 0.0.0.0:* LISTEN 26730/motion
And:
:9081 shows the video feed
:7999 gives "Motion 4.6.0 running [1] camera"
:8765 refuses to connect
Not sure if it's related, but with this setup I get the
"curl: (7) Failed to connect to 127.0.0.1 port 8765: Connection Refused"
message twice in /var/log/motioneye/motion.log. With "webcontrol_localhost on" in motion.conf the message only appears once.
from motioneye.
To make it more interesting- and since nothing on the RasPi side was coming up wrong, I tried connecting from my phone using a different browser (had been using chrome).
<IP_addr>:8765 came up with the interface right away. Tried again on chrome- no joy.
Went and got my laptop, connected, and opened Chrome. UI came up just fine on :8765.
Restarted the phone. Connected to the RasPi wifi, opened chrome. UI came up fine on :8765.
ARRRRGGGHHH!!
Thanks for the help. Hopefully at least this may help someone else in the future.
from motioneye.
So you still see the "connection refused" in motion.log
or has this been sorted? I actually remember seeing something similar, since the motionEye frontend seems to try to connect to the backend already (to get some settings, IIRC) before one has authenticated. Probably it is that one. While it is visual only, makes sense to track down this in code and skip this attempt until authentication has finished.
from motioneye.
Yes, I still see that - doubled in some cases as noted previously.
Thanks
from motioneye.
Related Issues (20)
- Slow preview and recording HOT 1
- Probleme fonctionnel motioneye
- Install on Raspbian 12? HOT 5
- Hide cameras from the "user" account?
- Apply
- Login > Remember me issue (0.43.1b1) HOT 2
- Telegram notification test: error setting certificate verify locations:\n CAfile: /etc/pki/tls/certs/ca-bundle.crt HOT 4
- New error when installing motioneye HOT 2
- Working Scedule not working -> 0.43.1b1 HOT 2
- RTSP and V4L2 cameras Grey screen issues HOT 4
- Pi 5 CSI camera failed to open HOT 1
- RTSP Authentication - Password requires url encoding upon entering in UI HOT 5
- Refresh browser means sign on again why? HOT 1
- Feature request - Dummy camera option for remote motioneye instance
- Access the video overview directly
- 0byte snapshot files - no new releases and bugfixes? HOT 2
- Raspberry 3b :Use composite video and network stream at the same time HOT 1
- Motioneye on DietPi HOT 13
- Lovelace cards stay grey, however the web-interface of motioneye shows the cams. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from motioneye.