Skip to content

Commit 4f88bf4

Browse files
committed
Chown the Magento install to app before rsyncing it to the deploy container
The commands in this script run as root inside the Hypernode container, while the rsync that copies the installed Magento to the deploy container authenticates over SSH as app. On Magento 2.4.9 that combination breaks: var/cache/symfony ends up unreadable for app, so rsync fails with opendir "/data/web/magento2/var/cache/symfony" failed: Permission denied (13) rsync error: some files/attrs were not transferred (code 23) Chowning the tree to app first makes the ownership match the SSH user -- which is also how a real Hypernode looks, where app owns the application. 2.4.6-p10 and 2.4.8 do not hit this, so only the PHP 8.5 row was failing.
1 parent df257dc commit 4f88bf4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ci/test/run-general.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ $HN /data/web/magento2/bin/magento app:config:dump scopes themes
9191
echo "Waiting for SSH to be available on the Hypernode container"
9292
chmod 0600 ci/test/.ssh/id_rsa
9393
chmod 0600 ci/test/.ssh/authorized_keys
94+
# Magento 2.4.9 creates a root-owned var/cache/symfony that the app user below cannot read
95+
$HN chown -R app:app /data/web/magento2
9496
$DP rsync -a app@hypernode:/data/web/magento2/ /web
9597
$DP rsync -a /config/ /web
9698
$DP rm /web/app/etc/env.php

0 commit comments

Comments
 (0)