TurnKey Linux Virtual Appliance Library

Backup - Connection reset by peer

When I try to do a backup, during the uploading stage I eventually get a "failed (attemt #X, reason: error: [Errno 104] Connection reset by peer). Im assuming this is because my VM is on a server at home and I have low upload bandwidth. Are there any settings I can change, such as timeout or keep alives, to prevent my connection being dropped when I'm doing the backup?

Jeremy's picture

So it starts ok?

But eventually times out?

I don't know enough to be sure, but you could try reducing the volume size. By default it's 50MB but you can change it using the --volsize MB switch eg tklbam-backup --volsize 20

If it's not starting at all, it could be some networking issue too though. So it may pay to do some network troubleshooting. Being a home network I guess a proxy or firewall is unlikely (they are known to cause issue with stuff like this). But if you are getting internet to your appliance ok then that is less likely to be the problem. You can do a quick and dirty test for network connectivity using ping eg ping www.amazon.com

changing volsize worked

Thanks for the suggestion Jeremy, I tried changing volsize to 20 with no luck, once I lowered it to 5 I managed to get a successful backup.

Other than resulting in several uploads are there any downsides to using a volsize this low?

Jeremy's picture

Good stuff

Glad that worked for you.

And I am not aware of any problems that will cause. To be on the safe side though I would test your backup prior to needing to rely on it. Probably the quickest easiest way to test it is using a cloud server (via the Hub), although a new VM install of the relevant appliance would also work (although would be significantly slower).

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)