Since the migration between versions has been giving me a lot of headaches, I tried another approach to see if I could get it to work. I followed these steps:
I downloaded a Docker container with PostgreSQL and an old backup.
I restored the backup and set the volume to point to "/home/odk/Documents/postgresql_data/data", where I have all the data.
I installed the latest version of ODK and completed the import without any issues.
I tried the migration process, but it doesn’t work. central-install-digital-ocean and central-upgrade-2023-2
[+] Building 6/6
enketo Built 0.0s
nginx Built 0.0s
postgres Built 0.0s
postgres14 Built 0.0s
secrets Built 0.0s
service Built 0.0s
odk@odk:/opt/odk-central/central$ cd docker compose up postgres
-bash: cd: too many arguments
odk@odk:/opt/odk-central/central$
odk@odk:/opt/odk-central/central$ docker compose up postgres
[+] Running 1/1
Container central-postgres-1 Created 0.0s
Attaching to postgres-1
postgres-1 | Sat Mar 8 09:07:27 PM GMT 2025 [upgrade-postgres.sh] Checking for existing upgrade marker file...
postgres-1 | Sat Mar 8 09:07:27 PM GMT 2025 [upgrade-postgres.sh] Upgrade has been run previously.
postgres-1 | Sat Mar 8 09:07:27 PM GMT 2025 [upgrade-postgres.sh] Complete.
postgres-1 exited with code 0
odk@odk:/opt/odk-central/central$ ls ./files/postgres14/upgrade/upgrade-successful
ls: cannot access './files/postgres14/upgrade/upgrade-successful': No such file or directory