scopserv-api-v3 won't start or crashes on startup SCOPLINK connection refused: Request failed with status code 503

scopserv-api-v3 won't start or crashes on startup SCOPLINK connection refused: Request failed with status code 503

If you are seeing this error it is possible that the one or more api services are not running correctly.




Root Cause:
scopserv-api-v3 won't start or crashes on startup

To check the status of the api-v3 service, check the unique http path.

 
To check the status of the api-events service check the unique path.


If api-v3 is not running then:
rm -rf /usr/local/nvm/
This remove all "remaining" files which included a node.js 10 version which ScopSERV no longer supports.


service scopserv_api_v3 restart

Then check with:
pm2 status
Or
pm2 restart scopserv-apiv3