My server is deployed but not running

This is my first mern website, i am deploying but after deployment i am getting error this : “Nov 27 11:44:30 PM ==> Build uploaded in 23s
Nov 27 11:44:30 PM ==> Build successful :tada:
Nov 27 11:44:30 PM ==> Deploying…
Nov 27 11:44:44 PM ==> Starting service with ‘npm start’
Nov 27 11:44:48 PM
Nov 27 11:44:48 PM > server@1.0.0 start /opt/render/project/src
Nov 27 11:44:48 PM > SET NODE_ENV=production & node server.js
Nov 27 11:44:48 PM
Nov 27 11:44:48 PM sh: 1: SET: not found
Nov 27 11:44:56 PM Warning: connect.session() MemoryStore is not
Nov 27 11:44:56 PM designed for a production environment, as it will leak
Nov 27 11:44:56 PM memory, and will not scale past a single process.
Nov 27 11:44:56 PM /opt/render/project/src/node_modules/passport-oauth2/lib/strategy.js:87
Nov 27 11:44:56 PM if (!options.clientID) { throw new TypeError(‘OAuth2Strategy requires a clientID option’); }
Nov 27 11:44:56 PM ^
Nov 27 11:44:56 PM
Nov 27 11:44:56 PM TypeError: OAuth2Strategy requires a clientID option
Nov 27 11:44:56 PM at Strategy.OAuth2Strategy (/opt/render/project/src/node_modules/passport-oauth2/lib/strategy.js:87:34)
Nov 27 11:44:56 PM at new Strategy (/opt/render/project/src/node_modules/passport-google-oauth20/lib/strategy.js:52:18)
Nov 27 11:44:56 PM at connectPassport (file:///opt/render/project/src/utils/auth.js:6:18)
Nov 27 11:44:56 PM at file:///opt/render/project/src/app.js:46:1
Nov 27 11:44:56 PM at ModuleJob.run (internal/modules/esm/module_job.js:152:23)
Nov 27 11:44:56 PM at async Loader.import (internal/modules/esm/loader.js:177:24)
Nov 27 11:44:56 PM at async Object.loadESM (internal/process/esm_loader.js:68:5)
Nov 27 11:44:56 PM npm ERR! code ELIFECYCLE
Nov 27 11:44:56 PM npm ERR! errno 1
Nov 27 11:44:56 PM npm ERR! server@1.0.0 start: SET NODE_ENV=production & node server.js
Nov 27 11:44:56 PM npm ERR! Exit status 1
Nov 27 11:44:56 PM npm ERR!
Nov 27 11:44:56 PM npm ERR! Failed at the server@1.0.0 start script.
Nov 27 11:44:56 PM npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Nov 27 11:44:56 PM
Nov 27 11:44:56 PM npm ERR! A complete log of this run can be found in:
Nov 27 11:44:56 PM npm ERR! /opt/render/.cache/_logs/2022-11-27T18_14_56_708Z-debug.log”

I have no idea what do to about this error. Please, if anyone knows help me out.

Hi there,

Thanks for reaching out.

The main part of the error there seems to be:

TypeError: OAuth2Strategy requires a clientID option

Are you missing some configuration for a client ID?

Kind regards

Alan

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.