Skip to content

Cannot run server.js #1

Description

@ssalanitri

Dear:

I try to test the ractive-tutorial-math into Kubuntu 20.10 system
When try to run the server.js using the command $node server.js code fail with the folowing error message

Error: ENOENT: no such file or directory, open '/home/sergio/source/repos/rp-tutorial/ssl/ractive-player.key'
at Object.openSync (fs.js:458:3)
at Object.readFileSync (fs.js:360:35)
at Object. (/home/sergio/source/repos/rp-tutorial/server.js:9:14)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: '/home/sergio/source/repos/rp-tutorial/ssl/ractive-player.key'

Then, I applied the recomedation of article that you suggest in the README.md file

Note You must access the page over HTTPS in order to record audio. Here is a tutorial on how to get HTTPS working in a development environment: https://www.freecodecamp.org/news/how-to-get-https-working-on-your-local-development-environment-in-5-minutes-7af615770eec/

And I create the .key and .crt files

However , the system fail but for another error

tls_common.js:149
c.context.setKey(key, passphrase);
^

Error: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt
at Object.createSecureContext (_tls_common.js:149:17)
at Server.setSecureContext (_tls_wrap.js:1321:27)
at Server (_tls_wrap.js:1185:8)
at new Server (https.js:68:14)
at Object.createServer (https.js:92:10)
at Object.exports.createServer (/home/sergio/source/repos/rp-tutorial/node_modules/livereload/lib/livereload.js:238:19)
at Object. (/home/sergio/source/repos/rp-tutorial/server.js:6:29)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32) {
opensslErrorStack: [ 'error:0906A065:PEM routines:PEM_do_header:bad decrypt' ],
library: 'digital envelope routines',
function: 'EVP_DecryptFinal_ex',
reason: 'bad decrypt',
code: 'ERR_OSSL_EVP_BAD_DECRYPT'
}

Do you help me?

Thanks and Best regards

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions