Open manavo opened 1 year ago
Dug into this a little bit, and it seems like that was the case, the .pid
file was leftover.
So after running this, it's been able to start the services again:
manavo@MacBook-Pro ~ % mv .porter/supervisord.pid .porter/supervisord.pid.bak
manavo@MacBook-Pro ~ % porter start
Starting services: loading...Unlinking stale socket /Users/manavo/.porter/supervisor.sock
Starting services: ✔
Not sure what caused the .pid file to get left behind though 😕
Thanks @manavo - just ran into this issue as well, and your tip worked for me.
Thank you @manavo it worked :) Any idea why this happened?
Not sure, I'm guessing something crashes and the file gets left behind? It hasn't happened to me again, but glad this worked for you!
Rather than having to manually delete the supervisord.pid
file, you can instead run this command to have Porter delete it for you:
porter stop --force
For reference...
The stop
command calls SupervisordRepository->stopSupervisord()
with the force
option:
SupervisordRepository->stopSupervisord()
deletes the supervisord.pid
file when the force
option is provided:
Well spotted @squatto! Definitely a better option!
Encountered the same issue when porter was running and did a system reboot.
Just had the same issue. Thank @squatto for mentioning the command.
It works with porter stop --force
but I actually don't like it. I found out that it only occurs when I turned of my PC while porter was still running. Is there a way to fix this?
I'm having an issue where the services aren't running, Porter thinks they aren't running, but then can't start them because it thinks they are running.
Not sure if there are any other debug things that would be useful? In the
~/.porter
directory this is what I see:Not sure if maybe a
pid
/sock
file is somehow leftover, and it's confusing things thinking they are running?Last note, this is using
Porter v0.0.11