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

Tables appear empty on Dashboard #3729

Closed
nuin opened this issue Feb 4, 2015 · 18 comments
Closed

Tables appear empty on Dashboard #3729

nuin opened this issue Feb 4, 2015 · 18 comments
Assignees
Milestone

Comments

@nuin
Copy link

nuin commented Feb 4, 2015

I have two boxes running the same latest version of Rethinkdb and the tables appear empty on the dashboard, even though the table has data. The version running is rethinkdb 1.16.0-1 on OS X 10.10.2 and Debian Wheezy, it the same behaviour.

I am attaching two images with some examples, from the same table in the dashboard and data explorer.

screen shot 2015-02-04 at 12 58 05 pm

screen shot 2015-02-04 at 12 58 17 pm

@danielmewes
Copy link
Member

Thank you for the bug report @nuin. We've rewritten big parts of the web UI in 1.16, so this is probably a bug in the web UI that has slipped through the cracks.

Could you do two things for us to help us figure out what's going on?

  • Check the development console if there are any JavaScript errors. In Firefox you can enable the "Web Console" in the Tools -> Web Developer sub menu. There will probably be a couple of CSS warnings already in there. The interesting ones are JS and Logging messages. In Chrome/Chromium I think JS errors show up on the "JavaScript console", which you can find in the Tools menu.
  • Could you run r.db('genes').table('exons3').info() in the Data Explorer and report back the result?

Thank you for your help!

@nuin
Copy link
Author

nuin commented Feb 4, 2015

Hi @danielmewes
There are 3 errors being reported, 2 on the Tables page and another on the table-specific page pointing to same source link:

[Error] Failed to load resource: the server responded with a status of 400 (Bad Request) (reql, line 0) 
on different conn_id:
http://192.168.1.83:8080/ajax/reql/?conn_id=197
http://192.168.1.83:8080/ajax/reql/?conn_id=200
http://192.168.1.83:8080/ajax/reql/?conn_id=204

And the .info on the table

{
"db": {
"id":  "21cc26df-6bf2-4e25-94d3-eb9100ba29d9" ,
"name":  "genes" ,
"type":  "DB"
} ,
"doc_count_estimates": [
74744
] ,
"id":  "ca6071fc-a806-493d-9c98-7f13c341e11a" ,
"indexes": [ ],
"name":  "exons3" ,
"primary_key":  "id" ,
"type":  "TABLE"
}

Thanks

@danielmewes
Copy link
Member

Thanks for the info @nuin . We'll investigate. Does the problem persist if you reload the page?

In case we cannot reproduce it ourselves, is there a chance you could give us your RethinkDB data folder? We would be happy to sign an NDA if it contains any sensitive information.

@nuin
Copy link
Author

nuin commented Feb 4, 2015

Hi @danielmewes

Nothing changes with a reload.

I guess I can send the data if needed. Just need to check if there's anything sensitive, but from the top of my head I don't think there is.

@nuin
Copy link
Author

nuin commented Feb 4, 2015

One question @danielmewes: my machines are behind a firewall and some ports (outbound) are closed, would that be an issue for those connections? As far I can see in the errors it's trying to connect to my intranet IP, just wondering if something goes outbound in a different port.

@danielmewes
Copy link
Member

@nuin It should be using the same port (8080) for all of its requests (and the same local server), so if there was a problem with that I would expect the web UI to not work at all. Theoretically there's a chance that something is special with this specific request (e.g. it takes longer than the others or something like that) which causes it to be interrupted by the firewall, but I don't think that's very likely.

@danielmewes
Copy link
Member

@nuin are you using Safari?
I just saw the same error appear in the log with Safari, though on the dashboard rather than a table page.
Do you have any other browser installed that you could try?

@marshall007
Copy link
Contributor

@danielmewes I just ran into this in Chrome 40. I was on the table overview page and when I tried to navigate to the Data Explorer from the menu bar everything blanked out like in @nuin's first screenshot. I can't seem to reproduce it again but I'll keep an eye out.

@nuin
Copy link
Author

nuin commented Feb 5, 2015

@danielmewes Yes, running mostly on Safari. I will try Firefox and Chrome and report.

Thanks

@nuin
Copy link
Author

nuin commented Feb 5, 2015

@danielmewes All good on Chrome checking the two boxes. Notice that I am on the VPN now, and both Chrome and Safari work fine. I will test again tomorrow on my work box using Chrome and Firefox.

@danielmewes
Copy link
Member

Ok I found the reason for why this is happening.
In the web UI we're emulating ReQL connections over HTTP. To open such a "virtual" connection, we send a request to the server first. The server then assigns a connection ID to the virtual connection and sends that back to us. For all future requests on this virtual connection we submit the connection ID so the server can associate the request with the right virtual connection.

What's happening now is that sometimes the browser caches the initial request, so the "establish connection" request never goes to the server. Instead multiple virtual connections will use the same connection ID, with all sorts of bad consequences.

@nuin
Copy link
Author

nuin commented Feb 5, 2015

@danielmewes Do you still need my data dir? No problem uploading it tomorrow.

@danielmewes
Copy link
Member

Fix in CR 2569.

@nuin I think we found the problem, so we won't need your data. Thank you though for offering to upload it!

@nuin
Copy link
Author

nuin commented Feb 5, 2015

I will close the ticket then, thanks a lot.

@nuin nuin closed this as completed Feb 5, 2015
@danielmewes
Copy link
Member

Re-opening until the change is merged. It's currently in code-review. (that's just our convention on how we use the issue tracker).
If everything goes well, we are going to ship the fix with a 1.16.1 point release pretty soon.

@danielmewes danielmewes reopened this Feb 5, 2015
@nuin
Copy link
Author

nuin commented Feb 5, 2015

@danielmewes OK, thanks.

@danielmewes
Copy link
Member

Closed in v1.16.x 51edc38 and next 437a362

Going to ship in 1.16.1.

@AtnNn AtnNn modified the milestones: 1.16.x, 1.16.1 Feb 11, 2015
@AtnNn AtnNn removed this from the 1.16.x milestone Feb 11, 2015
@danielmewes
Copy link
Member

@nuin this should be fixed in RethinkDB 1.16.1, which is now available. Please let us know if you notice anything else.

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

No branches or pull requests

5 participants