Issue with node application Error: open EEXIST

psychonek

Registered
Sep 27, 2023
2
0
1
Plzen
cPanel Access Level
Website Owner
Hi, Iam able to deploy node application and already did almost same thing without issue. Iam building sveltekit app and it works just fine until opening page with

import { MongoClient } from 'mongodb';

Iam getting this issue:

Node.js v18.16.1
Error: open EEXIST
at new Socket (node:net:413:13)
at process.getStdin [as stdin] (node:internal/bootstrap/switches/is_main_thread:222:17)
at get (<anonymous>)
at getOwn (node:internal/bootstrap/loaders:190:5)
at BuiltinModule.syncExports (node:internal/bootstrap/loaders:314:31)
at ModuleWrap.<anonymous> (node:internal/bootstrap/loaders:294:17)
at BuiltinModule.getESMFacade (node:internal/bootstrap/loaders:299:17)
at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/loaders:277:10)
at loadBuiltinModule (node:internal/modules/cjs/helpers:56:9)
at Module._load (node:internal/modules/cjs/loader:936:15) {
errno: -17,
code: 'EEXIST',
syscall: 'open'
}
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
Error: open EEXIST
at new Socket (node:net:413:13)
at process.getStdin [as stdin] (node:internal/bootstrap/switches/is_main_thread:222:17)
at get (<anonymous>)
at getOwn (node:internal/bootstrap/loaders:190:5)
at BuiltinModule.syncExports (node:internal/bootstrap/loaders:314:31)
at ModuleWrap.<anonymous> (node:internal/bootstrap/loaders:294:17)
at BuiltinModule.getESMFacade (node:internal/bootstrap/loaders:299:17)
at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/loaders:277:10)
at loadBuiltinModule (node:internal/modules/cjs/helpers:56:9)
at Module._load (node:internal/modules/cjs/loader:936:15) {
errno: -17,
code: 'EEXIST',
syscall: 'open'
}

I tried deploy on different machine, other hosting and I had no problem.

What I see my hosting provider is using version cPanel version 112.0.8.

I also created StackOverflow issue and Iam able to provide source to my app.

Every tip is greatly appreciated. Thank you.
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,470
2,843
363
cPanel Access Level
Root Administrator
Hey there! I'm not sure how this would be related to the cPanel tools, although our implementation of Node.JS is a bit different than others. Have you brought this up to your hosting provider yet so they can test things on their end?
 

psychonek

Registered
Sep 27, 2023
2
0
1
Plzen
cPanel Access Level
Website Owner
Hey there! I'm not sure how this would be related to the cPanel tools, although our implementation of Node.JS is a bit different than others. Have you brought this up to your hosting provider yet so they can test things on their end?
Hi, yes. I was informed that there is an issue on their end.