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

Update cause qubes-mount-dir to not start in R3.2 archlinux template (broken systemd dependency) #2609

Closed
ptitdoc opened this Issue Jan 28, 2017 · 12 comments

Comments

Projects
None yet
4 participants
@ptitdoc

ptitdoc commented Jan 28, 2017

Qubes OS version (e.g., R3.2):

R3.2

Affected TemplateVMs (e.g., fedora-23, if applicable):

archlinux


Expected behavior:

Template boot properly with last qubes-agent

Actual behavior:

Template boots but qubes-mount-dirs does not start. Because of that /home/ is empty and gui-agent fails.

Steps to reproduce the behavior:

General notes:

Jan 28 15:57:53 localhost systemd[1]: local-fs.target: Found ordering cycle on local-fs.target/start
Jan 28 15:57:53 localhost systemd[1]: local-fs.target: Found dependency on qubes-mount-dirs.service/start
Jan 28 15:57:53 localhost systemd[1]: local-fs.target: Found dependency on qubes-sysinit.service/start
Jan 28 15:57:53 localhost systemd[1]: local-fs.target: Found dependency on qubes-db.service/start
Jan 28 15:57:53 localhost systemd[1]: local-fs.target: Found dependency on local-fs.target/start
Jan 28 15:57:53 localhost systemd[1]: local-fs.target: Breaking ordering cycle by deleting job qubes-mount-dirs.service/start
Jan 28 15:57:53 localhost systemd[1]: qubes-mount-dirs.service: Job qubes-mount-dirs.service/start deleted to break ordering cycle starting with local-fs.target/start


Related issues:

QubesOS/qubes-core-agent-linux#21

@ptitdoc

This comment has been minimized.

Show comment
Hide comment
@ptitdoc

ptitdoc Jan 28, 2017

The dependency cycle is apparently:
qubes-db > qubes-sysinit > qubes-mount-dirs > local-fs > qubes-db

We need to break either
local-fs > qubes-db
or
qubes-sysinit > qubes-mount-dirs

Any advice ?

ptitdoc commented Jan 28, 2017

The dependency cycle is apparently:
qubes-db > qubes-sysinit > qubes-mount-dirs > local-fs > qubes-db

We need to break either
local-fs > qubes-db
or
qubes-sysinit > qubes-mount-dirs

Any advice ?

@cryptix

This comment has been minimized.

Show comment
Hide comment
@cryptix

cryptix Jan 28, 2017

I saw this as well (programs wouldn't start because /home/user wasn't present) but sometimes it works? Just asking before I create a duplicate issue.

cryptix commented Jan 28, 2017

I saw this as well (programs wouldn't start because /home/user wasn't present) but sometimes it works? Just asking before I create a duplicate issue.

@ptitdoc

This comment has been minimized.

Show comment
Hide comment
@ptitdoc

ptitdoc Jan 28, 2017

I suggest replacing in qubes-db.service:
After=local-fs.target systemd-modules-load.service fedora-loadmodules.service
by
After=proc-xen.mount systemd-modules-load.service fedora-loadmodules.service

ptitdoc commented Jan 28, 2017

I suggest replacing in qubes-db.service:
After=local-fs.target systemd-modules-load.service fedora-loadmodules.service
by
After=proc-xen.mount systemd-modules-load.service fedora-loadmodules.service

@ptitdoc

This comment has been minimized.

Show comment
Hide comment
@ptitdoc

ptitdoc Jan 28, 2017

@cryptix : There are in fact multiple problems in my case. Are you talking about the archlinux template ?

Which qubes-core-vm package version are you using ? The problem I'm reffering to should occur since version qubes-core-vm 3.2.13.

ptitdoc commented Jan 28, 2017

@cryptix : There are in fact multiple problems in my case. Are you talking about the archlinux template ?

Which qubes-core-vm package version are you using ? The problem I'm reffering to should occur since version qubes-core-vm 3.2.13.

@cryptix

This comment has been minimized.

Show comment
Hide comment
@cryptix

cryptix Jan 28, 2017

Are you talking about the archlinux template ?

yes. only having this with the arch template.

cryptix commented Jan 28, 2017

Are you talking about the archlinux template ?

yes. only having this with the arch template.

@ptitdoc

This comment has been minimized.

Show comment
Hide comment
@ptitdoc

ptitdoc Jan 28, 2017

Since qubes-core-vm 3.2.13, the code related to mounting /rw and /home changed so much that it may have solved some race condition observed before 3.2.13.
(cf QubesOS/qubes-core-agent-linux#21)

ptitdoc commented Jan 28, 2017

Since qubes-core-vm 3.2.13, the code related to mounting /rw and /home changed so much that it may have solved some race condition observed before 3.2.13.
(cf QubesOS/qubes-core-agent-linux#21)

@cryptix

This comment has been minimized.

Show comment
Hide comment
@cryptix

cryptix Jan 28, 2017

my template has qubes-vm-core 3.2.15-9 and I'm still seeing this.

Granted, it happens sparingly but if it does it usually persists for 5-10 tries of rebooting the appVM.

cryptix commented Jan 28, 2017

my template has qubes-vm-core 3.2.15-9 and I'm still seeing this.

Granted, it happens sparingly but if it does it usually persists for 5-10 tries of rebooting the appVM.

@ptitdoc

This comment has been minimized.

Show comment
Hide comment
@ptitdoc

ptitdoc Jan 28, 2017

It look like the same symptoms. But I really wonder why it works sometimes.

You can try applying the proposed change to /usr/lib/systemd/system/qubes-db.service manually.

ptitdoc commented Jan 28, 2017

It look like the same symptoms. But I really wonder why it works sometimes.

You can try applying the proposed change to /usr/lib/systemd/system/qubes-db.service manually.

@ptitdoc

This comment has been minimized.

Show comment
Hide comment
@ptitdoc

ptitdoc Jan 28, 2017

Somehow, I'm using an old version of qubes-db... and this problem is now fixed...

ptitdoc commented Jan 28, 2017

Somehow, I'm using an old version of qubes-db... and this problem is now fixed...

@ptitdoc

This comment has been minimized.

Show comment
Hide comment
@ptitdoc

ptitdoc Jan 28, 2017

I'm quite surprised that you use qubes-vm-core-3.2.15. Did you modified things to build it properly?

ptitdoc commented Jan 28, 2017

I'm quite surprised that you use qubes-vm-core-3.2.15. Did you modified things to build it properly?

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Jan 28, 2017

Member

Somehow, I'm using an old version of qubes-db... and this problem is now fixed...

Yes, this was fixed as part of #2194. And the fix goes even further than you suggest - remove local-fs.target from dependencies, as in fact /proc/xen is not used anymore (at least by qubes-db).

Member

marmarek commented Jan 28, 2017

Somehow, I'm using an old version of qubes-db... and this problem is now fixed...

Yes, this was fixed as part of #2194. And the fix goes even further than you suggest - remove local-fs.target from dependencies, as in fact /proc/xen is not used anymore (at least by qubes-db).

@marmarek marmarek closed this Jan 28, 2017

@marmarek marmarek added the duplicate label Jan 28, 2017

@cryptix

This comment has been minimized.

Show comment
Hide comment
@cryptix

cryptix Jan 28, 2017

Did you modified things to build it properly?

you mean because of the pulseaudio 10 headers and xorg version? well.. I was lucky to build the template before that update landed in archland.

cryptix commented Jan 28, 2017

Did you modified things to build it properly?

you mean because of the pulseaudio 10 headers and xorg version? well.. I was lucky to build the template before that update landed in archland.

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