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.
![node[175421]: pthread_create: Resource temporarily unavailable 2023 08 28 12 16 - node[175421]: pthread_create: Resource temporarily unavailable](https://i0.wp.com/pcx3.com/wp-content/uploads/2023/08/2023-08-28_12-16.png?resize=736%2C664&ssl=1)