-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v0.7.1 -> v0.7.4 upgrade problems #218
Comments
log of my termination of moonfire, then update attempt: |
Check your Rust version vs the current build instructions. I bumped the minimum to 1.56 in the Moonfire 0.7.2 release. Good news is that after you upgrade to 1.56, cargo will pay attention to a
|
I upgraded rust (took some doing as I had to remove previous before installer would upgrade and no hints on the Rust site about "uninstalling"):
ran the install instructions: After building "server" and under directory "server": sudo install -m 755 target/release/moonfire-nvr /usr/local/bin Then proceeded with a normal startup and got this:
|
That's new with [[binds]]
ipv4 = "0.0.0.0:8080"
[[binds]]
unix = "/var/lib/moonfire-nvr/sock"
own_uid_is_privileged = true |
Thank you. The additional However, when I visit the URL, I encounterd this error message:
Since I have not upgraded since fall of 2021, I searched using "ui-dir" at https://github.com/scottlamb/moonfire-nvr/blob/master/guide/build.md and at https://github.com/scottlamb/moonfire-nvr/blob/master/CHANGELOG.md and the term "ui-dir" does not appear in either. Yet, the steps I took to upgrade which had before worked and now include the above, suggest I've missed something. |
I considered your "own_uid_is_privileged" and supposed that I need to run as sudo, though it was in my account as jlpoole. I had created an account of moonfire some time ago, but ran into problems with permissions and have since been running |
It probably logged something like this first? warn!(
"Unable to load --ui-dir={}; will serve no static files: {}",
d.display(),
e
); (I need to update those messages, which refer to the commandline arg form that no longer exists.) It defaults to ui_dir = "/override/path" The |
No, I mean a server-side log message. Huh. Not sure yet what's going on then. |
Could you paste output of |
But, this fixed it:
conclusion: I was one directory off at some point and the error did not manifest itself until an upgrade. Sorry for the confusion. |
I'm nervous about my "fix"... it might come back to bite me later on, so I'll move everything into a directory named "ui". |
btw, in general: upgrades from version |
Thanks. The UI retrieval is working, nothing in the linux console seems out of the ordinary, in fact, it seems a bit cleaner given the errors my cameras and/or network introduce. I have encountered the Live view is not working: ws close: 1006. Happens in both Chrome and Firefox on Windows 7. Those error message look like the ones when I have returned to a Live View only to find things have timed-out. So I'm retracing my steps of the upgrade and confirming the version of required software. If my backtracking doesn't reveal something I've mangled, I'll create anew ticket re: Live View. (I've shared this Live View with about 10 people now -- not a great time to go offline.) If there is any debug mode or log that the server has, that could be helpful. The |
Argh, that's my fault. It's a problem with my 0.7.3 security fix (changelog entry, commit). If your clients use URLs with a non-default port number, the live stream will never authenticate properly. Rather than the server accepting the websocket upgrade, it will send back a HTTP 403 with a body like this:
...which the browser UI won't show. It'll just give the classic "ws close: 1006" error. Fix coming shortly. |
I don't know if this factors in, but I am having my pfSense reroute, "port forward", port 8080 packets to the Raspberry Pi unit for my domain salemdata.us (and now salemdata.net which the squatters abandoned after I previously let it go -- yippeee). |
Fixed in fd7438d. |
same problem. here's a log while I tried the UI and still encountered the ws close: 1006 http://salemdata.us/moonfire-nvr/moonfire-nvr_20220413_Wed_2154_script.log.html |
I've restarted the server, with script logging, so you can use your account to look: http;//salemdata.us:8080 |
You're not running the fixed version. From Wireshark, I see it's returning this error:
which doesn't match the fd74e8d format (note the moonfire-nvr/server/src/web/live.rs Lines 56 to 61 in fd7438d
|
You're right. So here a log of what I just did now. The Live View has no errors and not images. I'll leave the server running for your benefit and I have the log being captured by script to preserve colors.
|
It's getting late. I'm okay just letting this run... the capturing and preservation are important, the Live View is a nice-to-have... but, very enjoyable. This can be looked at later by you at your convenience. I'm probably going to retire in the next half hour. |
The fix is in the Rust server code, not the UI. I don't see a rebuild there, and I just checked again; you're still on the old version. |
edition2021
is required
Yes, I had to rebuild the server and did, and I ran through the build steps for the ui, though I'm not sure if it resulted in any change. Live View is now working. Thank you. Log of rebuild: http://salemdata.us/moonfire-nvr/rebuild_20220413_Wed_2223_script.log.html I'll remove the logs exposed in this ticket in 36 hours. |
Performing an upgrade and ran into this:
The text was updated successfully, but these errors were encountered: