Problem
After upgrading from Stretch to Buster, the application no longer works.
Reason
PiCtory is no longer installed in the directory "/var/www" since the Buster image 04/2021. PiCtory has moved to the directory "/var/www/revpi".
This has the consequence that after an upgrade from Stretch to Buster your application does not work anymore, because the “config.rsc” file is not found anymore.
To fix this problem we implemented another script /usr/sbin/revpi_buster_fix_pictory.sh which is now part of the package “revpi-tools-1.0.15-2”.
Solution
Please execute the script after upgrading from Stretch to Buster with
sudo /usr/sbin/revpi_buster_fix_pictory.sh.
After successful execution your application should work again and PiCtory should show your last configuration.
What does the script do:
it creates the directory migration in “/home/pi” and saves the directories “/var/www/pictory/projects”, “/var/www/pictory/export”, “/var/www/data” and “/etc/apache2”.
then the package apache2-bin and all dependent packages are uninstalled.
then the directories /var/www/data and /var/www/pictory are deleted
then the packages apache2, apache2-bin, libapache2-mod-php, pictory and revpi-webstatus are reinstalled. This will install the standard apache2 modules as well as php7. If a customer has more special modules still installed he has to reinstall them, because they might have been removed automatically during the uninstallation.
the contents of the directories /home/pi/migration/projects are copied to /var/www/revpi/pictory/projects.
the contents of the directory /home/pi/migration/export are copied to /var/www/revpi/pictory/export
the contents of the /home/pi/migration/data directory are copied to /var/www/revpi/data.
Apache2 is restarted and piControl is reinitialized via piTest -x.