-
Just a heads up. You might have set "Automatic System Updates" in settings. But if your upgrade fails for any reason, this checkbox gets cleared (yes, its as per implementation).
My upgrade was failing due to this issue..
I had BX_DIRECTORY_PATH_ROOT configured inside inc/header.inc.php to the below value (note the private_html)
/home/username/domains/domain.tld/private_html/subfolder
But I was calling cron using the public_html path
/opt/alt/php83/usr/bin/php -q /home/username/domains/domain.tld/public_html/subfolder/periodic/cron.php
Though private_html is a soft link to public_html , and cron runs OK, but the upgrade results in error. "ERROR:Files copying failed"
So I printed the $sFilePathFrom, inside BxDolFile.php (the file is available inside temp folder during upgrade)
sFilePathFrom : /home/username/domains/domain.tld/private_html/subfolder//home/username/domains/domain.tld/public_html/subfolder/tmp/patch_14.0.0_15.0.0-A1/UNA-Patch-v.14.0.0-to-v.15.0.0.A1/files/14.0.0-15.0.0.A1/files/This is an invalid directory (note the double // ). Somehow UNA is appending the paths in a strange way.
Changing my cron call solved it for me...
EDIT : Few additional details in the error logging would solve quiet a number of issues users are facing. Like invalid source directory xxxx given, permission denied for folder1 etc... The cryptic "ERROR:Files copying failed" was difficult to debug specially since this is printed by upgrade/classes/BxDolUpgradeUtil.php. That is magically appearing inside the temp folder only during upgrade :) Being inside temp folder did not help ;(
-
Hello @highlightings !
Did you have any limits to set the Cron Jobs the same as the main path with the private_html folder? Because commonly, both points should be equal.
-
Maybe I understood your question wrong . But will make an attempt.
I have regular automated Cron that is using the base path. But for the upgrade, I was triggering it manually from terminal. So just ran the cron.php. Since it's a symlink, I assume it should not matter (?)..
But somehow una is appending the path as I have shown above.
-
It seems yes, the symlink may distort the proper path of the script's run. So if you have the [somepath] in the BX_DIRECTORY_PATH_ROOT constant then it would be better to run Cron Jobs with this [somepath] too. But it is nice that you've detected it!