Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Bug] Cannot start dash. #193

Closed
SangeloDev opened this issue Jul 9, 2022 · 2 comments
Closed

[Bug] Cannot start dash. #193

SangeloDev opened this issue Jul 9, 2022 · 2 comments

Comments

@SangeloDev
Copy link

Description of the bug

This is the error when trying to start dashdot:

node:internal/fs/utils:345
    throw err;
    ^

Error: ENOENT: no such file or directory, open '/home/yunohost.app/dashdot/version.json'
    at Object.openSync (node:fs:585:3)
    at readFileSync (node:fs:453:35)
    at /home/yunohost.app/dashdot/dist/apps/api/main.js:2:2650516
    at /home/yunohost.app/dashdot/dist/apps/api/main.js:2:2653387
    at Object.<anonymous> (/home/yunohost.app/dashdot/dist/apps/api/main.js:2:2653619)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: '/home/yunohost.app/dashdot/version.json'
}

And this is the command I use to launch dashdot:

export DASHDOT_PORT="3002" &&\
export DASHDOT_ENABLE_CPU_TEMPS='true' &&\
export DASHDOT_ALWAYS_SHOW_PERCENTAGES='true' &&\
export DASHDOT_WIDGET_LIST='os,cpu,storage,ram' &&\
sudo yarn start

How to reproduce

  1. Clone the repo and build it.
git clone https://github.com/MauriceNino/dashdot &&\
  cd dashdot &&\
  yarn &&\
  yarn build:prod
  1. Try to start dashdot with above mentioned command.
  2. Errors.

Relevant log output

node:internal/fs/utils:345
    throw err;
    ^

Error: ENOENT: no such file or directory, open '/home/yunohost.app/dashdot/version.json'
    at Object.openSync (node:fs:585:3)
    at readFileSync (node:fs:453:35)
    at /home/yunohost.app/dashdot/dist/apps/api/main.js:2:2650516
    at /home/yunohost.app/dashdot/dist/apps/api/main.js:2:2653387
    at Object.<anonymous> (/home/yunohost.app/dashdot/dist/apps/api/main.js:2:2653619)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: '/home/yunohost.app/dashdot/version.json'
}

Info output of dashdot cli

INFO
=========
Yarn: 3.2.1
Node: v16.16.0
Dash: unknown

Cwd: /home/yunohost.app/dashdot
Hash: 015eab35801f45646399d9d3e958b792d763a5cd

In Docker: false
In Podman: false
In Docker (env):

What browsers are you seeing the problem on?

Firefox

Where is your instance running?

Linux Server

Additional context

No response

@MauriceNino
Copy link
Owner

Thank you for the elaborate description! This will be fixed in the next release.

MauriceNino added a commit that referenced this issue Jul 9, 2022
## [4.3.1](v4.3.0...v4.3.1) (2022-07-09)

### Bug Fixes

* **api:** dont fail on missing version file for integrations ([87449ff](87449ff)), closes [#193](#193)
@MauriceNino
Copy link
Owner

🎉 This issue has been resolved in version 4.3.1

Please check the changelog for more details.

alan-caio added a commit to alan-caio/healthcare-dshboard-react-node that referenced this issue Jul 28, 2022
## [4.3.1](MauriceNino/dashdot@v4.3.0...v4.3.1) (2022-07-09)

### Bug Fixes

* **api:** dont fail on missing version file for integrations ([87449ff](MauriceNino/dashdot@87449ff)), closes [#193](MauriceNino/dashdot#193)
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants