jayfk / statuspage Goto Github PK
View Code? Open in Web Editor NEWA statuspage generator that lets you host your statuspage for free on Github.
Home Page: https://corestatus.io
License: MIT License
A statuspage generator that lets you host your statuspage for free on Github.
Home Page: https://corestatus.io
License: MIT License
Error: no such option: --org
This is the error I receive whenever I try to create an repo for my org. Can someone please help me with this?
Is it possible that the new version of the script doesn't like letters like ä, ö, ü, ß and so on? I noticed further problems when I wanted to use them in issues or e.g. in the config.json.
I also got similar problems using a copyright-character.
Here you can find a screenshot of the error I get everytime when I try to use characters like the ones I mentioned above. Maybe you could help out, @jayfk?
Couldn't anyone technically make an issue and publish to your status page... Is there any way to stop this?
[snip]
If I need to give more info, please comment
Hello!
I just wondered how to delete old services, that aren't eisting anymore. I've got a statuspage displaying the statuses of three services, but I don't offer one of those any longer, so I wanna remove it from my statuspage. How can I do that?
Greetings
Would be neat if we could override the navigation bar used on the status page via config.json
and maybe some custom HTML file we include. This would be handy when trying to make it easy to get back to other pages accessible from the home page. Also it would help make the status page feel more similar to the home page.
Thanks a lot for this great utility.
I was just was trying to use statuspage (statuspage==0.8.1). Found that I ran into following exception when trying to run statuspage update
.
Generating..
Traceback (most recent call last):
File "/Users/sandeep/bin/virtualenv/hbank12sep2016/bin/statuspage", line 11, in <module>
sys.exit(cli())
File "/Users/sandeep/bin/virtualenv/hbank12sep2016/lib/python2.7/site-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/Users/sandeep/bin/virtualenv/hbank12sep2016/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/Users/sandeep/bin/virtualenv/hbank12sep2016/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/sandeep/bin/virtualenv/hbank12sep2016/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/sandeep/bin/virtualenv/hbank12sep2016/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/Users/sandeep/bin/virtualenv/hbank12sep2016/lib/python2.7/site-packages/statuspage/statuspage.py", line 73, in update
run_update(name=name, token=token, org=org)
File "/Users/sandeep/bin/virtualenv/hbank12sep2016/lib/python2.7/site-packages/statuspage/statuspage.py", line 200, in run_update
"systems": systems, "incidents": incidents, "panels": panels, "config": config
File "/Users/sandeep/bin/virtualenv/hbank12sep2016/lib/python2.7/site-packages/jinja2/environment.py", line 989, in render
return self.environment.handle_exception(exc_info, True)
File "/Users/sandeep/bin/virtualenv/hbank12sep2016/lib/python2.7/site-packages/jinja2/environment.py", line 754, in handle_exception
reraise(exc_type, exc_value, tb)
File "<template>", line 38, in top-level template code
jinja2.exceptions.UndefinedError: 'None' has no attribute 'capitalize'
I read through the code and figured that this will happen if severity labels are not selected while creating an issue. Thus severity
will be None
when being evaluated in template.html
and causes an exception when trying to evaluate severity.capitalize
. It might be a good idea to check this in the code and give a more user friendly message.
It would be very nice if you'd be able to change the date format of the entries.
Hi,
I had to clone the repo and build it on Debian to make it work. The binary given in the Readme seems to be compatible for OSX only.
Regards,
Halfman.
It'd be nice and useful to support basic formatting such as bold and italic.
Right now, if these are used in the Github issues, we get raw text on the status page.
When I run the command, this error was coming:
statuspage create --token=dceb9fa24bf8558d01d34308cffe
-bash: /usr/local/bin/statuspage: cannot execute binary file: Exec format error
then i use the command with sudo
sudo statuspage create --token=dceb9fa24bf8558d01d3430
/usr/local/bin/statuspage: 1: /usr/local/bin/statuspage: Syntax error: "(" unexpected
Hi,
Noticed your documentation went all the way up to using custom domains w/ Github Pages. However, there's one more pretty important step that you might have missed out - Getting to HTTPS with the custom domain.
How about LetsEncrypt with Kloudsec CDN?
Full disclosure: I work at Kloudsec
Binaries
Could you clarify whats in the binary files? Is it the compiled statuspage.py file?
I've tried to upgrade the statuspage with the 0.3 pre release but stumbled upon this error:
$ ./statuspage upgrade --name=StatusPage --token=...
Editing files: 50%|█████████████████████████████████████████▌ | 1/2 [00:01<00:01, 1.85s/it]Traceback (most recent call last):
File "<string>", line 193, in <module>
File "site-packages/click/core.py", line 716, in __call__
File "site-packages/click/core.py", line 696, in main
File "site-packages/click/core.py", line 1060, in invoke
File "site-packages/click/core.py", line 889, in invoke
File "site-packages/click/core.py", line 534, in invoke
File "<string>", line 61, in upgrade
File "<string>", line 87, in run_upgrade
File "github/Repository.py", line 1218, in get_file_contents
File "github/Requester.py", line 171, in requestJsonAndCheck
File "github/Requester.py", line 179, in __check
github.GithubException.UnknownObjectException: 404 {'documentation_url': 'https://developer.github.com/v3', 'message': 'Not Found'}
statuspage returned -1
The activity log appears to be shown in plain text. It would be nice if we could render this in GitHub Markdown. This should help various Markdown elements look nicer and be easier to read on the webpage.
I'd like to be able to specify a time in the future for when scheduled maintenance to occur. I'd want it to automatically switch to a status message at a given time. Perhaps this would work best with the upcoming version based on the github API.
Hey,
love what you did! I'm not using it yet but plan on doing it very soon. One thing that is missing IMHO is the ability to subscribe via email to the status updates. I know this is hosted on GitHub pages, so this is a bit tricky. Here is an idea I had. It's a bit hacky, I must admit, and totally incomplete.
I looked at the MailChimp "RSS to email" feature, but it's not fast enough, it would be a day late, that's useless. It doesn't look like it's possible with IFTTT or Zapier, but I might have missed something.
It would be easy to host a service doing that, but I would prefer not to have to host an app to do that, but have something easy.
Maybe there is nothing that fits the vision you have, but I thought I would share my thoughts and maybe someone can complete those and we can come up with a decent solution :)
Cheers
Hey, I am having an issue stating SSL Certificate error.
I have tried adding more labels, so I guess it isn't possible?
// EDIT: I haven't tried manually adding them to the index.html, so maybe that'll work. Just depends on if they stick after updating.
Love the idea and project. I was wondering if it makes sense to move the build/deploy process to travis instead? I do the same at hackercouch and it currently runs the deploy on every commit to master.
In order to keep it updated, we also use nightli.es as a backup. Thinking if would be possible to pipe the github event for issues.* on the repo to trigger a build in travis.
Hi,
I'm French and it seems that when I update my status page with new issues : the issues are not on my server's timezone.
(Seems that the default timezone used is UTC instead of UTC+2).
Thanks,
Halfman.
Got this problem when I tried to update an issue with a new comment:
Traceback (most recent call last):
File "/Users/yash/.pyenv/versions/2.7.10/bin/statuspage", line 11, in <module>
sys.exit(cli())
File "/Users/yash/.pyenv/versions/2.7.10/lib/python2.7/site-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/Users/yash/.pyenv/versions/2.7.10/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/Users/yash/.pyenv/versions/2.7.10/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/yash/.pyenv/versions/2.7.10/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/yash/.pyenv/versions/2.7.10/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/Users/yash/.pyenv/versions/2.7.10/lib/python2.7/site-packages/statuspage/statuspage.py", line 73, in update
run_update(name=name, token=token, org=org)
File "/Users/yash/.pyenv/versions/2.7.10/lib/python2.7/site-packages/statuspage/statuspage.py", line 211, in run_update
if is_same_content(content, base64.b64decode(index.content)):
File "/Users/yash/.pyenv/versions/2.7.10/lib/python2.7/site-packages/statuspage/statuspage.py", line 478, in is_same_content
return sha1(c1).hexdigest() == sha1(c2).hexdigest()
File "/Users/yash/.pyenv/versions/2.7.10/lib/python2.7/site-packages/statuspage/statuspage.py", line 476, in sha1
c = c.encode("utf-8")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf0 in position 2735: ordinal not in range(128)
I installed the system yesterday, everything is running fine but I have no label for "resolved" status. Is there any way I can add this status in manually?
I tried but it blew up. It shouldn't take much to be able to create the repo under a specified organisation, rather than under an individual account.
The demo status page doesn't appear to work in Microsoft Edge on Windows 10.
http://status.pyup.io/
I haven't installed the tool so I don't know if that's been fixed.
When I look in the dev console of the browser I see that the page keeps requesting the GitHub API in an infinite loop, apparently.
And a notice is shown together with each request:
Lockr didn't successfully save the '{https://api.github.com/repos/jayfk/status.pyup.io/issues?state=all&sort=created&direction=desc: [object Object]}' pair, because the localStorage is full.
I would like to be able to remove an issue. I've created some test issues, but as you might knw it isn't possible to remove any issues on GitHub itself. Maybe create an extra label called "removed" or "hidden"?
I'm running statuspage update in a cronjob, but the repo keeps being updated even when nothing changed. It would be nice if a check would be built-in to see if something actually changed.
I've tried to translate the status page and find this issues:
operational
is hard-coded. It would be nice if it would be in the template.html
.It would be nice if this would be possible. Unfortunately I know too little about python.
It would be nice to group servers based on their services. Maybe use pipes? For example:
see Lexteam/StatusPage#2 and http://status.lexteam.xyz/
I even recreated the issue again :S
G'day there Jay,
Look i'm so sorry to be a pest with this issue but I am needing some help with the installation of the statuspage.
I have done alot of searching and it is the best solution for what I require and I would love it if you could lend us a hand with the setup with hosting the statuspage on github.
Again sorry to be a pain, I really hope you can get back to me as soon as possible.
Thanks!
Currently, the only way to customise the generated status page is to edit template.html
. That's a bit problematic, because there will be changes in upcoming releases that may alter template.html
.
Now it expands with the generic text about contributing to the repo...
I wondered how it is possible to change the names of the issue labels. I wanted to translate my statuspage to another language, but I wasn't able to figure out, how to change the names of the labels "major outage" and "degraded performance". Any clues how to do that?
Once we have set up the page, how do we add new systems ?
In the status log, it would be nice if there were links to the underlying issues/comments. So one could click on that element in the log and be taken to the original issue/comment.
Hi @jayfk, you had the good idea of using gh to host your status page, but if I need a remote vps or whatever to generate the code and git push, I could directly host http://www.stashboard.org on my vps.
Why dont you take a different approach and write a all-javascript app that parses the issues from, let's say, https://api.github.com/repos/jayfk/statuspage-demo/issues and displays them like you are doing with statuspage?
You would be using gh's issues manager like in your current app, but everything would be hosted on gh.
Hope this helps, thanks.
In addition to generating HTML, it would be great to enable customers to subscribe as well.
Shop link for automating the Status page Updates is broken - https://www.statuspage-backend.com/
I'm wondering if there is a reason not to make this pip
-installable or at least have a setup.py
file. While I can see this can be installed as a binary and that can have certain advantages, it also presents certain challenges. For instance, what if someone does not want a lighter weight solution, requires building from source, or desires to install this into an existing dev environment (e.g. virtualenv or similar). The current packaging solution makes any of these latter goals challenging if not impossible to solve. Is this a matter of preference, available time, interest, something else and/or combinations of the aforementioned?
When try to create a new status page, i get this message:
Traceback (most recent call last):
File "<string>", line 233, in <module>
File "site-packages/click/core.py", line 716, in __call__
File "site-packages/click/core.py", line 696, in main
File "site-packages/click/core.py", line 1060, in invoke
File "site-packages/click/core.py", line 889, in invoke
File "site-packages/click/core.py", line 534, in invoke
File "<string>", line 47, in create
File "<string>", line 155, in run_create
File "github/AuthenticatedUser.py", line 542, in create_repo
File "github/Requester.py", line 171, in requestJsonAndCheck
File "github/Requester.py", line 212, in requestJson
File "github/Requester.py", line 251, in __requestEncode
File "github/Requester.py", line 275, in __requestRaw
File "http/client.py", line 1083, in request
File "http/client.py", line 1128, in _send_request
File "http/client.py", line 1079, in endheaders
File "http/client.py", line 911, in _send_output
File "http/client.py", line 854, in send
File "http/client.py", line 1237, in connect
File "ssl.py", line 376, in wrap_socket
File "ssl.py", line 747, in __init__
File "ssl.py", line 983, in do_handshake
File "ssl.py", line 628, in do_handshake
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:646)
statuspage returned -1
Gotham Rounded is a paid font that cannot be redistributed freely (TOS here).
It should be removed from https://github.com/jayfk/statuspage/blob/master/template/style.css
So I was running the command to create a status page (statuspage create --token=<insert my token here>
)
And during the setup process, it suddenly stopped and gave me this error:
Traceback (most recent call last):
File "C:\Users\Acer\AppData\Local\Programs\Python\Python35-32\Scripts\statuspage-script.py", line 9, in <module>
load_entry_point('statuspage==0.8.1', 'console_scripts', 'statuspage')()
File "c:\users\acer\appdata\local\programs\python\python35-32\lib\site-packages\click\core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "c:\users\acer\appdata\local\programs\python\python35-32\lib\site-packages\click\core.py", line 696, in main
rv = self.invoke(ctx)
File "c:\users\acer\appdata\local\programs\python\python35-32\lib\site-packages\click\core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\acer\appdata\local\programs\python\python35-32\lib\site-packages\click\core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\acer\appdata\local\programs\python\python35-32\lib\site-packages\click\core.py", line 534, in invoke
return callback(*args, **kwargs)
File "c:\users\acer\appdata\local\programs\python\python35-32\lib\site-packages\statuspage\statuspage.py", line 65, in create
run_create(name=name, token=token, systems=systems, org=org, private=private)
File "c:\users\acer\appdata\local\programs\python\python35-32\lib\site-packages\statuspage\statuspage.py", line 276, in run_create
content=f.read(),
File "c:\users\acer\appdata\local\programs\python\python35-32\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 56487: character maps to <undefined>
I am on a Windows 32 bit machine running Windows 10 and using Python 3.5.0 32 bit.
Please provide some help as soon as possible.
Thank you.
The first tag here appears to be unusable as one cannot run statuspage update
. Could we have a new tag that points out a more usable commit?
If we track the distributions in git the repo size will increase. Currently its around 28MB and may increase further because of the distributions. If tracking is important consider using git lfs
.
Hey, I would like to put a status page on my website which is on a shared hosting. It is a linux server. Actually there is no need for a status page but I would like to keep one as to make it more professional. So can I do this on shared hosting server ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.