M0ses / kanku

Kanku - Bridging the gap between Open-Build-Service and DevOPS
http://m0ses.github.io/kanku/
GNU General Public License v3.0
10 stars 6 forks source link

kanku-worker crashes after image download if database is not existant ... #20

Open M0ses opened 6 years ago

M0ses commented 6 years ago

... but build is not recognized as failed by kanku-dispatcher

From worker log:

[2018/01/12 18:27:14][DEBUG][12781] Kanku::Daemon::Worker 310 - EXCEPTION REFERENCE: DBIx::Class::Exception
[2018/01/12 18:27:14][ERROR][12781] Kanku::Daemon::Worker 319 - DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: image_download_history [for Statement "SELECT me.vm_image_url, me.vm_image_file, me.download_time FROM image_download_history me WHERE ( me.vm_image_url = ? )"] at /opt/kanku/bin/../lib/Kanku/Handler/ImageDownload.pm line 184
[2018/01/12 18:27:14][ERROR][12781] Kanku::Daemon::Worker 156 - encountered object 'DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: image_download_history [for Statement "SELECT me.vm_image_url, me.vm_image_file, me.download_time FROM image_download_history me WHERE ( me.vm_image_url = ? )"] at /opt/kanku/bin/../lib/Kanku/Handler/ImageDownload.pm line 184
', but neither allow_blessed, convert_blessed nor allow_tags settings are enabled (or TO_JSON/FREEZE method missing) at /opt/kanku/bin/../lib/Kanku/Daemon/Worker.pm line 321.