ruby --version

ruby 2.1.8p440 (2015-12-16 revision 53160) [x86_64-linux-gnu]

 

uname –a

Linux gitlab 4.3.3-2-ARCH

 

mysql --version

mysql  Ver 14.14 Distrib 5.5.41, for debian-linux-gnu (x86_64) using 
readline 6.3

 

redis-server --version

Redis server v=2.8.4 sha=00000000:0 malloc=jemalloc-3.4.1 bits=64 
build=a44a05d76f06a5d9

 

Exit with exception:

Unable to save project: no implicit conversion of Fixnum into String

 

 

project.rb

  def create_or_update_import_data(data: nil, credentials: nil)

    project_import_data = import_data || build_import_data

    if data

      project_import_data.data ||= {}

      project_import_data.data = project_import_data.data.merge(data)

    end

    if credentials

==>*      project_import_data.credentials ||= {}*

      project_import_data.credentials = 
project_import_data.credentials.merge(credentials)

    end

 

    project_import_data.save

  end

 

Stacktrace:

["/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/encryptor-1.3.0/lib/encryptor.rb:66:in
 
`pbkdf2_hmac_sha1'",

"/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/encryptor-1.3.0/lib/encryptor.rb:66:in
 
`crypt'",

"/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/encryptor-1.3.0/lib/encryptor.rb:31:in
 
`encrypt'",

"/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/attr_encrypted-1.3.4/lib/attr_encrypted.rb:223:in
 
`encrypt'",

"/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/attr_encrypted-1.3.4/lib/attr_encrypted.rb:299:in
 
`encrypt'",

"/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/attr_encrypted-1.3.4/lib/attr_encrypted.rb:147:in
 
`block (2 levels) in attr_encrypted'",

*"/home/git/gitlab/app/models/project.rb:434:in 
`create_or_update_import_data'",*

"/home/git/gitlab/app/models/project.rb:413:in `import_url='",

"/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.6/lib/active_record/attribute_assignment.rb:54:in
 
`public_send'",

"/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.6/lib/active_record/attribute_assignment.rb:54:in
 
`_assign_attribute'",

"/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.6/lib/active_record/attribute_assignment.rb:41:in
 
`block in assign_attributes'",

"/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.6/lib/action_controller/metal/strong_parameters.rb:185:in
 
`each_pair'",

"/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.6/lib/action_controller/metal/strong_parameters.rb:185:in
 
`each_pair'",

"/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.6/lib/active_record/attribute_assignment.rb:35:in
 
`assign_attributes'",

"/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/attr_encrypted-1.3.4/lib/attr_encrypted/adapters/active_record.rb:28:in
 
`perform_attribute_assignment'",

"/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/attr_encrypted-1.3.4/lib/attr_encrypted/adapters/active_record.rb:35:in
 
`assign_attributes_with_attr_encrypted'",

"/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.6/lib/active_record/core.rb:566:in
 
`init_attributes'",

"/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.6/lib/active_record/core.rb:281:in
 
`initialize'",

"/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/default_value_for-3.0.1/lib/default_value_for.rb:142:in
 
`initialize'",

"/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/state_machines-activerecord-0.3.0/lib/state_machines/integrations/active_record.rb:454:in
 
`initialize'",

"/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.6/lib/active_record/inheritance.rb:61:in
 
`new'",

"/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.6/lib/active_record/inheritance.rb:61:in
 
`new'",

"/home/git/gitlab/app/services/projects/create_service.rb:12:in `execute'",

"/home/git/gitlab/app/controllers/projects_controller.rb:28:in `create'",



пятница, 6 мая 2016 г., 12:04:16 UTC+3 пользователь Maxim Shulga написал:
>
> Exception "no implicit conversion of Fixnum into String" is raised here 
> https://github.com/gitlabhq/gitlabhq/commit/a1a1d1f7de71f46787f12f1efa23346a2a6b1c29#diff-091778d5c1679dbdc51b6db971f68d22R424
>
> We have commented this and next line and now we're able to create new 
> project
>
> Any ideas about how is it possible?
>
>
> On Thursday, May 5, 2016 at 5:43:35 PM UTC+3, Maxim Shulga wrote:
>>
>> Hi all,
>>
>> We get "500" error during the project creation. File "production.log" 
>> contains this record 
>>
>> Parameters: {"utf8"=>"<E2><9C><93>", "authenticity_token"=>"[FILTERED]", 
>> "project"=>{"namespace_id"=>"3", "path"=>"qwe", "import_url"=>"[FILTERED]", 
>> "description"=>"", "visibility_level"=>"10"}}
>> Unable to save project: no implicit conversion of Fixnum into String
>> Completed 500 Internal Server Error in 63ms (ActiveRecord: 3.4ms)
>>
>> GitLab version 8.7.2. It's not memory issue, we have a lot free memory on 
>> this server
>>
>> Any help will be appreciated :)
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitlabhq+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/efe877d4-630e-44a5-aed0-a54cf97030dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to