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

Error: error:0909006C:PEM routines:get_name:no start line #123

Open
semsphy opened this issue Jul 2, 2021 · 0 comments
Open

Error: error:0909006C:PEM routines:get_name:no start line #123

semsphy opened this issue Jul 2, 2021 · 0 comments

Comments

@semsphy
Copy link

semsphy commented Jul 2, 2021

Hello,

I am planning to purchase the license of your wonderful plugin, and tried to build the console for testing with our apps.

I built the image by following the instructions then I got the error message after running this below command:

Command

docker run --env-file=./.env -p 9000:9000 xxxx/geolocation

.env

DATABASE_URL=postgres://username:password@dbhost:5432/geolocation
GOOGLE_MAPS_API_KEY=AIzaSxxxxxxxxxxxxiWRY
SHARED_DASHBOARD=1
ADMIN_TOKEN=xxuser
PASSWORD=xpassoword
JWT_PUBLIC_KEY="-----BEGIN PUBLIC KEY-----\MY GENERATED PUB KEY\n-----END PUBLIC KEY-----\n"
JWT_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\nMY   GENERATED PRI KEY\n-----END PRIVATE KEY-----\n"

FIREBASE_PROJECT_ID=xxx-project
FIREBASE_CLIENT_EMAIL="[email protected]"
FIREBASE_URL=https://xxxxxproject.firebaseio.com
FIREBASE_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\nMY   GENERATED PRI KEY FROM SERVICE ACCOUNT\n-----END PRIVATE KEY-----\n"

Error

<!> Exception error:0909006C:PEM routines:get_name:no start line: Error: error:0909006C:PEM routines:get_name:no start line
at Sign.sign (internal/crypto/sig.js:105:29)
at Object.sign (/usr/node_modules/jsonwebtoken/node_modules/jwa/index.js:152:45)
at Object.jwsSign [as sign] (/usr/node_modules/jsonwebtoken/node_modules/jws/lib/sign-stream.js:32:24)
at Object.module.exports [as sign] (/usr/node_modules/jsonwebtoken/sign.js:204:16)
at ServiceAccountCredential.createAuthJwt_ (/usr/node_modules/firebase-admin/lib/auth/credential.js:102:20)
at ServiceAccountCredential.getAccessToken (/usr/node_modules/firebase-admin/lib/auth/credential.js:75:26)
at FirebaseAppInternals.getToken (/usr/node_modules/firebase-admin/lib/firebase-app.js:64:73)
at FirebaseAuthTokenProvider.getToken (/usr/node_modules/@firebase/database/src/core/AuthTokenProvider.ts:58:23)
at PersistentConnection.establishConnection_ (/usr/node_modules/@firebase/database/src/core/PersistentConnection.ts:774:10)
at Timeout._onTimeout (/usr/node_modules/@firebase/database/src/core/PersistentConnection.ts:652:12)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7)
Executing (default): SELECT 1+1 AS result

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant