Error updating to 8.0.4-ce.0.el6 Recipe Compile Error in default.rb
[root@gitlab ~]# yum --enablerepo gitlab_gitlab-ce update gitlab\*
Loaded plugins: fastestmirror
Setting up Update Process
Determining fastest mirrors
epel/metalink | 24 kB 00:00
* base: ftp.dei.uc.pt
* epel: ftp.up.pt
* extras: ftp.dei.uc.pt
* rpmforge: mirror1.hs-esslingen.de
* updates: ftp.dei.uc.pt
base | 3.7 kB 00:00
epel | 4.3 kB 00:00
epel/primary_db | 5.7 MB 00:01
extras | 3.4 kB 00:00
extras/primary_db | 32 kB 00:00
gitlab_gitlab-ce/signature | 836 B 00:00
gitlab_gitlab-ce/signature | 1.0 kB 00:00 ...
gitlab_gitlab-ce/primary | 161 kB 00:00
gitlab_gitlab-ce 43/43
gitlab_gitlab-ce-source/signature | 836 B 00:00
gitlab_gitlab-ce-source/signature | 951 B 00:00 ...
gitlab_gitlab-ce-source/primary | 175 B 00:00
logstash-forwarder | 951 B 00:00
rpmforge | 1.9 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 1.9 MB 00:00
vz-base | 951 B 00:00
vz-updates | 951 B 00:00
Resolving Dependencies
--> Running transaction check
---> Package gitlab-ce.x86_64 0:7.14.3-ce.0.el6 will be updated
---> Package gitlab-ce.x86_64 0:8.0.4-ce.0.el6 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================
Updating:
gitlab-ce x86_64 8.0.4-ce.0.el6 gitlab_gitlab-ce 328 M
Transaction Summary
===============================================================================================================================
Upgrade 1 Package(s)
Total download size: 328 M
Is this ok [y/N]: m
Is this ok [y/N]: N
Exiting on user Command
Your transaction was saved, rerun it with:
yum load-transaction /tmp/yum_save_tx-2015-10-06-10-50GfLbae.yumtx
[root@gitlab ~]# yum --enablerepo gitlab_gitlab-ce update gitlab\*^C
[root@gitlab ~]# logout
Connection to gitlab.e-goi.com closed.
(reverse-i-search)`ss': ssh root@gitlab.e-goi.com
[fsousa@nostradamus suplemento]$ (develop) ssh root@devel
[fsousa@nostradamus suplemento]$ (develop) ssh root@devel2
Last login: Tue Oct 6 10:46:25 2015 from ptu18.ccom.ipb.pt
[root@devel2 ~]# yum update
Loaded plugins: fastestmirror, security
Setting up Update Process
Loading mirror speeds from cached hostfile
* base: ftp.up.pt
* extras: ftp.up.pt
* updates: ftp.up.pt
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 1.9 MB 00:00
zabbix | 951 B 00:00
zabbix-non-supported | 951 B 00:00
No Packages marked for Update
[root@devel2 ~]# yum --enablerepo gitlab_gitlab-ce update gitlab\*
Loaded plugins: fastestmirror, security
Setting up Update Process
Loading mirror speeds from cached hostfile
* base: ftp.up.pt
* extras: ftp.up.pt
* updates: ftp.up.pt
gitlab_gitlab-ce/signature | 836 B 00:00
gitlab_gitlab-ce/signature | 1.0 kB 00:00 ...
gitlab_gitlab-ce/primary | 161 kB 00:00
gitlab_gitlab-ce 43/43
Resolving Dependencies
--> Running transaction check
---> Package gitlab-ce.x86_64 0:8.0.3-ce.1.el6 will be updated
---> Package gitlab-ce.x86_64 0:8.0.4-ce.0.el6 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================
Updating:
gitlab-ce x86_64 8.0.4-ce.0.el6 gitlab_gitlab-ce 328 M
Transaction Summary
===============================================================================================================================
Upgrade 1 Package(s)
Total download size: 328 M
Is this ok [y/N]: y
Downloading Packages:
gitlab-ce-8.0.4-ce.0.el6.x86_64.rpm | 328 MB 00:20
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
gitlab preinstall: Backing up GitLab SQL database (excluding Git repositories, uploads)
Dumping database ...
Dumping PostgreSQL database gitlabhq_production ... [DONE]
Compressing database ... [DONE]
done
Dumping repositories ...
[SKIPPED]
Dumping uploads ...
[SKIPPED]
Dumping builds ...
done
Creating backup archive: 1444125467_gitlab_backup.tar ... done
Uploading backup archive to remote storage ... skipped
Deleting tmp directories ... done
done
done
Deleting old backups ... done. (0 removed)
Updating : gitlab-ce-8.0.4-ce.0.el6.x86_64 1/2
gitlab: Thank you for installing GitLab!
gitlab: To configure and start GitLab, RUN THE FOLLOWING COMMAND:
sudo gitlab-ctl reconfigure
gitlab: GitLab should be reachable at https://gitlab.ipb.pt
gitlab: Otherwise configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
gitlab: And running reconfigure again.
gitlab:
gitlab: For a comprehensive list of configuration options please see the Omnibus GitLab readme
gitlab: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
gitlab:
Cleanup : gitlab-ce-8.0.3-ce.1.el6.x86_64 2/2
Shutting down all GitLab services except those needed for migrations
ok: down: gitlab-git-http-server: 1s, normally up
ok: down: logrotate: 0s, normally up
ok: down: nginx: 0s, normally up
ok: down: postgresql: 0s, normally up
ok: down: redis: 0s, normally up
ok: down: sidekiq: 1s, normally up
ok: down: unicorn: 0s, normally up
ok: run: postgresql: (pid 11096) 1s
ok: run: redis: (pid 11104) 0s
run: postgresql: (pid 11096) 1s; run: log: (pid 1088) 1129171s
run: redis: (pid 11104) 0s; run: log: (pid 1085) 1129171s
Reconfiguring GitLab to apply migrations
[2015-10-06T10:58:28+01:00] INFO: Started chef-zero at chefzero://localhost:8889 with repository at /opt/gitlab/embedded
One version per cookbook
[2015-10-06T10:58:28+01:00] INFO: Forking chef instance to converge...
[2015-10-06T10:58:28+01:00] INFO: *** Chef 12.4.1 ***
[2015-10-06T10:58:28+01:00] INFO: Chef-client pid: 11117
[2015-10-06T10:58:29+01:00] INFO: HTTP Request Returned 404 Not Found: Object not found: chefzero://localhost:8889/nodes/devel2.ipb.pt
[2015-10-06T10:58:29+01:00] INFO: Setting the run_list to ["recipe[gitlab]"] from CLI options
[2015-10-06T10:58:29+01:00] INFO: Run List is [recipe[gitlab]]
[2015-10-06T10:58:29+01:00] INFO: Run List expands to [gitlab]
[2015-10-06T10:58:29+01:00] INFO: Starting Chef Run for devel2.ipb.pt
[2015-10-06T10:58:29+01:00] INFO: Running start handlers
[2015-10-06T10:58:29+01:00] INFO: Start handlers complete.
[2015-10-06T10:58:29+01:00] INFO: HTTP Request Returned 404 Not Found: Object not found:
[2015-10-06T10:58:29+01:00] INFO: Loading cookbooks [gitlab@0.0.1, runit@0.14.2, package@0.0.0]
[2015-10-06T10:58:29+01:00] INFO: Storing updated cookbooks/gitlab/recipes/gitlab-shell.rb in the cache.
[2015-10-06T10:58:29+01:00] INFO: Storing updated cookbooks/gitlab/recipes/gitlab-ci_disable.rb in the cache.
[2015-10-06T10:58:29+01:00] INFO: Storing updated cookbooks/gitlab/recipes/gitlab-rails.rb in the cache.
[2015-10-06T10:58:29+01:00] INFO: Storing updated cookbooks/gitlab/templates/default/secrets.yml.erb in the cache.
[2015-10-06T10:58:30+01:00] WARN: Cloning resource attributes for directory[/var/opt/gitlab] from prior resource (CHEF-3694)
[2015-10-06T10:58:30+01:00] WARN: Previous directory[/var/opt/gitlab]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:43:in `from_file'
[2015-10-06T10:58:30+01:00] WARN: Current directory[/var/opt/gitlab]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/users.rb:24:in `from_file'
================================================================================
Recipe Compile Error in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb
================================================================================
SyntaxError
-----------
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/gitlab-ci_disable.rb:59: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '('
...ci_log_dir gitlab_ci_static_dir ].each do |dir|
... ^
Cookbook Trace:
---------------
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:73:in `from_file'
Relevant File Content:
----------------------
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:
66:
67: if node['gitlab']['gitlab-rails']['enable']
68: include_recipe "gitlab::users"
69: include_recipe "gitlab::gitlab-shell"
70: include_recipe "gitlab::gitlab-rails"
71: end
72:
73>> include_recipe "gitlab::gitlab-ci_disable"
74:
75: include_recipe "gitlab::selinux"
76: include_recipe "gitlab::cron"
77:
78: # Create dummy unicorn and sidekiq services to receive notifications, in case
79: # the corresponding service recipe is not loaded below.
80: [
81: "unicorn",
82: "ci-unicorn",
[2015-10-06T10:58:30+01:00] ERROR: Running exception handlers
[2015-10-06T10:58:30+01:00] ERROR: Exception handlers complete
[2015-10-06T10:58:30+01:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/chef-stacktrace.out
[2015-10-06T10:58:30+01:00] ERROR: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/gitlab-ci_disable.rb:59: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '('
...ci_log_dir gitlab_ci_static_dir ].each do |dir|
... ^
[2015-10-06T10:58:30+01:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
warning: %posttrans(gitlab-ce-8.0.4-ce.0.el6.x86_64) scriptlet failed, exit status 1
Non-fatal POSTTRANS scriptlet failure in rpm package gitlab-ce-8.0.4-ce.0.el6.x86_64
Verifying : gitlab-ce-8.0.4-ce.0.el6.x86_64 1/2
Verifying : gitlab-ce-8.0.3-ce.1.el6.x86_64 2/2
Updated:
gitlab-ce.x86_64 0:8.0.4-ce.0.el6
Complete!
[root@devel2 ~]# cat /etc/centos-release
CentOS release 6.7 (Final)
[root@devel2 ~]# arch
x86_64
I had to downgrade to 8.0.3