Our script is as below, it runs every time we enable a flag. Earlier also we had run it but this time it purged all data from file system and Database both.
In Values.modules we add all the modules list which we have purchased or would like to maintain. After that we run migrate command for the module to update the module to the latest version. As we create a modules.json.bckp_CURRENT_DATE backup file of this before running modules migration. But in this case, as all data was purged in atrocore-installer.phar self-update or atrocore-installer.phar update command, this backup file was never created. I wanted to ask what caused this and any behaviour we should modify?
Please let me know if you need any other information? Thanks in advance
echo ">>> Updating installer"
php /var/www/html/atrocore-installer.phar self-update
echo ">>> Running composer update"
php /var/www/html/atrocore-installer.phar update
echo ">>> Current modules.json is backed up to /var/www/html/modules.json.bckp_CURRENT_DATE"
cp /var/www/html/data/modules.json "/var/www/html/modules.json.bckp_$(date +%Y-%m-%d_%H-%M-%S)"
echo ">>> Updating modules.json in EFS from helm chart values.yaml"
echo '{{ .Values.modules | toJson }}' > /var/www/html/data/modules.json
echo "New modules.json written to EFS:"
cat /var/www/html/data/modules.json
echo ">>> Running module migrations"
{{- range .Values.modules }}
echo "Migrating {{ . }}..."
php /var/www/html/console.php "migrate {{ . | lower }} 0.0.0 99.99.99" || true
{{- end }}
echo ">>> Syncing database schema"
php /var/www/html/console.php "sql diff --run"
echo ">>> Clearing cache"
php /var/www/html/console.php "clear cache"
echo ">>> Migration complete — handing off to main container"
Logs
==> Updating installer
Updated from 1.0.3 to 1.0.6.
==> Running composer update
Loading composer repositories with package information
Cannot create cache directory /var/www/.composer/cache/repo/https—packagist.atrocore.com-packages.json-id-common/, or directory is not writable. Proceeding without cache. See also cache-read-only config if your filesystem is read-only.
Cannot create cache directory /var/www/.composer/cache/repo/https—repo.packagist.org/, or directory is not writable. Proceeding without cache. See also cache-read-only config if your filesystem is read-only.
Updating dependencies
Lock file operations: 0 installs, 12 updates, 0 removals
.
.
.
.
.
.
.
Writing lock file
Installing dependencies from lock file (including require-dev)
Creating restore point
Package operations: 0 installs, 12 updates, 0 removals
Cannot create cache directory /var/www/.composer/cache/files/, or directory is not writable. Proceeding without cache. See also cache-read-only config if your filesystem is read-only.
.
.
.
.
.
.
Package composer/package-versions-deprecated is abandoned, you should avoid using it. No replacement was suggested.
Package doctrine/cache is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files
49 packages you are using are looking for funding.
Use thecomposer fundcommand to find out more!
Deprecation Notice: Atro\Core\Templates\Repositories\Hierarchy::getInheritableFields(): Implicitly marking parameter $fieldsDefs as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/vendor/atrocore/core/app/Atro/Core/Templates/Repositories/Hierarchy.php:239
More deprecation notices were hidden, run again with-vto show them.
02.11.2026 12:05:45 | Copying system files
02.11.2026 12:05:45 | Updating list of used modules
02.11.2026 12:05:45 | Copying post-install & post-delete scripts for modules
02.11.2026 12:05:48 | Copying migration scripts
02.11.2026 12:05:56 | Copying frontend files
02.11.2026 12:05:57 | Done!
==> Current modules.json is backed up to /var/www/html/modules.json.bckp_CURRENT_DATE
==> Updating modules.json in EFS from helm chart values.yaml
New modules.json written to EFS:
[“Pim”,“Export”,“ExportHttp”,“Import”,“ImportHttp”,“OpenIdConnectSso”]
==> Running module migrations
Migrating Pim…
Migrating Export…
Migrating ExportHttp…
Migrating Import…
Migrating ImportHttp…
Migrating OpenIdConnectSso…
==> Syncing database schema
ALTER TABLE REDACTEDe[0;32m Done!e[0m
ALTER TABLE REDACTEDe[0;32m Done!e[0m
ALTER TABLE REDACTEDe[0;32m Done!e[0m
ALTER TABLE REDACTEDe[0;32m Done!e[0m
ALTER TABLE REDACTEDe[0;32m Done!e[0m
ALTER TABLE REDACTEDe[0;32m Done!e[0m
ALTER TABLE REDACTEDe[0;32m Done!e[0m
ALTER TABLE REDACTEDe[0;32m Done!e[0m
DROP TABLE REDACTEDe[0;32m Done!e[0m
DROP TABLE REDACTEDe[0;32m Done!e[0m
DROP TABLE REDACTEDe[0;32m Done!e[0m
DROP TABLE REDACTEDe[0;32m Done!e[0m
DROP TABLE REDACTEDe[0;32m Done!e[0m
DROP TABLE REDACTEDe[0;32m Done!e[0m
DROP TABLE REDACTEDe[0;32m Done!e[0m
DROP TABLE REDACTEDe[0;32m Done!e[0m
DROP TABLE REDACTEDe[0;32m Done!e[0m
DROP TABLE REDACTEDe[0;32m Done!e[0m
DROP TABLE REDACTEDe[0;32m Done!e[0m
DROP TABLE REDACTEDe[0;32m Done!e[0m
DROP TABLE REDACTEDe[0;32m Done!e[0m
.
.
.
.
.
DROP TABLE oidc_group_rolee[0;32m Done!e[0m
DROP TABLE oidc_groupe[0;32m Done!e[0m
DROP TABLE oidc_group_teame[0;32m Done!e[0m
DROP TABLE oidc_group_usere[0;32m Done!e[0m
ALTER TABLE auth_token DROP oidc_access_tokene[0;32m Done!e[0m
ALTER TABLE auth_token DROP oidc_refresh_tokene[0;32m Done!e[0m
ALTER TABLE auth_token DROP oidc_expires_ate[0;32m Done!e[0m
ALTER TABLE “user” DROP oidc_ide[0;32m Done!e[0m
==> Clearing cache
e[0;32mCache successfully clearede[0m
==> Migration complete — handing off to main container