Ratel error after changing predicate index

Moved from GitHub ratel/187

Posted by danielmai:

When I run a predicate re-indexing, the Rate/l UI disappears and the entire window becomes blank.

In Chrome developer tools, I see these errors in the console

Failed to load resource: net::ERR_CONNECTION_REFUSED
react-dom.production.min.js:5058 Error: Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=Error%3A%20%3A%20context%20deadline%20exceeded&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at Sa (react-dom.production.min.js:3242)
    at d (react-dom.production.min.js:3336)
    at m (react-dom.production.min.js:3402)
    at react-dom.production.min.js:3533
    at Ao (react-dom.production.min.js:4247)
    at vs (react-dom.production.min.js:6722)
    at lc (react-dom.production.min.js:6150)
    at sc (react-dom.production.min.js:6139)
    at Js (react-dom.production.min.js:5880)
    at react-dom.production.min.js:2851
es @ react-dom.production.min.js:5058
react-dom.production.min.js:3242 Uncaught (in promise) Error: Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=Error%3A%20%3A%20context%20deadline%20exceeded&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at Sa (react-dom.production.min.js:3242)
    at d (react-dom.production.min.js:3336)
    at m (react-dom.production.min.js:3402)
    at react-dom.production.min.js:3533
    at Ao (react-dom.production.min.js:4247)
    at vs (react-dom.production.min.js:6722)
    at lc (react-dom.production.min.js:6150)
    at sc (react-dom.production.min.js:6139)
    at Js (react-dom.production.min.js:5880)
    at react-dom.production.min.js:2851
DevTools failed to parse SourceMap: chrome-ext

Steps to reproduce

  1. Run Ratel and go to http://localhost:8000/?latest
  2. Run Dgraph
  3. Go to the Schema tab and update the schema for a predicate. I checked or unchecked the “reverse” checkbox for a [uid] predicate.

I have to refresh Ratel in order to use it again. But, if I re-index a predicate then the windows does blank again.

paulftw commented :

Cannot reproduce this on a test database.
Is it possible that your Dgraph server
a) has TLS enabled and
b) due to lots of data becomes unresponsive during re-indexing?

danielmai commented :

TLS was not enabled. This was a fresh Dgraph cluster and I added a new predicate in the schema.

danielmai commented :

I saw this again. I clicked on a schema row and the screen went blank. My Dgraph instance was not running, so I was expecting an error message saying that it couldn’t connect to the server.

Failed to load resource: net::ERR_CONNECTION_REFUSED
react-dom.production.min.js:5058 Error: Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=Error%3A%20Failed%20to%20fetch&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at Sa (react-dom.production.min.js:3242)
    at d (react-dom.production.min.js:3336)
    at m (react-dom.production.min.js:3402)
    at react-dom.production.min.js:3533
    at Ao (react-dom.production.min.js:4247)
    at vs (react-dom.production.min.js:6722)
    at lc (react-dom.production.min.js:6150)
    at sc (react-dom.production.min.js:6139)
    at Js (react-dom.production.min.js:5880)
    at react-dom.production.min.js:2851
es @ main.js:2
react-dom.production.min.js:3242 Uncaught (in promise) Error: Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=Error%3A%20Failed%20to%20fetch&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at Sa (react-dom.production.min.js:3242)
    at d (react-dom.production.min.js:3336)
    at m (react-dom.production.min.js:3402)
    at react-dom.production.min.js:3533
    at Ao (react-dom.production.min.js:4247)
    at vs (react-dom.production.min.js:6722)
    at lc (react-dom.production.min.js:6150)
    at sc (react-dom.production.min.js:6139)
    at Js (react-dom.production.min.js:5880)
    at react-dom.production.min.js:2851