Post-transaction scripts errors on every zypper dup

Some time ago post-transaction scripts errors started on every zypper dup:

%transfiletriggerin(systemd-261.3-1.1.x86_64) script output:
Failed to start jobs: Failed to enqueue some jobs, see logs for details: Invalid argument
error: lua script failed: [string "%transfiletriggerin(systemd-261.3-1.1.x86_64)..."]:5: exit code
Error from %transfiletriggerin(systemd-261.3-1.1.x86_64)
%transfiletriggerpostun(systemd-261.3-1.1.x86_64) script output:
Failed to start jobs: Failed to enqueue some jobs, see logs for details: Invalid argument
error: lua script failed: [string "%transfiletriggerpostun(systemd-261.3-1.1.x86..."]:2: exit code
Error from %transfiletriggerpostun(systemd-261.3-1.1.x86_64)
Running post-transaction scripts ..............................................................................................................................................[done]

Any idea how to narrow down and fix this? May be some orphaned settings or scripts left after old packages/configurations?

Your best option here is to file a bug report with details about what happened, so the package maintainers can fix the problem at the root.

The only thing you can do on your side is to check if maybe the package lacks some “requires” dependency on a tool that is used (e.g. here “lua”) and install it manually so it’s available in the post-trans script.

You can have a look at the scripts with

$ rpm -q --scripts systemd

for the installed version, or download the new version and investigate it directly:

$ zypper download systemd

(it will tell you the path where it was downloaded to)

$ rpm -qp --scripts /path/to/rpm/systemd*.rpm

Check the “requires” with

$ rpm -qp --requires /path/to/rpm/systemd*.rpm

$ rpm -qp --requires /path/to/rpm/systemd*.rpm | grep "lua"

(nothing in my case (Slowroll))

1 Like

The scripts for installed packages should be in the RPM database, so that should not be a source of problems.

Nothing in my case too.

I did:

 rpm -q --scripts systemd > scripts1.sh
 rpm -qp --scripts ~/.cache/zypp/packages/openSUSE:repo-oss/x86_64/systemd-261.3-1.1.x86_64.rpm > scripts2.sh

scripts1.sh and scripts2.sh files are identical.

Done: https://bugzilla.suse.com/show_bug.cgi?id=1284701

Since the error was about a lua script, did you check if any of those scrips actually uses lua? If yes, do you have a lua interpreter installed?

I don’t seem to have it on my Slowroll.

1 Like

No, they do not use lua at least directly. lua is not installed, There are several lua versions available and a lot of additional lua* packages. What to install?

I just checked the pre-/post-transaction scripts on systemd from my system and in the .spec file for openSUSE:Factory in OBS and also the RPM macros at /usr/lib/rpm/macros.d/macros.systemd, and I couldn’t find any trace of lua.

The error message may be bogus.

As for what to install to get lua, I guess that would be lua53. It’s just a tiny 43.1 kB (!) package, and it doesn’t drag any depenencies in. It might be worth a try, but I am no longer sure if that would help.

Installed latest lua55, will check for the results.

OK; a newer version should probably be even better.

Still same error:

(1/1) Installing: systemd-261.3-1.1.x86_64 ....................................................................................................................................[done]
%transfiletriggerpostun(systemd-261.3-1.1.x86_64) script output:
Failed to start jobs: Failed to enqueue some jobs, see logs for details: Invalid argument
error: lua script failed: [string "%transfiletriggerpostun(systemd-261.3-1.1.x86..."]:2: exit code
Error from %transfiletriggerpostun(systemd-261.3-1.1.x86_64)
%transfiletriggerin(systemd-261.3-1.1.x86_64) script output:
Failed to start jobs: Failed to enqueue some jobs, see logs for details: Invalid argument
error: lua script failed: [string "%transfiletriggerin(systemd-261.3-1.1.x86_64)..."]:5: exit code
Error from %transfiletriggerin(systemd-261.3-1.1.x86_64)
Running post-transaction scripts ..............................................................................................................................................[done]

OK; it was worth a try. Let’s wait what the systemd maintainers say in the bug.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.