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

Doorbots hang on no internet #10

Open
skos-ninja opened this issue Aug 31, 2018 · 3 comments
Open

Doorbots hang on no internet #10

skos-ninja opened this issue Aug 31, 2018 · 3 comments
Assignees
Labels

Comments

@skos-ninja
Copy link
Member

Last night whilst Baltic were doing maintenance on the internet we discovered that all the doorbots stopped responding to tags.

I believe this might have something to do with the work @johnmckerrell did on logging to Slack however I'm not sure.

When checking the logs for this we were trying the doorbots at around 23:00 BST on 30/08/2018.

@amcewen
Copy link
Member

amcewen commented Sep 15, 2018

The Internet was down again this morning (after the power outage, I presume). Now fixed, but it caused this problem to recur.

Doing a bit of debugging, the problem is the Slack integration - when there's no Internet, the call to Slack (a) takes ages to time out, and (b) throws an exception when it does. The exception is caught, but in the process all the code to open the door is skipped, so the door is never opened.

The Slack integration needs moving to after the door has been opened, like all the other calls to the Internet (or things that might fail), so that the doors still operate with no network access.

For now I've disabled the Slack integration in the config file.

@Thingomy
Copy link

Thingomy commented Sep 15, 2018 via email

@johnmckerrell
Copy link
Member

johnmckerrell commented Sep 15, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants