# I have an error creating a worker with Mediasoup 3.6.16

**URL:** <https://mediasoup.discourse.group/t/i-have-an-error-creating-a-worker-with-mediasoup-3-6-16/2136>\
**Category:** mediasoup libraries\
**Created:** [December 16, 2020, 1:54am UTC](https://mediasoup.discourse.group/t/i-have-an-error-creating-a-worker-with-mediasoup-3-6-16/2136 "2020-12-16T01:54:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![JavierJara](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@JavierJara](https://mediasoup.discourse.group/u/JavierJara)\
**Post date:** [December 16, 2020, 1:54am UTC](https://mediasoup.discourse.group/t/i-have-an-error-creating-a-worker-with-mediasoup-3-6-16/2136/1 "2020-12-16T01:54:44Z")

</div>

Hello,

I have a server using “mediasoup 3.6.16”, on my local MAC computer it works without problems, but now I am trying to install it on a machine with Centos 6, to test it in a real environment,

**System detail:**  
Node v10.23.0  
Python v2.7.18  
gcc y g++ v4.9.3  
npm v6.14.8  
Port: 9001 (open state)

I have no problem running `npm install`, but when I try to run `npm start` I get the following error:

```auto
root@aw0241 [/opt/mediasoup/server]# npm start                                                                                                                                     
                                                                                                                                                                                               
> mediasoup-custom@1.0.0 start /opt/mediasoup/server                                                                                                                                           
> node src/app.js                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                      
listening https 9001                                                                                                                                                                           
(node:17126) UnhandledPromiseRejectionWarning: Error: [pid:17133, code:1, signal:null]                                                                                                         
    at ChildProcess.Worker._child.on (/opt/mediasoup/server/node_modules/mediasoup/lib/Worker.js:122:43)                                                                                       
    at ChildProcess.emit (events.js:198:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
(node:17126) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:17126) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

```

The error is occurring when trying to create a worker `await mediasoup.createWorker({})`

> ```auto
> (async () => {
> await createWorkers()
> })()
> async function createWorkers() {
> let {
> numWorkers
> } = config.mediasoup
>  
> for (let i = 0; i < numWorkers; i++) {
>            
> let worker = await mediasoup.createWorker({
> logLevel: config.mediasoup.worker.logLevel,
> logTags: config.mediasoup.worker.logTags,
> rtcMinPort: config.mediasoup.worker.rtcMinPort,
> rtcMaxPort: config.mediasoup.worker.rtcMaxPort,
> })
>         
> worker.on('died', () => {
> console.error('mediasoup worker died, exiting in 2 seconds... [pid:%d]', worker.pid);
> setTimeout(() => process.exit(1), 2000);
> })
>         
> workers.push(worker)
>         
> }
> }
> 
> ```

In the config, the cert.pem and key.pem are already configured

I hope to have your help, I have been all day trying to solve this problem.

PD: Sorry if it’s not well written, I don’t speak English, I’m using a translator.

thank you

---

<div class="post-metadata">

**Author:** ![quangnv1311](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/quangnv1311/32/658_2.png) [@quangnv1311](https://mediasoup.discourse.group/u/quangnv1311)\
**Post date:** [December 16, 2020, 2:47am UTC](https://mediasoup.discourse.group/t/i-have-an-error-creating-a-worker-with-mediasoup-3-6-16/2136/2 "2020-12-16T02:47:54Z")

</div>

I was have the same issue. And delete node\_modules and run cmd ‘npm install’ to reinstall all modules solved this issue for me. I think this issue appear because i move all mediasoup server(include node\_modules) from another ubuntu server to windows server.

---

<div class="post-metadata">

**Author:** ![ibc](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/ibc/32/1540_2.png) [@ibc](https://mediasoup.discourse.group/u/ibc)\
**Post date:** [December 16, 2020, 8:16am UTC](https://mediasoup.discourse.group/t/i-have-an-error-creating-a-worker-with-mediasoup-3-6-16/2136/3 "2020-12-16T08:16:02Z")

</div>

If you don’t set the DEBUG environment variable properly (check the Debugging section in mediasoup docs) you won’t see the error.

---

<div class="post-metadata">

**Author:** ![JavierJara](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@JavierJara](https://mediasoup.discourse.group/u/JavierJara)\
**Post date:** [December 16, 2020, 7:18pm UTC](https://mediasoup.discourse.group/t/i-have-an-error-creating-a-worker-with-mediasoup-3-6-16/2136/4 "2020-12-16T19:18:56Z")

</div>

I already tried to delete the node\_modules folder and install again, but the error persists.

---

<div class="post-metadata">

**Author:** ![ibc](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/ibc/32/1540_2.png) [@ibc](https://mediasoup.discourse.group/u/ibc)\
**Post date:** [December 16, 2020, 7:20pm UTC](https://mediasoup.discourse.group/t/i-have-an-error-creating-a-worker-with-mediasoup-3-6-16/2136/5 "2020-12-16T19:20:40Z")

</div>

Cool. Now do what I said instead of any other random thing.

---

<div class="post-metadata">

**Author:** ![JavierJara](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@JavierJara](https://mediasoup.discourse.group/u/JavierJara)\
**Post date:** [December 16, 2020, 7:24pm UTC](https://mediasoup.discourse.group/t/i-have-an-error-creating-a-worker-with-mediasoup-3-6-16/2136/6 "2020-12-16T19:24:10Z")

</div>

Now i ran it with the DEBUG enabled and it gave me the following

```auto
root@aw0241 [/opt/mediasoup/server]# DEBUG="mediasoup* *ERROR*" node src/app.js 

**mediasoup** createWorker() +0ms
**mediasoup:Worker** constructor() +0ms
**mediasoup:Worker** spawning worker process: /opt/mediasoup/server/node_modules/mediasoup/worker/out/Release/mediasoup-worker --logLevel=warn --logTag=info --logTag=ice --logTag=dtls --logTag=rtp --logTag=srtp --logTag=rtcp --rtcMinPort=10000 --rtcMaxPort=10100 +0ms
**mediasoup:Channel** constructor() +0ms
**mediasoup:PayloadChannel** constructor() +0ms

listening https 9001

**mediasoup:ERROR:Worker** (stderr) /opt/mediasoup/server/node_modules/mediasoup/worker/out/Release/mediasoup-worker: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /opt/mediasoup/server/node_modules/mediasoup/worker/out/Release/mediasoup-worker) +0ms
**mediasoup:ERROR:Worker** (stderr) /opt/mediasoup/server/node_modules/mediasoup/worker/out/Release/mediasoup-worker: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by /opt/mediasoup/server/node_modules/mediasoup/worker/out/Release/mediasoup-worker) +0ms
**mediasoup:ERROR:Worker** (stderr) /opt/mediasoup/server/node_modules/mediasoup/worker/out/Release/mediasoup-worker: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.5' not found (required by /opt/mediasoup/server/node_modules/mediasoup/worker/out/Release/mediasoup-worker) +0ms
**mediasoup:ERROR:Worker** (stderr) /opt/mediasoup/server/node_modules/mediasoup/worker/out/Release/mediasoup-worker: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by /opt/mediasoup/server/node_modules/mediasoup/worker/out/Release/mediasoup-worker) +0ms
**mediasoup:ERROR:Worker** (stderr) /opt/mediasoup/server/node_modules/mediasoup/worker/out/Release/mediasoup-worker: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /opt/mediasoup/server/node_modules/mediasoup/worker/out/Release/mediasoup-worker) +0ms
**mediasoup:ERROR:Worker** (stderr) /opt/mediasoup/server/node_modules/mediasoup/worker/out/Release/mediasoup-worker: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /opt/mediasoup/server/node_modules/mediasoup/worker/out/Release/mediasoup-worker) +0ms
**mediasoup:Channel** Producer Channel ended by the worker process +7ms
**mediasoup:Channel** Consumer Channel ended by the worker process +0ms
**mediasoup:PayloadChannel** Producer PayloadChannel ended by the worker process +6ms
**mediasoup:PayloadChannel** Consumer PayloadChannel ended by the worker process +1ms
**mediasoup:Worker** close() +13ms
**mediasoup:Channel** close() +1ms
**mediasoup:PayloadChannel** close() +2ms
**mediasoup:ERROR:Worker** worker process failed unexpectedly [pid:470, code:1, signal:null] +0ms

(node:457) UnhandledPromiseRejectionWarning: Error: [pid:470, code:1, signal:null]
at ChildProcess.Worker._child.on (/opt/mediasoup/server/node_modules/mediasoup/lib/Worker.js:122:43)
at ChildProcess.emit (events.js:198:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
(node:457) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:457) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

```

---

<div class="post-metadata">

**Author:** ![ibc](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/ibc/32/1540_2.png) [@ibc](https://mediasoup.discourse.group/u/ibc)\
**Post date:** [December 16, 2020, 7:27pm UTC](https://mediasoup.discourse.group/t/i-have-an-error-creating-a-worker-with-mediasoup-3-6-16/2136/7 "2020-12-16T19:27:53Z")

</div>

> **[mediasoup :: Support](https://mediasoup.org/support/#crashes-in-mediasoup-get-a-core-dump)**
>
> Cutting Edge WebRTC Video Conferencing

---

<div class="post-metadata">

**Author:** ![JavierJara](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@JavierJara](https://mediasoup.discourse.group/u/JavierJara)\
**Post date:** [December 16, 2020, 11:02pm UTC](https://mediasoup.discourse.group/t/i-have-an-error-creating-a-worker-with-mediasoup-3-6-16/2136/8 "2020-12-16T23:02:08Z")

</div>

Thanks for the help, for me it was solved by installing the missing libraries

> CXXABI\_1.3.8  
> GLIBCXX\_3.4.18  
> CXXABI\_1.3.5  
> GLIBCXX\_3.4.14  
> GLIBCXX\_3.4.15  
> GLIBCXX\_3.4.20

With this the service started correctly,

now I’m going to check the link you shared with me “Crashes in mediasoup (get a core dump)”,

Thanks for your help,
