CDash icon indicating copy to clipboard operation
CDash copied to clipboard

CDash v3.0.0 problem with displaying data from database

Open juraj67 opened this issue 4 years ago • 3 comments

Hi, I have som problems with displaying my dashboard after installing CDash v3.0.0. After creating a new project and testing, the test results and my project info do not appear on my panel.

This is my CDash user.php page: cdash3

Error in my log file: development.ERROR: SQLSTATE[HY000] [1049] Unknown database 'cdash' (SQL: select * from userwhereid= 1 limit 1)

Using phpmyadmin I can see the test results and project info in my database.

Any help would be nice

juraj67 avatar Sep 16 '20 11:09 juraj67

It looks to me that the frontend hasn't been generated correctly. What happens if you run npm run dev from the root of your CDash clone?

zackgalbreath avatar Sep 25 '20 14:09 zackgalbreath

Hi, results after running npm run dev:

98% after emitting SizeLimitsPlugin

 DONE  Compiled successfully in 24151ms                                                                                                                                                                                                                              9:49:38 AM

(node:7764) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/home/ects/srcBuild/opt/CDash/public/js/directives/**.js'
(Use `node --trace-warnings ...` to show where the warning was created)
(node:7764) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)

Results after using node --trace-warnings ...:

internal/modules/cjs/loader.js:895
  throw err;
  ^

Error: Cannot find module '/home/ects/srcBuild/opt/CDash/...'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:892:15)
    at Function.Module._load (internal/modules/cjs/loader.js:742:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

In directory CDash/public/js/directives/ I can see .js files. Changing permission on this dir did not help.

juraj67 avatar Sep 29 '20 08:09 juraj67

Thanks for sharing this error report. We'll take a closer look & let you know what we find.

zackgalbreath avatar Sep 29 '20 12:09 zackgalbreath