vsespb / mt-aws-glacier

Perl Multithreaded Multipart sync to Amazon Glacier
http://mt-aws.com/
GNU General Public License v3.0
536 stars 57 forks source link

restore-completed failing for version 0 journals #114

Open streber42 opened 9 years ago

streber42 commented 9 years ago

I was trying to restore my files with a version 0 journal and I'd get this error: UNEXPECTED ERROR (parent): at /usr/share/perl5/App/MtAws/QueueJob/Download.pm line 43.

which I was able to track down to mtime being set to undef for Version 0 journal entries.

So I hacked Journal.pm to set mtime to $time+0 and it works now. Not sure what the proper fix would be.

It also failed for a restored inventory that was version B since that was also setting mtime to undef.

vsespb commented 9 years ago

hm, that's weird! I am sure I tested all variants. thanks for report - I'll investigate, check again.

streber42 commented 9 years ago

I can send you the journal file if it would be helpful.

vsespb commented 9 years ago

Yes, would be helpful - email is vs at vs-dev dot com Also full command line with all parameters, just in case.

AllaDounia commented 6 years ago

@vsespb I'm having the same issue as this and I'm using a journal that I generated using the retrieve/download Inventory. How did you guys fix this issue , and by the way it worked for the first time

rodrigoross commented 5 years ago

@vsespb like @AllaDounia I'm too having the same problem using journal generated with the retrieve/download inventory commands. I'll try to look in how @streber42 fixed the issue, but with there is any news would appreciate that.

UNEXPECTED ERROR (parent): at /etc/aws-glacier/lib/App/MtAws/QueueJob/Download.pm line 43. App::MtAws::QueueJob::Download::init('App::MtAws::QueueJob::Download=HASH(0x2cda5a0)') called at /etc/aws-glacier/lib/App/MtAws/QueueJob.pm line 38 App::MtAws::QueueJob::new('App::MtAws::QueueJob::Download', 'archive_id', 'l6taMJN0uKAqkzie_HEWuGAiKLyJBorCSxcmnpghxMQwYzFoJbiZk673hLRAx...', 'filename', '/glacier-bkp/l6taMJN0uKAqkzie_HEWuGAiKLyJBorCSxcmnpghxMQwYzFo...', 'relfilename', 'l6taMJN0uKAqkzie_HEWuGAiKLyJBorCSxcmnpghxMQwYzFoJbiZk673hLRAx...', 'size', 4194304, ...) called at /etc/aws-glacier/lib/App/MtAws/QueueJob/FetchAndDownload.pm line 73 App::MtAws::QueueJob::FetchAndDownload::next_download('App::MtAws::QueueJob::FetchAndDownload=HASH(0x22d14f0)') called at /etc/aws-glacier/lib/App/MtAws/QueueJob/FetchAndDownload.pm line 86 App::MtAws::QueueJob::FetchAndDownload::__ANON__() called at /etc/aws-glacier/lib/App/MtAws/QueueJob/Iterator.pm line 47 App::MtAws::QueueJob::Iterator::get_next_itt('App::MtAws::QueueJob::Iterator=HASH(0x2849458)') called at /etc/aws-glacier/lib/App/MtAws/QueueJob/Iterator.pm line 100 App::MtAws::QueueJob::Iterator::on_itt_and_jobs('App::MtAws::QueueJob::Iterator=HASH(0x2849458)') called at /etc/aws-glacier/lib/App/MtAws/QueueJob.pm line 99 App::MtAws::QueueJob::next('App::MtAws::QueueJob::Iterator=HASH(0x2849458)') called at /etc/aws-glacier/lib/App/MtAws/QueueJob.pm line 88 App::MtAws::QueueJob::next('App::MtAws::QueueJob::FetchAndDownload=HASH(0x22d14f0)') called at /etc/aws-glacier/lib/App/MtAws/QueueEngine.pm line 78 App::MtAws::QueueEngine::process('App::MtAws::ParentWorker=HASH(0x2844518)', 'App::MtAws::QueueJob::FetchAndDownload=HASH(0x22d14f0)') called at /etc/aws-glacier/lib/App/MtAws/ParentWorker.pm line 83 App::MtAws::ParentWorker::process_task('App::MtAws::ParentWorker=HASH(0x2844518)', 'App::MtAws::QueueJob::FetchAndDownload=HASH(0x22d14f0)', 'App::MtAws::Journal=HASH(0x25f7b00)') called at /etc/aws-glacier/lib/App/MtAws.pm line 276 App::MtAws::__ANON__() called at /etc/aws-glacier/lib/App/MtAws/ForkEngine.pm line 58 eval {...} called at /etc/aws-glacier/lib/App/MtAws/ForkEngine.pm line 58 App::MtAws::ForkEngine::with_forks(1, 'HASH(0x28501d8)', 'CODE(0x28502e0)') called at /etc/aws-glacier/lib/App/MtAws.pm line 283 App::MtAws::process() called at /etc/aws-glacier/lib/App/MtAws.pm line 121 eval {...} called at /etc/aws-glacier/lib/App/MtAws.pm line 121 App::MtAws::main() called at /etc/aws-glacier/mtglacier line 5

The message that I received when trying the restore-completed.