Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Sync Service is broken #403

Open
vej-ananas opened this issue Feb 5, 2025 · 0 comments · May be fixed by #404
Open

Bug: Sync Service is broken #403

vej-ananas opened this issue Feb 5, 2025 · 0 comments · May be fixed by #404
Assignees
Labels
bug Something isn't working

Comments

@vej-ananas
Copy link
Contributor

Beschreibung
Der Sync Service auf Prod läuft nicht mehr.

Ein möglicher Lösungsansatz ist hier: prisma/prisma#19341

Error Log des Sync Service:

[2025-02-04T23:02:38.874Z] Starting data export to view
[2025-02-04T23:02:38.875Z] Found configuration {"mode":"view","source":{"connectionString":"****asset-swissgeol-prod.db.swissgeol.ch/asset-swissgeol?sslmode=require&schema=public","allowedWorkgroupIds":[1]},"destination":{"connectionString":"***view-asset-swissgeol-prod.db.swissgeol.ch/view-asset-swissgeol?sslmode=require&schema=public","allowedWorkgroupIds":[0]}}
prisma:warn Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-1.1.x".
Please manually install OpenSSL and try installing Prisma again.
prisma:warn Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-1.1.x".
Please manually install OpenSSL and try installing Prisma again.
Prisma schema loaded from prisma/schema.prisma
Datasource "db": PostgreSQL database "view-asset-swissgeol", schema "public" at "view-asset-swissgeol-prod.db.swissgeol.ch"
Error: Could not parse migration engine response: SyntaxError: Unexpected token 'E', "Error load"... is not valid JSON
npm notice
npm notice New major version of npm available! 10.9.2 -> 11.1.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.1.0
npm notice To update run: npm install -g [email protected]
npm notice
node:child_process:957
    throw err;
    ^

Error: Command failed: npx prisma migrate reset --force
    at genericNodeError (node:internal/errors:983:15)
    at wrappedFn (node:internal/errors:537:14)
    at checkExecSyncError (node:child_process:882:11)
    at execSync (node:child_process:954:15)
    at resetAndMigrateDatabase (/app/apps/sync-asset-sg/src/core/reset-and-migrate-database.js:25:37)
    at Object.<anonymous> (/app/apps/sync-asset-sg/src/main.js:10:45)
    at Module._compile (node:internal/modules/cjs/loader:1562:14)
    at Object..js (node:internal/modules/cjs/loader:1699:10)
    at Module.load (node:internal/modules/cjs/loader:1313:32)
    at Function._load (node:internal/modules/cjs/loader:1123:12) {
  status: 1,
  signal: null,
  output: [ null, null, null ],
  pid: 18,
  stdout: null,
  stderr: null
}

Node.js v22.13.1
@vej-ananas vej-ananas added the bug Something isn't working label Feb 5, 2025
@daniel-va daniel-va self-assigned this Feb 5, 2025
@daniel-va daniel-va linked a pull request Feb 5, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants