Startup exception on raspberry pi #145

Closed
opened 2026-01-29 16:32:23 +00:00 by claunia · 2 comments
Owner

Originally created by @80er on GitHub (Apr 15, 2018).

Originally assigned to: @GregorBiswanger on GitHub.

Hi,

followed the sample and created an empty ASP.NET Core project. Building the app on my Win10 machine works fine.
When i generate the package for my Raspberry PI with the command
dotnet electronize build /target linux /electron-arch armv7l
i get the exception below. Electron 1.7.11 is installed on the raspi, node is 8.11.1 (as on my Win10 machine). Already tried an npm install in the resources/app directory on the raspi.

Uncaught Exception:
Error: spawn EACCES
at exports._errnoException (util.js:1050:11)
at ChildProcess.spawn (internal/child_process.js:319:11)
at exports.spawn (child_process.js:390:9)
at portfinder (/home/pi/MediaCenterFrontend/resources/app/main.js:52:22)
at listen (/home/pi/MediaCenterFrontend/resources/app/node_modules/detect-port/lib/detect-port.js:69:11)
at Server.server.listen (/home/pi/MediaCenterFrontend/resources/app/node_modules/detect-port/lib/detect-port.js:93:12)
at Object.onceWrapper (events.js:293:19)
at emitNone (events.js:86:13)
at Server.emit (events.js:188:7)
at emitListeningNT (net.js:1290:10)

Originally created by @80er on GitHub (Apr 15, 2018). Originally assigned to: @GregorBiswanger on GitHub. Hi, followed the sample and created an empty ASP.NET Core project. Building the app on my Win10 machine works fine. When i generate the package for my Raspberry PI with the command `` dotnet electronize build /target linux /electron-arch armv7l `` i get the exception below. Electron 1.7.11 is installed on the raspi, node is 8.11.1 (as on my Win10 machine). Already tried an npm install in the resources/app directory on the raspi. Uncaught Exception: Error: spawn EACCES at exports._errnoException (util.js:1050:11) at ChildProcess.spawn (internal/child_process.js:319:11) at exports.spawn (child_process.js:390:9) at portfinder (/home/pi/MediaCenterFrontend/resources/app/main.js:52:22) at listen (/home/pi/MediaCenterFrontend/resources/app/node_modules/detect-port/lib/detect-port.js:69:11) at Server.server.listen (/home/pi/MediaCenterFrontend/resources/app/node_modules/detect-port/lib/detect-port.js:93:12) at Object.onceWrapper (events.js:293:19) at emitNone (events.js:86:13) at Server.emit (events.js:188:7) at emitListeningNT (net.js:1290:10)
claunia added the question label 2026-01-29 16:32:23 +00:00
Author
Owner

@GregorBiswanger commented on GitHub (Apr 16, 2018):

EACCES means most probably that current user has no rights to execute the electron file.

I hope my answer helps you.

@GregorBiswanger commented on GitHub (Apr 16, 2018): `EACCES ` means most probably that current user has no rights to execute the electron file. I hope my answer helps you.
Author
Owner

@80er commented on GitHub (Apr 18, 2018):

Just to make this complete. What i missed is that also used node modules can contain executables (like detect-port). these have to be runable to of course. ;)

@80er commented on GitHub (Apr 18, 2018): Just to make this complete. What i missed is that also used node modules can contain executables (like detect-port). these have to be runable to of course. ;)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#145