Swupd shows "External command: opendir(): No such file or directory"

At the end of swupd update and swupd repair, the post-update helper script is called. There seems to be an error in the directory and file references.
As the attached image shows, the following message is displayed.

External command: opendir(): No such file or directory

The attached images are screenshots of
-swupd update
-swupd info
-swupd repair



1 Like

If you run sudo strace -o swupd.log swupd update, it should tell you what the missing file/directory is. strace is verbose, but should give more details in the output file at swupd.log.

1 Like

attached files are stored output from strace with next commands.

  1. swupd update → strace_update.log
  2. swupd repair → strace_repair.log

log files are uploaded to OneDrive below.
https://1drv.ms/u/c/92c78b1e354d8b52/EbqzppmBBr5NoaGx-XARmp4BicWioCApKJ78JpQyARNc4A?e=NCOOln

screenshot is output from grep.log which is grep result of “No such file or directory” from strace_update.log. Certainly there are no files and folders mentioned.

What bundles do you have installed? Also for the strace, you’ll need to add a -f as the post update scripts are forked off from the main swupd process.

1 Like

Thank you for your support.

Here is the output from “swupd bundle-list” and another output from strace with “-f” option.

https://1drv.ms/u/c/92c78b1e354d8b52/EQoO8Qasat1Dkt1gGa3Hnb8Bv1LRa1xp2F-VL4oOXtB3Jw?e=yJQObn

Screenshot is the output from strace -f.

Any kernel cmdline parameters you’ve set?

1 Like

Nothing special.
Since first install in 2022, I have been using this with periodical swupd.

Ah this is due to us changing cgroup hierarchies, I’ll take a look at a fix. Thanks!

1 Like