davidalger / capistrano-magento2

Magento 2 specific tasks for Capistrano 3
https://rubygems.org/gems/capistrano-magento2
Open Software License 3.0
228 stars 75 forks source link

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

Open andek85 opened 2 years ago

andek85 commented 2 years ago

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 root@xxx.xxx.xx.xxx 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 root@xxx.xxx.xx.xxx 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

PascalBrouwers commented 2 years ago

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.