Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upquickly restarting VM leads to race condition, VM startup and keyboard issues #1241
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Sep 25, 2015
Member
Toggling firewall settings of another AppVM behind sys-firewall (not sys-whonix) works as workaround.
|
Toggling firewall settings of another AppVM behind sys-firewall (not sys-whonix) works as workaround. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Sep 25, 2015
Member
Or not. It only makes the "No such file or directory" error in Qubes VM manager temporarily go away. Starting the VM from Qubes VM Manager or command line is still failing.
|
Or not. It only makes the "No such file or directory" error in Qubes VM manager temporarily go away. Starting the VM from Qubes VM Manager or command line is still failing. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Sep 25, 2015
Member
Apparently QubesDB daemon for sys-firewall (or whatever proxyvm you
have there) have died. Check /var/log/qubes/qubesdb.sys-firewall.log.
Check also process list - you should have one qubesdb-daemon process for
each running VM (including dom0).
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
|
Apparently QubesDB daemon for sys-firewall (or whatever proxyvm you Best Regards, |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Sep 25, 2015
Member
/var/log/qubes/qubesdb.sys-firewall.log:
vchan closed
vchan reconnecting
vchan closed
sys-firewall has qubesdb-daemon running. Also dom0 has a qubesdb-daemon running for sys-firewall.
|
sys-firewall has qubesdb-daemon running. Also dom0 has a qubesdb-daemon running for sys-firewall. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Sep 25, 2015
Member
And the sys-firewall is the netvm of that AppVM, right? Can you access
its QubesDB from dom0 (qubesdb-list -d sys-firewall /)?
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
|
And the Best Regards, |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Sep 25, 2015
Member
And the
sys-firewallis the netvm of that AppVM, right?
Yes.
Can you access its QubesDB from dom0 (qubesdb-list -d sys-firewall /)?
Yes, works. Lists everything.
Yes.
Yes, works. Lists everything. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Sep 25, 2015
Member
And the
sys-firewallis the netvm of that AppVM, right?
Ehrm. No. Sorry. my-whonix-ws's netvm is sys-whonix.
Ehrm. No. Sorry. my-whonix-ws's netvm is sys-whonix. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
sys-whonix also has qubesdb-daemon running. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Sep 25, 2015
Member
There is another issue in sys-whonix at the moment. But it's not related to Whonix. It also happened in Debian VMs to be earlier. The keyboard layout is messed up. querty even though I usually use qwertz. I had this before. It seems to be a race condition. After reboot it works. So the bug I am reporting here is perhaps just a follow up issue of the one I am describing at the moment.
|
There is another issue in sys-whonix at the moment. But it's not related to Whonix. It also happened in Debian VMs to be earlier. The keyboard layout is messed up. querty even though I usually use qwertz. I had this before. It seems to be a race condition. After reboot it works. So the bug I am reporting here is perhaps just a follow up issue of the one I am describing at the moment. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Sep 25, 2015
Member
qubesdb-read /qubes-keyboard currently fails in sys-whonix. qubesdb-list / works generally, but does not the list the /qubes-keyboard keyword.
|
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Sep 25, 2015
Member
Keyboard layout is also passed to the VM through QubesDB, so if there is
a problem with it, keyboard layout also will not be loaded.
Can you access QubesDB of sys-whonix from dom0?
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
|
Keyboard layout is also passed to the VM through QubesDB, so if there is Best Regards, |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Sep 25, 2015
Member
No.
In dom0.
qubesdb-list -d sys-whonix
Failed to connect to sys-whonix daemon
|
No. In dom0.
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Sep 25, 2015
Member
Ok, so here is the problem. Anything interesting in
/var/log/qubes/qubesdb.sys-whonix.log? Do you remember when
sys-whonix was started? Does it match start time of its
qubesdb-daemon process in dom0? Did you started sys-whonix just
after shutting it down (aka restart)?
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
|
Ok, so here is the problem. Anything interesting in Best Regards, |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Sep 25, 2015
Member
I guess it may be some race condition in starting qubesdb-daemon in
dom0, when the previous one is still running for the same VM (which was
just stopped). I've seen this for Windows VMs, but maybe it also happens
for Linux ones...
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
|
I guess it may be some race condition in starting Best Regards, |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Sep 25, 2015
Member
Anything interesting in
/var/log/qubes/qubesdb.sys-whonix.log?
/var/log/qubes/qubesdb.sys-whonix.log:
vchan closed
vchan reconnecting
vchan closed
Do you remember when
sys-whonixwas started?
No.
Did you started
sys-whonixjust after shutting it down (aka restart)?
Possibly. I often shut it down and restart right after for testing purposes.
No.
Possibly. I often shut it down and restart right after for testing purposes. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Sep 25, 2015
Member
Do you have enough info to make this ticket actionable / duplicate of something? Do you want more debug info? Or should I leave it that way for some more time for your consideration?
Just asking, because otherwise I would just try restart sys-whonix or the whole system as workaround.
|
Do you have enough info to make this ticket actionable / duplicate of something? Do you want more debug info? Or should I leave it that way for some more time for your consideration? Just asking, because otherwise I would just try restart sys-whonix or the whole system as workaround. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Sep 25, 2015
Member
Ok, I think I have all the information needed to fix this. So for now
you can simply restart sys-whonix to have it working again (make sure
that no qubesdb-daemon for it is running before starting it again)
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
|
Ok, I think I have all the information needed to fix this. So for now Best Regards, |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Sep 25, 2015
Member
Alright. Works now again. And btw I just now also was able to reproduce the qubes-keyboard issue with a Debian VM that I shutdown and restarted quickly which strengthens your hypothesis. (#1241 (comment))
|
Alright. Works now again. And btw I just now also was able to reproduce the qubes-keyboard issue with a Debian VM that I shutdown and restarted quickly which strengthens your hypothesis. (#1241 (comment)) |
adrelanos
changed the title from
000QubesVm.py: qubes.qdb.Error: (2, 'No such file or directory')
to
quickly restarting VM leads to race condition, VM startup and keyboard issues
Sep 25, 2015
marmarek
added this to the Release 3.0 milestone
Sep 25, 2015
marmarek
added
bug
C: core
P: major
labels
Sep 25, 2015
added a commit
to marmarek/old-qubes-core-admin
that referenced
this issue
Oct 2, 2015
added a commit
to marmarek/old-qubes-core-admin
that referenced
this issue
Oct 2, 2015
marmarek
closed this
in
marmarek/old-qubes-core-admin@4f04c62
Oct 2, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
schnaser
Jan 3, 2016
Has a fix been released for this? It also appears to happen when there are "a bunch" of entries in firewall.xml. I can currently reproduce this 100% by:
- Create a new VM. Do not start it.
- Paste the attached firewall.txt file into /var/lib/qubes/appvms/whatever/firewall.xml
- Attempt to start the VM.
- Get error
The firewall is nothing special IMO, just a list of the top 50 most popular sites. My banking VM where I first ran into this has 45 entries.
I notice that the error is slightly different, however so this may well be a separate issue.
schnaser
commented
Jan 3, 2016
|
Has a fix been released for this? It also appears to happen when there are "a bunch" of entries in firewall.xml. I can currently reproduce this 100% by:
The firewall is nothing special IMO, just a list of the top 50 most popular sites. My banking VM where I first ran into this has 45 entries. I notice that the error is slightly different, however so this may well be a separate issue. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
I think the problem with such "large" firewall is rather #1570 |
adrelanos commentedSep 25, 2015
By switching Qubes VM Manger Firewall tab settings back and forth, I managed to end up with an unstartable VM.
Can you make head or tail of this?