Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Error 500 to create projects after update #4907

gfelizola opened this Issue Aug 26, 2013 · 2 comments


None yet
2 participants

I'm trying to update from 5.4 to 6.0 and when a run some migrations steps, I get this Ruby error.

The application runs ok, but when I try to create a new project, I get an error 500.

ActionView::Template::Error (undefined method `import_url' for #<Project:0x0000000736c8e0>):
40: = f.label :import_url do
41: %span Import existing repo
42: .controls
43: = f.text_field :import_url, class: 'input-xlarge', placeholder: 'https://github.com/randx/six.git'
44: .light
45: URL must be cloneable
46: .control-group
app/views/projects/new.html.haml:43:in `block in    _app_views_projects_new_html_haml__1327387234309586667_59552960'
app/views/projects/new.html.haml:8:in `_app_views_projects_new_html_haml__1327387234309586667_59552960'

When i run this: sudo -u git -H bundle exec rake migrate_global_projects RAILS_ENV=production
I got the same error with the attr import_url.

And when I run: sudo -u git -H bundle exec rake migrate_keys RAILS_ENV=production
I get that: undefined method 'fingerprint=' for #<Key:0x000000072c2b60>

Had the same issue - it was fixed after reboot

I rebooted and redo the migration.
But this always showme that the users_groups table already exists. So I dumped the database, reinstalled gitlab and imported the dump back to the database.

After that everything works fine.

@gfelizola gfelizola closed this Aug 28, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment