Project

General

Profile

Actions

Feature #2168

open

ldv-upload should check a database connection specified at the beginning

Added by Evgeny Novikov almost 13 years ago.

Status:
Open
Priority:
Normal
Category:
Infrastructure
Start date:
01/10/2012
Due date:
% Done:

0%

Estimated time:
Published in build:

Description

At the moment it unpacks archive and just then tries to upload data, but fails with:

  Task Load (0.0ms)   Mysql::Error: No database selected: SELECT * FROM `tasks` WHERE (`tasks`.`username` = 'joker' AND `tasks`.`timestamp` = '2012-01-08 01:25:00' AND `tasks`.`driver_spec` = 'drivers' AND `tasks`.`description` IS NULL AND `tasks`.`driver_spec_origin` = 'kernel') LIMIT 1                                                                                          

Results are uploaded to database.  You may view this and the other launches in that database at:
        http://localhost:8999/stats/index/name//host/kent/user/ldv/password/no                  

/usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract_adapter.rb:219:in `log': Mysql::Error: No database selected: SELECT * FROM `tasks` WHERE (`tasks`.`username` = 'joker' AND `tasks`.`timestamp` = '2012-01-08 01:25:00' AND `tasks`.`driver_spec` = 'drivers' AND `tasks`.`description` IS NULL AND `tasks`.`driver_spec_origin` = 'kernel')  LIMIT 1 (ActiveRecord::StatementInvalid)                                                                                   
        from /usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/mysql_adapter.rb:323:in `execute'                                                                                                                              ...                                           
        from /ldv/ldv-tools/bin/ldv-upload:141:in `from_xml'                                                                  
        from /ldv/ldv-tools/bin/ldv-upload:420

First of all one doesn't understand the problem indeed (that is specified connection options aren't valid), also "Results are uploaded to database..." shouldn't be printed on errors.

No data to display

Actions

Also available in: Atom PDF