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

Indexer: local deployment error in ender container "Error: Failed to parse private key: Error: Invalid PEM formatted message." #2565

Open
sl4mmy opened this issue Nov 12, 2024 · 1 comment
Labels

Comments

@sl4mmy
Copy link

sl4mmy commented Nov 12, 2024

Following the instructions for deploying locally (https://github.com/dydxprotocol/v4-chain/tree/main/indexer#deploying) in a fresh clone at tag indexer/v7.0.1:

...
ender-1             | 2024-11-08 16:07:23 [error]: {
ender-1             |   "at": "notifications#firebase",
ender-1             |   "message": "Failed to initialize Firebase App",
ender-1             |   "error": {
ender-1             |     "message": "Failed to parse private key: Error: Invalid PEM formatted message.",
ender-1             |     "errorInfo": {
ender-1             |       "code": "app/invalid-credential",
ender-1             |       "message": "Failed to parse private key: Error: Invalid PEM formatted message."
ender-1             |     },
ender-1             |     "codePrefix": "app"
ender-1             |   },
ender-1             |   "timestamp": "2024-11-08T16:07:23.883Z"
ender-1             | }
ender-1             | 2024-11-08 16:07:23 [info]: {
ender-1             |   "at": "index#start",
ender-1             |   "message": "Connecting to redis: redis://redis:6379",
ender-1             |   "timestamp": "2024-11-08T16:07:23.901Z"
ender-1             | }
ender-1             | 2024-11-08 16:07:23 [info]: {
ender-1             |   "at": "index#start",
ender-1             |   "message": "Connecting to kafka brokers: kafka:9092",
ender-1             |   "timestamp": "2024-11-08T16:07:23.901Z"
ender-1             | }
ender-1             | 2024-11-08 16:07:23 [info]: {
ender-1             |   "at": "index#start",
ender-1             |   "message": "Starting in env development",
ender-1             |   "timestamp": "2024-11-08T16:07:23.902Z"
ender-1             | }
ender-1             | Error: Failed to parse private key: Error: Invalid PEM formatted message.
ender-1             |     at new ServiceAccount (/home/dydx/app/node_modules/.pnpm/[email protected]/node_modules/firebase-admin/lib/app/credential-internal.js:153:19)
ender-1             |     at new ServiceAccountCredential (/home/dydx/app/node_modules/.pnpm/[email protected]/node_modules/firebase-admin/lib/app/credential-internal.js:70:15)
ender-1             |     at cert (/home/dydx/app/node_modules/.pnpm/[email protected]/node_modules/firebase-admin/lib/app/credential-factory.js:103:54)
ender-1             |     at initializeFirebaseApp (/home/dydx/app/packages/notifications/build/src/lib/firebase.js:29:40)
ender-1             |     at Object.<anonymous> (/home/dydx/app/packages/notifications/build/src/lib/firebase.js:46:21)
ender-1             |     at Module._compile (node:internal/modules/cjs/loader:1105:14)
ender-1             |     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
ender-1             |     at Module.load (node:internal/modules/cjs/loader:981:32)
ender-1             |     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
ender-1             |     at Module.require (node:internal/modules/cjs/loader:1005:19)
ender-1             |     at Module.Hook.Module.require (/home/dydx/app/node_modules/.pnpm/[email protected]/node_modules/dd-trace/packages/dd-trace/src/ritm.js:85:33)
ender-1             |     at require (node:internal/modules/cjs/helpers:102:18)
ender-1             |     at Object.<anonymous> (/home/dydx/app/packages/notifications/build/src/index.js:17:14)
ender-1             |     at Module._compile (node:internal/modules/cjs/loader:1105:14)
ender-1             |     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
ender-1             |     at Module.load (node:internal/modules/cjs/loader:981:32)
ender-1             | 2024-11-08 16:07:23 [info]: {
ender-1             |   "at": "redis#ready",
ender-1             |   "message": "Connected to redis. Started to load scripts.",
ender-1             |   "timestamp": "2024-11-08T16:07:23.984Z"
ender-1             | }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant