qvm-run, hangs and stacktrace.

77 views
Skip to first unread message

tier...@gmail.com

unread,
Aug 14, 2018, 3:18:21 AM8/14/18
to qubes-users
Has anyone else experienced this? The application is launched, but it doesn't return correctly. I have to ctrl+c to improperly exit qvm-run, and it prints a stack trace:

Traceback (most recent call last):
File "/usr/bin/qvm-run", line 5, in <module>
sys.exit(main())
File "/usr/lib/python3.5/site-packages/qubesadmin/tools/qvm_run.py", line 235, in main
retcode = max(retcode, proc.wait())
File "/usr/lib64/python3.5/subprocess.py", line 1399, in wait
(pid, sts) = self._try_wait(0)
File "/usr/lib64/python3.5/subprocess.py", line 1349, in _try_wait
(pid, sts) = os.waitpid(self.pid, wait_flags)

The same happens with --noguid or --no-guid

Pablo Di Noto

unread,
Aug 14, 2018, 9:32:00 AM8/14/18
to qubes-users
I updated last night to testing, and now qvm-run just hangs. Terminating it with CTRL-C gives the same traceback.

Please note that in my case, starting any application from the dom0 menu is now working at all. Seems there is issue with the X session.

Message has been deleted

Pablo Di Noto

unread,
Aug 14, 2018, 11:21:31 AM8/14/18
to qubes-users
Further troubleshooting shows last Debian template update I did recently seems to be the reason (I normally use Debian for sys-* service VMs)

Pablo Di Noto

unread,
Aug 14, 2018, 11:36:29 AM8/14/18
to qubes-users
Kudos to the `qvm-volume revert` feature!

I just did
```
qvm-volume info debian-9-root
qvm-volume revert debian-9-root XXXXXXXXXX-back
```
and went back to the pre-update template and the issue disappeared.

Later today will try to see what happened by updating a clone of the template (as I should have done in the first place)

tier...@gmail.com

unread,
Aug 15, 2018, 7:29:40 AM8/15/18
to qubes-users

Not an option for me. I shall file a bug report.

Pablo Di Noto

unread,
Aug 27, 2018, 6:38:36 PM8/27/18
to qubes-users
Well, I think I found the reason:

When I updated my debian-9 template, there was a conflict of packages dependencies that made `qubes-gui-agent` become uninstalled. Obviously, with that package missing, any GUI interaction with the VMs depending on that template fails (and qvm-* commands hang forever).

I fixed the issue by messing with `aptitude` and the "(b) broken packages" option, and then selecting a solution that did this:

Start-Date: 2018-08-27 18:56:55
Install: xserver-xorg-video-dummyqbs:amd64 (4.0.15-1+deb9u1, automatic), qubes-gui-agent:amd64 (4.0.15-1+deb9u1)
Downgrade: xserver-xorg-video-vesa:amd64 (1:2.4.0-1, 1:2.3.4-1+b2), xserver-xorg-video-nouveau:amd64 (1:1.0.15-3, 1:1.0.13-3), xserver-xorg-video-amdgpu:amd64 (18.0.1-1+b1, 1.2.0-1+b1), xserver-xorg-core:amd64 (2:1.20.1-1, 2:1.19.2-1+deb9u2), xserver-xorg-video-fbdev:amd64 (1:0.5.0-1, 1:0.4.4-1+b5), xserver-xorg-video-ati:amd64 (1:18.0.1-2, 1:7.8.0-1+b1), xserver-xorg-video-radeon:amd64 (1:18.0.1-2, 1:7.8.0-1+b1)
Remove: xserver-xorg-video-dummy:amd64 (1:0.3.8-1+b1), libmagickcore-6.q16-5-extra:amd64 (8:6.9.9.34+dfsg-3+b1), xserver-xorg-video-r128:amd64 (6.11.0-1), libavformat57:amd64 (7:3.4.3-1), xserver-xorg-video-qxl:amd64 (0.1.5-2+b1), libargon2-0:amd64 (0~20171227-0.1), xserver-xorg-video-cirrus:amd64 (1:1.5.3-1+b3), linux-headers-4.16.0-2-common:amd64 (4.16.16-2), libmagickwand-6.q16-5:amd64 (8:6.9.9.34+dfsg-3+b1), xserver-xorg-video-trident:amd64 (1:1.3.8-1+b1), libxatracker2:amd64 (18.1.6-1), linux-headers-4.16.0-2-amd64:amd64 (4.16.16-2), xserver-xorg-video-savage:amd64 (1:2.3.9-2), libpostproc54:amd64 (7:3.4.3-1), libgeoclue-2-0:amd64 (2.4.12-1), libstdc++-7-dev:amd64 (7.3.0-28), libnfs8:amd64 (1.11.0-2), xserver-xorg-video-mach64:amd64 (6.9.6-1), libx264-148:amd64 (2:0.148.2748+git97eaef2-1), libx265-95:amd64 (2.1-2+b2), g++-7:amd64 (7.3.0-28), libgfortran4:amd64 (7.3.0-28), xserver-xorg-video-intel:amd64 (2:2.99.917+git20171229-1+b1), xserver-xorg-video-tdfx:amd64 (1:1.4.7-1+b1), xserver-xorg-video-vmware:amd64 (1:13.3.0-2), xserver-xorg-video-all:amd64 (1:7.7+19), libswscale4:amd64 (7:3.4.3-1), libdns-export1100:amd64 (1:9.11.3+dfsg-2), libmagickcore-6.q16-5:amd64 (8:6.9.9.34+dfsg-3+b1), libgcab-1.0-0:amd64 (1.1-3), bdf2psf:amd64 (1.184), xserver-xorg-video-neomagic:amd64 (1:1.2.9-1+b3), libva-wayland1:amd64 (1.7.3-2), liblivemedia57:amd64 (2016.11.28-1), linux-kbuild-4.16:amd64 (4.16.16-2), libbluray1:amd64 (1:0.9.3-3), xserver-xorg-video-mga:amd64 (1:1.6.5-1+b1), libavresample3:amd64 (7:3.4.3-1), xserver-xorg-video-openchrome:amd64 (1:0.6.0-3+b1)
End-Date: 2018-08-27 18:57:05

