Guest User

Untitled

a guest
Oct 29th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.98 KB | None | 0 0
  1. Starting Chef Client, version 14.13.11
  2. resolving cookbooks for run list: ["gitlab"]
  3. Synchronizing Cookbooks:
  4. - postgresql (0.1.0)
  5. - registry (0.1.0)
  6. - gitlab (0.0.1)
  7. - praefect (0.1.0)
  8. - mattermost (0.1.0)
  9. - runit (4.3.0)
  10. - acme (4.0.0)
  11. - crond (0.1.0)
  12. - package (0.1.0)
  13. - consul (0.1.0)
  14. - gitaly (0.1.0)
  15. - letsencrypt (0.1.0)
  16. - nginx (0.1.0)
  17. - redis (0.1.0)
  18. - monitoring (0.1.0)
  19. Installing Cookbook Gems:
  20. Compiling Cookbooks...
  21. Recipe: gitlab::default
  22. * directory[/etc/gitlab] action create (up to date)
  23. Converging 281 resources
  24. * directory[/etc/gitlab] action create (up to date)
  25. * directory[Create /var/opt/gitlab] action create (up to date)
  26. * directory[Create /var/log/gitlab] action create (up to date)
  27. * directory[/opt/gitlab/embedded/etc] action create (up to date)
  28. * template[/opt/gitlab/embedded/etc/gitconfig] action create (up to date)
  29. Recipe: gitlab::web-server
  30. * account[Webserver user and group] action create
  31. * group[Webserver user and group] action create (up to date)
  32. * linux_user[Webserver user and group] action create (up to date)
  33. (up to date)
  34. Recipe: gitlab::users
  35. * directory[/var/opt/gitlab] action create (up to date)
  36. * account[GitLab user and group] action create
  37. * group[GitLab user and group] action create (up to date)
  38. * linux_user[GitLab user and group] action create (up to date)
  39. (up to date)
  40. * template[/var/opt/gitlab/.gitconfig] action create (up to date)
  41. * directory[/var/opt/gitlab/.bundle] action create (up to date)
  42. Recipe: gitlab::gitlab-shell
  43. * storage_directory[/var/opt/gitlab/.ssh] action create
  44. * ruby_block[directory resource: /var/opt/gitlab/.ssh] action run (skipped due to not_if)
  45. (up to date)
  46. * directory[/var/log/gitlab/gitlab-shell/] action create (up to date)
  47. * directory[/var/opt/gitlab/gitlab-shell] action create (up to date)
  48. * templatesymlink[Create a config.yml and create a symlink to Rails root] action create
  49. * template[/var/opt/gitlab/gitlab-shell/config.yml] action create (up to date)
  50. * link[Link /opt/gitlab/embedded/service/gitlab-shell/config.yml to /var/opt/gitlab/gitlab-shell/config.yml] action create (up to date)
  51. (up to date)
  52. * link[/opt/gitlab/embedded/service/gitlab-shell/.gitlab_shell_secret] action create (up to date)
  53. * file[/var/opt/gitlab/.ssh/authorized_keys] action create_if_missing (up to date)
  54. * bash[Set proper security context on ssh files for selinux] action run (skipped due to only_if)
  55. Recipe: gitlab::gitlab-rails
  56. * storage_directory[/var/opt/gitlab/git-data] action create
  57. * ruby_block[directory resource: /var/opt/gitlab/git-data] action run (skipped due to not_if)
  58. (up to date)
  59. * storage_directory[/var/opt/gitlab/git-data/repositories] action create
  60. * ruby_block[directory resource: /var/opt/gitlab/git-data/repositories] action run (skipped due to not_if)
  61. (up to date)
  62. * storage_directory[/var/opt/gitlab/gitlab-rails/shared] action create
  63. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared] action run (skipped due to not_if)
  64. (up to date)
  65. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/artifacts] action create
  66. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/artifacts] action run (skipped due to not_if)
  67. (up to date)
  68. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/external-diffs] action create
  69. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/external-diffs] action run (skipped due to not_if)
  70. (up to date)
  71. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/lfs-objects] action create
  72. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/lfs-objects] action run (skipped due to not_if)
  73. (up to date)
  74. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/packages] action create
  75. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/packages] action run (skipped due to not_if)
  76. (up to date)
  77. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/dependency_proxy] action create
  78. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/dependency_proxy] action run (skipped due to not_if)
  79. (up to date)
  80. * storage_directory[/var/opt/gitlab/gitlab-rails/uploads] action create
  81. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/uploads] action run (skipped due to not_if)
  82. (up to date)
  83. * storage_directory[/var/opt/gitlab/gitlab-ci/builds] action create
  84. * ruby_block[directory resource: /var/opt/gitlab/gitlab-ci/builds] action run (skipped due to not_if)
  85. (up to date)
  86. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/cache] action create
  87. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/cache] action run (skipped due to not_if)
  88. (up to date)
  89. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/tmp] action create
  90. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/tmp] action run (skipped due to not_if)
  91. (up to date)
  92. * storage_directory[/opt/gitlab/embedded/service/gitlab-rails/public] action create (skipped due to only_if)
  93. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/pages] action create
  94. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/pages] action run (skipped due to not_if)
  95. (up to date)
  96. * directory[create /var/opt/gitlab/gitlab-rails/etc] action create (up to date)
  97. * directory[create /opt/gitlab/etc/gitlab-rails] action create (up to date)
  98. * directory[create /var/opt/gitlab/gitlab-rails/working] action create (up to date)
  99. * directory[create /var/opt/gitlab/gitlab-rails/tmp] action create (up to date)
  100. * directory[create /var/opt/gitlab/gitlab-rails/upgrade-status] action create (up to date)
  101. * directory[create /var/log/gitlab/gitlab-rails] action create (up to date)
  102. * storage_directory[/var/opt/gitlab/backups] action create
  103. * ruby_block[directory resource: /var/opt/gitlab/backups] action run (skipped due to not_if)
  104. (up to date)
  105. * directory[/var/opt/gitlab/gitlab-rails] action create (up to date)
  106. * directory[/var/opt/gitlab/gitlab-ci] action create (up to date)
  107. * file[/var/opt/gitlab/gitlab-rails/etc/gitlab-registry.key] action create (up to date)
  108. * template[/opt/gitlab/etc/gitlab-rails/gitlab-rails-rc] action create (up to date)
  109. * file[/opt/gitlab/embedded/service/gitlab-rails/.secret] action delete (up to date)
  110. * file[/var/opt/gitlab/gitlab-rails/etc/secret] action delete (up to date)
  111. * templatesymlink[Create a database.yml and create a symlink to Rails root] action create
  112. * template[/var/opt/gitlab/gitlab-rails/etc/database.yml] action create (up to date)
  113. * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/database.yml to /var/opt/gitlab/gitlab-rails/etc/database.yml] action create (up to date)
  114. (up to date)
  115. * templatesymlink[Create a secrets.yml and create a symlink to Rails root] action create
  116. * template[/var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create (up to date)
  117. * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/secrets.yml to /var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create (up to date)
  118. (up to date)
  119. * templatesymlink[Create a resque.yml and create a symlink to Rails root] action create
  120. * template[/var/opt/gitlab/gitlab-rails/etc/resque.yml] action create (up to date)
  121. * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/resque.yml to /var/opt/gitlab/gitlab-rails/etc/resque.yml] action create (up to date)
  122. (up to date)
  123. * templatesymlink[Create a redis.cache.yml and create a symlink to Rails root] action create (skipped due to not_if)
  124. * file[/opt/gitlab/embedded/service/gitlab-rails/config/redis.cache.yml] action delete (up to date)
  125. * file[/var/opt/gitlab/gitlab-rails/etc/redis.cache.yml] action delete (up to date)
  126. * templatesymlink[Create a redis.queues.yml and create a symlink to Rails root] action create (skipped due to not_if)
  127. * file[/opt/gitlab/embedded/service/gitlab-rails/config/redis.queues.yml] action delete (up to date)
  128. * file[/var/opt/gitlab/gitlab-rails/etc/redis.queues.yml] action delete (up to date)
  129. * templatesymlink[Create a redis.shared_state.yml and create a symlink to Rails root] action create (skipped due to not_if)
  130. * file[/opt/gitlab/embedded/service/gitlab-rails/config/redis.shared_state.yml] action delete (up to date)
  131. * file[/var/opt/gitlab/gitlab-rails/etc/redis.shared_state.yml] action delete (up to date)
  132. * templatesymlink[Create a smtp_settings.rb and create a symlink to Rails root] action create
  133. * template[/var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb] action create (up to date)
  134. * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/initializers/smtp_settings.rb to /var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb] action create (up to date)
  135. (up to date)
  136. * templatesymlink[Create a gitlab.yml and create a symlink to Rails root] action create
  137. * template[/var/opt/gitlab/gitlab-rails/etc/gitlab.yml] action create (up to date)
  138. * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml to /var/opt/gitlab/gitlab-rails/etc/gitlab.yml] action create (up to date)
  139. (up to date)
  140. * templatesymlink[Create a rack_attack.rb and create a symlink to Rails root] action create
  141. * template[/var/opt/gitlab/gitlab-rails/etc/rack_attack.rb] action create (up to date)
  142. * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/initializers/rack_attack.rb to /var/opt/gitlab/gitlab-rails/etc/rack_attack.rb] action create (up to date)
  143. (up to date)
  144. * templatesymlink[Create a gitlab_workhorse_secret and create a symlink to Rails root] action create
  145. * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret] action create (up to date)
  146. * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret] action create (up to date)
  147. (up to date)
  148. * templatesymlink[Create a gitlab_shell_secret and create a symlink to Rails root] action create
  149. * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret] action create (up to date)
  150. * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_shell_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret] action create (up to date)
  151. (up to date)
  152. * link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/relative_url.rb] action delete (up to date)
  153. * file[/var/opt/gitlab/gitlab-rails/etc/relative_url.rb] action delete (up to date)
  154. * env_dir[/opt/gitlab/etc/gitlab-rails/env] action create
  155. * directory[/opt/gitlab/etc/gitlab-rails/env] action create (up to date)
  156. * file[/opt/gitlab/etc/gitlab-rails/env/HOME] action create (up to date)
  157. * file[/opt/gitlab/etc/gitlab-rails/env/RAILS_ENV] action create (up to date)
  158. * file[/opt/gitlab/etc/gitlab-rails/env/LD_PRELOAD] action create (up to date)
  159. * file[/opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS] action create (up to date)
  160. * file[/opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE] action create (up to date)
  161. * file[/opt/gitlab/etc/gitlab-rails/env/PATH] action create (up to date)
  162. * file[/opt/gitlab/etc/gitlab-rails/env/ICU_DATA] action create (up to date)
  163. * file[/opt/gitlab/etc/gitlab-rails/env/PYTHONPATH] action create (up to date)
  164. * file[/opt/gitlab/etc/gitlab-rails/env/EXECJS_RUNTIME] action create (up to date)
  165. * file[/opt/gitlab/etc/gitlab-rails/env/TZ] action create (up to date)
  166. (up to date)
  167. * link[/opt/gitlab/embedded/service/gitlab-rails/tmp] action create (up to date)
  168. * link[/opt/gitlab/embedded/service/gitlab-rails/public/uploads] action create (up to date)
  169. * link[/opt/gitlab/embedded/service/gitlab-rails/log] action create (up to date)
  170. * link[/var/log/gitlab/gitlab-rails/sidekiq.log] action create (skipped due to not_if)
  171. * file[/opt/gitlab/embedded/service/gitlab-rails/db/schema.rb] action create (up to date)
  172. * remote_file[/var/opt/gitlab/gitlab-rails/VERSION] action create (up to date)
  173. * remote_file[/var/opt/gitlab/gitlab-rails/REVISION] action create (up to date)
  174. * file[/var/opt/gitlab/gitlab-rails/RUBY_VERSION] action create (up to date)
  175. * execute[clear the gitlab-rails cache] action nothing (skipped due to action :nothing)
  176. * file[/var/opt/gitlab/gitlab-rails/config.ru] action delete (up to date)
  177. Recipe: gitlab::add_trusted_certs
  178. * directory[/etc/gitlab/trusted-certs] action create (up to date)
  179. * directory[/opt/gitlab/embedded/ssl/certs] action create (up to date)
  180. * file[/opt/gitlab/embedded/ssl/certs/README] action create (up to date)
  181. * ruby_block[Move existing certs and link to /opt/gitlab/embedded/ssl/certs] action run (skipped due to only_if)
  182. Recipe: gitlab::default
  183. * service[create a temporary unicorn service] action nothing (skipped due to action :nothing)
  184. * service[create a temporary puma service] action nothing (skipped due to action :nothing)
  185. * service[create a temporary sidekiq service] action nothing (skipped due to action :nothing)
  186. * service[create a temporary mailroom service] action nothing (skipped due to action :nothing)
  187. Recipe: package::runit_systemd
  188. * directory[/usr/lib/systemd/system] action create (up to date)
  189. * template[/usr/lib/systemd/system/gitlab-runsvdir.service] action create (up to date)
  190. * file[/etc/systemd/system/default.target.wants/gitlab-runsvdir.service] action delete (up to date)
  191. * file[/etc/systemd/system/basic.target.wants/gitlab-runsvdir.service] action delete (up to date)
  192. * execute[systemctl daemon-reload] action nothing (skipped due to action :nothing)
  193. * execute[systemctl enable gitlab-runsvdir] action nothing (skipped due to action :nothing)
  194. * execute[systemctl start gitlab-runsvdir] action nothing (skipped due to action :nothing)
  195. Recipe: postgresql::bin
  196. * ruby_block[check_postgresql_version] action run (skipped due to not_if)
  197. * ruby_block[Link postgresql bin files to the correct version] action run (skipped due to only_if)
  198. Recipe: redis::enable
  199. * account[user and group for redis] action create
  200. * group[user and group for redis] action create (up to date)
  201. * linux_user[user and group for redis] action create (up to date)
  202. (up to date)
  203. * group[Socket group] action create (up to date)
  204. * directory[/var/opt/gitlab/redis] action create (up to date)
  205. * directory[/var/log/gitlab/redis] action create (up to date)
  206. * template[/var/opt/gitlab/redis/redis.conf] action create (up to date)
  207. Recipe: <Dynamically Defined Resource>
  208. * service[redis] action nothing (skipped due to action :nothing)
  209. Recipe: redis::enable
  210. * runit_service[redis] action enable
  211. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  212. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  213. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  214. * directory[/opt/gitlab/sv/redis] action create (up to date)
  215. * template[/opt/gitlab/sv/redis/run] action create (up to date)
  216. * directory[/opt/gitlab/sv/redis/log] action create (up to date)
  217. * directory[/opt/gitlab/sv/redis/log/main] action create (up to date)
  218. * template[/opt/gitlab/sv/redis/log/run] action create (up to date)
  219. * template[/var/log/gitlab/redis/config] action create (up to date)
  220. * ruby_block[verify_chown_persisted_on_redis] action nothing (skipped due to action :nothing)
  221. * directory[/opt/gitlab/sv/redis/env] action create (up to date)
  222. * ruby_block[Delete unmanaged env files for redis service] action run (skipped due to only_if)
  223. * template[/opt/gitlab/sv/redis/check] action create (skipped due to only_if)
  224. * template[/opt/gitlab/sv/redis/finish] action create (skipped due to only_if)
  225. * directory[/opt/gitlab/sv/redis/control] action create (up to date)
  226. * link[/opt/gitlab/init/redis] action create (up to date)
  227. * file[/opt/gitlab/sv/redis/down] action delete (up to date)
  228. * directory[/opt/gitlab/service] action create (up to date)
  229. * link[/opt/gitlab/service/redis] action create (up to date)
  230. * ruby_block[wait for redis service socket] action run (skipped due to not_if)
  231. (up to date)
  232. Recipe: gitaly::enable
  233. * directory[/var/opt/gitlab/gitaly] action create (up to date)
  234. * directory[/var/log/gitlab/gitaly] action create (up to date)
  235. * env_dir[/opt/gitlab/etc/gitaly/env] action create
  236. * directory[/opt/gitlab/etc/gitaly/env] action create (up to date)
  237. * file[/opt/gitlab/etc/gitaly/env/HOME] action create (up to date)
  238. * file[/opt/gitlab/etc/gitaly/env/PATH] action create (up to date)
  239. * file[/opt/gitlab/etc/gitaly/env/TZ] action create (up to date)
  240. * file[/opt/gitlab/etc/gitaly/env/PYTHONPATH] action create (up to date)
  241. * file[/opt/gitlab/etc/gitaly/env/ICU_DATA] action create (up to date)
  242. * file[/opt/gitlab/etc/gitaly/env/SSL_CERT_DIR] action create (up to date)
  243. * file[/opt/gitlab/etc/gitaly/env/GITALY_PID_FILE] action create (up to date)
  244. * file[/opt/gitlab/etc/gitaly/env/WRAPPER_JSON_LOGGING] action create (up to date)
  245. (up to date)
  246. * template[Create Gitaly config.toml] action create (up to date)
  247. Recipe: <Dynamically Defined Resource>
  248. * service[gitaly] action nothing (skipped due to action :nothing)
  249. Recipe: gitaly::enable
  250. * runit_service[gitaly] action enable
  251. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  252. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  253. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  254. * directory[/opt/gitlab/sv/gitaly] action create (up to date)
  255. * template[/opt/gitlab/sv/gitaly/run] action create (up to date)
  256. * directory[/opt/gitlab/sv/gitaly/log] action create (up to date)
  257. * directory[/opt/gitlab/sv/gitaly/log/main] action create (up to date)
  258. * template[/opt/gitlab/sv/gitaly/log/run] action create (up to date)
  259. * template[/var/log/gitlab/gitaly/config] action create (up to date)
  260. * ruby_block[verify_chown_persisted_on_gitaly] action nothing (skipped due to action :nothing)
  261. * directory[/opt/gitlab/sv/gitaly/env] action create (up to date)
  262. * ruby_block[Delete unmanaged env files for gitaly service] action run (skipped due to only_if)
  263. * template[/opt/gitlab/sv/gitaly/check] action create (skipped due to only_if)
  264. * template[/opt/gitlab/sv/gitaly/finish] action create (skipped due to only_if)
  265. * directory[/opt/gitlab/sv/gitaly/control] action create (up to date)
  266. * link[/opt/gitlab/init/gitaly] action create (up to date)
  267. * file[/opt/gitlab/sv/gitaly/down] action delete (up to date)
  268. * directory[/opt/gitlab/service] action create (up to date)
  269. * link[/opt/gitlab/service/gitaly] action create (up to date)
  270. * ruby_block[wait for gitaly service socket] action run (skipped due to not_if)
  271. (up to date)
  272. * file[/var/opt/gitlab/gitaly/VERSION] action create (up to date)
  273. * consul_service[gitaly] action delete
  274. * file[/var/opt/gitlab/consul/config.d/gitaly-service.json] action delete (up to date)
  275. (up to date)
  276. Recipe: <Dynamically Defined Resource>
  277. * service[praefect] action nothing (skipped due to action :nothing)
  278. Recipe: praefect::disable
  279. * runit_service[praefect] action disable
  280. * ruby_block[disable praefect] action run (skipped due to only_if)
  281. (up to date)
  282. * consul_service[praefect] action delete
  283. * file[/var/opt/gitlab/consul/config.d/praefect-service.json] action delete (up to date)
  284. (up to date)
  285. Recipe: postgresql::user
  286. * account[Postgresql user and group] action create
  287. * group[Postgresql user and group] action create (up to date)
  288. * linux_user[Postgresql user and group] action create (up to date)
  289. (up to date)
  290. Recipe: postgresql::enable
  291. * directory[/var/opt/gitlab/postgresql] action create (up to date)
  292. * directory[/var/opt/gitlab/postgresql/data] action create (up to date)
  293. * directory[/var/log/gitlab/postgresql] action create (up to date)
  294. * link[/var/opt/gitlab/postgresql/data] action create (skipped due to not_if)
  295. * file[/var/opt/gitlab/postgresql/.profile] action create (up to date)
  296. * gitlab_sysctl[kernel.shmmax] action create
  297. * directory[create /etc/sysctl.d for kernel.shmmax] action create (up to date)
  298. * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmmax.conf kernel.shmmax] action create (up to date)
  299. * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf] action create (up to date)
  300. * execute[load sysctl conf kernel.shmmax] action nothing (skipped due to action :nothing)
  301. (up to date)
  302. * gitlab_sysctl[kernel.shmall] action create
  303. * directory[create /etc/sysctl.d for kernel.shmall] action create (up to date)
  304. * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmall.conf kernel.shmall] action create (up to date)
  305. * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf] action create (up to date)
  306. * execute[load sysctl conf kernel.shmall] action nothing (skipped due to action :nothing)
  307. (up to date)
  308. * gitlab_sysctl[kernel.sem] action create
  309. * directory[create /etc/sysctl.d for kernel.sem] action create (up to date)
  310. * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.sem.conf kernel.sem] action create (up to date)
  311. * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf] action create (up to date)
  312. * execute[load sysctl conf kernel.sem] action nothing (skipped due to action :nothing)
  313. (up to date)
  314. * execute[/opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8] action run (skipped due to not_if)
  315. * file[/var/opt/gitlab/postgresql/data/server.crt] action create (up to date)
  316. * file[/var/opt/gitlab/postgresql/data/server.key] action create (up to date)
  317. * postgresql_config[gitlab] action create
  318. * template[/var/opt/gitlab/postgresql/data/postgresql.conf] action create (up to date)
  319. * template[/var/opt/gitlab/postgresql/data/runtime.conf] action create (up to date)
  320. * template[/var/opt/gitlab/postgresql/data/pg_hba.conf] action create (up to date)
  321. * template[/var/opt/gitlab/postgresql/data/pg_ident.conf] action create (up to date)
  322. (up to date)
  323. Recipe: <Dynamically Defined Resource>
  324. * service[postgresql] action nothing (skipped due to action :nothing)
  325. Recipe: postgresql::enable
  326. * runit_service[postgresql] action enable
  327. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  328. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  329. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  330. * directory[/opt/gitlab/sv/postgresql] action create (up to date)
  331. * template[/opt/gitlab/sv/postgresql/run] action create (up to date)
  332. * directory[/opt/gitlab/sv/postgresql/log] action create (up to date)
  333. * directory[/opt/gitlab/sv/postgresql/log/main] action create (up to date)
  334. * template[/opt/gitlab/sv/postgresql/log/run] action create (up to date)
  335. * template[/var/log/gitlab/postgresql/config] action create (up to date)
  336. * ruby_block[verify_chown_persisted_on_postgresql] action nothing (skipped due to action :nothing)
  337. * directory[/opt/gitlab/sv/postgresql/env] action create (up to date)
  338. * ruby_block[Delete unmanaged env files for postgresql service] action run (skipped due to only_if)
  339. * template[/opt/gitlab/sv/postgresql/check] action create (skipped due to only_if)
  340. * template[/opt/gitlab/sv/postgresql/finish] action create (skipped due to only_if)
  341. * directory[/opt/gitlab/sv/postgresql/control] action create (up to date)
  342. * template[/opt/gitlab/sv/postgresql/control/t] action create (up to date)
  343. * link[/opt/gitlab/init/postgresql] action create (up to date)
  344. * file[/opt/gitlab/sv/postgresql/down] action delete (up to date)
  345. * directory[/opt/gitlab/service] action create (up to date)
  346. * link[/opt/gitlab/service/postgresql] action create (up to date)
  347. * ruby_block[wait for postgresql service socket] action run (skipped due to not_if)
  348. * directory[/opt/gitlab/service/postgresql/supervise] action create (up to date)
  349. * directory[/opt/gitlab/service/postgresql/log/supervise] action create (up to date)
  350. * file[/opt/gitlab/sv/postgresql/supervise/ok] action touch (skipped due to only_if)
  351. * file[/opt/gitlab/sv/postgresql/log/supervise/ok] action touch (skipped due to only_if)
  352. * file[/opt/gitlab/sv/postgresql/supervise/status] action touch
  353. - change owner from 'root' to 'gitlab-psql'
  354. - change group from 'root' to 'gitlab-psql'
  355. - update utime on file /opt/gitlab/sv/postgresql/supervise/status
  356. * file[/opt/gitlab/sv/postgresql/log/supervise/status] action touch (skipped due to only_if)
  357. * file[/opt/gitlab/sv/postgresql/supervise/control] action touch (skipped due to only_if)
  358. * file[/opt/gitlab/sv/postgresql/log/supervise/control] action touch (skipped due to only_if)
  359.  
  360. * template[/opt/gitlab/etc/gitlab-psql-rc] action create (up to date)
  361. * postgresql_user[gitlab] action create
  362. * execute[create gitlab postgresql user] action run (skipped due to not_if)
  363. (up to date)
  364. * execute[create gitlabhq_production database] action run (skipped due to not_if)
  365. * postgresql_user[gitlab_replicator] action create
  366. * execute[create gitlab_replicator postgresql user] action run (skipped due to not_if)
  367. * execute[set options for gitlab_replicator postgresql user] action run (skipped due to not_if)
  368. (up to date)
  369. * postgresql_extension[pg_trgm] action enable
  370. * postgresql_query[enable pg_trgm extension] action run (skipped due to only_if)
  371. (up to date)
  372. * ruby_block[warn pending postgresql restart] action run (skipped due to only_if)
  373. * execute[reload postgresql] action nothing (skipped due to action :nothing)
  374. * execute[start postgresql] action nothing (skipped due to action :nothing)
  375. Recipe: gitlab::database_migrations
  376. * bash[migrate gitlab-rails database] action run
  377. [execute] rake aborted!
  378. StandardError: An error has occurred, this and all later migrations canceled:
  379.  
  380. PG::NotNullViolation: ERROR: column "state_id" contains null values
  381. : ALTER TABLE "merge_requests" ALTER COLUMN "state_id" SET NOT NULL
  382. /opt/gitlab/embedded/service/gitlab-rails/db/migrate/20191008200204_add_state_id_default_value.rb:15:in `up'
  383. /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:49:in `block (3 levels) in <top (required)>'
  384. /opt/gitlab/embedded/bin/bundle:23:in `load'
  385. /opt/gitlab/embedded/bin/bundle:23:in `<main>'
  386.  
  387. Caused by:
  388. ActiveRecord::NotNullViolation: PG::NotNullViolation: ERROR: column "state_id" contains null values
  389. : ALTER TABLE "merge_requests" ALTER COLUMN "state_id" SET NOT NULL
  390. /opt/gitlab/embedded/service/gitlab-rails/db/migrate/20191008200204_add_state_id_default_value.rb:15:in `up'
  391. /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:49:in `block (3 levels) in <top (required)>'
  392. /opt/gitlab/embedded/bin/bundle:23:in `load'
  393. /opt/gitlab/embedded/bin/bundle:23:in `<main>'
  394.  
  395. Caused by:
  396. PG::NotNullViolation: ERROR: column "state_id" contains null values
  397. /opt/gitlab/embedded/service/gitlab-rails/db/migrate/20191008200204_add_state_id_default_value.rb:15:in `up'
  398. /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:49:in `block (3 levels) in <top (required)>'
  399. /opt/gitlab/embedded/bin/bundle:23:in `load'
  400. /opt/gitlab/embedded/bin/bundle:23:in `<main>'
  401. Tasks: TOP => db:migrate
  402. (See full trace by running task with --trace)
  403. == 20191008200204 AddStateIdDefaultValue: migrating ===========================
  404. -- change_column_default(:issues, :state_id, 1)
  405. -> 0.0110s
  406. -- change_column_null(:issues, :state_id, false)
  407. -> 0.0043s
  408. -- change_column_default(:merge_requests, :state_id, 1)
  409. -> 0.0029s
  410. -- change_column_null(:merge_requests, :state_id, false)
  411.  
  412. ================================================================================
  413. Error executing action `run` on resource 'bash[migrate gitlab-rails database]'
  414. ================================================================================
  415.  
  416. Mixlib::ShellOut::ShellCommandFailed
  417. ------------------------------------
  418. Expected process to exit with [0], but received '1'
  419. ---- Begin output of "bash" "/tmp/chef-script20191029-16229-1f1ka82" ----
  420. STDOUT: rake aborted!
  421. StandardError: An error has occurred, this and all later migrations canceled:
  422.  
  423. PG::NotNullViolation: ERROR: column "state_id" contains null values
  424. : ALTER TABLE "merge_requests" ALTER COLUMN "state_id" SET NOT NULL
  425. /opt/gitlab/embedded/service/gitlab-rails/db/migrate/20191008200204_add_state_id_default_value.rb:15:in `up'
  426. /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:49:in `block (3 levels) in <top (required)>'
  427. /opt/gitlab/embedded/bin/bundle:23:in `load'
  428. /opt/gitlab/embedded/bin/bundle:23:in `<main>'
  429.  
  430. Caused by:
  431. ActiveRecord::NotNullViolation: PG::NotNullViolation: ERROR: column "state_id" contains null values
  432. : ALTER TABLE "merge_requests" ALTER COLUMN "state_id" SET NOT NULL
  433. /opt/gitlab/embedded/service/gitlab-rails/db/migrate/20191008200204_add_state_id_default_value.rb:15:in `up'
  434. /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:49:in `block (3 levels) in <top (required)>'
  435. /opt/gitlab/embedded/bin/bundle:23:in `load'
  436. /opt/gitlab/embedded/bin/bundle:23:in `<main>'
  437.  
  438. Caused by:
  439. PG::NotNullViolation: ERROR: column "state_id" contains null values
  440. /opt/gitlab/embedded/service/gitlab-rails/db/migrate/20191008200204_add_state_id_default_value.rb:15:in `up'
  441. /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:49:in `block (3 levels) in <top (required)>'
  442. /opt/gitlab/embedded/bin/bundle:23:in `load'
  443. /opt/gitlab/embedded/bin/bundle:23:in `<main>'
  444. Tasks: TOP => db:migrate
  445. (See full trace by running task with --trace)
  446. == 20191008200204 AddStateIdDefaultValue: migrating ===========================
  447. -- change_column_default(:issues, :state_id, 1)
  448. -> 0.0110s
  449. -- change_column_null(:issues, :state_id, false)
  450. -> 0.0043s
  451. -- change_column_default(:merge_requests, :state_id, 1)
  452. -> 0.0029s
  453. -- change_column_null(:merge_requests, :state_id, false)
  454. STDERR:
  455. ---- End output of "bash" "/tmp/chef-script20191029-16229-1f1ka82" ----
  456. Ran "bash" "/tmp/chef-script20191029-16229-1f1ka82" returned 1
  457.  
  458. Resource Declaration:
  459. ---------------------
  460. # In /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/database_migrations.rb
  461.  
  462. 54: bash "migrate gitlab-rails database" do
  463. 55: code <<-EOH
  464. 56: set -e
  465. 57: log_file="#{node['gitlab']['gitlab-rails']['log_directory']}/gitlab-rails-db-migrate-$(date +%Y-%m-%d-%H-%M-%S).log"
  466. 58: umask 077
  467. 59: /opt/gitlab/bin/gitlab-rake gitlab:db:configure 2>& 1 | tee ${log_file}
  468. 60: STATUS=${PIPESTATUS[0]}
  469. 61: chown #{account_helper.gitlab_user}:#{account_helper.gitlab_group} ${log_file}
  470. 62: echo $STATUS > #{db_migrate_status_file}
  471. 63: exit $STATUS
  472. 64: EOH
  473. 65: environment env_variables unless env_variables.empty?
  474. 66: notifies :run, "execute[clear the gitlab-rails cache]", :immediately
  475. 67: dependent_services.each do |svc|
  476. 68: notifies :restart, svc, :immediately
  477. 69: end
  478. 70: not_if "(test -f #{db_migrate_status_file}) && (cat #{db_migrate_status_file} | grep -Fx 0)"
  479. 71: only_if { node['gitlab']['gitlab-rails']['auto_migrate'] }
  480. 72: end
  481. 73:
  482.  
  483. Compiled Resource:
  484. ------------------
  485. # Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/database_migrations.rb:54:in `from_file'
  486.  
  487. bash("migrate gitlab-rails database") do
  488. action [:run]
  489. default_guard_interpreter :default
  490. command nil
  491. backup 5
  492. interpreter "bash"
  493. declared_type :bash
  494. cookbook_name "gitlab"
  495. recipe_name "database_migrations"
  496. code " set -e\n log_file=\"/var/log/gitlab/gitlab-rails/gitlab-rails-db-migrate-$(date +%Y-%m-%d-%H-%M-%S).log\"\n umask 077\n /opt/gitlab/bin/gitlab-rake gitlab:db:configure 2>& 1 | tee ${log_file}\n STATUS=${PIPESTAT
  497. US[0]}\n chown git:git ${log_file}\n echo $STATUS > /var/opt/gitlab/gitlab-rails/upgrade-status/db-migrate-873248b1f0d3a7a5535771a3a1635803-1425a56c75b\n exit $STATUS\n"
  498. domain nil
  499. user nil
  500. not_if "(test -f /var/opt/gitlab/gitlab-rails/upgrade-status/db-migrate-873248b1f0d3a7a5535771a3a1635803-1425a56c75b) && (cat /var/opt/gitlab/gitlab-rails/upgrade-status/db-migrate-873248b1f0d3a7a5535771a3a1635803-1425a56c75b | grep
  501. -Fx 0)"
  502. only_if { #code block }
  503. end
  504.  
  505. System Info:
  506. ------------
  507. chef_version=14.13.11
  508. platform=ubuntu
  509. platform_version=16.04
  510. ruby=ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]
  511. program_name=/opt/gitlab/embedded/bin/chef-client
  512. executable=/opt/gitlab/embedded/bin/chef-client
  513.  
  514.  
  515. Running handlers:
  516. There was an error running gitlab-ctl reconfigure:
  517.  
  518. bash[migrate gitlab-rails database] (gitlab::database_migrations line 54) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
  519. ---- Begin output of "bash" "/tmp/chef-script20191029-16229-1f1ka82" ----
  520. STDOUT: rake aborted!
  521. StandardError: An error has occurred, this and all later migrations canceled:
  522.  
  523. PG::NotNullViolation: ERROR: column "state_id" contains null values
  524. : ALTER TABLE "merge_requests" ALTER COLUMN "state_id" SET NOT NULL
  525. /opt/gitlab/embedded/service/gitlab-rails/db/migrate/20191008200204_add_state_id_default_value.rb:15:in `up'
  526. /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:49:in `block (3 levels) in <top (required)>'
  527. /opt/gitlab/embedded/bin/bundle:23:in `load'
  528. /opt/gitlab/embedded/bin/bundle:23:in `<main>'
  529.  
  530. Caused by:
  531. ActiveRecord::NotNullViolation: PG::NotNullViolation: ERROR: column "state_id" contains null values
  532. : ALTER TABLE "merge_requests" ALTER COLUMN "state_id" SET NOT NULL
  533. /opt/gitlab/embedded/service/gitlab-rails/db/migrate/20191008200204_add_state_id_default_value.rb:15:in `up'
  534. /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:49:in `block (3 levels) in <top (required)>'
  535. /opt/gitlab/embedded/bin/bundle:23:in `load'
  536. /opt/gitlab/embedded/bin/bundle:23:in `<main>'
  537.  
  538. Caused by:
  539. PG::NotNullViolation: ERROR: column "state_id" contains null values
  540. /opt/gitlab/embedded/service/gitlab-rails/db/migrate/20191008200204_add_state_id_default_value.rb:15:in `up'
  541. /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:49:in `block (3 levels) in <top (required)>'
  542. /opt/gitlab/embedded/bin/bundle:23:in `load'
  543. /opt/gitlab/embedded/bin/bundle:23:in `<main>'
  544. Tasks: TOP => db:migrate
  545. (See full trace by running task with --trace)
  546. == 20191008200204 AddStateIdDefaultValue: migrating ===========================
  547. -- change_column_default(:issues, :state_id, 1)
  548. -> 0.0110s
  549. -- change_column_null(:issues, :state_id, false)
  550. -> 0.0043s
  551. -- change_column_default(:merge_requests, :state_id, 1)
  552. -> 0.0029s
  553. -- change_column_null(:merge_requests, :state_id, false)
  554. STDERR:
  555. ---- End output of "bash" "/tmp/chef-script20191029-16229-1f1ka82" ----
  556. Ran "bash" "/tmp/chef-script20191029-16229-1f1ka82" returned 1
  557.  
  558. Running handlers complete
  559. Chef Client failed. 2 resources updated in 21 seconds
Advertisement
Add Comment
Please, Sign In to add comment