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

[Arch Linux] qubes-mount-dir not starting start in R3.2 - chgrp on absolute symlinks #2625

Open
ptitdoc opened this Issue Feb 10, 2017 · 3 comments

Comments

Projects
None yet
3 participants
@ptitdoc

ptitdoc commented Feb 10, 2017

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

R3.2

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

potentially all templates


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:

Create an absolute symlink in the AppVM home pointing to a file in /home (or event an invalid symlink ?) and reboot

General notes:

[root@mybrokenvm ~]# ls -l  /rw/home/user/testing/vmware-vmrc/vmware-vmrc-plugin/src/vmware-*
lrwxrwxrwx 1 user wheel 66  8 sept.  2014 /rw/home/user/testing/vmware-vmrc/vmware-vmrc-plugin/src/vmware-deviceMgr -> /home/user/testing/vmware-vmrc/vmware-vmrc-plugin/vmware-deviceMgr
lrwxrwxrwx 1 user wheel 61  8 sept.  2014 /rw/home/user/testing/vmware-vmrc/vmware-vmrc-plugin/src/vmware-vmrc -> /home/user/testing/vmware-vmrc/vmware-vmrc-plugin/vmware-vmrc
$ qvm-run mybrokenvm --pass-io 'sudo systemctl -la status qubes-mount-dirs'
su: avertissement: impossible de changer le rpertoire vers /home/user: Aucun fichier ou dossier de ce type
___ qubes-mount-dirs.service - Initialize and mount /rw and /home
   Loaded: loaded (/usr/lib/systemd/system/qubes-mount-dirs.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2017-02-10 10:32:02 CET; 14min ago
  Process: 308 ExecStart=/usr/lib/qubes/init/mount-dirs.sh (code=exited, status=123)
 Main PID: 308 (code=exited, status=123)

fvr. 10 10:32:01 localhost mount-dirs.sh[308]: chgrp: impossible de drfrencer '/rw/home/user/testing/vmware-vmrc/vmware-vmrc-plugin/pkg/vmware-vmrc-plugin/usr/lib/vmware-vmrc/5.1/bin/vmware-deviceMgr': Aucun fichier ou dossier de ce type
fvr. 10 10:32:01 localhost mount-dirs.sh[308]: chgrp: impossible de drfrencer '/rw/home/user/testing/vmware-vmrc/vmware-vmrc-plugin/pkg/vmware-vmrc-plugin/usr/lib/vmware-vmrc/5.1/bin/vmware-vmrc': Aucun fichier ou dossier de ce type
fvr. 10 10:32:01 localhost mount-dirs.sh[308]: chgrp: impossible de drfrencer '/rw/home/user/testing/vmware-vmrc/vmware-vmrc-plugin/pkg/vmware-vmrc-plugin/usr/lib64/mozilla/plugins/np-vmware-vmrc-5.1.0-781747.so': Aucun fichier ou dossier de ce type
fvr. 10 10:32:01 localhost mount-dirs.sh[308]: chgrp: impossible de drfrencer '/rw/home/user/testing/vmware-vmrc/vmware-vmrc-plugin/src/VMware-VMRC.x86_64.bundle': Aucun fichier ou dossier de ce type
fvr. 10 10:32:01 localhost mount-dirs.sh[308]: chgrp: impossible de drfrencer '/rw/home/user/testing/vmware-vmrc/vmware-vmrc-plugin/src/vmware-deviceMgr': Aucun fichier ou dossier de ce type
fvr. 10 10:32:01 localhost mount-dirs.sh[308]: chgrp: impossible de drfrencer '/rw/home/user/testing/vmware-vmrc/vmware-vmrc-plugin/src/vmware-vmrc': Aucun fichier ou dossier de ce type
f__vr. 10 10:32:02 localhost systemd[1]: qubes-mount-dirs.service: Main process exited, code=exited, status=123/n/a
f__vr. 10 10:32:02 localhost systemd[1]: Failed to start Initialize and mount /rw and /home.
f__vr. 10 10:32:02 localhost systemd[1]: qubes-mount-dirs.service: Unit entered failed state.
f__vr. 10 10:32:02 localhost systemd[1]: qubes-mount-dirs.service: Failed with result 'exit-code'.

Related issues:

#2612
#2609

@ptitdoc

This comment has been minimized.

Show comment
Hide comment
@ptitdoc

ptitdoc Feb 10, 2017

The error is chgrp: cannot unreference '/rw/home/user/testing/vmware-vmrc/vmware-vmrc-plugin/pkg/vmware-vmrc-plugin/usr/lib/vmware-vmrc/5.1/bin/vmware-deviceMgr': no file or folder found

ptitdoc commented Feb 10, 2017

The error is chgrp: cannot unreference '/rw/home/user/testing/vmware-vmrc/vmware-vmrc-plugin/pkg/vmware-vmrc-plugin/usr/lib/vmware-vmrc/5.1/bin/vmware-deviceMgr': no file or folder found

@ptitdoc ptitdoc changed the title from Update cause qubes-mount-dir to not start in R3.2 - chgrp on absolute symlinks to qubes-mount-dir not starting start in R3.2 - chgrp on absolute symlinks Feb 10, 2017

@andrewdavidwong andrewdavidwong added this to the Release 3.2 updates milestone Feb 11, 2017

@unman

This comment has been minimized.

Show comment
Hide comment
@unman

unman Feb 19, 2017

Member

@ptitdoc What template are you using? Is it Arch?
This seems to work with both Debian and Fedora templates, and I cant reproduce the issue following your instructions.
Please amend title and set labels appropriately

Member

unman commented Feb 19, 2017

@ptitdoc What template are you using? Is it Arch?
This seems to work with both Debian and Fedora templates, and I cant reproduce the issue following your instructions.
Please amend title and set labels appropriately

@ptitdoc

This comment has been minimized.

Show comment
Hide comment
@ptitdoc

ptitdoc Feb 19, 2017

Yes this occured on archlinux, however I cleaned up the invalid links before testing with other templates.

Based on the error, I through that the problem would be the same on any linux template. I will check if I can reproduce it on other templates.

ptitdoc commented Feb 19, 2017

Yes this occured on archlinux, however I cleaned up the invalid links before testing with other templates.

Based on the error, I through that the problem would be the same on any linux template. I will check if I can reproduce it on other templates.

@andrewdavidwong andrewdavidwong changed the title from qubes-mount-dir not starting start in R3.2 - chgrp on absolute symlinks to [Arch Linux] qubes-mount-dir not starting start in R3.2 - chgrp on absolute symlinks Feb 20, 2017

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