After that, it is possible to do

systemctl enable qubes-gui-agent.service
systemctl start qubes-gui-agent.service

and from that point on, the template is operating normally.

Hope it helps!
///Pablo

unman

unread,
Aug 29, 2018, 8:34:30 AM8/29/18
to qubes-users
On Mon, Aug 27, 2018 at 03:38:36PM -0700, Pablo Di Noto wrote:
> Well, I think I found the reason:
>
> When I updated my debian-9 template, there was a conflict of packages dependencies that made `qubes-gui-agent` become uninstalled. Obviously, with that package missing, any GUI interaction with the VMs depending on that template fails (and qvm-* commands hang forever).
>
> I fixed the issue by messing with `aptitude` and the "(b) broken packages" option, and then selecting a solution that did this:
>
> Start-Date: 2018-08-27 18:56:55
> Install: xserver-xorg-video-dummyqbs:amd64 (4.0.15-1+deb9u1, automatic), qubes-gui-agent:amd64 (4.0.15-1+deb9u1)
> Downgrade: xserver-xorg-video-vesa:amd64 (1:2.4.0-1, 1:2.3.4-1+b2), xserver-xorg-video-nouveau:amd64 (1:1.0.15-3, 1:1.0.13-3), xserver-xorg-video-amdgpu:amd64 (18.0.1-1+b1, 1.2.0-1+b1), xserver-xorg-core:amd64 (2:1.20.1-1, 2:1.19.2-1+deb9u2), xserver-xorg-video-fbdev:amd64 (1:0.5.0-1, 1:0.4.4-1+b5), xserver-xorg-video-ati:amd64 (1:18.0.1-2, 1:7.8.0-1+b1), xserver-xorg-video-radeon:amd64 (1:18.0.1-2, 1:7.8.0-1+b1)
> Remove: xserver-xorg-video-dummy:amd64 (1:0.3.8-1+b1), libmagickcore-6.q16-5-extra:amd64 (8:6.9.9.34+dfsg-3+b1), xserver-xorg-video-r128:amd64 (6.11.0-1), libavformat57:amd64 (7:3.4.3-1), xserver-xorg-video-qxl:amd64 (0.1.5-2+b1), libargon2-0:amd64 (0~20171227-0.1), xserver-xorg-video-cirrus:amd64 (1:1.5.3-1+b3), linux-headers-4.16.0-2-common:amd64 (4.16.16-2), libmagickwand-6.q16-5:amd64 (8:6.9.9.34+dfsg-3+b1), xserver-xorg-video-trident:amd64 (1:1.3.8-1+b1), libxatracker2:amd64 (18.1.6-1), linux-headers-4.16.0-2-amd64:amd64 (4.16.16-2), xserver-xorg-video-savage:amd64 (1:2.3.9-2), libpostproc54:amd64 (7:3.4.3-1), libgeoclue-2-0:amd64 (2.4.12-1), libstdc++-7-dev:amd64 (7.3.0-28), libnfs8:amd64 (1.11.0-2), xserver-xorg-video-mach64:amd64 (6.9.6-1), libx264-148:amd64 (2:0.148.2748+git97eaef2-1), libx265-95:amd64 (2.1-2+b2), g++-7:amd64 (7.3.0-28), libgfortran4:amd64 (7.3.0-28), xserver-xorg-video-intel:amd64 (2:2.99.917+git20171229-1+b1), xserver-xorg-video-tdfx:amd64 (1:1.4.7-1+b1), xserver-xorg-video-vmware:amd64 (1:13.3.0-2), xserver-xorg-video-all:amd64 (1:7.7+19), libswscale4:amd64 (7:3.4.3-1), libdns-export1100:amd64 (1:9.11.3+dfsg-2), libmagickcore-6.q16-5:amd64 (8:6.9.9.34+dfsg-3+b1), libgcab-1.0-0:amd64 (1.1-3), bdf2psf:amd64 (1.184), xserver-xorg-video-neomagic:amd64 (1:1.2.9-1+b3), libva-wayland1:amd64 (1.7.3-2), liblivemedia57:amd64 (2016.11.28-1), linux-kbuild-4.16:amd64 (4.16.16-2), libbluray1:amd64 (1:0.9.3-3), xserver-xorg-video-mga:amd64 (1:1.6.5-1+b1), libavresample3:amd64 (7:3.4.3-1), xserver-xorg-video-openchrome:amd64 (1:0.6.0-3+b1)
> End-Date: 2018-08-27 18:57:05
>
> After that, it is possible to do
>
> systemctl enable qubes-gui-agent.service
> systemctl start qubes-gui-agent.service
>
> and from that point on, the template is operating normally.
>
> Hope it helps!
> ///Pablo

Out of intreset, what was the conflict that led to the package being
uninstalled?
Reply all
Reply to author
Forward
0 new messages