Project

General

Profile

Actions

Bug #2361

open

ldv-uploader does not work with activerecord-3.2.1

Added by Vadim Mutilin almost 13 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Start date:
02/01/2012
Due date:
% Done:

100%

Estimated time:
Detected in build:
svn
Platform:
Published in build:

Description

activerecord-3.2.1 comes for ruby 1.9

/mnt/cluster/ruby19/lib64/ruby/gems/1.9.1/gems/activerecord-3.2.1/lib/active_record/reflection.rb:366:in `primary_key': Unknown primary key for table processes in model Processe. (ActiveRecord::UnknownPrimaryKey)
from /mnt/cluster/ruby19/lib64/ruby/gems/1.9.1/gems/activerecord-3.2.1/lib/active_record/reflection.rb:216:in `association_primary_key'
from /mnt/cluster/ruby19/lib64/ruby/gems/1.9.1/gems/activerecord-3.2.1/lib/active_record/associations/has_many_association.rb:104:in `foreign_key_present?'
from /mnt/cluster/ruby19/lib64/ruby/gems/1.9.1/gems/activerecord-3.2.1/lib/active_record/associations/association.rb:165:in `find_target?'
from /mnt/cluster/ruby19/lib64/ruby/gems/1.9.1/gems/activerecord-3.2.1/lib/active_record/associations/collection_association.rb:332:in `load_target'
from /mnt/cluster/ruby19/lib64/ruby/gems/1.9.1/gems/activerecord-3.2.1/lib/active_record/associations/collection_association.rb:129:in `concat'
from /mnt/cluster/ruby19/lib64/ruby/gems/1.9.1/gems/activerecord-3.2.1/lib/active_record/associations/collection_proxy.rb:117:in `<<'
from /home/cluser/opt/ldv/bin/ldv-upload:588:in `block in <main>'
from /home/cluser/opt/ldv/bin/ldv-upload:587:in `each'
from /home/cluser/opt/ldv/bin/ldv-upload:587:in `<main>'


Files

jian.pax (294 KB) jian.pax test archive Vadim Mutilin, 02/01/2012 07:30 PM

Related issues 1 (0 open1 closed)

Related to Linux Driver Verification - Feature #3382: ldv-upload is too slowClosedVitaly Mordan08/31/2012

Actions
Actions #1

Updated by Vadim Mutilin almost 13 years ago

Known working configurations of activerecord gem are:
  • 2.3.5
  • 3.0.3.
Known problems:
  • /var/lib/gems/1.8/gems/activerecord-3.1.3/lib/active_record/validations.rb:76:in `perform_validations': undefined method `[]' for true:TrueClass (NoMethodError)
  • /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.2.1/lib/active_record/reflection.rb:366:in `primary_key': Unknown primary key for table processes in model Processe. (ActiveRecord::UnknownPrimaryKey)
Actions #2

Updated by MA Lele about 12 years ago

Vadim Mutilin wrote:
Known working configurations of activerecord gem are:
  • 2.3.5
  • 3.0.3.

Thanks.
It works !
I came across the same problem above using the 3.2.8 version of activerecord.
So, I just uninstall the 3.2.8 and install the 3.0.3 version. Then, the upload succeeds and the results are on the website!

Actions #3

Updated by Evgeny Novikov over 10 years ago

  • Status changed from New to Open
  • Assignee set to Evgeny Novikov
Actions #4

Updated by Evgeny Novikov over 10 years ago

  • Assignee changed from Evgeny Novikov to Vitaly Mordan
Actions #5

Updated by Vitaly Mordan over 10 years ago

  • Status changed from Open to Resolved
  • % Done changed from 0 to 100

This issue was resolved in ldv-upload-2 which is written in perl and does not use ruby gems.
The test archive jinx.pax was successfully uploaded with this script.

Actions #6

Updated by Evgeny Novikov over 10 years ago

So, Vadim can close the issue.

Actions

Also available in: Atom PDF