DoESLiverpool / somebody-should

A place to document practices on the wiki and collect issues/suggestions/to-do items for the physical space at DoES Liverpool
31 stars 11 forks source link

status.doesliverpool.com is down #758

Open amcewen opened 6 years ago

amcewen commented 6 years ago

I'm getting a "502 Bad gateway" error if I try to visit https://status.doesliverpool.com/

skos-ninja commented 6 years ago

I'm going to look at rewritting this over the weekend as if it ever errors getting the information it crashes like so.

I would love to give it some more helpful information about uptime and allow subscribing for alerts on when things go down.

skos-ninja commented 6 years ago

So after a bit of work rewriting it the status page currently doesn't have a UI but you can now view which services are online by viewing https://status.doesliverpool.com/api/status. Anything with a state set to 2 is working and 1 is broken.

I hope I can build the UI this weekend so we can have this back working again

johnmckerrell commented 6 years ago

What does state =0 mean?

-- Sent from my mobile phone hence brevity and errors

On 5 May 2018, at 13:13, Jake Oliver notifications@github.com wrote:

So after a bit of work rewriting it the status page currently doesn't have a UI but you can now view which services are online by viewing https://status.doesliverpool.com/api/status. Anything with a state set to 2 is working and 1 is broken.

I hope I can build the UI this weekend so we can have this back working again

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

skos-ninja commented 6 years ago

The three states a service can be in is Unknown=0, Broken=1 and Working=2.

Unknown should currently never be hit.

The service states are in a const here: https://github.com/DoESLiverpool/status/blob/develop/database/service.go#L14-L23

zarino commented 6 years ago

@amcewen @johnmckerrell I see that status.doesliverpool.com appears to be working now, but is lacking a UI. If one of you knows where / how the page at status.doesliverpool.com is hosted, I should be able to knock together a nice looking display, to save people delving into the JSON ;-)

skos-ninja commented 6 years ago

@zarino the status system is currently hosted by me. The code for the new version is hosted here https://github.com/DoESLiverpool/status/tree/develop. If you place any of the frontend code in the public folder then it will be served by the application

DoESsean commented 5 years ago

What's going on with this? Is it fixed?

chris-does commented 5 years ago

@DoESsean This issue (at least in terms of providing a front-end / UI, the actual service is working) is still present, I was about to have a go at resolving this issue myself:

Then, when I looked at the code repository, I found that @zarino appears to have completed development of a suitable front-end themselves.

As far as I can tell, @zarino has requested that @skos-ninja:

If these two actions are completed - and assuming the updated / new code functions as intended by @zarino (no reason for me to doubt that it would, just trying to ensure clarity! :-) ) - then this issue can be closed.

amcewen commented 4 years ago

Hmm, status.doesliverpool.com is down again. I'm thinking we should move it over to the VPS running docker stuff we've got on digitalocean for #670, so it's easier to update, etc. (and that's separate from the doesliverpool.com hosting.

notorious-gay commented 3 years ago

This is issue of the week! ⚡ (Featured in the weeklog on Google groups)

There has been no movement on this issue for quite some time, is this service needed still or should this issue be closed?

If it's still needed, I ran a quick check from my phone and it seems there's no web server live on the current host. Do we need a one to be set up? If so I can set up a container on my infrastructure for this.

johnmckerrell commented 3 years ago

I've actually just removed the DNS record for this as it was pointing at something we don't own and it wasn't doing anything anyway. We can always put it back online if we think we'll use it.

amcewen commented 3 years ago

@GlitchShtick Yay! Someone pays attention to the Issues of the Week! :tada:

I think the service is still needed. Thanks for the offer of some hosting, but as you can see in #18 we're steadily moving to DoES owning its own infrastructure (and our lack of access to where status.doesliverpool.com used to be running, because it was the same generous offer from a member who's moved away from Liverpool now, also proves the point :grinning:)

However, if you wanted to work out how to dockerize the service, so we can host it on the VPS we're setting up for some other stuff that would be awesome.

There's the regular Hack the Space online meetup on Tuesday evening, where a few of us will be working on our new admin software and I expect @helicalbytes will be talking about the Docker setup then. It's from 7pm at https://meet.jit.si/bubblino

notorious-gay commented 3 years ago

Ah I see, ace! I'll have a look at dockerizing the project if I have any leftover time after dealing with my assignments this weekend 😁

I'll try and join the meeting next tue's, thanks for letting me know about it!

MatthewCroughan commented 3 years ago

On this topic, I spent ages looking for arbitrary and extensible status page software and found that this is amongst the best. https://github.com/cstate/cstate