node[175421]: pthread_create: Resource temporarily unavailable

node[175421]: pthread_create: Resource temporarily unavailable

Restarting a NodeJS application in cPanel *(CloudLinux) gives 503 error and the stderr.log states:

Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
BrokenPipeError: [Errno 32] Broken pipe
node[175421]: pthread_create: Resource temporarily unavailable
node[175468]: pthread_create: Resource temporarily unavailable
node[175524]: pthread_create: Resource temporarily unavailable
node[175583]: pthread_create: Resource temporarily unavailable
node[175654]: pthread_create: Resource temporarily unavailable
node[175713]: pthread_create: Resource temporarily unavailable
node[175979]: pthread_create: Resource temporarily unavailable
node[176032]: pthread_create: Resource temporarily unavailable

This occurs when NodeJS app was started from the terminal, and NodeJS Application Manager can’t acquire a lock on the application files.

To resolve the problem, simply terminate all node processes for the user and start the application from the cPanel > NodeJS Application Manager.

2023 08 28 12 16 - node[175421]: pthread_create: Resource temporarily unavailable
whoami
Stefan Pejcic
Join the discussion

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.