Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capistrano 3.6.1 not deploying the latest revision if using a branch #2024

Open
jedrekdomanski opened this issue Jul 16, 2019 · 8 comments
Open

Comments

@jedrekdomanski
Copy link

I've posted a similar issue several days ago but I am seeing weird behavior of Capistrano again when deploying different branch.

I want to test the deploymnet of my maintenance branch. I will use it whenever I want to turn off my application for the time of maitenance. I pushed the branch and this is my config.

config/staging_maintenance.rb

set :user, 'apps'

set :stage, :staging

set :deploy_to, "/home/#{fetch(:user)}/app/shop-#{fetch(:application)}/production/"
set :branch, 'maintenance'

server 'XXX.XXX.XXX',
  user: 'apps',
  roles: %w{web app db},
  ssh_options: {
    forward_agent: true,
    port: 6667
  }

namespace :npm do
  task :build do
    on roles(:app) do
      execute "cd #{current_path} && npm install && npm run build"
    end
  end

  task :restart do
    on roles(:app) do
      execute "sv restart /home/apps/runit/service/shop-lauber-frontend-web-1"
    end
  end
end

before 'deploy:cleanup', 'npm:build'
after :deploy, 'npm:restart'

The latest commit on this branch is ae4980a47e0fdc8067d3d46683cf3464484b90eb

git log
commit ae4980a47e0fdc8067d3d46683cf3464484b90eb (HEAD -> maintenance, origin/maintenance)
Author: Jędrek Domański <jedrek.domanski@gmail.com>
Date:   Tue Jul 16 11:41:01 2019 +0200

    Add maintenance page

In current folder I check it:

cat REVISION
ae4980a47e0fdc8067d3d46683cf3464484b90eb

In the stacktrace I can see that current folder is symlinked with 20190716095633 which is the latest release so I check it in 20190716095633 folder.

cd 20190716095633
cat REVISION
ae4980a47e0fdc8067d3d46683cf3464484b90eb

Everything fine.

But in /repo folder I do not see this commit:

git log
commit a9ca7b8687c4fd0a00225095f481ccd12d2aec7d

What's going on here?
This line confirms that the maintenance branch got deployed and the latest revision is at ae4980a47e0fdc8067d3d46683cf3464484b90eb

Running /usr/bin/env echo "Branch maintenance (at ae4980a47e0fdc8067d3d46683cf3464484b90eb) deployed as release 20190716095633 by jedrek" >> /home/apps/app/shop-lauber-frontend/production/revisions.log

I tried removing the repo folder and re-deploying but that didn't help. I shouldn't have to do that when I want to deploy a different branch, I think.

Full stacktrace.

cap staging_maintenance deploy --trace
** Invoke staging_maintenance (first_time)
** Execute staging_maintenance
** Invoke load:defaults (first_time)
** Execute load:defaults
** Invoke deploy (first_time)
** Execute deploy
** Invoke deploy:starting (first_time)
** Execute deploy:starting
** Invoke deploy:check (first_time)
** Execute deploy:check
** Invoke git:check (first_time)
** Invoke git:wrapper (first_time)
** Execute git:wrapper
  INFO [369ee64a] Running /usr/bin/env mkdir -p /tmp as apps@lauber_staging_apps
 DEBUG [369ee64a] Command: /usr/bin/env mkdir -p /tmp
  INFO [369ee64a] Finished in 0.197 seconds with exit status 0 (successful).
 DEBUG Uploading /tmp/git-ssh-lauber-frontend-staging-jedrek.sh 0.0%
  INFO Uploading /tmp/git-ssh-lauber-frontend-staging-jedrek.sh 100.0%
  INFO [58161a1b] Running /usr/bin/env chmod 700 /tmp/git-ssh-lauber-frontend-staging-jedrek.sh as apps@lauber_staging_apps
 DEBUG [58161a1b] Command: /usr/bin/env chmod 700 /tmp/git-ssh-lauber-frontend-staging-jedrek.sh
  INFO [58161a1b] Finished in 0.030 seconds with exit status 0 (successful).
** Execute git:check
  INFO [2cec5909] Running /usr/bin/env git ls-remote --heads git@gitlab.com:lauber/lauber-frontend.git as apps@lauber_staging_apps
 DEBUG [2cec5909] Command: ( export GIT_ASKPASS="/bin/echo" GIT_SSH="/tmp/git-ssh-lauber-frontend-staging-jedrek.sh" ; /usr/bin/env git ls-remote --heads git@gitlab.com:lauber/lauber-frontend.git )
 DEBUG [2cec5909]   c30af359a8e0fa0494d842005d29cee8ab685ba6  refs/heads/LK-743-Headers-optimizations
b8b65e312245e409c11d40d5fc791f501f137505  refs/heads/LK-744-Add-meta-tags-and-meta-descriptions
a78d7aa366d944d24bccbe26a3563fbab0fbde53  refs/heads/LK-746-Friendly-urls
3cf9da5b998b22e45fb0bb409aeea3d91f4e4e42  refs/heads/LK-748-Images-alt-descriptions
23953e6d2a0bb7f8e71f73a9cbab0f92d2a32ba3  refs/heads/LK-750-Rich-snippets
be8ae00a1ae6da190effa3144d314039ed728077  refs/heads/LK-757-Add-subdomains-for-languages
3503c45fbf2475a7ae5cdb34227fd4e187fff031  refs/heads/LK-761-List-page-for-categories
17549a551c28f1fdd9b6688633af2b0ae327e3b9  refs/heads/LK-763-Title-and-short-description-for-part-page
67357f094433021d13577b4d84c038998064cb63  refs/heads/catalog
a9ca7b8687c4fd0a00225095f481ccd12d2aec7d  refs/heads/dev
ae4980a47e0fdc8067d3d46683cf3464484b90eb  refs/heads/maintenance
39f90d30754c32bd422c00df8139a8a369398864  refs/heads/master
8e12f9b452e7ba41c432554c68302a035e62a97a  refs/heads/properties
8ce29ee1dfe13828188e5d5b0275e211dc9f4032  refs/heads/shop
5becebcddb8d39ffcdc84a3b33af2c3a47e23db1  refs/heads/test-deploy-branch
ae3ea93e749c99d4d2e17986b6afe35b23c5b5b3  refs/heads/vehicles
  INFO [2cec5909] Finished in 1.935 seconds with exit status 0 (successful).
