rickgaribay.net

Space shuttles aren't built for rocket scientists, they're built for astronauts. The goal isn't the ship, its the moon.
posts - 303, comments - 180, trackbacks - 35

My Links

News

Where's Rick?


AgileAlliance deliver:Agile 2019- 4/29
Desert Code Camp, PHX - 10/11
VS Live Austin, TX - 6/3
VS Live SF - 6/17


About Me
Hands on leader, developer, architect specializing in the design and delivery of distributed systems in lean, agile environments with an emphasis in continuous improvement across people, process and technology. Speaker and published author with 18 years' experience leading the delivery of large and/or complex, high-impact distributed solutions in Retail, Intelligent Transportation, and Gaming & Hospitality.

I'm currently a Principal Engineer at Amazon, within the North America Consumer organization leading our global listings strategy that enable bulk and non-bulk listing experiences for our WW Selling Partners via apps, devices and APIs.

Full bio

Note: All postings on this site are my own and don’t necessarily represent the views of my employer.



Check out my publications on Amazon Kindle!





Archives

Post Categories

Published Works

Restarting Heroku Dynos for NightScout (or other Adventures)

The great folks at Nightscout recently published an update to members/subscribers regarding another breaking Mongolabs change. image

In a nutshell, recently, Mongolabs updated their MongoDb database to 3.0.7 which appears to be breaking Nightscout and other clients. My guess is that the fix recommended below ensures any pooled and or unauthenticated connections are released, but I haven’t dug deeper to verify.

If you host your Nightscout Website or Bridge on Heroku, keep reading. My intent in this post is to provide a simple way to restart your app without a lot of technical experience required.

If you are hosting the Nightscout Website or Nightscout Bridge on Heroku, you may stumble to figure out how to ‘restart’ the apps, called “Dynamos” (Step 2 on the right). On Microsoft Azure, it’s very simple to restart an Azure Website but Heroku is a bit more subtle.

A few Google searches reveals the heroku restart command line command, but I doubt most  NightScout users are going to take the time to download client SDKs, set up Procfiles, etc. and there does not appear to be any documented way to restart a Dyno from the UI/Dashboard.

Poking around a bit, I found the solution is simple:

1. Click on your Dyno (i.e. this will be the app that is either running your Website or Bridge) to bring up the setting page.

2. On the settings page, Click Edit:

image

3. Once in “Edit” mode, you can switch your Dyano off

image

4. Be sure to hit Save.

5. Repeat Steps 2 and 3, turn the Dyno back on and hit Save.

Note, I did not have to wait 10 minutes for the fix to take effect. You should be able to refresh your website and it should work.

Hope this helps anyone needing to “restart” a Dyno. If it doesn’t work for you, please drop me an email or hit me up on twitter: @rickggaribay

Print | posted on Sunday, October 25, 2015 10:20 AM | Filed Under [ CGM CGM in the Cloud NightScout Project ]

Comments have been closed on this topic.

Powered by: