@girish said in Umami not responding:
@guyds we are in sync about the situation
Haha
But to clarify, you should still be able to follow upstream instructions. It might be a bit different on Cloudron but you should atleast be able to try them out.
- You have to put the app in recovery mode. Repair -> Recovery
- Then, in a web terminal of the app, you can run whatever commands you want.
https://git.cloudron.io/cloudron/umami-app/-/blob/master/start.sh?ref_type=heads is the startup script of Cloudron. When in recovery mode, the app container is created but the start up script is not executed. So, you have to then execute the exports at https://git.cloudron.io/cloudron/umami-app/-/blob/master/start.sh?ref_type=heads#L11 manually in the web terminal. Hopefully, all this makes sense (if you have dealt with Docker before, it should be straightforward).
Thanks for the pointers regarding the exports!
Initially, after the exports, I got the same error:
npx @umami/migrate-v1-v2@latest
Running v0.15.0
/app/code/node_modules/.prisma/client/default.js:43
throw new Error(
^
Error: @prisma/client did not initialize yet. Please run "prisma generate" and try to import it again.
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report
at new PrismaClient (/app/code/node_modules/.prisma/client/default.js:43:11)
at /root/.npm/_npx/429c6c96e109f52c/node_modules/@umami/migrate-v1-v2/index.js:298:12
at Object.<anonymous> (/root/.npm/_npx/429c6c96e109f52c/node_modules/@umami/migrate-v1-v2/index.js:323:3)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:86:12)
at node:internal/main/run_main_module:23:47
Node.js v18.18.0
But I was able to locate the schema.prisma file, run prisma generate and then fix some other node issues until the migration finally worked:
npx @umami/migrate-v1-v2@latest
Running v0.15.0
ā DATABASE_URL is defined.
ā Database connection successful.
ā Database v1 tables ready for migration.
ā Database v2 tables found.
ā Database is ready for migration.
ā Starting v2 data migration. Please do no cancel this process, it may take a while.
ā Ran sql file /db/postgresql/data-migration-v2.sql.
ā Data migration from V1 to V2 tables completed.
ā Do you want to delete V1 database tables? (Y/N) ā¦ n
ā Migration successfully completed.
Now let's try to restart the app...