<div dir="auto">Thanks will try. I know the tor process is not running as it never writes anything to the log file well over 30 minutes later. I tried checking if the tor process is running via cmd it is not. Is there a tor command to generate the geoip files? Thanks very much. </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 8, 2021, 5:17 AM Matt Traudt <<a href="mailto:pastly@torproject.org">pastly@torproject.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 4/7/21 23:15, Keifer Bly wrote:<br>
> Hi all,<br>
> <br>
> So I am attempting to start a new relay on Windows Server 2019. The<br>
> issue is though for an unspecified reason, the tor process just quits<br>
> when starting the relay:<br>
> <br>
> Here is the log file:<br>
> <br>
> image.png<br>
> <br>
> And then once  it gets to "now checking if qr port is reachable from the<br>
> outside" the tor process suddenly quits. Im running it as administrator<br>
> I am wondering why the process would suddenly stop for no apparent<br>
> reason on reaching this? Here is the torrc, though it seems to read that<br>
> no issue:<br>
> <br>
> SocksPort 0<br>
> ORPort 4555<br>
> Nickname testrelay<br>
> ContactInfo <a href="mailto:kk@gmail.com" target="_blank" rel="noreferrer">kk@gmail.com</a> <mailto:<a href="mailto:kk@gmail.com" target="_blank" rel="noreferrer">kk@gmail.com</a>><br>
> Log notice file c:\notices.log<br>
> ControlPort 9051<br>
> ExitPolicy reject *:*<br>
> <br>
> Though it seems to read the torrc file without any issue. Thanks.<br>
> --Keifer<br>
> <br>
<br>
Hi<br>
<br>
I'm not a windows user, and especially not a<br>
run-things-as-a-service-on-windows user.<br>
<br>
My first thought was you somehow unknowingly had RunAsDaemon set to 1.<br>
But after reading the man page[0] and checking your command line in the<br>
picture, I don't think this is it.<br>
<br>
But in the same spirit of the above: are you *sure* tor isn't<br>
successfully running in the background? You could check by seeing if<br>
anything is listening on its ORPort, by checking if the log file is<br>
getting newer lines than the console, and by the process explorer or<br>
whatever. (Aside: consider adding a "Log notice stdout" for debugging)<br>
<br>
What's the DataDirectory that Tor is trying to use? Maybe it's unable to<br>
create it and failing silently? I think silent failure would be<br>
considered a bug. Maybe set DataDirectory in the torrc.<br>
<br>
Finally, the last thing that stood out to me is the GeoIP lines in the<br>
log output. I've never seen "<default>" and I'm guessing<br>
C:\Users\Administrator\<default> doesn't exist. Perhaps there's a bad<br>
bug where Tor crashes (silently?) if the GeoIP files don't exist. It<br>
would be crazy if that existed, IMO, but maybe less crazy if it's a bug<br>
on Windows systems only. Running little-t tor manually--as a client or<br>
even as a relay--is much less common on Windows. The thing to try here<br>
is to specify GeoIPFile and GeoIPv6File in the torrc with the paths to<br>
the GeoIP files tor ships with (don't try getting a random database off<br>
the Internet: tor has its own format).<br>
<br>
Hope something here was helpful.<br>
<br>
Matt<br>
<br>
[0]:<br>
<br>
       RunAsDaemon 0|1<br>
           If 1, Tor forks and daemonizes to the<br>
           background. This option has no effect on<br>
           Windows; instead you should use the<br>
           --service command-line option. Can not<br>
           be changed while tor is running.<br>
           (Default: 0)<br>
<br>
_______________________________________________<br>
tor-relays mailing list<br>
<a href="mailto:tor-relays@lists.torproject.org" target="_blank" rel="noreferrer">tor-relays@lists.torproject.org</a><br>
<a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays" rel="noreferrer noreferrer" target="_blank">https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays</a><br>
</blockquote></div>