** Invoke deploy:check:directories (first_time)
** Execute deploy:check:directories
  INFO [f5dc0064] Running /usr/bin/env mkdir -p /home/apps/app/shop-lauber-frontend/production/shared /home/apps/app/shop-lauber-frontend/production/releases as apps@lauber_staging_apps
 DEBUG [f5dc0064] Command: /usr/bin/env mkdir -p /home/apps/app/shop-lauber-frontend/production/shared /home/apps/app/shop-lauber-frontend/production/releases
  INFO [f5dc0064] Finished in 0.054 seconds with exit status 0 (successful).
** Invoke deploy:check:linked_dirs (first_time)
** Execute deploy:check:linked_dirs
  INFO [eb1b103b] Running /usr/bin/env mkdir -p /home/apps/app/shop-lauber-frontend/production/shared/app/translations as apps@lauber_staging_apps
 DEBUG [eb1b103b] Command: /usr/bin/env mkdir -p /home/apps/app/shop-lauber-frontend/production/shared/app/translations
  INFO [eb1b103b] Finished in 0.044 seconds with exit status 0 (successful).
** Invoke deploy:check:make_linked_dirs (first_time)
** Execute deploy:check:make_linked_dirs
  INFO [e2d9aad2] Running /usr/bin/env mkdir -p /home/apps/app/shop-lauber-frontend/production/shared as apps@lauber_staging_apps
 DEBUG [e2d9aad2] Command: /usr/bin/env mkdir -p /home/apps/app/shop-lauber-frontend/production/shared
  INFO [e2d9aad2] Finished in 0.033 seconds with exit status 0 (successful).
** Invoke deploy:check:linked_files (first_time)
** Execute deploy:check:linked_files
 DEBUG [fcdc4bc7] Running [ -f /home/apps/app/shop-lauber-frontend/production/shared/.env ] as apps@lauber_staging_apps
 DEBUG [fcdc4bc7] Command: [ -f /home/apps/app/shop-lauber-frontend/production/shared/.env ]
 DEBUG [fcdc4bc7] Finished in 0.040 seconds with exit status 0 (successful).
** Invoke deploy:set_previous_revision (first_time)
** Execute deploy:set_previous_revision
 DEBUG [3d625fcc] Running [ -f /home/apps/app/shop-lauber-frontend/production/current/REVISION ] as apps@lauber_staging_apps
 DEBUG [3d625fcc] Command: [ -f /home/apps/app/shop-lauber-frontend/production/current/REVISION ]
 DEBUG [3d625fcc] Finished in 0.036 seconds with exit status 0 (successful).
 DEBUG [f9e1d833] Running /usr/bin/env cat /home/apps/app/shop-lauber-frontend/production/current/REVISION 2>/dev/null as apps@lauber_staging_apps
 DEBUG [f9e1d833] Command: /usr/bin/env cat /home/apps/app/shop-lauber-frontend/production/current/REVISION 2>/dev/null
 DEBUG [f9e1d833]   ae4980a47e0fdc8067d3d46683cf3464484b90eb
 DEBUG [f9e1d833] Finished in 0.037 seconds with exit status 0 (successful).
** Invoke deploy:started (first_time)
** Execute deploy:started
** Invoke deploy:updating (first_time)
** Invoke deploy:new_release_path (first_time)
** Execute deploy:new_release_path
** Execute deploy:updating
** Invoke git:create_release (first_time)
** Invoke git:update (first_time)
** Invoke git:clone (first_time)
** Invoke git:wrapper 
** Execute git:clone
DEBUG [95d1cb23] Running [ -f /home/apps/app/shop-lauber-frontend/production/repo/HEAD ] as apps@lauber_staging_apps
 DEBUG [95d1cb23] Command: [ -f /home/apps/app/shop-lauber-frontend/production/repo/HEAD ]
 DEBUG [95d1cb23] Finished in 0.042 seconds with exit status 1 (failed).
 DEBUG [4c74af74] Running if test ! -d /home/apps/app/shop-lauber-frontend/production/; then echo "Directory does not exist '/home/apps/app/shop-lauber-frontend/production/'" 1>&2; false; fi as apps@lauber_staging_apps
 DEBUG [4c74af74] Command: if test ! -d /home/apps/app/shop-lauber-frontend/production/; then echo "Directory does not exist '/home/apps/app/shop-lauber-frontend/production/'" 1>&2; false; fi
 DEBUG [4c74af74] Finished in 0.028 seconds with exit status 0 (successful).
  INFO [84b88465] Running /usr/bin/env git clone --mirror git@gitlab.com:lauber/lauber-frontend.git /home/apps/app/shop-lauber-frontend/production/repo as apps@lauber_staging_apps
 DEBUG [84b88465] Command: cd /home/apps/app/shop-lauber-frontend/production/ && ( export GIT_ASKPASS="/bin/echo" GIT_SSH="/tmp/git-ssh-lauber-frontend-staging-jedrek.sh" ; /usr/bin/env git clone --mirror git@gitlab.com:lauber/lauber-frontend.git /home/apps/app/shop-lauber-frontend/production/repo )
 DEBUG [84b88465]   Cloning into bare repository '/home/apps/app/shop-lauber-frontend/production/repo'...
  INFO [84b88465] Finished in 3.703 seconds with exit status 0 (successful).
** Execute git:update
 DEBUG [40598fa6] Running if test ! -d /home/apps/app/shop-lauber-frontend/production/repo; then echo "Directory does not exist '/home/apps/app/shop-lauber-frontend/production/repo'" 1>&2; false; fi as apps@lauber_staging_apps
 DEBUG [40598fa6] Command: if test ! -d /home/apps/app/shop-lauber-frontend/production/repo; then echo "Directory does not exist '/home/apps/app/shop-lauber-frontend/production/repo'" 1>&2; false; fi
 DEBUG [40598fa6] Finished in 0.028 seconds with exit status 0 (successful).
  INFO [7adc4720] Running /usr/bin/env git remote update --prune as apps@lauber_staging_apps
 DEBUG [7adc4720] Command: cd /home/apps/app/shop-lauber-frontend/production/repo && ( export GIT_ASKPASS="/bin/echo" GIT_SSH="/tmp/git-ssh-lauber-frontend-staging-jedrek.sh" ; /usr/bin/env git remote update --prune )
 DEBUG [7adc4720]   Fetching origin
  INFO [7adc4720] Finished in 1.859 seconds with exit status 0 (successful).
