Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

systemd v229 usr.mount fails on first boot #1187

Closed

Description

@mischief

boot log attached.
usr.mount.txt

Activity

  1. self-assigned this
    on Mar 28, 2016
  2. mischief commented on Mar 28, 2016

    @mischief
    Author

    got a log with debug quiet on kernel commandline.
    usr.mount.debug.txt

  3. added this to the milestone on Apr 1, 2016
  4. mischief commented on Apr 4, 2016

    @mischief
    Author

    filed upstream bug at systemd/systemd#2960

  5. modified the milestones: systemd 229, on Apr 5, 2016
  6. mischief commented on Apr 6, 2016

    @mischief
    Author

    this issue appears to be unreproducible if systemd v225 is in the initrd and v229 is in /usr.

  7. marineam commented on Apr 6, 2016

    @marineam

    didn't @crawford reproduce it with v225 in /usr and v229 in the initrd?

  8. crawford commented on Apr 6, 2016

    @crawford
    Contributor

    I think I saw the failure with v229 in the initrd, but not v225. If I remember correctly, it didn't matter which version was in /usr. @mischief this is why we need to record all of the tests and their results.

  9. mischief commented on Apr 6, 2016

    @mischief
    Author

    here's a full log containing the state transitions of the usr.mount unit, including the transition to dead. before while using the default systemd.log_target=journal, some messages were lost during a critical period. now i use systemd.log_level=debug systemd.log_target=kmsg log_buf_len=128M and dmesg to recover the logs.

    some interesting bits:

    $ grep -E 'dev-vda3\.device|usr\.mount|Switching' journal-debug-kmsg.txt 
    [    2.092724] systemd[1]: dev-vda3.device: Installed new job dev-vda3.device/start as 49
    [    2.092752] systemd[1]: sysroot-usr.mount: Installed new job sysroot-usr.mount/start as 46
    [    2.544866] systemd[1]: dev-vda3.device: Changed dead -> plugged
    [    2.544868] systemd[1]: dev-vda3.device: Job dev-vda3.device/start finished, result=done
    [    2.805628] systemd[1]: sysroot-usr.mount: About to execute: /bin/mount /dev/vda3 /sysroot/usr -o ro,ro
    [    2.805794] systemd[1]: sysroot-usr.mount: Forked /bin/mount as 669
    [    2.805841] systemd[1]: sysroot-usr.mount: Changed dead -> mounting
    [    2.806300] systemd[669]: sysroot-usr.mount: Executing: /bin/mount /dev/vda3 /sysroot/usr -o ro,ro
    [    2.811933] systemd[1]: sysroot-usr.mount: Child 669 belongs to sysroot-usr.mount
    [    2.811936] systemd[1]: sysroot-usr.mount: Mount process exited, code=exited status=0
    [    2.811940] systemd[1]: sysroot-usr.mount: Changed mounting -> mounted
    [    2.811942] systemd[1]: sysroot-usr.mount: Job sysroot-usr.mount/start finished, result=done
    [    2.853875] systemd[1]: dev-vda3.device: Changed dead -> plugged
    [    2.853890] systemd[1]: sysroot-usr.mount: Changed dead -> mounted
    [    2.990566] systemctl[754]: Switching root - root: /sysroot; init: n/a
    [    2.993244] systemd[1]: Switching root.
    [    2.994985] systemd[1]: dev-vda3.device: Failed to send unit remove signal for dev-vda3.device: Transport endpoint is not connected
    [    2.995043] systemd[1]: sysroot-usr.mount: Failed to send unit remove signal for sysroot-usr.mount: Transport endpoint is not connected
    [    3.099733] systemd[1]: usr.mount: Failed to load configuration: No such file or directory
    [    3.103497] systemd[1]: sysroot-usr.mount: Failed to load configuration: No such file or directory
    [    3.104491] systemd[1]: sysroot-usr.mount: Changed dead -> mounted
    [    3.104523] systemd[1]: usr.mount: Changed dead -> mounted
    [    3.223302] systemd[1]: sysroot-usr.mount: Changed mounted -> dead
    [    3.223335] systemd[1]: usr.mount: Changed mounted -> dead
    [    3.241887] systemd[1]: sysroot-usr.mount: Collecting.
    [    3.455302] systemd[1]: dev-vda3.device: Changed dead -> plugged
    [    3.455305] systemd[1]: usr.mount: Trying to enqueue job usr.mount/start/fail
    [    3.455429] systemd[1]: usr.mount: Installed new job usr.mount/start as 355
    [    3.455433] systemd[1]: usr.mount: Enqueued job usr.mount/start as 355
    [    3.455539] systemd[1]: usr.mount: Directory /usr to mount over is not empty, mounting anyway.
    [    3.457567] systemd[1]: usr.mount: Failed to run 'mount' task: No such file or directory
    [    3.457570] systemd[1]: usr.mount: Changed dead -> failed
    [    3.457575] systemd[1]: usr.mount: Job usr.mount/start finished, result=failed
    [    3.462311] systemd[1]: usr.mount: Unit entered failed state.
    

    journal-debug-kmsg.txt

  10. marineam commented on Apr 7, 2016

    @marineam

    This bug was an exact duplicate of #463

    Between coreos/bootengine#86 and systemd/systemd#2978 we should be good :)

  11. marineam commented on Apr 7, 2016

    @marineam
  12. marineam commented on Apr 7, 2016

    @marineam

    Just for reference if ever needed some day, this is the dumb patch I wrote to capture libmount's debug output which made this bug blatantly obvious: https://gist.github.com/marineam/d3111d4f105fcac7516abde3ae9c3558

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions