upptime / upptime Goto Github PK
View Code? Open in Web Editor NEW⬆️ GitHub Actions uptime monitor & status page by @AnandChowdhary
Home Page: https://upptime.js.org
License: MIT License
⬆️ GitHub Actions uptime monitor & status page by @AnandChowdhary
Home Page: https://upptime.js.org
License: MIT License
Describe the bug
It seems that in some way, there is a piece of code that uses the token that is supplied by GitHub Actions, located on the GITHUB_TOKEN
environment variable. I think so because after generating new Upptime repositories and setting their respective GH_PAT
environment variable with my tokens on my other account, just because I want to avoid my contribution activity to be spammed with the updates.
It worked, mostly. Most of the commits are directed to my other account, but there is a single commit that is present on the contribution activity of my profile every day.
I'm not sure if this is intended or what, but I ever tried to change the tokens myself when it is 1.x, after I realized that my contribution activity is spammed with response time commits, and it works perfectly, no Upptime commits on this account.
To Reproduce
Steps to reproduce the behavior:
GH_PAT
enviroment variable with the token from another account/collaborator, not the repository owner.Expected behavior
There shouldn't be any commits from the generated Upptime repositories.
Desktop (please complete the following information):
Additional context
Due to the nature that there is only one commit that are pushed every day, that means that it is caused by one of the daily workflows. I tried to investigate it, and it seems that it boils down into these three commits.
By correlating it with the workflows, it seems that it is caused by either the "Summary CI" or the "Graphs CI".
I have no way to confirm if this is right, so please investigate this further.
Sending messages using tokens at https://api.slack.com/methods/chat.postMessage/test works fine, but why not in the app?
When I can't access the site, there are no messages.
I set it up as follows.
notifications:
-type: slack
channel: C01DE******
Secret setting complete
SLACK_APP_ACCESS_TOKEN: xoxb-xxxxxxxxxxxxxx-xxxxxxxxxxxx
Hey,
Im trying to set up Upptime for some of my sites but have some very weird messages coming from the static CI job ( https://github.com/pavelloz/upptime/runs/1419647547?check_suite_focus=true#step:3:29 ):
Fetching the repository
/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +7ff57fc91d084cbbdafc1bf8451edf963b35d197:refs/remotes/origin/master
Error: fatal: could not read Username for 'https://github.com': terminal prompts disabled
The process '/usr/bin/git' failed with exit code 128
Waiting 18 seconds before trying again
/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +7ff57fc91d084cbbdafc1bf8451edf963b35d197:refs/remotes/origin/master
Error: fatal: could not read Username for 'https://github.com': terminal prompts disabled
The process '/usr/bin/git' failed with exit code 128
Waiting 12 seconds before trying again
/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +7ff57fc91d084cbbdafc1bf8451edf963b35d197:refs/remotes/origin/master
Error: fatal: could not read Username for 'https://github.com': terminal prompts disabled
Error: The process '/usr/bin/git' failed with exit code 128
This is public repo, so i dont know why it needs username anyways.
Result of that is empty gh page: https://pavelloz.github.io/upptime/
And probably thats why badges of uptime are empty, because i get the same error in Setup CI workflow: https://github.com/pavelloz/upptime/runs/1419647511?check_suite_focus=true
Did i broke something using this config? https://github.com/pavelloz/upptime/blob/master/.upptimerc.yml
GH_TAP secret is of course set up, but maybe it needs more access rights (i selected repo, per documentation)?
screenshot:
to reproduce:
upptime/upptime
template.DISCORD_WEBHOOK_URL
and GH_PAT
secerets.upptimerc.yml
file and pushIf you try to access issue that doesn't exists, you will get "Rate limit exceeded" message, but ratelimit is not exceeded.
fatal: could not read Username for 'https://github.com': No such device or address
On the "Github Pages Deploy" stage I get the previous error. Do I need to configure some sort of deploy token? I see in the workflows file a GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
variable, but the readme for this repo makes me think that should be automatically set?
The Update Template CI is failing on the Setup Node.js
step during the build.
This is due to GitHub deprecating a feature as explained here.
The issue was raised in the Setup Node action - actions/setup-node#212
It has been fixed in the latest version (i.e. v2.1.2
)
14.0 (15610.1.28.1.9, 15610)
Steps:
Option+Cmd+E
for clear the cache;Cmd+R
for reload the page;Similar result on other site with Upptime
.
UPD: Tested with and without external plugins for Safari.
The uptime % in the README can go under 0%, probably an error from here:
https://github.com/koj-co/status/blob/3060f3aeffb9002c733ec61e5b58b4c5da8b3143/summary.ts#L73-L77
That gets displayed here:
https://github.com/koj-co/status/blob/3060f3aeffb9002c733ec61e5b58b4c5da8b3143/summary.ts#L118
Clicking on the graphs shown in the example website throws an error. I would imagine the expected behavior to either not be a link, or to show a larger version of the graph.
The following is visible under any history route on the right side of the Graph
:
It seems that the commit filter incorrectly includes all commits of the last day. edit: No idea what is going on.
I was wondering if it's possible to monitor ICMP response times, instead of HTTP response times. Also, would it be possible to disable showing the response times altogether?
In 5131f51, https://example.koj.co was down:
Ahoy,
I'm setting this up for a GitHub Organization, the repo for which is here. For some reason, the GitHub Pages Deploy step always produces this error, regardless of which action is performing it.
error: src refspec ***@github.com/severnbronies/status.git does not match any
error: failed to push some refs to 'https://'
Is there some extra setup needed to get Upptime working with GitHub Organizations? Given orgs do not have Personal Access Tokens, I've used one generated on my personal account instead.
I've tried re-doing set up a few times with the same result, and my configuration isn't drastically different from the default (which is for an org), so I'm at a bit of a loss. Your help appreciated! Thanks!
I am trying this in my yml
file as described in the docs, I tried everything but nothing worked it's just sending empty body to the server.
I don't know why, please look into the issue
- name: User Login Up
method: POST
url: https://untitled-21r9rlkgb6mq.runkit.sh
headers:
- "Content-Type: application/json; charset=utf-8"
body: '{ "password": "hello" }'
I also tried quoting the strings but nothing worked in my runkit there is just
// listen for POST requests and respond based on that POSTed data
app.post("/", (req, res) => {
console.log(req.body);
return res.send({ message: `You posted ${JSON.stringify(req.body)}` });
});
Ahoy!
On the deployed GitHub Pages site, the "Back to all incidents" link that appears at the bottom of the incident details page appears to always return to the site root, regardless of the baseUrl
configuration option.
For example, the link on https://severnbronies.github.io/status/incident/1 points to https://severnbronies.github.io, when I would expect it to lead to https://severnbronies.github.io/status.
Not sure if related to my previous issues with getting set up (issue #61), but judging by the line of code responsible it seems like this would happen in any situation where baseUrl
is used.
I just initialized a new repo step by step as you describe it on your "Getting started" page but I get the following error after configuring:
#################################################
Changing directory to 'BUILD_DIR' site/status-page/__sapper__/export/ ...
#################################################
Now deploying to GitHub Pages...
Initialized empty Git repository in /github/workspace/site/status-page/__sapper__/export/.git/
[master (root-commit) 88ec494] Deploy to GitHub Pages
39 files changed, 310 insertions(+)
create mode 100644 404.html
create mode 100644 client/[number]-7cdb9800.css
create mode 100644 client/[number]-e7104239.css
create mode 100644 client/[number].caf9d810.js
create mode 100644 client/[number].e27ddac1.js
create mode 100644 client/client-9c935b61.css
create mode 100644 client/client.62c09633.js
create mode 100644 client/createOctokit-777bf8f6.css
create mode 100644 client/createOctokit.d581d69f.js
create mode 100644 client/error-a44b661b.css
create mode 100644 client/error.d7e1380d.js
create mode 100644 client/index-87d8f7e9.css
create mode 100644 client/index.2e47f3a3.js
create mode 100644 client/inject_styles.5607aec6.js
create mode 100644 client/legacy/[number]-7cdb9800.css
create mode 100644 client/legacy/[number]-e7104239.css
create mode 100644 client/legacy/[number].1cb27cfd.js
create mode 100644 client/legacy/[number].b5c7560e.js
create mode 100644 client/legacy/client-9c935b61.css
create mode 100644 client/legacy/client.47447cf6.js
create mode 100644 client/legacy/createOctokit-777bf8f6.css
create mode 100644 client/legacy/createOctokit.0ef5b617.js
create mode 100644 client/legacy/error-a44b661b.css
create mode 100644 client/legacy/error.a8913989.js
create mode 100644 client/legacy/index-87d8f7e9.css
create mode 100644 client/legacy/index.794c9a83.js
create mode 100644 client/legacy/inject_styles.fe622066.js
create mode 100644 client/legacy/rate-limit-exceeded-e1b7a1b3.css
create mode 100644 client/legacy/rate-limit-exceeded.33101f17.js
create mode 100644 client/rate-limit-exceeded-e1b7a1b3.css
create mode 100644 client/rate-limit-exceeded.db390e5b.js
create mode 100644 client/[email protected]
create mode 100644 global.css
create mode 100644 index.html
create mode 100644 logo-192.png
create mode 100644 logo-512.png
create mode 100644 manifest.json
create mode 100644 service-worker-index.html
create mode 100644 service-worker.js
error: src refspec ***@github.com/TomlDev/uptime-saufwaelder.git does not match any
error: failed to push some refs to 'https://'
In 0cbe7f3, https://example.koj.co was down:
In the docs, at the bottom of the paragraph below this header, there is a link to an example issue for a broken site, #15, but it has now been deleted.
The correct example issue is #67.
Hello ! Thank you for awesome this project.
I currently use uptime/uptime-monitor(2c02d16) and I found duplicate percentage string on the status page.
This seems to be due to the presence of duplicate % on the template side and the data side.
In 42a2077, https://example.koj.co was down:
See for instance https://github.com/aureooms/monitor/blame/master/README.md#L19. It seems upptime/uptime-monitor#45 would fix this error (I cannot comment there since the conversation is limited to collaborators). I originally thought upptime/uptime-monitor#45 would fix the same kind of bug in the generated PWA, however I was wrong.
I keep getting an error at Actions check-out. Why am I getting an error when I input GH_PAT?
Run actions/[email protected]
with:
repository: r2fresh/chelsea
ssh-strict: true
persist-credentials: true
clean: true
fetch-depth: 1
lfs: false
submodules: false
Error: Input required and not supplied: token
In 21fc583
, Broken Site (https://thissitedoesnotexist.com) was down:
Hello koj team & @AnandChowdhary , I have a instance of upptime running, my site is at here and it looks like it shows at below that This page is open source, powered by Upptime
and I don't love this last part. Also the icon of the website stays the same old upptime logo instead of the one I wrote in config. So therefore I want to change the website source code, so can I know where do I need to change it?
After using this template, I've completely setup my .upptimerc.yml
and also inserted GH_PAT to project's sercret.
But gh-pages is not automatically generated and [skip ci]
message was shown.
How can i deal with it?
Well, this is weird :)
I just created another instance to monitor another set of pages and for some reason this is what I get on Setup CI workflow:
Error: Unable to find workflow 'Graphs CI' in pavelloz/instances-uptime 😥
https://github.com/pavelloz/instances-uptime/runs/1421583962?check_suite_focus=true#step:6:6
Im pretty sure i have Graphs CI workflow as I did not touch it
I did one mistake but i dont know if it can have any impact: I have run workflow first time before I created GH_PAT, so maybe state somewhere was saved and now order of workflows is not correct.
Anyway - Just like a previous time i will just start from scratch (and it will work!), but i think there is some fragile part of those workflows (my guess is: their communication with each other) that breaks them if something is run in the not optimal order (like missing secret, or missing directories, which i had to create by hand :) )
Those directories are suspicious - Everytime i cleaned them up (leaving empty directory for git means they are not commited), something went wrong. I had to create them by hand, add .keep
to commit them. Maybe script should detect if there is dir and then try to save to file, instead of throwing error that history/xx.yml is not present etc.
Just set it up and I am pretty sure it is all configured well.
Eg: https://github.com/GooseMod/status/actions/runs/388990685
Failed both with and without specific scheduling variables in the configuration, may be a bug from #71? Not sure.
Thanks!
On my site https://snapwiki.github.io/SnapWikiUptime, the graphs are buggy. When you put your cursor over the dots on the graph "7-day response time", either nothing happens, or the spot that triggers it weirdly offset. This behavior is really annoying. Please fix this!
All sites are marked down. Please check!
In c4e08f6
, Secret Site ($SECRET_SITE) was down:
Hi,
I really like the idea behind this and have been running it for a couple days; thanks so much for putting this together. Over the weekend, one of the CI Actions failed:
https://github.com/richardtape/ubcupptime/runs/1443340141?check_suite_focus=true
In order to fix this I needed to issue a new PAT with both the repo AND workflow scopes (hinted at in the error linked above). May need a quick tweak to the docs, unless I have something wrong? If I'm being honest I don't recall there being a separate workflow scope when I first set this up, so maybe that's a new thing?
Happy to make a PR for the docs if the above is what is needed,
Rich
Hi,
I was looking through the documentation, but didn't notice an option in the configuration to disable the dark theme. Is this possible?
The percent sign in the Live Status is shown twice.
Example: Overall uptime: 99.99%%
The Telegram notification fails with the HTTP code 400 if a secret site is set up.
I checked the logs and it says:
"Bad Request: can't parse entities: Can't find end of the entity starting at byte offset 25"
.
Then I tried it again with a non-secret URL and it worked.
It seems like Telegram tries to parse the $
prefix of the environment variables and the _
in SECRET_SITE
because of markdown enabled and it fails.
The 'Back to all incidents' link at the bottom of an Incident's detail page leads to the base of my github pages URL, e.g. https://elderlydoofus.github.io instead of https://elderlydoofus.github.io/upptime.
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.