OctoWrt icon indicating copy to clipboard operation
OctoWrt copied to clipboard

RPC call to luci/getLocaltime failed with error -32002: Access denied

Open doczong opened this issue 2 years ago • 8 comments

Hi All,

After successfully installing KlipperWRT, I went over to this distro. Installed same, no errors.

After reboot after Step #2 completes without error, getting the above when accessing System/System.

Also, OctoPrint isn't starting on Port 5000.

Otherwise, it seems to have installed fine. df reports more than enough disk space free. As a result, the system page does not load at all.

Any advice?

doczong avatar May 05 '22 15:05 doczong

Full Error:

RPCError

RPC call to luci/getLocaltime failed with error -32002: Access denied at handleCallReply (http://192.168.7.21:81/luci-static/resources/rpc.js?v=2.2.4:11:3)

doczong avatar May 05 '22 15:05 doczong

Hi, did you install both on the same box? What step 2 are you refering to?

ihrapsa avatar May 05 '22 15:05 ihrapsa

Sorry, so this is two issues, the former re Step #2 is the Step #2 under Automatic on the main page of this repo:

cd /tmp wget https://github.com/ihrapsa/OctoWrt/raw/main/scripts/2_octoprint_install.sh chmod +x 2_octoprint_install.sh ./2_octoprint_install.sh

That said, OctoPrint does work. It just took a really long time to boot. I was able to connect it, and even connect Cura, so that is fine. The only error is the "localtime failed" which I see someone has that exact issue on the current OpenWRT thread with Luci as well. https://forum.openwrt.org/t/openwrt-21-02-2-second-service-release/121249/102

However, sometime after installing everything from Step #2, Luci stops working on the System Pages.

doczong avatar May 05 '22 16:05 doczong

Sorry, so this is two issues, the former re Step #2 is the Step #2 under Automatic on the main page of this repo:

cd /tmp wget https://github.com/ihrapsa/OctoWrt/raw/main/scripts/2_octoprint_install.sh chmod +x 2_octoprint_install.sh ./2_octoprint_install.sh

That said, OctoPrint does work. It just took a really long time to boot. I was able to connect it, and even connect Cura, so that is fine. The only error is the "localtime failed" which I see someone has that exact issue on the current OpenWRT thread with Luci as well. https://forum.openwrt.org/t/openwrt-21-02-2-second-service-release/121249/102

However, sometime after installing everything from Step #2, Luci stops working on the System Pages.

Oh I see. I think I've seen those errors from time to time but didn't look into them as it did not seem to cause any problems.

Yeah it takes a while to boot up because of the plugin manangement system. Did you by any chance installed it alongside klipper cause that's a no no?

ihrapsa avatar May 05 '22 16:05 ihrapsa

I'm new to Luci, and you are right, it seems like it really doesn't seem to matter. Not much that I am missing on that page, but it still is some kind of bug, but it sounds like it is Luci and / or OpenWRT.

I just got this cheap Creality box (Raspberry Pi4's cost almost 200 bucks in Canada, and I cannot find a 3 anywhere)... this thing is super cost effective. I had KlipperWRT tested out yesterday, but did not realize that it needed me to flash the Ender. I am using mriscoc firmware and I rally like it, so thats a no. Anyhow, I wiped the thing right out and loaded up OctoWRT this morning from factory image. Anyhow, heads up with the bug for future releases, and great work.

doczong avatar May 05 '22 16:05 doczong

Thanks! I'm still waiting for the box to be officially supported in OpenWrt: https://github.com/openwrt/openwrt/pull/3802 You can also join the KlipperWrt discord channel if you've got other questions/issues. Make sure to power the box accordingly, use a proper shielded cable and avoid overloading it while printing.

ihrapsa avatar May 05 '22 16:05 ihrapsa

Perfect, just one more tidbit for your next build: https://github.com/openwrt/luci/issues/5622

Looks like the solution is to update Luci as the version running on OctoWRT after updating all the OctoPrint packages is out of date.

The use of getLocaltime has been dropped with https://github.com/openwrt/luci/commit/68815c88b0ebcfd0116070510a4c43ccff1d0310 - seems you're running an incoherent package selection. Make sure that all LuCI packages, in particular luci-mod-system are updated to the latest version.

doczong avatar May 06 '22 11:05 doczong

Perfect, just one more tidbit for your next build: openwrt/luci#5622

Looks like the solution is to update Luci as the version running on OctoWRT after updating all the OctoPrint packages is out of date.

The use of getLocaltime has been dropped with openwrt/luci@68815c8 - seems you're running an incoherent package selection. Make sure that all LuCI packages, in particular luci-mod-system are updated to the latest version.

Awesome, thanks for the heads up!

ihrapsa avatar May 06 '22 12:05 ihrapsa