<div dir="ltr"><div dir="ltr">Thanks. I wonder why the relay is not showing up in the consensus, it is sending and reiceving data but is showing this error. 

ay 16 00:58:51.000 [warn] Received http status code 404 ("Not found") from server '<a href="http://45.62.242.212:9030/" target="_blank">45.62.242.212:9030</a>' while fetching consensus directory.  Heartbeat: It seems like we are not in the cached consensus. I wonder why might this might be. Thanks.<br clear="all"><div><div dir="ltr" class="gmail_signature"><div dir="ltr">--Keifer</div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 17, 2019 at 1:26 AM Neel Chauhan <<a href="mailto:neel@neelc.org">neel@neelc.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Keifer,<br>
<br>
I think your Cron script is problematic.<br>
<br>
The script:<br>
<br>
0 0 1 * * apt-get update apt update && apt install -y --only-upgrade tor <br>
killall tor tor<br>
<br>
Would kill Tor and since you don't have "&& tor" after the "killall <br>
tor", it is not restarting it.<br>
<br>
But I'd advise just giving up on cron. For automatic updates, you should <br>
look into unattended-upgrades instead of using cron.<br>
<br>
Also, forcefully killing Tor using cron isn't a good idea because it <br>
would terminate circuits using your relay instead of gracefully stopping <br>
them.<br>
<br>
Disclaimer: I don't run Debian on my relays. I run FreeBSD relays. I <br>
have used Debian on my desktop briefly in 2012 before switching to <br>
FreeBSD as a desktop. I have never **really** run Debian as a server so <br>
I can't help you further with unattended-upgrades.<br>
<br>
-Neel<br>
<br>
===<br>
<br>
<a href="https://www.neelc.org/" rel="noreferrer" target="_blank">https://www.neelc.org/</a><br>
<br>
On 2019-05-16 01:26, Keifer Bly wrote:<br>
> Hi all,<br>
> <br>
> So I am starting a new middle relay using a VPS hosted on Google Cloud<br>
> running Debian. though the relay is running, it is not appearing in<br>
> the consensus after 10 hours. Here is the tor log, any thoughts on<br>
> what is going on would be greatly appreciated thank you.<br>
> <br>
> May 15 18:23:47.096 [notice] Opening OR listener on <a href="http://0.0.0.0:65534" rel="noreferrer" target="_blank">0.0.0.0:65534</a> [1]<br>
> May 15 18:23:47.000 [notice] Parsing GEOIP IPv4 file<br>
> /usr/share/tor/geoip.<br>
> May 15 18:23:47.000 [notice] Parsing GEOIP IPv6 file<br>
> /usr/share/tor/geoip6.<br>
> May 15 18:23:47.000 [notice] Configured to measure statistics. Look<br>
> for the *-stats files that will first be written to the data directory<br>
> in 24 hours from now.<br>
> May 15 18:23:47.000 [warn] You are running Tor as root. You don't need<br>
> to, and you probably shouldn't.<br>
> May 15 18:23:47.000 [notice] Your Tor server's identity key<br>
> fingerprint is 'torworld 3A4E582092E7C6B822EC01F4D76F680F6C65B0A2'<br>
> May 15 18:23:47.000 [notice] Bootstrapped 0%: Starting<br>
> May 15 18:23:50.000 [notice] Bootstrapped 80%: Connecting to the Tor<br>
> network<br>
> May 15 18:23:51.000 [notice] Guessed our IP address as 35.238.140.120<br>
> (source: 193.23.244.244).<br>
> May 15 18:23:52.000 [notice] Bootstrapped 85%: Finishing handshake<br>
> with first hop<br>
> May 15 18:23:52.000 [notice] Bootstrapped 90%: Establishing a Tor<br>
> circuit<br>
> May 15 18:23:53.000 [notice] Tor has successfully opened a circuit.<br>
> Looks like client functionality is working.<br>
> May 15 18:23:53.000 [notice] Bootstrapped 100%: Done<br>
> May 15 18:23:53.000 [notice] Now checking whether ORPort<br>
> <a href="http://35.238.140.120:65534" rel="noreferrer" target="_blank">35.238.140.120:65534</a> [2] is reachable... (this may take up to 20<br>
> minutes -- look for log messages indicating success)<br>
> May 15 18:23:54.000 [notice] Self-testing indicates your ORPort is<br>
> reachable from the outside. Excellent.<br>
> May 15 18:23:56.000 [notice] Performing bandwidth self-test...done.<br>
> May 16 00:23:50.000 [notice] Heartbeat: It seems like we are not in<br>
> the cached consensus.<br>
> May 16 00:23:50.000 [notice] Heartbeat: Tor's uptime is 5:59 hours,<br>
> with 0 circuits open. I've sent 789 kB and received 7.41 MB.<br>
> May 16 00:23:50.000 [notice] Average packaged cell fullness: 100.000%.<br>
> TLS write overhead: 27%<br>
> May 16 00:23:50.000 [notice] Circuit handshake stats since last time:<br>
> 0/0 TAP, 6/6 NTor.<br>
> May 16 00:23:50.000 [notice] Since startup, we have initiated 0 v1<br>
> connections, 0 v2 connections, 0 v3 connections, and 8 v4 connections;<br>
> and received 1 v1 connections, 0 v2 connections, 0 v3 connections, and<br>
> 6 v4 connections.<br>
> May 16 00:23:50.000 [notice] DoS mitigation since startup: 0 circuits<br>
> rejected, 0 marked addresses. 0 connections closed. 0 single hop<br>
> clients refused.<br>
> May 16 00:58:51.000 [warn] Received http status code 404 ("Not found")<br>
> from server '<a href="http://45.62.242.212:9030" rel="noreferrer" target="_blank">45.62.242.212:9030</a> [3]' while fetching consensus<br>
> directory.<br>
> <br>
> I also had another thing I wanted to ask. I am working on a crontab<br>
> script to automatically update and restart the tor relay once a month<br>
> automatically, as I am already running a bridge on another network<br>
> that needs to be updated manually.<br>
> <br>
> Does this script look like it would get the job done? I don't have<br>
> much experience with crontab.<br>
> <br>
> # m h  dom mon dow   command<br>
> <br>
> 0 0 1 * * apt-get update apt update && apt install -y --only-upgrade<br>
> tor killall tor tor<br>
> root@instance-1:/home/keifer_bly#<br>
> <br>
> Thank you very much.<br>
> <br>
> --Keifer<br>
> <br>
> Links:<br>
> ------<br>
> [1] <a href="http://0.0.0.0:65534" rel="noreferrer" target="_blank">http://0.0.0.0:65534</a><br>
> [2] <a href="http://35.238.140.120:65534" rel="noreferrer" target="_blank">http://35.238.140.120:65534</a><br>
> [3] <a href="http://45.62.242.212:9030" rel="noreferrer" target="_blank">http://45.62.242.212:9030</a><br>
> _______________________________________________<br>
> tor-relays mailing list<br>
> <a href="mailto:tor-relays@lists.torproject.org" target="_blank">tor-relays@lists.torproject.org</a><br>
> <a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays" rel="noreferrer" target="_blank">https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays</a><br>
_______________________________________________<br>
tor-relays mailing list<br>
<a href="mailto:tor-relays@lists.torproject.org" target="_blank">tor-relays@lists.torproject.org</a><br>
<a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays" rel="noreferrer" target="_blank">https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays</a><br>
</blockquote></div>