Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from Openshift v2 by end of September/December #173

Closed
cben opened this issue Aug 30, 2017 · 9 comments
Closed

Migrate from Openshift v2 by end of September/December #173

cben opened this issue Aug 30, 2017 · 9 comments

Comments

@cben
Copy link
Owner

cben commented Aug 30, 2017

The old openshift online is shutting down, must migrate to the new kubernetes-based openshift online
(the platform is not so new – https://www.openshift.org/ — but RedHat just recently made it available as hosted PaaS.)
https://blog.openshift.com/migrate-to-v3-v2-eol/
https://www.openshift.com/get-started/migrate.html

Do I still want to run on Openshift / Heroku?

I don't have enough time to maintain mathdown :-( See #172 for my plans. I'd like to go back to static hosting.

  • Still can't just use Github Pages due to custom domain SSL.

Anyway, I happen to work in RedHat on Openshift-related things, so I feel I ought to make it work even I won't stay on it :-)

  • EDIT: New pricing https://www.openshift.com/pricing/ says free tier is only 1 projects, and no custom domains. If I can't get custom domain SSL without paying $50/mo, I'll drop Openshift. (Heroku Hobby tier is $7/mo/cpu.)
@cben
Copy link
Owner Author

cben commented Aug 31, 2017

We heard your concerns about the OpenShift Online v2 sunset and we’d like to give you some additional time to migrate to OpenShift Online Next Generation. We’re extending access for paying users of the OpenShift Online v2 platform until December 31, 2017.

However that's only paying users, in line with my usual pretending ;-) that others might want to fork/deploy this, I better have it working by EOSep.

@cben cben changed the title Migrate to Openshift v3 by end of September Migrate to Openshift v3 by end of September/December Aug 31, 2017
@cben
Copy link
Owner Author

cben commented Sep 29, 2017

Turns out I'm on Bronze not Silver. I'm paying on bronze for more CPUs & disk, but got email:

After September 30th, 2017, applications created in Free and Bronze accounts in Red Hat OpenShift Online 2 will be removed.

Had too much work, Openshift 3 doesn't Just Work (builds get stuck, "Failed to push the image to the registry"...). Will have more time for Mathdown in couple weeks.
=> For now moving to Heroku.

cben added a commit that referenced this issue Sep 29, 2017
Switching to heroku due to openshift 2 shutdown #173
cben added a commit that referenced this issue Sep 29, 2017
Closes #170.
It fails on title becoming set from first line.
Bumping 4.4->5.0, 10s->20s, didn't help.
But manual testing shows Mathdown does load & render math.

For #173, I urgently need CI that can give me pass/fail,
and Android is not very usable anyway (#81), so commenting out.
@cben
Copy link
Owner Author

cben commented Sep 29, 2017

Flipped [www.]mathdown.com DNS to heroku.
Configured Heroku to use same certs for the 4 domains.

Getting CI to finally pass (#173) so I'm able to safely deploy newer versions (not together with switching, RHcloud and Heroku prod both run same ancient version, but want the ability.)

@cben
Copy link
Owner Author

cben commented Sep 29, 2017

Flipped [www.]mathdown.net DNS to Heroku too.

@cben
Copy link
Owner Author

cben commented Sep 29, 2017

  • TODO: Backup RHcloud app (logs)

@cben
Copy link
Owner Author

cben commented Oct 3, 2017

I'm told server.coffee might be a problem, I need server.js.

@cben
Copy link
Owner Author

cben commented Oct 30, 2017

Downloaded logs from openshift 2 online, nothing interesting.
Deleted prod-mathdown app, to stop paying.

@cben
Copy link
Owner Author

cben commented Oct 31, 2017

Great timing. Heroku is having troubles this morning, mathdown has been down for over a hour now.
Heroku logs show only their router complaining it can't reach the app:

2017-10-31T07:35:20.698924+00:00 heroku[router]: at=error code=H19 desc="Backend connection timeout" method=GET path="/" host=mathdown.herokuapp.com request_id=f75ca5ee-6a81-4d29-be48-f71f622dc45b fwd="69.162.124.229" dyno=web.1 connect=5001ms service= status=503 bytes= protocol=https
2017-10-31T07:35:25.709067+00:00 heroku[router]: at=error code=H19 desc="Backend connection timeout" method=GET path="/" host=mathdown.com request_id=3bd3b4f5-9368-44c7-9a82-aaa40b8696a0 fwd="69.162.124.231" dyno=web.1 connect=5001ms service= status=503 bytes= protocol=https
2017-10-31T07:35:34.764862+00:00 heroku[router]: at=error code=H19 desc="Backend connection timeout" method=GET path="/" host=www.mathdown.net request_id=971068e5-5877-4e90-8cca-2c154006035b fwd="69.162.124.231" dyno=web.1 connect=5000ms service= status=503 bytes= protocol=https
2017-10-31T07:35:38.554683+00:00 heroku[router]: at=error code=H19 desc="Backend connection timeout" method=GET path="/" host=www.mathdown.com request_id=6bf6265f-5871-4ccd-ab46-f2a0c28373af fwd="69.162.124.231" dyno=web.1 connect=5001ms service= status=503 bytes= protocol=https

https://status.heroku.com/ said they have problems with dynos, builds and deployments, and attempts to restart the say Heroku temporarily disabled this.

=> Trying to fall over DNS to https://staging-mathdown.rhcloud.com which is still alive.
Need to deploy domains & certs to that app.
rhc-set-certs.sh staging mathdown certs/mathdown.net/privkey.pem worked 👍

cben added a commit that referenced this issue Oct 31, 2017
Temp solution as heroku is currently down (#173).
@cben
Copy link
Owner Author

cben commented Oct 31, 2017

works for now. looking into static hosting alternatives with custom domain TLS (surge.sh, static.land, ...).

P.S. also considering switching to "chat ops" eg. gitter to have less production-related spam in github issues.

@cben cben changed the title Migrate to Openshift v3 by end of September/December Migrate from Openshift v2 by end of September/December Jun 27, 2018
@cben cben closed this as completed Jun 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant