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
  • #7209

Closed
Open
Created Jun 26, 2014 by Administrator@rootOwner

gitlab backup restore fails on notes… syntax error, unexpected $undefined ip + \“:\” + scope.function_hiera(

Created by: pcbadger

I've built a new server for gitlab 5.1 (actually, I built 2 just to be sure, I had a few hiccups with the first one) I'm trying to restore a backup from another server. I followed these instructions with mysql https://github.com/gitlabhq/gitlabhq/blob/5-1-stable/doc/install/installation.md

(the only deviation was that I had to edit the gemfile to replace modernizer 2.6.2 with modernizer-rails 2.7.1 as that gem is no longer available)

I ran this command to restore

 sudo -u git bundle exec rake gitlab:backup:restore RAILS_ENV=production --trace 

and it craps out with this error

 notes ... rake aborted!
(erb):103939: syntax error, unexpected $undefined
ip + \":\" + scope.function_hiera([...
      ^

(full trace available here http://pastebin.com/cX5kTTzu )

Our repos contain a lot of puppet code with hiera data and it looks like it's somehow trying to interpret that and i really don't know what to do about it.

Here's my sysinfo

System information

System: Ubuntu 12.04 Current User: git Using RVM: no Ruby Version: 1.9.3p392 Gem Version: 1.8.23 Bundler Version:1.6.3 Rake Version: 10.0.3

GitLab information Version: 5.0.1 Revision: 951273ff Directory: /home/git/gitlab DB Adapter: mysql2 URL: http://localhost HTTP Clone URL: http://localhost/some-project.git SSH Clone URL: git@localhost:some-project.git Using LDAP: no Using Omniauth: no

GitLab Shell Version: 1.3.0 Repositories: /home/git/repositories/ Hooks: /home/git/gitlab-shell/hooks/ Git: /usr/bin/git The status check shows the repos as created, but empty. Oddly it tells me I need to upgrade to git shell 1.1.0, so I might try that for a giggle

Assignee
Assign to
Time tracking