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

ERROR: ubus: Not found: Failed to invoke function 'packagelist' on object 'rpc-sys' #22

Closed
aronsky opened this issue Nov 13, 2024 · 6 comments

Comments

@aronsky
Copy link

aronsky commented Nov 13, 2024

This issue started after upgrading to the newest snapshot that uses apk instead of opkg. I managed to screw up the upgrade and ended up with neither apk nor opkg present, and had to sideload apk from a standard snapshot image. Now, managing packages via apk works just fine, but owut still gives out this error:

owut - OpenWrt Upgrade Tool 2024.10.27~8c7e42f0-r1 (/usr/bin/owut)
ERROR: ubus: Not found: Failed to invoke function 'packagelist' on object 'rpc-sys'
 from: 'ubus call rpc-sys packagelist { "all": true }'
This is a bug in 'owut/2024.10.27~8c7e42f0-r1', please report at
  https://github.com/efahl/owut/issues

In [anonymous function](), file /usr/bin/owut, line 103, byte 24:
  called from function [anonymous function] (/usr/bin/owut:240:58)
  called from function [anonymous function] (/usr/bin/owut:245:74)
  called from function collect_packages (/usr/bin/owut:964:69)
  called from function collect_all (/usr/bin/owut:1339:19)
  called from anonymous function (/usr/bin/owut:2025:15)

 `           `  ${issue_url}\n`);`
  Near here -------------------^

Did I miss some configuration that exposes apk over rpc while sideloading, or is it another issue?

@GoetzGoerisch
Copy link

Seeing the same with SNAPSHOT (r28070-f84187035e) and a owut package added with apk.

Ping @efahl

@efahl
Copy link
Owner

efahl commented Nov 13, 2024

Did I miss some configuration that exposes apk over rpc while sideloading, or is it another issue?

Nope, you didn't miss anything, the rpc call just hasn't been updated to handle the apk database yet.

At this rate, I'm thinking it's maybe a week out? You may be able to follow progress here openwrt/openwrt@40b8fba#commitcomment-149041733 or maybe the forum thread is better https://forum.openwrt.org/t/201164 In any case, I'll continue blathering on about this stuff until it works. 😁

@aronsky
Copy link
Author

aronsky commented Nov 13, 2024 via email

@trenchcoatjedi
Copy link

same issue

# owut check
owut - OpenWrt Upgrade Tool 2024.11.20~42cd86c2-r1 (/usr/bin/owut)
ERROR: ubus: Not found: Failed to invoke function 'packagelist' on object 'rpc-sys'
 from: 'ubus call rpc-sys packagelist { "all": true }'
This is a bug in 'owut/2024.11.20~42cd86c2-r1', please report at
  https://github.com/efahl/owut/issues

In [anonymous function](), file /usr/bin/owut, line 103, byte 24:
  called from function [anonymous function] (/usr/bin/owut:240:58)
  called from function [anonymous function] (/usr/bin/owut:245:74)
  called from function collect_packages (/usr/bin/owut:968:67)
  called from function collect_all (/usr/bin/owut:1356:19)
  called from anonymous function (/usr/bin/owut:2042:15)

 `           `  ${issue_url}\n`);`
  Near here -------------------^
# uname -a
Linux 661WRT 6.6.61 #0 SMP Wed Nov 20 08:49:21 2024 armv7l GNU/Linux
# cat /etc/openwrt_release 
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='SNAPSHOT'
DISTRIB_REVISION='r28141-52519a59a8'
DISTRIB_TARGET='ipq40xx/generic'
DISTRIB_ARCH='arm_cortex-a7_neon-vfpv4'
DISTRIB_DESCRIPTION='OpenWrt SNAPSHOT r28141-52519a59a8'
DISTRIB_TAINTS=''

@efahl
Copy link
Owner

efahl commented Nov 26, 2024

If any of you wish to accelerate resolution of this issue, please go post a comment on the PR below and tag whoever you think should review it.

openwrt/rpcd#10

efahl added a commit to efahl/rpcd that referenced this issue Nov 26, 2024
Parse the apk files to produce the packagelist.

Reads both the 'installed' file to collect all package names and
versions.  If the 'all' parameter is false, then only the packages
listed in the 'world' file are retained.

Remaining issue:
There is no ABI version information in any of the apk files, so
the returned file names have not been cleaned.  This is contrary
to the opkg version, which cleaned the package names, and is a bug
that needs to be fixed once the ABI version are available.

Fixes: openwrt/openwrt#16907
Fixes: efahl/owut#22
Signed-off-by: Eric Fahlgren <[email protected]>
@UltraHKR
Copy link

openwrt/asu#1097

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

5 participants