background-geolocation-console icon indicating copy to clipboard operation
background-geolocation-console copied to clipboard

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

Open semsphy opened this issue 4 years ago • 0 comments

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

semsphy avatar Jul 02 '21 04:07 semsphy