Bug #2361
openldv-uploader does not work with activerecord-3.2.1
100%
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
Updated by Vadim Mutilin over 12 years ago
- 2.3.5
- 3.0.3.
- /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)
Updated by MA Lele almost 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!
Updated by Evgeny Novikov over 10 years ago
- Status changed from New to Open
- Assignee set to Evgeny Novikov
Updated by Evgeny Novikov over 10 years ago
- Assignee changed from Evgeny Novikov to Vitaly Mordan
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.