** Execute git:create_release
 DEBUG [57aafb8d] Running if test ! -d /home/apps/app/shop-lauber-frontend/production/repo; then echo "Directory does not exist '/home/apps/app/shop-lauber-frontend/production/repo'" 1>&2; false; fi as apps@lauber_staging_apps
 DEBUG [57aafb8d] Command: if test ! -d /home/apps/app/shop-lauber-frontend/production/repo; then echo "Directory does not exist '/home/apps/app/shop-lauber-frontend/production/repo'" 1>&2; false; fi
 DEBUG [57aafb8d] Finished in 0.030 seconds with exit status 0 (successful).
  INFO [43491504] Running /usr/bin/env mkdir -p /home/apps/app/shop-lauber-frontend/production/releases/20190716095633 as apps@lauber_staging_apps
 DEBUG [43491504] Command: cd /home/apps/app/shop-lauber-frontend/production/repo && ( export GIT_ASKPASS="/bin/echo" GIT_SSH="/tmp/git-ssh-lauber-frontend-staging-jedrek.sh" ; /usr/bin/env mkdir -p /home/apps/app/shop-lauber-frontend/production/releases/20190716095633 )
  INFO [43491504] Finished in 0.028 seconds with exit status 0 (successful).
  INFO [060ab6fb] Running /usr/bin/env git archive maintenance | tar -x -f - -C /home/apps/app/shop-lauber-frontend/production/releases/20190716095633 as apps@lauber_staging_apps
 DEBUG [060ab6fb] Command: cd /home/apps/app/shop-lauber-frontend/production/repo && ( export GIT_ASKPASS="/bin/echo" GIT_SSH="/tmp/git-ssh-lauber-frontend-staging-jedrek.sh" ; /usr/bin/env git archive maintenance | tar -x -f - -C /home/apps/app/shop-lauber-frontend/production/releases/20190716095633 )
  INFO [060ab6fb] Finished in 0.079 seconds with exit status 0 (successful).
** Invoke deploy:set_current_revision (first_time)
** Execute deploy:set_current_revision
** Invoke git:set_current_revision (first_time)
** Execute git:set_current_revision
 DEBUG [26e96c62] Running if test ! -d /home/apps/app/shop-lauber-frontend/production/repo; then echo "Directory does not exist '/home/apps/app/shop-lauber-frontend/production/repo'" 1>&2; false; fi as apps@lauber_staging_apps
 DEBUG [26e96c62] Command: if test ! -d /home/apps/app/shop-lauber-frontend/production/repo; then echo "Directory does not exist '/home/apps/app/shop-lauber-frontend/production/repo'" 1>&2; false; fi
 DEBUG [26e96c62] Finished in 0.029 seconds with exit status 0 (successful).
 DEBUG [bf7d7c18] Running /usr/bin/env git rev-list --max-count=1 maintenance as apps@lauber_staging_apps
 DEBUG [bf7d7c18] Command: cd /home/apps/app/shop-lauber-frontend/production/repo && ( export GIT_ASKPASS="/bin/echo" GIT_SSH="/tmp/git-ssh-lauber-frontend-staging-jedrek.sh" ; /usr/bin/env git rev-list --max-count=1 maintenance )
 DEBUG [bf7d7c18]   ae4980a47e0fdc8067d3d46683cf3464484b90eb
 DEBUG [bf7d7c18] Finished in 0.038 seconds with exit status 0 (successful).
 DEBUG [97768c0c] Running if test ! -d /home/apps/app/shop-lauber-frontend/production/releases/20190716095633; then echo "Directory does not exist '/home/apps/app/shop-lauber-frontend/production/releases/20190716095633'" 1>&2; false; fi as apps@lauber_staging_apps
 DEBUG [97768c0c] Command: if test ! -d /home/apps/app/shop-lauber-frontend/production/releases/20190716095633; then echo "Directory does not exist '/home/apps/app/shop-lauber-frontend/production/releases/20190716095633'" 1>&2; false; fi
 DEBUG [97768c0c] Finished in 0.030 seconds with exit status 0 (successful).
  INFO [10243c88] Running /usr/bin/env echo "ae4980a47e0fdc8067d3d46683cf3464484b90eb" >> REVISION as apps@lauber_staging_apps
 DEBUG [10243c88] Command: cd /home/apps/app/shop-lauber-frontend/production/releases/20190716095633 && /usr/bin/env echo "ae4980a47e0fdc8067d3d46683cf3464484b90eb" >> REVISION
  INFO [10243c88] Finished in 0.026 seconds with exit status 0 (successful).
** Invoke deploy:symlink:shared (first_time)
** Execute deploy:symlink:shared
** Invoke deploy:symlink:linked_files (first_time)
** Execute deploy:symlink:linked_files
  INFO [596b772e] Running /usr/bin/env mkdir -p /home/apps/app/shop-lauber-frontend/production/releases/20190716095633 as apps@lauber_staging_apps
 DEBUG [596b772e] Command: /usr/bin/env mkdir -p /home/apps/app/shop-lauber-frontend/production/releases/20190716095633
  INFO [596b772e] Finished in 0.036 seconds with exit status 0 (successful).
 DEBUG [e97c56df] Running [ -L /home/apps/app/shop-lauber-frontend/production/releases/20190716095633/.env ] as apps@lauber_staging_apps
 DEBUG [e97c56df] Command: [ -L /home/apps/app/shop-lauber-frontend/production/releases/20190716095633/.env ]
 DEBUG [e97c56df] Finished in 0.029 seconds with exit status 1 (failed).
 DEBUG [ecae4727] Running [ -f /home/apps/app/shop-lauber-frontend/production/releases/20190716095633/.env ] as apps@lauber_staging_apps
 DEBUG [ecae4727] Command: [ -f /home/apps/app/shop-lauber-frontend/production/releases/20190716095633/.env ]
 DEBUG [ecae4727] Finished in 0.026 seconds with exit status 1 (failed).
  INFO [3a12362e] Running /usr/bin/env ln -s /home/apps/app/shop-lauber-frontend/production/shared/.env /home/apps/app/shop-lauber-frontend/production/releases/20190716095633/.env as apps@lauber_staging_apps
 DEBUG [3a12362e] Command: /usr/bin/env ln -s /home/apps/app/shop-lauber-frontend/production/shared/.env /home/apps/app/shop-lauber-frontend/production/releases/20190716095633/.env
  INFO [3a12362e] Finished in 0.027 seconds with exit status 0 (successful).
