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

Cannot start frontend #21

Open
prjemian opened this issue Aug 7, 2023 · 5 comments
Open

Cannot start frontend #21

prjemian opened this issue Aug 7, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@prjemian
Copy link
Contributor

prjemian commented Aug 7, 2023

When trying this on a separate LAN, following instructions in the README, started the backend with no problem. Trying to access the backend URL (http://localhost:3001), browser receives: Cannot GET /

Continuing with frontend, npm start fails with:

Starting the development server...

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:135:10)
    at module.exports (/home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/webpack/lib/util/createHash.js:90:53)
    at NormalModule._initBuildHash (/home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/webpack/lib/NormalModule.js:386:16)
    at handleParseError (/home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/webpack/lib/NormalModule.js:434:10)
    at /home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/webpack/lib/NormalModule.js:466:5
    at /home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/webpack/lib/NormalModule.js:327:12
    at /home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at iterateNormalLoaders (/home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
    at /home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/loader-runner/lib/LoaderRunner.js:236:3
    at runSyncOrAsync (/home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/loader-runner/lib/LoaderRunner.js:130:11)
    at iterateNormalLoaders (/home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/loader-runner/lib/LoaderRunner.js:232:2)
    at Array.<anonymous> (/home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
    at Storage.finished (/home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
    at /home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
/home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/react-scripts/scripts/start.js:19
  throw err;
  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:135:10)
    at module.exports (/home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/webpack/lib/util/createHash.js:90:53)
    at NormalModule._initBuildHash (/home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/webpack/lib/NormalModule.js:386:16)
    at /home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/webpack/lib/NormalModule.js:418:10
    at /home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/webpack/lib/NormalModule.js:293:13
    at /home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/loader-runner/lib/LoaderRunner.js:367:11
    at /home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/loader-runner/lib/LoaderRunner.js:233:18
    at context.callback (/home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    at /home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/babel-loader/lib/index.js:51:103 {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v17.9.0
@prjemian prjemian added the bug Something isn't working label Aug 7, 2023
@prjemian
Copy link
Contributor Author

prjemian commented Aug 7, 2023

This was with requirement nodejs <18. Next, setting requirement nodejs = 16.

@prjemian
Copy link
Contributor Author

prjemian commented Aug 7, 2023

Similar


Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:130:10)
    at module.exports (/home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/webpack/lib/util/createHash.js:90:53)
    at NormalModule._initBuildHash (/home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/webpack/lib/NormalModule.js:386:16)
    at handleParseError (/home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/webpack/lib/NormalModule.js:434:10)
    at /home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/webpack/lib/NormalModule.js:466:5
    at /home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/webpack/lib/NormalModule.js:327:12
    at /home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at iterateNormalLoaders (/home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
    at /home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/loader-runner/lib/LoaderRunner.js:236:3
    at runSyncOrAsync (/home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/loader-runner/lib/LoaderRunner.js:130:11)
    at iterateNormalLoaders (/home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/loader-runner/lib/LoaderRunner.js:232:2)
    at Array.<anonymous> (/home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
    at Storage.finished (/home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
    at /home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
/home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/react-scripts/scripts/start.js:19
  throw err;
  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:130:10)
    at module.exports (/home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/webpack/lib/util/createHash.js:90:53)
    at NormalModule._initBuildHash (/home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/webpack/lib/NormalModule.js:386:16)
    at /home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/webpack/lib/NormalModule.js:418:10
    at /home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/webpack/lib/NormalModule.js:293:13
    at /home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/loader-runner/lib/LoaderRunner.js:367:11
    at /home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/loader-runner/lib/LoaderRunner.js:233:18
    at context.callback (/home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    at /home/prjemian/Documents/projects/BCDA-APS/gemqsweb/frontend/node_modules/babel-loader/lib/index.js:51:103 {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

@prjemian
Copy link
Contributor Author

prjemian commented Aug 7, 2023

./backend/.env

PORT=3001
API_URL=http://localhost:60610

and verified the bluesky queueserver is running and backend started with npm start.

./frontend/.env

BACKEND_URL=http://localhost:3001

@prjemian
Copy link
Contributor Author

prjemian commented Aug 7, 2023

Check the development system for version info. Testing on external system was too big a first step to be successful.

@prjemian
Copy link
Contributor Author

prjemian commented Aug 7, 2023

FYI, console from when backend started:

(gemqsweb) prjemian@arf:~/.../gemqsweb/backend$ npm start

> [email protected] start
> node server.js

PORT: 3001
API_URL: http://localhost:60610
🚀 Server running on http://localhost:3001

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

No branches or pull requests

1 participant