[Solved] Node monitor is down

@0xkumi Getting ‘502 Bad Gateway’ since this morning on node monitor, mainly on https://monitor.incognito.org/pubkeystat/stat and https://monitor.incognito.org/validator/redlist?page=1.

1 Like

Same thing happens in the App:

1 Like

Same here, node monitor shows blank screen on both web and app version

12h in and this is still down. @duc I appreciate that people need time off and development isn’t happening on the weekends, but better monitoring/paging is required for core tools and infra, otherwise node operators won’t take any of this seriously.

Is there a plan to add any SREs to the dev team this year?

1 Like

The page is up.
Sorry for this inconvenience, we got a server problem.

4 Likes

Hi @adrian, we got some devops guys in the team already. Will add alerting for the node monitor first and then publicize a status page for core tools afterward. Actually, we’ve had a monitoring page for the whole core infra already but only shared internally. Normally we would look into it quickly, unfortunately, it’s a public holiday, and people traveled around which led to the slow responsiveness. Sorry again for the incident.

5 Likes

Has this URL been changed? I’m getting a 404 error on it when I go to pull node info.

Are you looking for this (https://monitor.incognito.org/node-monitor)?

No, I’m looking to do a call from postman. I had it working before in my google sheet, but now I’m getting a 404 error on that original URL.

It was always 404 on GET, you want POST

curl -XPOST --header "Content-Type: application/json" \
  --data '{"mpk": "<mining public key>"}' \
  https://monitor.incognito.org/pubkeystat/stat

For just the node role in google sheets you can use https://github.com/bradjasper/ImportJSON and add this extra function:

function GetMiningInfo(pubKey) {
  var data = {"jsonrpc":"1.0","method":"getincognitopublickeyrole","params":[pubKey],"id":1};
  var payload = JSON.stringify(data);

  var headers = {
    "Accept": "application/json",
    "Content-Type": "application/json"
  };

  var options = {
    "method": "POST",
    "contentType": "application/json",
    "headers": headers,
    "payload": payload
  };
  
  var response = UrlFetchApp.fetch("https://lb-fullnode.incognito.org/fullnode", options);
  var responseJson = JSON.parse(response.getContentText());
  return parseJSONObject_(responseJson, "/Result/Role", "noHeaders", includeXPath_, defaultTransform_);
}

-1 not staked, 0 waiting, 1 pending, 2 committee.

Thanks. I actually had this working already (I meant “Post”. Sorry bout that). O3 in this case, was my validator public key. The URL is coming back 404 in postman now with the mpk, so I assumed it was changed. To what, I dont know.

//GET PUBLIC VALIDATOR KEY
var sh=SpreadsheetApp.getActiveSpreadsheet().getSheetByName(“TOTALS”);
var rowNum = sh.getRange(‘O3’).getValue();

//POST NODE STATUS QUERY
var url = “http://monitor.incognito.org/pubkeystat/stat”;
var data = { “mpk”: rowNum
};

var options = {
‘method’ : ‘post’,
‘contentType’: ‘application/json’,
‘payload’ : JSON.stringify(data)
};

var response = UrlFetchApp.fetch(url, options);
var txt= response.getContentText();
var d=JSON.parse(txt);

FOUND THE ISSUE. The certificate was renewed. Is now https for the URL. Disregard my stupidity.

2 Likes