Giter Site home page Giter Site logo

Comments (8)

keszybz avatar keszybz commented on June 27, 2024

You should be able to find the logs in journalctl output. Either try sudo dnf system-upgrade log or sudo journalctl -b -N, where -N is -1, -2, -3, etc.

from dnf-plugin-system-upgrade.

rickyzhang82 avatar rickyzhang82 commented on June 27, 2024

well, I checked man of journalctl. In my personal opinion, the option doesn't work as it states.

  • -b -0 option doesn't show last boot.
  • --this-boot option doesn't show this boot.

I have to manually dig into log. In any case, I don't see any special ERROR in boot process.
I don't know why it reboots without launching install.

from dnf-plugin-system-upgrade.

keszybz avatar keszybz commented on June 27, 2024

-b -0 should should current boot, the same as --this-boot. What output do you see?

from dnf-plugin-system-upgrade.

rickyzhang82 avatar rickyzhang82 commented on June 27, 2024

I filed bugzilla report - https://bugzilla.redhat.com/show_bug.cgi?id=1350120
Boot log - https://bugzilla.redhat.com/attachment.cgi?id=1172540
/var/lib/dnf/system-upgrade.json - https://bugzilla.redhat.com/attachment.cgi?id=1172541

from dnf-plugin-system-upgrade.

rickyzhang82 avatar rickyzhang82 commented on June 27, 2024

I commented out reboot() call in run_reboot(). I did see symlink '/system-update' created in root.
After manually executing 'sudo systemctl reboot', it reboot and saw 'dnf-system-upgrade.service' is started by systemd. But it exist and automatically reboot again.

Symlink got removed it. So, I believe it did call run_upgrade(). But somehow, it didn't run through the rest in run_upgrade()

I have trouble to find dnf-system-upgrade log message from journalctl. Do you know how? Thanks!

from dnf-plugin-system-upgrade.

rickyzhang82 avatar rickyzhang82 commented on June 27, 2024

dnf-system-upgrade.service did remove symlink again. So it may not be run_upgrade() remove it. I still don't figure it out how to get the log message from dnf-system-upgrade plugin.

ExecStopPost=/usr/bin/rm -fv /system-update

from dnf-plugin-system-upgrade.

rickyzhang82 avatar rickyzhang82 commented on June 27, 2024

I think I found the culprit in the boot log. Is it possible one of upgrade service /usr/libexec/fwupd/fwupd may bring down the whole system upgrade. I tried to disable fwupd-offline-update.service but it doesn't seem to disable it.

Jun 26 11:22:52 gtx dbus[1055]: [system] Activating service name='org.freedesktop.fwupd' (using servicehelper)
Jun 26 11:22:52 gtx org.freedesktop.fwupd[1055]: /usr/libexec/fwupd/fwupd: symbol lookup error: /lib64/libgusb.so.2: undefined symbol: libusb_get_parent
Jun 26 11:22:52 gtx dbus[1055]: [system] Activated service 'org.freedesktop.fwupd' failed: Launch helper exited with unknown return code 127
Jun 26 11:22:52 gtx fwupdmgr[1047]: Failed to connect to fwupd: Error calling StartServiceByName for org.freedesktop.fwupd: GDBus.Error:org.freedesktop.DBus.Error.Spawn.Chil
Jun 26 11:22:52 gtx systemd[1]: fwupd-offline-update.service: Main process exited, code=exited, status=1/FAILURE
Jun 26 11:22:52 gtx systemd[1]: fwupd-offline-update.service: Unit entered failed state.
Jun 26 11:22:52 gtx systemd[1]: fwupd-offline-update.service: Triggering OnFailure= dependencies.
Jun 26 11:22:52 gtx systemd[1]: fwupd-offline-update.service: Failed with result 'exit-code'.

from dnf-plugin-system-upgrade.

rickyzhang82 avatar rickyzhang82 commented on June 27, 2024

The issue is resolved. It turns out that I have installed different version of libusb in /usr/local/lib for kinect, which caused fwupd service failed. The failure of fwupd caused system upgrade service terminates. Therefore, dnf-system-upgrade plugin didn't finish.

Although it appears that symlink got delete, it actually wiped out by systmed in dnf-system-upgrade.service post exec.

I'd suggest that add a new internal state in dnf-system-upgrade plugin to indicate that run_upgrade didn't get launch because of interruption by other system update service.

from dnf-plugin-system-upgrade.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.