** Invoke deploy:symlink:linked_dirs (first_time)
** Execute deploy:symlink:linked_dirs
  INFO [be63af56] Running /usr/bin/env mkdir -p /home/apps/app/shop-lauber-frontend/production/releases/20190716095633/app as apps@lauber_staging_apps
 DEBUG [be63af56] Command: /usr/bin/env mkdir -p /home/apps/app/shop-lauber-frontend/production/releases/20190716095633/app
  INFO [be63af56] Finished in 0.033 seconds with exit status 0 (successful).
 DEBUG [6c7fae39] Running [ -L /home/apps/app/shop-lauber-frontend/production/releases/20190716095633/app/translations ] as apps@lauber_staging_apps
 DEBUG [6c7fae39] Command: [ -L /home/apps/app/shop-lauber-frontend/production/releases/20190716095633/app/translations ]
 DEBUG [6c7fae39] Finished in 0.033 seconds with exit status 1 (failed).
 DEBUG [19b38b1c] Running [ -d /home/apps/app/shop-lauber-frontend/production/releases/20190716095633/app/translations ] as apps@lauber_staging_apps
 DEBUG [19b38b1c] Command: [ -d /home/apps/app/shop-lauber-frontend/production/releases/20190716095633/app/translations ]
 DEBUG [19b38b1c] Finished in 0.026 seconds with exit status 0 (successful).
  INFO [ae061a62] Running /usr/bin/env rm -rf /home/apps/app/shop-lauber-frontend/production/releases/20190716095633/app/translations as apps@lauber_staging_apps
 DEBUG [ae061a62] Command: /usr/bin/env rm -rf /home/apps/app/shop-lauber-frontend/production/releases/20190716095633/app/translations
  INFO [ae061a62] Finished in 0.033 seconds with exit status 0 (successful).
  INFO [c6098e0a] Running /usr/bin/env ln -s /home/apps/app/shop-lauber-frontend/production/shared/app/translations /home/apps/app/shop-lauber-frontend/production/releases/20190716095633/app/translations as apps@lauber_staging_apps
 DEBUG [c6098e0a] Command: /usr/bin/env ln -s /home/apps/app/shop-lauber-frontend/production/shared/app/translations /home/apps/app/shop-lauber-frontend/production/releases/20190716095633/app/translations
  INFO [c6098e0a] Finished in 0.032 seconds with exit status 0 (successful).
** Invoke deploy:updated (first_time)
** Execute deploy:updated
** Invoke deploy:publishing (first_time)
** Execute deploy:publishing
** Invoke deploy:symlink:release (first_time)
** Execute deploy:symlink:release
  INFO [a829eb28] Running /usr/bin/env ln -s /home/apps/app/shop-lauber-frontend/production/releases/20190716095633 /home/apps/app/shop-lauber-frontend/production/releases/current as apps@lauber_staging_apps
 DEBUG [a829eb28] Command: /usr/bin/env ln -s /home/apps/app/shop-lauber-frontend/production/releases/20190716095633 /home/apps/app/shop-lauber-frontend/production/releases/current
  INFO [a829eb28] Finished in 0.033 seconds with exit status 0 (successful).
  INFO [ea9678db] Running /usr/bin/env mv /home/apps/app/shop-lauber-frontend/production/releases/current /home/apps/app/shop-lauber-frontend/production as apps@lauber_staging_apps
 DEBUG [ea9678db] Command: /usr/bin/env mv /home/apps/app/shop-lauber-frontend/production/releases/current /home/apps/app/shop-lauber-frontend/production
  INFO [ea9678db] Finished in 0.033 seconds with exit status 0 (successful).
** Invoke deploy:published (first_time)
** Execute deploy:published
** Invoke deploy:finishing (first_time)
** Execute deploy:finishing
** Invoke deploy:cleanup (first_time)
** Invoke npm:build (first_time)
** Execute npm:build
  INFO [f201f661] Running cd /home/apps/app/shop-lauber-frontend/production/current && npm install && npm run build as apps@lauber_staging_apps
 DEBUG [f201f661] Command: cd /home/apps/app/shop-lauber-frontend/production/current && npm install && npm run build
DEBUG [f201f661]  [1270] multi main 28 bytes {49} [built]
[1645] ./app/assets/images/categories ^\.\/offer\-.*\.png$ 540 bytes {3} [built]
    + 1924 hidden modules
  INFO [f201f661] Finished in 135.148 seconds with exit status 0 (successful).
** Execute deploy:cleanup
 DEBUG [fd08ea68] Running /usr/bin/env ls -xtr /home/apps/app/shop-lauber-frontend/production/releases as apps@lauber_staging_apps
 DEBUG [fd08ea68] Command: /usr/bin/env ls -xtr /home/apps/app/shop-lauber-frontend/production/releases
 DEBUG [fd08ea68]   20190713174243  20190714102128  20190714112758  20190714120526  20190716094355
20190716095633
 DEBUG [fd08ea68] Finished in 0.032 seconds with exit status 0 (successful).
  INFO Keeping 5 of 6 deployed releases on lauber_staging_apps
  INFO [3870b394] Running /usr/bin/env rm -rf /home/apps/app/shop-lauber-frontend/production/releases/20190713174243 as apps@lauber_staging_apps
 DEBUG [3870b394] Command: /usr/bin/env rm -rf /home/apps/app/shop-lauber-frontend/production/releases/20190713174243
  INFO [3870b394] Finished in 0.888 seconds with exit status 0 (successful).
** Invoke deploy:finished (first_time)
** Execute deploy:finished
** Invoke deploy:log_revision (first_time)
** Execute deploy:log_revision
 DEBUG [6d3b37ab] Running if test ! -d /home/apps/app/shop-lauber-frontend/production/releases; then echo "Directory does not exist '/home/apps/app/shop-lauber-frontend/production/releases'" 1>&2; false; fi as apps@lauber_staging_apps
 DEBUG [6d3b37ab] Command: if test ! -d /home/apps/app/shop-lauber-frontend/production/releases; then echo "Directory does not exist '/home/apps/app/shop-lauber-frontend/production/releases'" 1>&2; false; fi
 DEBUG [6d3b37ab] Finished in 0.031 seconds with exit status 0 (successful).
  INFO [decb2f7e] Running /usr/bin/env echo "Branch maintenance (at ae4980a47e0fdc8067d3d46683cf3464484b90eb) deployed as release 20190716095633 by jedrek" >> /home/apps/app/shop-lauber-frontend/production/revisions.log as apps@lauber_staging_apps
 DEBUG [decb2f7e] Command: cd /home/apps/app/shop-lauber-frontend/production/releases && /usr/bin/env echo "Branch maintenance (at ae4980a47e0fdc8067d3d46683cf3464484b90eb) deployed as release 20190716095633 by jedrek" >> /home/apps/app/shop-lauber-frontend/production/revisions.log
  INFO [decb2f7e] Finished in 0.031 seconds with exit status 0 (successful).
