private_pub icon indicating copy to clipboard operation
private_pub copied to clipboard

Connection refused error - faye port 9292

Open juansneak opened this issue 4 years ago • 0 comments

I have a ruby app hosted in Digital Ocean and chat messages have been working correctly for a long time. However, around 1 and a half month ago it stopped working and I got an error on the console that says: GET https://fake-url.com:9292/faye/faye.js net::ERR_CONNECTION_REFUSED

In order to try to solve this I did the following:

  • Restarted Faye server using this command: bundle exec thin -C /data/app/shared/config/private_pub_thin.yml -d -P /data/app/shared/tmp/pids/faye.pid --ssl-disable-verify start (I run this command through Capistrano)

  • After running that command I checked /data/app/shared/tmp/pids folder and confirmed that faye.pid is there so process seems to be running

  • Then I ran sudo lsof -i -P -n | grep LISTEN to check open ports and 9292 port is listed

  • After that I reloaded the chat and got again the net::ERR_CONNECTION_REFUSED error

  • Finally, I changed the port to 8080 in my private_pub.yml and repeated the steps above and got the same error

I wonder if this has something to do with the expired Let’s Encrypt Root Certificate (https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021). I believe this because I think my chat messages application stoped working on October 1st. Also I had other problems related to this expired certificate

juansneak avatar Nov 22 '21 02:11 juansneak