Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sorting issues / DataTables warning: table id=runs - Ajax error.

See original GitHub issue

Sacredboard shows this error if I try to edit the filters:

DataTables warning: table id=runs - Ajax error. For more information about this error, please see

This seems to be a problem with missisng indexes in the mongodb (as far as I know). I originally got this error when starting sacredboard but after I created an index for start and end dates it only shows up when I change the filters.

I’m using the default settings for a mongodb installation on Ubuntu 17.04. Memory usage for sorting without an index seems to be limited to 32MB in this configuration.

If this is no bug in Sacredboard please add some documentation for the correct settings.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:5
  • Comments:19 (4 by maintainers)

github_iconTop GitHub Comments

Leinadjcommented, Jun 30, 2018

Same here, adding the indices worked like magic! So just to make it easier for copy pasting:

  1. Open mongo shell (if added to PATH, just type: mongo into the shell)
  2. Switch to your database: use <databasename>
  3. Issue the following commands to create the indices: db.runs.createIndex({ “result”: -1 }); db.runs.createIndex({ “”: -1 }); db.runs.createIndex({ “command”: -1 }); db.runs.createIndex({ "host.hostname: -1 }); db.runs.createIndex({ “start_time”: -1 }); db.runs.createIndex({ “heartbeat”: -1 });
anibalicommented, Feb 12, 2018

For those that don’t know how to create an index (like I didn’t), you can use createIndex in the Mongo CLI. So to add a heartbeat index I did the following:

> use sacred
switched to db sacred
> db.runs.createIndex({ "heartbeat": -1 });
	"createdCollectionAutomatically" : false,
	"numIndexesBefore" : 1,
	"numIndexesAfter" : 2,
	"ok" : 1
Read more comments on GitHub >

github_iconTop Results From Across the Web

Server-side processing - DataTables warning: table id=example
When I run my application, only the "Show entries", "Search panel", Column names and ... DataTables warning: table id=example - Ajax error.
Read more >
0 - Stack Overflow
I am getting this error when i run the script " says DataTables warning: table id=products - Ajax error. For more information ...
Read more >
Error message on sorting columns - Google Groups
DataTables warning: table id=DataTables_Table_0 - Ajax error. ... all entries (or use the dropdown to view all) to make sure your problem is...
Read more >
Datatables warning in admin login 4.30 - nopCommerce
DataTables warning : table id=bestsellers-byamount-grid - Ajax error. ... restrictions that the hosting account has ? are you able to run it on...
Read more >
DataTables warning: table id=dupePairs - Ajax error
This issue was due to the response header being too big on the dedupe ajax response. We had to increase proxy_buffer in nginx...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found