** Invoke npm:restart (first_time)
** Execute npm:restart
  INFO [4c2fc718] Running sv restart /home/apps/runit/service/shop-lauber-frontend-web-1 as apps@lauber_staging_apps
 DEBUG [4c2fc718] Command: sv restart /home/apps/runit/service/shop-lauber-frontend-web-1
 DEBUG [4c2fc718]   ok: run: /home/apps/runit/service/shop-lauber-frontend-web-1: (pid 14835) 1s
  INFO [4c2fc718] Finished in 0.451 seconds with exit status 0 (successful).
@leehambley
Copy link
Member

Is this possibly the same issue that you reported in #2023 under a different set of weirdness?

@jedrekdomanski
Copy link
Author

jedrekdomanski commented Jul 16, 2019

No, @leehambley The issue there was that the repo_url changed and I have fixed it. Now I am seeing weird beahvior. The /repo folder is not in sync with current folder.

@jedrekdomanski
Copy link
Author

jedrekdomanski commented Jul 16, 2019

@leehambley Any idea why this is happening? Am I doing something wrong? I've just deployed dev branch and it works fine. Only cap staging_maintenance deploy is acting weirdly.

@leehambley
Copy link
Member

From the output

 DEBUG [060ab6fb] Command: cd /home/apps/app/shop-lauber-frontend/production/repo && ( export GIT_ASKPASS="/bin/echo" GIT_SSH="/tmp/git-ssh-lauber-frontend-staging-jedrek.sh" ; /usr/bin/env git archive maintenance | tar -x -f - -C /home/apps/app/shop-lauber-frontend/production/releases/20190716095633 )

looks largely correct, no? the ln -s command is linking current to 20190716095633 as one would expect...

I don't think that you can necessarily expect repo to be checked out to the same revision.

As a team we've been back and forward on that, but we use git-archive to checkout a named ref into a tar stream, which we stream back out into the newly created release dir, so I don't think that's a good indicator of whether the right thing was checked out or not.

@mattbrictson
Copy link
Member

@jedrekdomanski can you clarify the problem a bit more? From your description it sounds like current has the correct code, current/REVISION has the correct SHA, and revisions.log has the correct SHA as well.

@mattbrictson
Copy link
Member

we use git-archive to checkout a named ref into a tar stream, which we stream back out into the newly created release dir, so I don't think that's a good indicator of whether the right thing was checked out or not.

Yes, what @leehambley said 😃

The /repo is a bare clone that does not have a working copy, so it will not match the contents of /current. I am a bit surprised that git log doesn't include the commit you expect, but that may be a side effect of git clone --mirror that I don't quite understand.

@jedrekdomanski
Copy link
Author

Thank you very much, for getting back to me, guys. I deployed another branch an hour ago and now I tried deploying my maintenance branch to try it again and all of a sudden this time it worked fine :) Previously, after I deployed my maintenance branch the problem I had @mattbrictson was that the latest release folder and current folder (symlinked to the latest release) included the latest commit in REVISION file but it didn't reflect on the page itself. I expected to see a maintenance page but I didn't. I was very surprised and I checked the repo folder and it didn't include the latest commit so I was baffled. Judging by the difference between the repo and current folder it looked like the latest commit was not deployed. I don't understand this behavior, to be honest. It doesn't work sometimes, the other time it works...:)

Here's the latest stacktrace just in case you wanted to compare...

cap staging_maintenance deploy --trace
** Invoke staging_maintenance (first_time)
** Execute staging_maintenance
** Invoke load:defaults (first_time)
** Execute load:defaults
** Invoke deploy (first_time)
** Execute deploy
** Invoke deploy:starting (first_time)
** Execute deploy:starting
** Invoke deploy:check (first_time)
** Execute deploy:check
** Invoke git:check (first_time)
** Invoke git:wrapper (first_time)
** Execute git:wrapper
  INFO [0af3037b] Running /usr/bin/env mkdir -p /tmp as apps@lauber_staging_apps
 DEBUG [0af3037b] Command: /usr/bin/env mkdir -p /tmp
  INFO [0af3037b] Finished in 0.362 seconds with exit status 0 (successful).
 DEBUG Uploading /tmp/git-ssh-lauber-frontend-staging-jedrek.sh 0.0%
  INFO Uploading /tmp/git-ssh-lauber-frontend-staging-jedrek.sh 100.0%
  INFO [bd11de41] Running /usr/bin/env chmod 700 /tmp/git-ssh-lauber-frontend-staging-jedrek.sh as apps@lauber_staging_apps
 DEBUG [bd11de41] Command: /usr/bin/env chmod 700 /tmp/git-ssh-lauber-frontend-staging-jedrek.sh
  INFO [bd11de41] Finished in 0.027 seconds with exit status 0 (successful).
** Execute git:check
  INFO [0e21282a] Running /usr/bin/env git ls-remote --heads git@gitlab.com:lauber/lauber-frontend.git as apps@lauber_staging_apps
 DEBUG [0e21282a] Command: ( export GIT_ASKPASS="/bin/echo" GIT_SSH="/tmp/git-ssh-lauber-frontend-staging-jedrek.sh" ; /usr/bin/env git ls-remote --heads git@gitlab.com:lauber/lauber-frontend.git )
 DEBUG [0e21282a] 	c30af359a8e0fa0494d842005d29cee8ab685ba6	refs/heads/LK-743-Headers-optimizations
b8b65e312245e409c11d40d5fc791f501f137505	refs/heads/LK-744-Add-meta-tags-and-meta-descriptions
a78d7aa366d944d24bccbe26a3563fbab0fbde53	refs/heads/LK-746-Friendly-urls
3cf9da5b998b22e45fb0bb409aeea3d91f4e4e42	refs/heads/LK-748-Images-alt-descriptions
23953e6d2a0bb7f8e71f73a9cbab0f92d2a32ba3	refs/heads/LK-750-Rich-snippets
be8ae00a1ae6da190effa3144d314039ed728077	refs/heads/LK-757-Add-subdomains-for-languages
3503c45fbf2475a7ae5cdb34227fd4e187fff031	refs/heads/LK-761-List-page-for-categories
17549a551c28f1fdd9b6688633af2b0ae327e3b9	refs/heads/LK-763-Title-and-short-description-for-part-page
67357f094433021d13577b4d84c038998064cb63	refs/heads/catalog
f0866a753aaf76de46b5a77ccd3232d54a26c8a1	refs/heads/dev
ae4980a47e0fdc8067d3d46683cf3464484b90eb	refs/heads/maintenance
39f90d30754c32bd422c00df8139a8a369398864	refs/heads/master
8e12f9b452e7ba41c432554c68302a035e62a97a	refs/heads/properties
8ce29ee1dfe13828188e5d5b0275e211dc9f4032	refs/heads/shop
5becebcddb8d39ffcdc84a3b33af2c3a47e23db1	refs/heads/test-deploy-branch
ae3ea93e749c99d4d2e17986b6afe35b23c5b5b3	refs/heads/vehicles
  INFO [0e21282a] Finished in 9.381 seconds with exit status 0 (successful).
** Invoke deploy:check:directories (first_time)
** Execute deploy:check:directories
  INFO [d21c870d] Running /usr/bin/env mkdir -p /home/apps/app/shop-lauber-frontend/production/shared /home/apps/app/shop-lauber-frontend/production/releases as apps@lauber_staging_apps
 DEBUG [d21c870d] Command: /usr/bin/env mkdir -p /home/apps/app/shop-lauber-frontend/production/shared /home/apps/app/shop-lauber-frontend/production/releases
  INFO [d21c870d] Finished in 0.030 seconds with exit status 0 (successful).
** Invoke deploy:check:linked_dirs (first_time)
** Execute deploy:check:linked_dirs
  INFO [6bef1772] Running /usr/bin/env mkdir -p /home/apps/app/shop-lauber-frontend/production/shared/app/translations as apps@lauber_staging_apps
 DEBUG [6bef1772] Command: /usr/bin/env mkdir -p /home/apps/app/shop-lauber-frontend/production/shared/app/translations
  INFO [6bef1772] Finished in 0.032 seconds with exit status 0 (successful).
** Invoke deploy:check:make_linked_dirs (first_time)
** Execute deploy:check:make_linked_dirs
  INFO [292c7031] Running /usr/bin/env mkdir -p /home/apps/app/shop-lauber-frontend/production/shared as apps@lauber_staging_apps
 DEBUG [292c7031] Command: /usr/bin/env mkdir -p /home/apps/app/shop-lauber-frontend/production/shared
  INFO [292c7031] Finished in 0.034 seconds with exit status 0 (successful).
** Invoke deploy:check:linked_files (first_time)
** Execute deploy:check:linked_files
 DEBUG [db211139] Running [ -f /home/apps/app/shop-lauber-frontend/production/shared/.env ] as apps@lauber_staging_apps
 DEBUG [db211139] Command: [ -f /home/apps/app/shop-lauber-frontend/production/shared/.env ]
 DEBUG [db211139] Finished in 0.036 seconds with exit status 0 (successful).
** Invoke deploy:set_previous_revision (first_time)
** Execute deploy:set_previous_revision
 DEBUG [a807c218] Running [ -f /home/apps/app/shop-lauber-frontend/production/current/REVISION ] as apps@lauber_staging_apps
 DEBUG [a807c218] Command: [ -f /home/apps/app/shop-lauber-frontend/production/current/REVISION ]
 DEBUG [a807c218] Finished in 0.028 seconds with exit status 0 (successful).
 DEBUG [2b8ffdb1] Running /usr/bin/env cat /home/apps/app/shop-lauber-frontend/production/current/REVISION 2>/dev/null as apps@lauber_staging_apps
 DEBUG [2b8ffdb1] Command: /usr/bin/env cat /home/apps/app/shop-lauber-frontend/production/current/REVISION 2>/dev/null
 DEBUG [2b8ffdb1] 	7905de9745973007d478148d75dcb8341a0dc9b8
 DEBUG [2b8ffdb1] Finished in 0.033 seconds with exit status 0 (successful).
** Invoke deploy:started (first_time)
** Execute deploy:started
** Invoke deploy:updating (first_time)
** Invoke deploy:new_release_path (first_time)
** Execute deploy:new_release_path
** Execute deploy:updating
** Invoke git:create_release (first_time)
** Invoke git:update (first_time)
** Invoke git:clone (first_time)
** Invoke git:wrapper 
** Execute git:clone
 DEBUG [75fcb44c] Running [ -f /home/apps/app/shop-lauber-frontend/production/repo/HEAD ] as apps@lauber_staging_apps
 DEBUG [75fcb44c] Command: [ -f /home/apps/app/shop-lauber-frontend/production/repo/HEAD ]
 DEBUG [75fcb44c] Finished in 0.031 seconds with exit status 0 (successful).
  INFO The repository mirror is at /home/apps/app/shop-lauber-frontend/production/repo
** Execute git:update
 DEBUG [88ddf664] Running if test ! -d /home/apps/app/shop-lauber-frontend/production/repo; then echo "Directory does not exist '/home/apps/app/shop-lauber-frontend/production/repo'" 1>&2; false; fi as apps@lauber_staging_apps
 DEBUG [88ddf664] Command: if test ! -d /home/apps/app/shop-lauber-frontend/production/repo; then echo "Directory does not exist '/home/apps/app/shop-lauber-frontend/production/repo'" 1>&2; false; fi
 DEBUG [88ddf664] Finished in 0.030 seconds with exit status 0 (successful).
  INFO [04135b91] Running /usr/bin/env git remote update --prune as apps@lauber_staging_apps
 DEBUG [04135b91] Command: cd /home/apps/app/shop-lauber-frontend/production/repo && ( export GIT_ASKPASS="/bin/echo" GIT_SSH="/tmp/git-ssh-lauber-frontend-staging-jedrek.sh" ; /usr/bin/env git remote update --prune )
 DEBUG [04135b91] 	Fetching origin
 DEBUG [04135b91] 	From gitlab.com:lauber/lauber-frontend
   7905de9..f0866a7  dev        -> dev
  INFO [04135b91] Finished in 3.285 seconds with exit status 0 (successful).
** Execute git:create_release
 DEBUG [59678e51] Running if test ! -d /home/apps/app/shop-lauber-frontend/production/repo; then echo "Directory does not exist '/home/apps/app/shop-lauber-frontend/production/repo'" 1>&2; false; fi as apps@lauber_staging_apps
 DEBUG [59678e51] Command: if test ! -d /home/apps/app/shop-lauber-frontend/production/repo; then echo "Directory does not exist '/home/apps/app/shop-lauber-frontend/production/repo'" 1>&2; false; fi
 DEBUG [59678e51] Finished in 0.028 seconds with exit status 0 (successful).
  INFO [fadc1ce8] Running /usr/bin/env mkdir -p /home/apps/app/shop-lauber-frontend/production/releases/20190716175810 as apps@lauber_staging_apps
 DEBUG [fadc1ce8] Command: cd /home/apps/app/shop-lauber-frontend/production/repo && ( export GIT_ASKPASS="/bin/echo" GIT_SSH="/tmp/git-ssh-lauber-frontend-staging-jedrek.sh" ; /usr/bin/env mkdir -p /home/apps/app/shop-lauber-frontend/production/releases/20190716175810 )
  INFO [fadc1ce8] Finished in 0.032 seconds with exit status 0 (successful).
  INFO [34c5c4a2] Running /usr/bin/env git archive maintenance | tar -x -f - -C /home/apps/app/shop-lauber-frontend/production/releases/20190716175810 as apps@lauber_staging_apps
 DEBUG [34c5c4a2] Command: cd /home/apps/app/shop-lauber-frontend/production/repo && ( export GIT_ASKPASS="/bin/echo" GIT_SSH="/tmp/git-ssh-lauber-frontend-staging-jedrek.sh" ; /usr/bin/env git archive maintenance | tar -x -f - -C /home/apps/app/shop-lauber-frontend/production/releases/20190716175810 )
  INFO [34c5c4a2] Finished in 0.075 seconds with exit status 0 (successful).
** Invoke deploy:set_current_revision (first_time)
** Execute deploy:set_current_revision
** Invoke git:set_current_revision (first_time)
** Execute git:set_current_revision
 DEBUG [5d38933c] Running if test ! -d /home/apps/app/shop-lauber-frontend/production/repo; then echo "Directory does not exist '/home/apps/app/shop-lauber-frontend/production/repo'" 1>&2; false; fi as apps@lauber_staging_apps
 DEBUG [5d38933c] Command: if test ! -d /home/apps/app/shop-lauber-frontend/production/repo; then echo "Directory does not exist '/home/apps/app/shop-lauber-frontend/production/repo'" 1>&2; false; fi
 DEBUG [5d38933c] Finished in 0.028 seconds with exit status 0 (successful).
 DEBUG [267ad2fc] Running /usr/bin/env git rev-list --max-count=1 maintenance as apps@lauber_staging_apps
 DEBUG [267ad2fc] Command: cd /home/apps/app/shop-lauber-frontend/production/repo && ( export GIT_ASKPASS="/bin/echo" GIT_SSH="/tmp/git-ssh-lauber-frontend-staging-jedrek.sh" ; /usr/bin/env git rev-list --max-count=1 maintenance )
 DEBUG [267ad2fc] 	ae4980a47e0fdc8067d3d46683cf3464484b90eb
 DEBUG [267ad2fc] Finished in 0.033 seconds with exit status 0 (successful).
 DEBUG [3c5d8246] Running if test ! -d /home/apps/app/shop-lauber-frontend/production/releases/20190716175810; then echo "Directory does not exist '/home/apps/app/shop-lauber-frontend/production/releases/20190716175810'" 1>&2; false; fi as apps@lauber_staging_apps
 DEBUG [3c5d8246] Command: if test ! -d /home/apps/app/shop-lauber-frontend/production/releases/20190716175810; then echo "Directory does not exist '/home/apps/app/shop-lauber-frontend/production/releases/20190716175810'" 1>&2; false; fi
 DEBUG [3c5d8246] Finished in 0.029 seconds with exit status 0 (successful).
  INFO [ab6d772c] Running /usr/bin/env echo "ae4980a47e0fdc8067d3d46683cf3464484b90eb" >> REVISION as apps@lauber_staging_apps
 DEBUG [ab6d772c] Command: cd /home/apps/app/shop-lauber-frontend/production/releases/20190716175810 && /usr/bin/env echo "ae4980a47e0fdc8067d3d46683cf3464484b90eb" >> REVISION
  INFO [ab6d772c] Finished in 0.031 seconds with exit status 0 (successful).
** Invoke deploy:symlink:shared (first_time)
** Execute deploy:symlink:shared
** Invoke deploy:symlink:linked_files (first_time)
** Execute deploy:symlink:linked_files
  INFO [63fb99f4] Running /usr/bin/env mkdir -p /home/apps/app/shop-lauber-frontend/production/releases/20190716175810 as apps@lauber_staging_apps
 DEBUG [63fb99f4] Command: /usr/bin/env mkdir -p /home/apps/app/shop-lauber-frontend/production/releases/20190716175810
  INFO [63fb99f4] Finished in 0.050 seconds with exit status 0 (successful).
 DEBUG [d3e24641] Running [ -L /home/apps/app/shop-lauber-frontend/production/releases/20190716175810/.env ] as apps@lauber_staging_apps
 DEBUG [d3e24641] Command: [ -L /home/apps/app/shop-lauber-frontend/production/releases/20190716175810/.env ]
 DEBUG [d3e24641] Finished in 0.026 seconds with exit status 1 (failed).
 DEBUG [a7550f57] Running [ -f /home/apps/app/shop-lauber-frontend/production/releases/20190716175810/.env ] as apps@lauber_staging_apps
 DEBUG [a7550f57] Command: [ -f /home/apps/app/shop-lauber-frontend/production/releases/20190716175810/.env ]
 DEBUG [a7550f57] Finished in 0.030 seconds with exit status 1 (failed).
  INFO [aca5c877] Running /usr/bin/env ln -s /home/apps/app/shop-lauber-frontend/production/shared/.env /home/apps/app/shop-lauber-frontend/production/releases/20190716175810/.env as apps@lauber_staging_apps
 DEBUG [aca5c877] Command: /usr/bin/env ln -s /home/apps/app/shop-lauber-frontend/production/shared/.env /home/apps/app/shop-lauber-frontend/production/releases/20190716175810/.env
  INFO [aca5c877] Finished in 0.031 seconds with exit status 0 (successful).
** Invoke deploy:symlink:linked_dirs (first_time)
** Execute deploy:symlink:linked_dirs
  INFO [6050692c] Running /usr/bin/env mkdir -p /home/apps/app/shop-lauber-frontend/production/releases/20190716175810/app as apps@lauber_staging_apps
 DEBUG [6050692c] Command: /usr/bin/env mkdir -p /home/apps/app/shop-lauber-frontend/production/releases/20190716175810/app
  INFO [6050692c] Finished in 0.035 seconds with exit status 0 (successful).
 DEBUG [f866dffc] Running [ -L /home/apps/app/shop-lauber-frontend/production/releases/20190716175810/app/translations ] as apps@lauber_staging_apps
 DEBUG [f866dffc] Command: [ -L /home/apps/app/shop-lauber-frontend/production/releases/20190716175810/app/translations ]
 DEBUG [f866dffc] Finished in 0.031 seconds with exit status 1 (failed).
 DEBUG [c95ab365] Running [ -d /home/apps/app/shop-lauber-frontend/production/releases/20190716175810/app/translations ] as apps@lauber_staging_apps
 DEBUG [c95ab365] Command: [ -d /home/apps/app/shop-lauber-frontend/production/releases/20190716175810/app/translations ]
 DEBUG [c95ab365] Finished in 0.031 seconds with exit status 0 (successful).
  INFO [bbf96fad] Running /usr/bin/env rm -rf /home/apps/app/shop-lauber-frontend/production/releases/20190716175810/app/translations as apps@lauber_staging_apps
 DEBUG [bbf96fad] Command: /usr/bin/env rm -rf /home/apps/app/shop-lauber-frontend/production/releases/20190716175810/app/translations
  INFO [bbf96fad] Finished in 0.032 seconds with exit status 0 (successful).
  INFO [1e8b86d0] Running /usr/bin/env ln -s /home/apps/app/shop-lauber-frontend/production/shared/app/translations /home/apps/app/shop-lauber-frontend/production/releases/20190716175810/app/translations as apps@lauber_staging_apps
 DEBUG [1e8b86d0] Command: /usr/bin/env ln -s /home/apps/app/shop-lauber-frontend/production/shared/app/translations /home/apps/app/shop-lauber-frontend/production/releases/20190716175810/app/translations
  INFO [1e8b86d0] Finished in 0.036 seconds with exit status 0 (successful).
