I just deleted my best running exit node to move to another vps.
I copied /etc/tor and /var/lib/tor + keys dir and moved it to the new vps. I double-checked the files/keys are the same but i still get a new fingerprint. Wtf is wrong with me?
Markus
Sent from my iPad
On Tue, Aug 23, 2016 at 10:00:57PM +0200, Markus Koch wrote:
I just deleted my best running exit node to move to another vps.
I copied /etc/tor and /var/lib/tor + keys dir and moved it to the new vps. I double-checked the files/keys are the same but i still get a new fingerprint. Wtf is wrong with me?
Here's the FAQ entry: https://www.torproject.org/docs/faq#UpgradeOrMove
It sounds like you did that though.
Sounds like it's time to debug and question your assumptions. :)
For example, were they both Debian systems, using the Tor deb? I am wondering in particular if the new Tor thinks it should be using that DataDirectory.
Do the log files give you any hints?
I'm guessing this is the 'niftyguineapig' relay?
--Roger
Sent from my iPad
On 23 Aug 2016, at 22:41, Roger Dingledine arma@mit.edu wrote:
On Tue, Aug 23, 2016 at 10:00:57PM +0200, Markus Koch wrote: I just deleted my best running exit node to move to another vps.
I copied /etc/tor and /var/lib/tor + keys dir and moved it to the new vps. I double-checked the files/keys are the same but i still get a new fingerprint. Wtf is wrong with me?
Here's the FAQ entry: https://www.torproject.org/docs/faq#UpgradeOrMove
It sounds like you did that though.
Sounds like it's time to debug and question your assumptions. :)
For example, were they both Debian systems, using the Tor deb? I am wondering in particular if the new Tor thinks it should be using that DataDirectory.
Yes and yes.
Do the log files give you any hints?
I copied all the stuff, checked it and deleted the old vps. So I only see the new logfiles and they are fine, tor finds everything but with a different fingerprint. If the config would be in a different dir on the old vps, how comes that there are config files in both dirs?
I'm guessing this is the 'niftyguineapig' relay?
Yes :(
--Roger
tor-relays mailing list tor-relays@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
On Tue, Aug 23, 2016 at 10:53:04PM +0200, Markus Koch wrote:
Do the log files give you any hints?
I copied all the stuff, checked it and deleted the old vps. So I only see the new logfiles and they are fine, tor finds everything but with a different fingerprint. If the config would be in a different dir on the old vps, how comes that there are config files in both dirs?
Well, a different fingerprint means a different identity key. Maybe you didn't copy the identity key over correctly?
I notice your old one was Tor version 0.2.7.6 and your new one is Tor 0.2.8.6. So maybe it is a newer Debian, or maybe the timing is just coincidence.
I also notice that your new Tor relay didn't start out with any past estimated bandwidth. That makes me think your state file didn't get transferred either. (These are all the BWHistory* lines.)
So I think your torrc did transfer correctly, but not your datadirectory.
--Roger
Okay :(
http://i.imgur.com/r1ZxAAH.png Is there anything important missing?
2016-08-24 0:22 GMT+02:00 Roger Dingledine arma@mit.edu:
On Tue, Aug 23, 2016 at 10:53:04PM +0200, Markus Koch wrote:
Do the log files give you any hints?
I copied all the stuff, checked it and deleted the old vps. So I only see the new logfiles and they are fine, tor finds everything but with a different fingerprint. If the config would be in a different dir on the old vps, how comes that there are config files in both dirs?
Well, a different fingerprint means a different identity key. Maybe you didn't copy the identity key over correctly?
I notice your old one was Tor version 0.2.7.6 and your new one is Tor 0.2.8.6. So maybe it is a newer Debian, or maybe the timing is just coincidence.
I also notice that your new Tor relay didn't start out with any past estimated bandwidth. That makes me think your state file didn't get transferred either. (These are all the BWHistory* lines.)
So I think your torrc did transfer correctly, but not your datadirectory.
--Roger
tor-relays mailing list tor-relays@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
On 2016-08-24 at 00:41, Markus Koch wrote:
Okay :(
http://i.imgur.com/r1ZxAAH.png Is there anything important missing?
Well, it looks like wrong permissions to me. The files and the directory is owned by your current user "bunny". Is this also the tor user, or is tor using the user "tor" (which should be the default)?
Currently, no other user but "bunny" can read from or write to those files and it's the only user that can look into the current directory.
Best, Michael
Okay, I should have said that this is my backup server ... so ...
old tor exit -> backup server -> new VPS
its running on the new VPS with the right permissions :)
2016-08-24 0:44 GMT+02:00 Michael Armbruster tor@armbrust.me:
On 2016-08-24 at 00:41, Markus Koch wrote:
Okay :(
http://i.imgur.com/r1ZxAAH.png Is there anything important missing?
Well, it looks like wrong permissions to me. The files and the directory is owned by your current user "bunny". Is this also the tor user, or is tor using the user "tor" (which should be the default)?
Currently, no other user but "bunny" can read from or write to those files and it's the only user that can look into the current directory.
Best, Michael
tor-relays mailing list tor-relays@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
This seems to be only the content of the keys/ subdirectory… my relay also has some other files in /var/lib/tor/, most significantly (it would seem) a fingerprint file. Did you copy these other files as well, and they’re just not included in the screenshot?
On 24.08.2016 00:48, Markus Koch wrote:
Okay, I should have said that this is my backup server ... so ...
old tor exit -> backup server -> new VPS
its running on the new VPS with the right permissions :)
2016-08-24 0:44 GMT+02:00 Michael Armbruster tor@armbrust.me:
On 2016-08-24 at 00:41, Markus Koch wrote:
Okay :(
http://i.imgur.com/r1ZxAAH.png Is there anything important missing?
Well, it looks like wrong permissions to me. The files and the directory is owned by your current user "bunny". Is this also the tor user, or is tor using the user "tor" (which should be the default)?
Currently, no other user but "bunny" can read from or write to those files and it's the only user that can look into the current directory.
Best, Michael
tor-relays mailing list tor-relays@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
tor-relays mailing list tor-relays@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
Yep, got this too
http://i.imgur.com/R7wsC1I.png
2016-08-24 0:50 GMT+02:00 Lucas Werkmeister mail@lucaswerkmeister.de:
This seems to be only the content of the keys/ subdirectory… my relay also has some other files in /var/lib/tor/, most significantly (it would seem) a fingerprint file. Did you copy these other files as well, and they’re just not included in the screenshot?
On 24.08.2016 00:48, Markus Koch wrote:
Okay, I should have said that this is my backup server ... so ...
old tor exit -> backup server -> new VPS
its running on the new VPS with the right permissions :)
2016-08-24 0:44 GMT+02:00 Michael Armbruster tor@armbrust.me:
On 2016-08-24 at 00:41, Markus Koch wrote:
Okay :(
http://i.imgur.com/r1ZxAAH.png Is there anything important missing?
Well, it looks like wrong permissions to me. The files and the directory is owned by your current user "bunny". Is this also the tor user, or is tor using the user "tor" (which should be the default)?
Currently, no other user but "bunny" can read from or write to those files and it's the only user that can look into the current directory.
Best, Michael
tor-relays mailing list tor-relays@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
tor-relays mailing list tor-relays@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
tor-relays mailing list tor-relays@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
Roger Dingledine:
On Tue, Aug 23, 2016 at 10:53:04PM +0200, Markus Koch wrote:
Do the log files give you any hints?
I copied all the stuff, checked it and deleted the old vps. So I only see the new logfiles and they are fine, tor finds everything but with a different fingerprint. If the config would be in a different dir on the old vps, how comes that there are config files in both dirs?
Well, a different fingerprint means a different identity key. Maybe you didn't copy the identity key over correctly?
Just an idea: how about having a built-in feature in tor to backup/restore? This feature could make an "archive" with correct metadata. Thus relay operator won't bother to collect all relevant files and correct permissions. Also it would make it much easier to move a relay to absolutely different system (E.g. tor user was `debian-tor` and it's `_tor` on the new one. Also different locations, like Windows/Darwin/BSDs/Linux).
Asking for comments before creating a ticket since this idea can be inherently wrong.
Thanks, -- Ivan Markin
tor-relays@lists.torproject.org