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

failed to load swrast driver #2

Closed
Matze181280 opened this issue Sep 8, 2023 · 7 comments
Closed

failed to load swrast driver #2

Matze181280 opened this issue Sep 8, 2023 · 7 comments

Comments

@Matze181280
Copy link

Hello,

somehow it does not work I did everything according to the instructions.
Attached the log
Maybe someone can help me?
For the app I got all the code from sorlaman support /App_ID and App_Secret

and the other I have also adjusted by helper.js

	// define urls
	let url = 'https://globalapi.solarmanpv.com/device/v1.0/currentData?appId=' + this.config.appId + '&language=en&=';
	let urlH = 'https://globalapi.solarmanpv.com/device/v1.0/historical?appId=' + this.config.appId + '&language=en&=';
	
	var options = {

Thank you!

Require stack:

  • /home/matze/MagicMirror/modules/MMM-Solarman/node_helper.js
  • /home/matze/MagicMirror/js/app.js
  • /home/matze/MagicMirror/js/electron.js
  • /home/matze/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
  • at Module._resolveFilename (node:internal/modules/cjs/loader:1082:15)
    at n._resolveFilename (node:electron/js2c/browser_init:2:117469)
    at Module._resolveFilename (/home/matze/MagicMirror/node_modules/module-alias/index.js:49:29)
    at Module._load (node:internal/modules/cjs/loader:927:27)
    at f._load (node:electron/js2c/asar_bundle:2:13330)
    at Module.require (node:internal/modules/cjs/loader:1148:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object. (/home/matze/MagicMirror/modules/MMM-Solarman/node_helper.js:9:15)
    at Module._compile (node:internal/modules/cjs/loader:1269:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1324:10)
    at Module.load (node:internal/modules/cjs/loader:1124:32)
    at Module._load (node:internal/modules/cjs/loader:965:12)
    at f._load (node:electron/js2c/asar_bundle:2:13330)
    at Module.require (node:internal/modules/cjs/loader:1148:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at loadModule (/home/matze/MagicMirror/js/app.js:180:19)
    (Use electron --trace-warnings ... to show where the warning was created)
    [08.09.2023 06:52.57.452] [ERROR] (node:2173) 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)
    MESA-LOADER: failed to retrieve device information
    MESA-LOADER: failed to retrieve device information
    MESA-LOADER: failed to retrieve device information
    MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: Kann die Shared-Object-Datei nicht öffnen: Keine Berechtigung (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)
    failed to load driver: kms_swrast
    MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: Kann die Shared-Object-Datei nicht öffnen: Keine Berechtigung (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)
    failed to load swrast driver
@utzl
Copy link
Owner

utzl commented Sep 20, 2023

Hi Matze,
honestly I have no idea what the swrast driver does or what the issue could be in your case.
Do you have this issue only when the solarman module is activ in your config.js?

Try to set a wrong accessToken in your config file and see if the module itself works then (of course without your data, but it would be a start)

all the best

@utzl
Copy link
Owner

utzl commented Oct 3, 2023

Where you able to solve your issue or is it still open?

@Matze181280
Copy link
Author

Hello Utzl,
Sorry for my late reply.
Thank you for your help, unfortunately I did not get any further.
I tried what you told me: the same error came back.
Is there something wrong with my installation? I have installed it again, but it did not work.
Maybe you have another idea?
Thanks !

@utzl
Copy link
Owner

utzl commented Oct 9, 2023

Hi,
now I had a similar bug after npm installation of another module. and then nothing worked anymore...
I installed a newer version of node (18.18).
And full apt-get update/upgrade.
And I also updated to MagicMirror version 2.25.

Recommend to use on of these scripts:
https://github.com/sdetweil/MagicMirror_scripts

Hope this will also help you. Send me the pm2 log again if not.

@Matze181280
Copy link
Author

Hi,

thanks for the feedback and Info.
I'll try it out when I get back from the field.
Thanks you, I will get back to you.
Br / Matze

@utzl
Copy link
Owner

utzl commented Jan 16, 2024

Hi Matze, can I close this issue?

@Matze181280
Copy link
Author

Matze181280 commented Jan 22, 2024 via email

@utzl utzl closed this as completed Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants