{"action":"reopened","issue":{"url":"https://api.github.com/repos/backup/backup/issues/705","labels_url":"https://api.github.com/repos/backup/backup/issues/705/labels{/name}","comments_url":"https://api.github.com/repos/backup/backup/issues/705/comments","events_url":"https://api.github.com/repos/backup/backup/issues/705/events","html_url":"https://github.com/backup/backup/issues/705","id":109665122,"number":705,"title":"FTP closes connection and Local storage","user":{"login":"noff","id":937186,"avatar_url":"https://avatars.githubusercontent.com/u/937186?v=3","gravatar_id":"","url":"https://api.github.com/users/noff","html_url":"https://github.com/noff","followers_url":"https://api.github.com/users/noff/followers","following_url":"https://api.github.com/users/noff/following{/other_user}","gists_url":"https://api.github.com/users/noff/gists{/gist_id}","starred_url":"https://api.github.com/users/noff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noff/subscriptions","organizations_url":"https://api.github.com/users/noff/orgs","repos_url":"https://api.github.com/users/noff/repos","events_url":"https://api.github.com/users/noff/events{/privacy}","received_events_url":"https://api.github.com/users/noff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-04T06:00:26Z","updated_at":"2015-10-09T10:16:27Z","closed_at":null,"body":"Hello. Today received this log\r\n\r\n```\r\n[2015/10/03 21:30:06][info] Performing Backup for 'R46 shard 00 (shard00)'!\r\n[2015/10/03 21:30:06][info] [ backup 4.2.0 : ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux] ]\r\n[2015/10/03 21:30:06][info] Database::PostgreSQL Started...\r\n[2015/10/03 21:30:06][info] Using Compressor::Gzip for compression.\r\n[2015/10/03 21:30:06][info]   Command: '/bin/gzip'\r\n[2015/10/03 21:30:06][info]   Ext: '.gz'\r\n[2015/10/03 22:08:00][info] Database::PostgreSQL Finished!\r\n[2015/10/03 22:08:00][info] Packaging the backup files...\r\n[2015/10/03 22:08:00][info] Running system utility 'tar'...\r\n[2015/10/03 22:08:00][info] tar:STDOUT: tar (GNU tar) 1.26\r\n[2015/10/03 22:08:00][info] tar:STDOUT: Copyright (C) 2011 Free Software Foundation, Inc.\r\n[2015/10/03 22:08:00][info] tar:STDOUT: License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.\r\n[2015/10/03 22:08:00][info] tar:STDOUT: This is free software: you are free to change and redistribute it.\r\n[2015/10/03 22:08:00][info] tar:STDOUT: There is NO WARRANTY, to the extent permitted by law.\r\n[2015/10/03 22:08:00][info] tar:STDOUT: \r\n[2015/10/03 22:08:00][info] tar:STDOUT: Written by John Gilmore and Jay Fenlason.\r\n[2015/10/03 22:10:16][info] Packaging Complete!\r\n[2015/10/03 22:10:16][info] Cleaning up the temporary files...\r\n[2015/10/03 22:10:17][info] Storage::FTP Started...\r\n[2015/10/03 22:10:58][info] Storing 'ftp.selcdn.ru:backup/r46_a00/shard00/2015.10.03.21.30.06/shard00.tar'...\r\n[2015/10/03 23:25:51][info] Storage::SFTP Started...\r\n[2015/10/03 23:25:52][info] Storing 'hackday.ru:backup/r46_a00/shard00/2015.10.03.21.30.06/shard00.tar'...\r\n[2015/10/04 00:23:23][info] Cycling Started...\r\n[2015/10/04 00:23:23][info] Storage::SFTP Finished!\r\n[2015/10/04 00:23:23][info] Storage::Local Started...\r\n[2015/10/04 00:23:23][info] Storing '/home/rails/backups/r46_a00/shard00/2015.10.03.21.30.06/shard00.tar'...\r\n[2015/10/04 00:23:23][info] Cycling Started...\r\n[2015/10/04 00:23:23][info] Removing backup package dated 2015.09.28.21.30.14...\r\n[2015/10/04 00:23:23][info] Storage::Local Finished!\r\n[2015/10/04 00:23:23][error] Model::Error: Backup for R46 shard 00 (shard00) Failed!\r\n[2015/10/04 00:23:23][error] --- Wrapped Exception ---\r\n[2015/10/04 00:23:23][error] Net::FTPTempError: 426 Transfer aborted.  Data connection closed.\r\n[2015/10/04 00:23:23][error] \r\n[2015/10/04 00:23:23][error] Backtrace:\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/net/ftp.rb:325:in `getresp'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/net/ftp.rb:558:in `rescue in storbinary'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/net/ftp.rb:537:in `storbinary'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/net/ftp.rb:689:in `putbinaryfile'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/net/ftp.rb:717:in `put'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/gems/ruby-2.2.3/bundler/gems/backup-4057a4b2dac8/lib/backup/storage/ftp.rb:58:in `block (2 levels) in transfer!'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/gems/ruby-2.2.3/bundler/gems/backup-4057a4b2dac8/lib/backup/storage/ftp.rb:54:in `each'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/gems/ruby-2.2.3/bundler/gems/backup-4057a4b2dac8/lib/backup/storage/ftp.rb:54:in `block in transfer!'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/gems/ruby-2.2.3/bundler/gems/backup-4057a4b2dac8/lib/backup/storage/ftp.rb:46:in `block in connection'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/net/ftp.rb:135:in `open'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/gems/ruby-2.2.3/bundler/gems/backup-4057a4b2dac8/lib/backup/storage/ftp.rb:44:in `connection'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/gems/ruby-2.2.3/bundler/gems/backup-4057a4b2dac8/lib/backup/storage/ftp.rb:51:in `transfer!'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/gems/ruby-2.2.3/bundler/gems/backup-4057a4b2dac8/lib/backup/storage/base.rb:45:in `perform!'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/gems/ruby-2.2.3/bundler/gems/backup-4057a4b2dac8/lib/backup/model.rb:334:in `block in store!'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/gems/ruby-2.2.3/bundler/gems/backup-4057a4b2dac8/lib/backup/model.rb:332:in `map'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/gems/ruby-2.2.3/bundler/gems/backup-4057a4b2dac8/lib/backup/model.rb:332:in `store!'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/gems/ruby-2.2.3/bundler/gems/backup-4057a4b2dac8/lib/backup/model.rb:306:in `block in procedures'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/gems/ruby-2.2.3/bundler/gems/backup-4057a4b2dac8/lib/backup/model.rb:269:in `call'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/gems/ruby-2.2.3/bundler/gems/backup-4057a4b2dac8/lib/backup/model.rb:269:in `block in perform!'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/gems/ruby-2.2.3/bundler/gems/backup-4057a4b2dac8/lib/backup/model.rb:268:in `each'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/gems/ruby-2.2.3/bundler/gems/backup-4057a4b2dac8/lib/backup/model.rb:268:in `perform!'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/gems/ruby-2.2.3/bundler/gems/backup-4057a4b2dac8/lib/backup/cli.rb:156:in `perform'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/gems/ruby-2.2.3/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/gems/ruby-2.2.3/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/gems/ruby-2.2.3/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/gems/ruby-2.2.3/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/gems/ruby-2.2.3/bundler/gems/backup-4057a4b2dac8/bin/backup:5:in `<top (required)>'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/gems/ruby-2.2.3/bin/backup:23:in `load'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/gems/ruby-2.2.3/bin/backup:23:in `<main>'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/gems/ruby-2.2.3/bin/ruby_executable_hooks:15:in `eval'\r\n[2015/10/04 00:23:23][error]   /home/rails/.rvm/gems/ruby-2.2.3/bin/ruby_executable_hooks:15:in `<main>'\r\n[2015/10/04 00:23:23][info] Sending notification using Notifier::Mail...\r\n```\r\n\r\nLooks like gem tries to store into different storages simultaneously and get error when moved file Local during storing to FTP. This part:\r\n\r\n```\r\n[2015/10/03 22:10:17][info] Storage::FTP Started...\r\n[2015/10/03 22:10:58][info] Storing 'ftp.selcdn.ru:backup/r46_a00/shard00/2015.10.03.21.30.06/shard00.tar'...\r\n[2015/10/03 23:25:51][info] Storage::SFTP Started...\r\n[2015/10/03 23:25:52][info] Storing 'hackday.ru:backup/r46_a00/shard00/2015.10.03.21.30.06/shard00.tar'...\r\n[2015/10/04 00:23:23][info] Cycling Started...\r\n[2015/10/04 00:23:23][info] Storage::SFTP Finished!\r\n[2015/10/04 00:23:23][info] Storage::Local Started...\r\n[2015/10/04 00:23:23][info] Storing '/home/rails/backups/r46_a00/shard00/2015.10.03.21.30.06/shard00.tar'...\r\n[2015/10/04 00:23:23][info] Cycling Started...\r\n[2015/10/04 00:23:23][info] Removing backup package dated 2015.09.28.21.30.14...\r\n[2015/10/04 00:23:23][info] Storage::Local Finished!\r\n[2015/10/04 00:23:23][error] Model::Error: Backup for R46 shard 00 (shard00) Failed!\r\n```\r\n\r\nMy configuration:\r\n\r\n```\r\nBackup::Model.new(:shard00, 'R46 shard 00') do\r\n#  split_into_chunks_of 1000\r\n\r\n  database PostgreSQL do |db|\r\n    ...\r\n  end\r\n\r\n  # Using default config from config.rb\r\n  store_with FTP do |server|\r\n  end\r\n\r\n  store_with SFTP do |server|\r\n  end\r\n\r\n  store_with Local do |local|\r\n    local.keep = 5\r\n  end\r\n\r\n\r\n  compress_with Gzip\r\n\r\n  notify_by Mail do |mail|\r\n  end\r\n\r\n   notify_by Pushover do |pushover|\r\n   end\r\n\r\nend\r\n```"}}