Re: tarsnap-keygen: Error registering with server (too many network failures)

2016-04-14 Thread Colin Percival
On 04/14/16 07:43, John Noll wrote:
> I am having difficulty generating a key using tarsnap-keygen:
> 
> % sudo ./tarsnap-keygen --keyfile /root/tarsnap.key --user myn...@gmail.com
> --machine mybox
> [sudo] password for mel:
> Enter tarsnap account password:
> tarsnap-keygen: Connection lost, waiting 1 seconds before reconnecting
> tarsnap-keygen: Connection lost, waiting 2 seconds before reconnecting
> tarsnap-keygen: Too many network failures
> tarsnap-keygen: Error registering with server
> 
> [...] I'm guessing there's something
> wrong with my configuration or environment.  Any suggestions?

Does
# ping v1-0-0-server.tarsnap.com
get any responses?

-- 
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid


Re: tarsnap-keygen: Error registering with server (too many network failures)

2016-04-14 Thread John

On 04/14/2016 03:43 PM, John Noll wrote:

Greetings:
I am having difficulty generating a key using tarsnap-keygen:



A google search came up with one suggestion that port 9279 needs to be
opened for outgoing traffic, so I tried using ufw to achieve this:


1. You could test whether your firewall is the issue by disabling it 
entirely, trying tarsnap-keygen again, and then enabling once you know 
the answer.


sudo ufw disable
sudo ./tarsnap-keygen [etc...]
sudo ufw enable

2. Is there another firewall between your computer and the world? Even 
on my home network there's a firewall on my router.


John Harris
Information Processing Officer
The Common People


tarsnap-keygen: Error registering with server (too many network failures)

2016-04-14 Thread John Noll
Greetings:
I am having difficulty generating a key using tarsnap-keygen:

% sudo ./tarsnap-keygen --keyfile /root/tarsnap.key --user myn...@gmail.com
--machine mybox
[sudo] password for mel:
Enter tarsnap account password:
tarsnap-keygen: Connection lost, waiting 1 seconds before reconnecting
tarsnap-keygen: Connection lost, waiting 2 seconds before reconnecting
tarsnap-keygen: Too many network failures
tarsnap-keygen: Error registering with server

I am trying this on Ubuntu 14.04.4 using tarsnap-autoconf-1.0.37.

A google search came up with one suggestion that port 9279 needs to be
opened for outgoing traffic, so I tried using ufw to achieve this:

% sudo ufw status verbose
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), disabled (routed)
New profiles: skip

To Action  From
-- --  
22/tcp ALLOW INAnywhere
22/udp ALLOW INAnywhere
22/tcp (v6)ALLOW INAnywhere (v6)
22/udp (v6)ALLOW INAnywhere (v6)

9279/udp   ALLOW OUT   Anywhere
9279/tcp   ALLOW OUT   Anywhere
9279/udp (v6)  ALLOW OUT   Anywhere (v6)
9279/tcp (v6)  ALLOW OUT   Anywhere (v6)

Still no joy.  For completeness I also tried tarsnap-autoconf-1.0.31 and
the latest version from Github, same results; so I'm guessing there's
something wrong with my configuration or environment.  Any suggestions?

Thanks,
John Noll
Research Fellow
Lero - The Irish Software Research Centre
University of Limerick, V94 NYD3 Ireland