Comment to 'UNA 15.0.0-A1 is now available. Anyone tried it yet ?'
  • 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 ;(