Skip to content
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

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

Closed
doczong opened this issue May 5, 2022 · 8 comments
Closed

Comments

@doczong
Copy link

doczong commented May 5, 2022

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
Copy link
Author

doczong commented May 5, 2022

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)

@ihrapsa
Copy link
Owner

ihrapsa commented May 5, 2022

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

@doczong
Copy link
Author

doczong commented May 5, 2022

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.

@ihrapsa
Copy link
Owner

ihrapsa commented May 5, 2022

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?

@doczong
Copy link
Author

doczong commented May 5, 2022

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.

@ihrapsa
Copy link
Owner

ihrapsa commented May 5, 2022

Thanks! I'm still waiting for the box to be officially supported in OpenWrt: openwrt/openwrt#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.

@doczong
Copy link
Author

doczong commented May 6, 2022

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.

@ihrapsa
Copy link
Owner

ihrapsa commented May 6, 2022

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 ihrapsa closed this as completed Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants