capistrano-magento2 icon indicating copy to clipboard operation
capistrano-magento2 copied to clipboard

touch: cannot touch '/var/www/html/releases/20220809134142/pub/static/deployed_version.txt' No such file or directory

Open andek85 opened this issue 2 years ago • 1 comments

Hi, I´m getting an error when I deploy to my stage enviroment. Does anybody have any clue why this error shows up? Thanks in advance for your ideas!

DEBUG [ced9d344] Magento CLI 2.4.3 DEBUG [ced9d344] Finished in 0.438 seconds with exit status 0 (successful). DEBUG [9927b544] Running if test ! -d /var/www/html/releases/20220809134142; then echo "Directory does not exist '/var/www/html/releases/20220809134142'" 1>&2; false; fi as [email protected] DEBUG [9927b544] Command: if test ! -d /var/www/html/releases/20220809134142; then echo "Directory does not exist '/var/www/html/releases/20220809134142'" 1>&2; false; fi DEBUG [9927b544] Finished in 0.140 seconds with exit status 0 (successful). INFO [d9bb4f40] Running /usr/bin/env touch /var/www/html/releases/20220809134142/pub/static/deployed_version.txt as [email protected] DEBUG [d9bb4f40] Command: cd /var/www/html/releases/20220809134142 && ( export MAGE_MODE="production" ; /usr/bin/env touch /var/www/html/releases/20220809134142/pub/static/deployed_version.txt ) DEBUG [d9bb4f40] touch: cannot touch '/var/www/html/releases/20220809134142/pub/static/deployed_version.txt' DEBUG [d9bb4f40] : No such file or directory

andek85 avatar Aug 09 '22 15:08 andek85

If it's not reproducible it's not something that can be fixed. Try to figure out what you did wrong as normal use of davidalger/capistrano-magento2 does not give this issue.

PascalBrouwers avatar Sep 08 '22 11:09 PascalBrouwers