Skip to content

Instantly share code, notes, and snippets.

@philippefutureboy
Created July 10, 2019 21:07
Show Gist options
  • Save philippefutureboy/9d012684f9f8008903dcfd2059e5687d to your computer and use it in GitHub Desktop.
Save philippefutureboy/9d012684f9f8008903dcfd2059e5687d to your computer and use it in GitHub Desktop.
cube_1 | 🚀 Cube.js server is listening on 4000
cube_1 | {"message":"Load Request","query":"{\"measures\":[\"Orders.totalAmount\"],\"dimensions\":[\"Orders.status\"],\"order\":{\"Orders.status\":\"desc\"},\"renewQuery\":true}","authInfo":{"databaseName":"96ffad74cf0452e89e0bde1a96c94c90","iat":1562792645,"exp":1565384645}}
cube_1 | {"message":"Compiling schema","version":"default_schema_version"}
cube_1 | {"message":"Query started","query":"SELECT `orders`.status `orders.status`, sum(`orders`.amount) `orders.total_amount` FROM Orders AS `orders` GROUP BY 1 ORDER BY 1 DESC LIMIT 10000","params":[]}
cube_1 | {"message":"Requested renew","cacheKey":["SELECT\n `orders`.status `orders.status`, sum(`orders`.amount) `orders.total_amount`\n FROM\n Orders AS `orders`\n GROUP BY 1 ORDER BY 1 DESC LIMIT 10000",[],[]]}
cube_1 | {"message":"Missing cache for","cacheKey":["select count(*) from Orders AS `orders`",[]]}
cube_1 | {"message":"Added to queue","priority":0,"queueSize":1,"queryKey":["select count(*) from Orders AS `orders`",[]]}
cube_1 | {"message":"Performing query","queueSize":1,"queryKey":["select count(*) from Orders AS `orders`",[]]}
cube_1 | {"message":"Error while querying","queryKey":["select count(*) from Orders AS `orders`",[]],"error":"Error: ER_NO_DB_ERROR: No database selected\n at Query.Sequence._packetToError (/opt/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)\n at Query.ErrorPacket (/opt/node_modules/mysql/lib/protocol/sequences/Query.js:77:18)\n at Protocol._parsePacket (/opt/node_modules/mysql/lib/protocol/Protocol.js:291:23)\n at Parser._parsePacket (/opt/node_modules/mysql/lib/protocol/Parser.js:433:10)\n at Parser.write (/opt/node_modules/mysql/lib/protocol/Parser.js:43:10)\n at Protocol.write (/opt/node_modules/mysql/lib/protocol/Protocol.js:38:16)\n at Socket.<anonymous> (/opt/node_modules/mysql/lib/Connection.js:91:28)\n at Socket.<anonymous> (/opt/node_modules/mysql/lib/Connection.js:525:10)\n at Socket.emit (events.js:200:13)\n at addChunk (_stream_readable.js:294:12)\n --------------------\n at Protocol._enqueue (/opt/node_modules/mysql/lib/protocol/Protocol.js:144:48)\n at Connection.query (/opt/node_modules/mysql/lib/Connection.js:201:25)\n at internal/util.js:286:30\n at new Promise (<anonymous>)\n at Connection.bound query [as execute] (internal/util.js:285:12)\n at /opt/node_modules/@cubejs-backend/mysql-driver/driver/MySqlDriver.js:108:24\n at processTicksAndRejections (internal/process/task_queues.js:89:5)"}
cube_1 | {"message":"Dropping Cache","cacheKey":["select count(*) from Orders AS `orders`",[]],"error":"Error: ER_NO_DB_ERROR: No database selected\n at QueryQueue.parseResult (/opt/node_modules/@cubejs-backend/server-core/node_modules/@cubejs-backend/query-orchestrator/orchestrator/QueryQueue.js:75:13)\n at QueryQueue.executeInQueue (/opt/node_modules/@cubejs-backend/server-core/node_modules/@cubejs-backend/query-orchestrator/orchestrator/QueryQueue.js:64:19)\n at processTicksAndRejections (internal/process/task_queues.js:89:5)"}
cube_1 | {"message":"Error fetching cache key queries","error":"Error: ER_NO_DB_ERROR: No database selected\n at QueryQueue.parseResult (/opt/node_modules/@cubejs-backend/server-core/node_modules/@cubejs-backend/query-orchestrator/orchestrator/QueryQueue.js:75:13)\n at QueryQueue.executeInQueue (/opt/node_modules/@cubejs-backend/server-core/node_modules/@cubejs-backend/query-orchestrator/orchestrator/QueryQueue.js:64:19)\n at processTicksAndRejections (internal/process/task_queues.js:89:5)"}
cube_1 | {"message":"Missing cache for","cacheKey":["SELECT\n `orders`.status `orders.status`, sum(`orders`.amount) `orders.total_amount`\n FROM\n Orders AS `orders`\n GROUP BY 1 ORDER BY 1 DESC LIMIT 10000",[],[]]}
cube_1 | {"message":"Added to queue","priority":0,"queueSize":1,"queryKey":["SELECT\n `orders`.status `orders.status`, sum(`orders`.amount) `orders.total_amount`\n FROM\n Orders AS `orders`\n GROUP BY 1 ORDER BY 1 DESC LIMIT 10000",[],[]]}
cube_1 | {"message":"Performing query","queueSize":1,"queryKey":["SELECT\n `orders`.status `orders.status`, sum(`orders`.amount) `orders.total_amount`\n FROM\n Orders AS `orders`\n GROUP BY 1 ORDER BY 1 DESC LIMIT 10000",[],[]]}
cube_1 | {"message":"Error while querying","queryKey":["SELECT\n `orders`.status `orders.status`, sum(`orders`.amount) `orders.total_amount`\n FROM\n Orders AS `orders`\n GROUP BY 1 ORDER BY 1 DESC LIMIT 10000",[],[]],"error":"Error: ER_NO_DB_ERROR: No database selected\n at Query.Sequence._packetToError (/opt/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)\n at Query.ErrorPacket (/opt/node_modules/mysql/lib/protocol/sequences/Query.js:77:18)\n at Protocol._parsePacket (/opt/node_modules/mysql/lib/protocol/Protocol.js:291:23)\n at Parser._parsePacket (/opt/node_modules/mysql/lib/protocol/Parser.js:433:10)\n at Parser.write (/opt/node_modules/mysql/lib/protocol/Parser.js:43:10)\n at Protocol.write (/opt/node_modules/mysql/lib/protocol/Protocol.js:38:16)\n at Socket.<anonymous> (/opt/node_modules/mysql/lib/Connection.js:91:28)\n at Socket.<anonymous> (/opt/node_modules/mysql/lib/Connection.js:525:10)\n at Socket.emit (events.js:200:13)\n at addChunk (_stream_readable.js:294:12)\n --------------------\n at Protocol._enqueue (/opt/node_modules/mysql/lib/protocol/Protocol.js:144:48)\n at Connection.query (/opt/node_modules/mysql/lib/Connection.js:201:25)\n at internal/util.js:286:30\n at new Promise (<anonymous>)\n at Connection.bound query [as execute] (internal/util.js:285:12)\n at /opt/node_modules/@cubejs-backend/mysql-driver/driver/MySqlDriver.js:108:24\n at processTicksAndRejections (internal/process/task_queues.js:89:5)"}
cube_1 | {"message":"Dropping Cache","cacheKey":["SELECT\n `orders`.status `orders.status`, sum(`orders`.amount) `orders.total_amount`\n FROM\n Orders AS `orders`\n GROUP BY 1 ORDER BY 1 DESC LIMIT 10000",[],[]],"error":"Error: ER_NO_DB_ERROR: No database selected\n at QueryQueue.parseResult (/opt/node_modules/@cubejs-backend/server-core/node_modules/@cubejs-backend/query-orchestrator/orchestrator/QueryQueue.js:75:13)\n at QueryQueue.executeInQueue (/opt/node_modules/@cubejs-backend/server-core/node_modules/@cubejs-backend/query-orchestrator/orchestrator/QueryQueue.js:64:19)\n at processTicksAndRejections (internal/process/task_queues.js:89:5)"}
cube_1 | {"message":"Error querying db","query":"SELECT `orders`.status `orders.status`, sum(`orders`.amount) `orders.total_amount` FROM Orders AS `orders` GROUP BY 1 ORDER BY 1 DESC LIMIT 10000","params":[],"error":"Error: ER_NO_DB_ERROR: No database selected\n at QueryQueue.parseResult (/opt/node_modules/@cubejs-backend/server-core/node_modules/@cubejs-backend/query-orchestrator/orchestrator/QueryQueue.js:75:13)\n at QueryQueue.executeInQueue (/opt/node_modules/@cubejs-backend/server-core/node_modules/@cubejs-backend/query-orchestrator/orchestrator/QueryQueue.js:64:19)\n at processTicksAndRejections (internal/process/task_queues.js:89:5)"}
cube_1 | {"message":"Orchestrator error","query":"{\"measures\":[\"Orders.totalAmount\"],\"dimensions\":[\"Orders.status\"],\"order\":{\"Orders.status\":\"desc\"},\"renewQuery\":true}","error":"Error: ER_NO_DB_ERROR: No database selected","authInfo":{"databaseName":"96ffad74cf0452e89e0bde1a96c94c90","iat":1562792645,"exp":1565384645}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment