mt-aws-glacier icon indicating copy to clipboard operation
mt-aws-glacier copied to clipboard

restore-completed failing for version 0 journals

Open streber42 opened this issue 9 years ago • 5 comments

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.

streber42 avatar Jun 26 '15 17:06 streber42

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

vsespb avatar Jun 26 '15 18:06 vsespb

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

streber42 avatar Jun 26 '15 18:06 streber42

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

vsespb avatar Jun 26 '15 18:06 vsespb

@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

AllaDounia avatar Jan 17 '18 09:01 AllaDounia

@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.

rodrigoross avatar Jan 11 '19 16:01 rodrigoross