Deploy Candidate Tasks Stuck on Pending, Local Development Environment

Hello all, can anyone help me figure out what i did wrong? I’ve followed the guide to setup local development environment using press here: Local Development Environment Setup and I’ve also followed this video https://www.youtube.com/watch?v=TjrQsHHeRqk&t=968s.

i was able to setup the f1, n1, and m1 servers just fine. But now I’m stuck on pending in the creating app section, where my candidate deployment is continuously on pending with no outputs from the tasks. Is it perhaps because I’ve missed a step or is it because i did something wrong in following the steps? If so can someone help me fix this issue I’m facing? I’d be grateful if someone could help me fix it, Thank you.
(I’m using aws route53 and digitalocean as my cloud provider and registry.)


Hi,

Please run the following command:

sudo supervisorctl restart all

And check all the lines starting without Error.

Mostly, Socketio line will fail.

If it is failing, then run following command:

bench setup socketio

sudo supervisorctl restart all

Thanks,

Divyesh Mangroliya

Yup it turns out my press server didn’t have socketio service in supervisorctl,
It was because i installed node with nvm. bench setup expect to find node in /usr/bin/node but nvm install node in different place. So i simply create symbolic link to the nvm/npm to /usr/bin by using this command:

sudo ln -s $(which node) /usr/bin/node
sudo ln -s $(which npm) /usr/bin/npm

then running the answer from @mangroliya to solve the pending loop.

bench setup socketio

sudo supervisorctl restart all

Thank you.