-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
RPCError #6078
Comments
It might be the same as: #4555 |
Run |
Is |
Please provide the output of |
my lagency luci code cannot run: function get_openvpn_client_udp()
local reader = ltn12_popen("sh /usr/share/natcapd/natcapd.openvpn.sh gen_client_udp")
luci.http.header('Content-Disposition', 'attachment; filename="natcap-client-udp.ovpn"')
luci.http.prepare_content("application/x-openvpn-profile")
luci.ltn12.pump.all(reader, luci.http.write)
end
function ltn12_popen(command)
local fdi, fdo = nixio.pipe()
local pid = nixio.fork()
if pid > 0 then
fdo:close()
local close
return function()
local buffer = fdi:read(2048)
local wpid, stat = nixio.waitpid(pid, "nohang")
if not close and wpid and stat == "exited" then
close = true
end
if buffer and #buffer > 0 then
return buffer
elseif close then
fdi:close()
return nil
end
end
elseif pid == 0 then
nixio.dup(fdo, nixio.stdout)
fdi:close()
fdo:close()
nixio.exec("/bin/sh", "-c", command)
end
end error in logread:
|
hmm, I should open an new issue? |
|
Please install strace and provide the output of Also: |
i can't install strace and provide,I can't install the mission software right now
Sorry,i can't install strace and provide,I can't install the mission software right now |
the same problem |
the same questions |
1 similar comment
the same questions |
{ |
'network.interface.wifi6' @c2e635f2 |
Got same problem
|
And it is still the same questions. All people reporting this issue seem to lack the Also asked for the OpenWrt version of affected devices and the output presented contained Another thing you can try is executing the following command, it should return without error and no output: |
@jow- I can confirm the |
|
@jow- Yep, no output with this command. After I installed |
The please run |
I will try this on the weekend :) |
@jow- Really weird, I recompile the firmware with latest commit version of OP & Luci, the exception has been gone. |
Maybe we can save this error for the Spring Festival : ) |
I found something wrong... Sun Jan 15 12:43:53 2023 daemon.notice netifd: wan (2087): Command failed: ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "wan" } |
ubus -v list: But there is no luci getFeatures |
@mis1042 - What's the output of |
-rwxr-xr-x 1 root root 16.4K Nov 17 01:55 /usr/lib/rpcd/ucode.so |
Then please |
|
Seems your rootfs file permissions are broken. Try the following:
|
Fixed |
It does not appear to be a problem in the official builds. I assume it is an issue with your build environment, unusual umask settings or filesystem limitations. |
Ok, maybe I need to test more, my compilation environment is GitHub CodeSpace |
chmod 0644 /usr/share/rpcd/ucode/luci The above can solve the problem, but I am using version 23.0.5 of openwrt and still have this issue with version 23.05.0. Is this question not included? |
I've had the same Running After restarting from scratch and rebuilding without messing up with permissions/ownership, the generated image works perfectly. |
Package |
@marek22k OK but does the 'fix' resolve the problem for you? Or does it persist? It seems like something else is messing around with that file. |
Didn't fix the problem for me. However, I have noticed that the problem only seems to occur when I open the graphs of collectd ( I have also restarted the router several times. That didn't help. |
run: opkg list-installed | grep -i luci-app-statistics |
I noticed your logs are also peppered with collectd errors.... so this might be a problem from prior |
Tell you what, just run: opkg install -force-reinstall --force-overwrite luci-app-statistics if that doesn't fix it, uninstall opkg remove luci-app-statistics
opkg install luci-app-statistics |
Sorry for the late reply. Even though I haven't thought about the problem for some time, it unfortunately still exists.
Doen't fix it.
Also doesn't fix the bug.
|
Mhh, I have now replaced the luci_statistics with the file from opkg. Then I have set up collectd via LuCi again. Now it seems to work. |
On my proprietary 23.05 system, it appears to be a permissions problem. However, when I try to manually run rpcd, I get the following: root@OpenWrt:/# rpcd Changing the permissions to a:rx fixed the issue and I no longer get the RPC error root@OpenWrt:/# chmod a-w /usr/share/rpcd/ucode/luci.upnp root@OpenWrt:/# rpcd & |
RPC call to luci/getFeatures failed with error -32000: Object not found
The text was updated successfully, but these errors were encountered: