Can the requisite dependecies have debug turned on and the output captured? Is this on bare metal, a VM, a cloud host, or is this error appearing regardless?<div><br></div><div>--John<br><br>On Friday, June 10, 2016, Patrick Schleizer <<a href="mailto:adrelanos@riseup.net">adrelanos@riseup.net</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Damian,<br>
<br>
I would very much appreciate your help. I may have a misunderstanding of<br>
how python-stem works or perhaps found a bug. It is race condition<br>
happening in Qubes-Whonix related to backups. I might be able to<br>
reproduce it in plain Debian, but perhaps you already know what is going<br>
on here.<br>
<br>
Steps to reproduce:<br>
<br>
sudo su<br>
<br>
service tor@default stop<br>
<br>
rm /var/lib/tor/*<br>
<br>
run a small python-stem based script [1] as user "user":<br>
<br>
/usr/lib/anon-shared-helper-scripts/tor_bootstrap_check.py 127.0.0.1 9050 1<br>
<br>
Unexpected behavior:<br>
<br>
sudo ls -la /var/lib/tor<br>
<br>
total 10988<br>
drwx--S---  3 sdwdate kvm     4096 Jun 10 20:28 .<br>
drwxr-xr-x 50 root    root    4096 Jun 10 20:50 ..<br>
-rw-------  1 sdwdate kvm    20442 Jun  5 05:14 cached-certs<br>
-rw-------  1 sdwdate kvm  1405911 Jun 10 20:25 cached-microdesc-consensus<br>
-rw-------  1 sdwdate kvm  7440585 Jun  6 19:11 cached-microdescs<br>
-rw-------  1 sdwdate kvm  2359137 Jun 10 20:25 cached-microdescs.new<br>
-rw-------  1 sdwdate kvm        0 Jun 10 18:58 lock<br>
-rw-------  1 sdwdate kvm     3535 Jun 10 20:28 state<br>
drwxrwsr-x  2 sdwdate kvm     4096 Jun 10 18:31 .tor<br>
<br>
Why of everything it picks sdwdate:kvm as owner:group is a mystery to<br>
me. Folder /var/lib/tor/.tor is entirely undesired. Worse are the messed<br>
up folder permissions.<br>
<br>
python-stem should not result in changes in the file system? It should<br>
just connect to Tor using ControlPort / ControlSocket? How can these<br>
permission issues be avoided?<br>
<br>
By answering to this mail, your reply will be shown on the whonix-devel<br>
public mailing list for others to profit from it.<br>
<br>
Cheers,<br>
Patrick<br>
<br>
[1]<br>
<a href="https://github.com/Whonix/anon-shared-helper-scripts/blob/master/usr/lib/anon-shared-helper-scripts/tor_bootstrap_check.py" target="_blank">https://github.com/Whonix/anon-shared-helper-scripts/blob/master/usr/lib/anon-shared-helper-scripts/tor_bootstrap_check.py</a><br>
_______________________________________________<br>
You are receiving this e-mail because you subscribed Whonix-devel mailing list. To unsubscribe visit <a href="https://www.whonix.org/cgi-bin/mailman/listinfo/whonix-devel" target="_blank">https://www.whonix.org/cgi-bin/mailman/listinfo/whonix-devel</a> or mail "unsubscribe" to <a href="javascript:;" onclick="_e(event, 'cvml', 'Whonix-devel-unsubscribe@whonix.org')">Whonix-devel-unsubscribe@whonix.org</a>.<br>
<br>
Sie erhalten diese E-Mail, weil Sie die Whonix-devel Mailingliste aboniert haben. Zum abbestellen besuchen Sie <a href="https://www.whonix.org/cgi-bin/mailman/listinfo/whonix-devel" target="_blank">https://www.whonix.org/cgi-bin/mailman/listinfo/whonix-devel</a> oder mailen Sie "unsubscribe" an <a href="javascript:;" onclick="_e(event, 'cvml', 'Whonix-devel-unsubscribe@whonix.org')">Whonix-devel-unsubscribe@whonix.org</a>.</blockquote></div><br><br>-- <br><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>"If you're at the end of your rope, tie a knot in it and hang on." ~~Thomas Jefferson<br><br>"Our country right or wrong. When right, to be kept right: when wrong, to be put right." ~~Carl Schurz<br><br></div>"Vitality in friendships lies in honoring differences, not just enjoying the similarities" ~~J. Fredericks<br><br>"Commerce with all nations, alliance with none, should be our motto" ~~Thomas Jefferson<br><br>To any NSA or FBI agents reading this: please consider whether 
defending the US Constitution against all enemies, foreign or domestic, 
requires you to follow Snowden's example.<br></div></div></div></div></div></div></div></div></div></div></div></div></div><br>