** Invoke deploy:updated (first_time)
** Execute deploy:updated
** Invoke deploy:publishing (first_time)
** Execute deploy:publishing
** Invoke deploy:symlink:release (first_time)
** Execute deploy:symlink:release
  INFO [e0ad15e6] Running /usr/bin/env ln -s /home/apps/app/shop-lauber-frontend/production/releases/20190716175810 /home/apps/app/shop-lauber-frontend/production/releases/current as apps@lauber_staging_apps
 DEBUG [e0ad15e6] Command: /usr/bin/env ln -s /home/apps/app/shop-lauber-frontend/production/releases/20190716175810 /home/apps/app/shop-lauber-frontend/production/releases/current
  INFO [e0ad15e6] Finished in 0.031 seconds with exit status 0 (successful).
  INFO [c7182522] Running /usr/bin/env mv /home/apps/app/shop-lauber-frontend/production/releases/current /home/apps/app/shop-lauber-frontend/production as apps@lauber_staging_apps
 DEBUG [c7182522] Command: /usr/bin/env mv /home/apps/app/shop-lauber-frontend/production/releases/current /home/apps/app/shop-lauber-frontend/production
  INFO [c7182522] Finished in 0.029 seconds with exit status 0 (successful).
** Invoke deploy:published (first_time)
** Execute deploy:published
** Invoke deploy:finishing (first_time)
** Execute deploy:finishing
** Invoke deploy:cleanup (first_time)
** Invoke npm:build (first_time)
** Execute npm:build
  INFO [76eb648b] Running cd /home/apps/app/shop-lauber-frontend/production/current && npm install && npm run build as apps@lauber_staging_apps
 DEBUG [76eb648b] Command: cd /home/apps/app/shop-lauber-frontend/production/current && npm install && npm run build
DEBUG [76eb648b] 	[1270] multi main 28 bytes {49} [built]
[1645] ./app/assets/images/categories ^\.\/offer\-.*\.png$ 540 bytes {3} [built]
    + 1924 hidden modules
  INFO [76eb648b] Finished in 116.217 seconds with exit status 0 (successful).
** Execute deploy:cleanup
 DEBUG [3b2c2216] Running /usr/bin/env ls -xtr /home/apps/app/shop-lauber-frontend/production/releases as apps@lauber_staging_apps
 DEBUG [3b2c2216] Command: /usr/bin/env ls -xtr /home/apps/app/shop-lauber-frontend/production/releases
 DEBUG [3b2c2216] 	20190714120526	20190716094355	20190716095633	20190716121700	20190716123546
20190716175810
 DEBUG [3b2c2216] Finished in 0.031 seconds with exit status 0 (successful).
  INFO Keeping 5 of 6 deployed releases on lauber_staging_apps
  INFO [42491001] Running /usr/bin/env rm -rf /home/apps/app/shop-lauber-frontend/production/releases/20190714120526 as apps@lauber_staging_apps
 DEBUG [42491001] Command: /usr/bin/env rm -rf /home/apps/app/shop-lauber-frontend/production/releases/20190714120526
  INFO [42491001] Finished in 0.729 seconds with exit status 0 (successful).
** Invoke deploy:finished (first_time)
** Execute deploy:finished
** Invoke deploy:log_revision (first_time)
** Execute deploy:log_revision
 DEBUG [ee3654ae] Running if test ! -d /home/apps/app/shop-lauber-frontend/production/releases; then echo "Directory does not exist '/home/apps/app/shop-lauber-frontend/production/releases'" 1>&2; false; fi as apps@lauber_staging_apps
 DEBUG [ee3654ae] Command: if test ! -d /home/apps/app/shop-lauber-frontend/production/releases; then echo "Directory does not exist '/home/apps/app/shop-lauber-frontend/production/releases'" 1>&2; false; fi
 DEBUG [ee3654ae] Finished in 0.031 seconds with exit status 0 (successful).
  INFO [503c0f32] Running /usr/bin/env echo "Branch maintenance (at ae4980a47e0fdc8067d3d46683cf3464484b90eb) deployed as release 20190716175810 by jedrek" >> /home/apps/app/shop-lauber-frontend/production/revisions.log as apps@lauber_staging_apps
 DEBUG [503c0f32] Command: cd /home/apps/app/shop-lauber-frontend/production/releases && /usr/bin/env echo "Branch maintenance (at ae4980a47e0fdc8067d3d46683cf3464484b90eb) deployed as release 20190716175810 by jedrek" >> /home/apps/app/shop-lauber-frontend/production/revisions.log
  INFO [503c0f32] Finished in 0.030 seconds with exit status 0 (successful).
** Invoke npm:restart (first_time)
** Execute npm:restart
  INFO [95e0bf91] Running sv restart /home/apps/runit/service/shop-lauber-frontend-web-1 as apps@lauber_staging_apps
 DEBUG [95e0bf91] Command: sv restart /home/apps/runit/service/shop-lauber-frontend-web-1
 DEBUG [95e0bf91] 	ok: run: /home/apps/runit/service/shop-lauber-frontend-web-1: (pid 21644) 1s
  INFO [95e0bf91] Finished in 0.450 seconds with exit status 0 (successful).

@mattbrictson
Copy link
Member

@jedrekdomanski There is probably some underlying issue here because the deploy behavior should be consistent. However I am not sure there is much I personally can to do troubleshoot this from my side so I will leave it to you to keep an eye on the behavior and document your findings. I will keep this issue open for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants