Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #2295

Closed
Open
Created Dec 17, 2012 by Administrator@rootOwner

backup_create gives error

Created by: mthibaut

Hi,

When using backup_create on 2.9.1 or 3.0.1 on the same sqlite3 database file, I get this error:

$ bundle exec rake gitlab:app:backup_create Dumping database tables:

  • Dumping table events... [DONE]
  • Dumping table groups... [DONE]
  • Dumping table issues... [DONE]
  • Dumping table keys... [DONE]
  • Dumping table merge_requests... [DONE]
  • Dumping table milestones... [DONE]
  • Dumping table notes... [DONE]
  • Dumping table projects... [DONE]
  • Dumping table protected_branches... [DONE]
  • Dumping table services... [DONE]
  • Dumping table snippets... [DONE]
  • Dumping table taggings... [DONE]
  • Dumping table tags... [DONE]
  • Dumping table users... [DONE]
  • Dumping table users_projects... [DONE]
  • Dumping table web_hooks... [DONE]
  • Dumping table wikis... [DONE]
  • Dumping table schema_migrations... [DONE] Dumping repositories: rake aborted! undefined method second' for nil:NilClass /var/lib/gitlab/gitlab/lib/tasks/gitlab/backup.rake:118:inblock (3 levels) in <top (required)>' /var/lib/gitlab/gitlab/lib/tasks/gitlab/backup.rake:9:in `block (3 levels) in <top (required)>' Tasks: TOP => gitlab:app:repo_dump (See full trace by running task with --trace)

This is a production gitlab instance with about 15 repositories inside it, so the list of repos is not empty. "bundle exec rake gitlab:app:status RAILS_ENV=production" works fine, and the instance runs happily.

The only thing that doesn't work is creating a backup, which means that I cannot migrate... Please help!

Assignee
Assign to
Time tracking