T
Twenty3w ago
kieren

twenty crm railway template

hi! i'm trying to set up a basic self host using the railway template at https://railway.com/template/nAL3hA. upon using the template, i skipped the email env vars, setting them to empty strings since i haven't set up and do not think itll affect basic setup. the deployment consistently crashes like the image sent, and the logs mention this. if anyone could help me debug this issue that would be really helpful thanks!!
No description
1 Reply
kieren
kierenOP3w ago
query: CREATE TABLE "metadata"."_typeorm_migrations" ("id" SERIAL NOT NULL, "timestamp" bigint NOT NULL, "name" character varying NOT NULL, CONSTRAINT "PK_a6ff2a8e8bb563f3d15635efd01" PRIMARY KEY ("id"))

query failed: CREATE TABLE "metadata"."_typeorm_migrations" ("id" SERIAL NOT NULL, "timestamp" bigint NOT NULL, "name" character varying NOT NULL, CONSTRAINT "PK_a6ff2a8e8bb563f3d15635efd01" PRIMARY KEY ("id"))

error: error: schema "metadata" does not exist

Error during migration run:

QueryFailedError: schema "metadata" does not exist

at PostgresQueryRunner.query (/app/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:219:19)

at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

at async PostgresQueryRunner.executeQueries (/app/node_modules/typeorm/query-runner/BaseQueryRunner.js:425:13)

at async PostgresQueryRunner.createTable (/app/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:425:9)

at async MigrationExecutor.createMigrationsTableIfNotExist (/app/node_modules/typeorm/migration/MigrationExecutor.js:351:13)

at async MigrationExecutor.executePendingMigrations (/app/node_modules/typeorm/migration/MigrationExecutor.js:129:9)

at async DataSource.runMigrations (/app/node_modules/typeorm/data-source/DataSource.js:265:35)

at async Object.handler (/app/node_modules/typeorm/commands/MigrationRunCommand.js:68:13) {

query: 'CREATE TABLE "metadata"."_typeorm_migrations" ("id" SERIAL NOT NULL, "timestamp" bigint NOT NULL, "name" character varying NOT NULL, CONSTRAINT "PK_a6ff2a8e8bb563f3d15635efd01" PRIMARY KEY ("id"))',
query: CREATE TABLE "metadata"."_typeorm_migrations" ("id" SERIAL NOT NULL, "timestamp" bigint NOT NULL, "name" character varying NOT NULL, CONSTRAINT "PK_a6ff2a8e8bb563f3d15635efd01" PRIMARY KEY ("id"))

query failed: CREATE TABLE "metadata"."_typeorm_migrations" ("id" SERIAL NOT NULL, "timestamp" bigint NOT NULL, "name" character varying NOT NULL, CONSTRAINT "PK_a6ff2a8e8bb563f3d15635efd01" PRIMARY KEY ("id"))

error: error: schema "metadata" does not exist

Error during migration run:

QueryFailedError: schema "metadata" does not exist

at PostgresQueryRunner.query (/app/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:219:19)

at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

at async PostgresQueryRunner.executeQueries (/app/node_modules/typeorm/query-runner/BaseQueryRunner.js:425:13)

at async PostgresQueryRunner.createTable (/app/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:425:9)

at async MigrationExecutor.createMigrationsTableIfNotExist (/app/node_modules/typeorm/migration/MigrationExecutor.js:351:13)

at async MigrationExecutor.executePendingMigrations (/app/node_modules/typeorm/migration/MigrationExecutor.js:129:9)

at async DataSource.runMigrations (/app/node_modules/typeorm/data-source/DataSource.js:265:35)

at async Object.handler (/app/node_modules/typeorm/commands/MigrationRunCommand.js:68:13) {

query: 'CREATE TABLE "metadata"."_typeorm_migrations" ("id" SERIAL NOT NULL, "timestamp" bigint NOT NULL, "name" character varying NOT NULL, CONSTRAINT "PK_a6ff2a8e8bb563f3d15635efd01" PRIMARY KEY ("id"))',
nvm solved by manually creating schemas

Did you find this page helpful?