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

Error: spawn EACCES on ArchLinux #139

Closed
adrfantini opened this issue Mar 26, 2018 · 16 comments
Closed

Error: spawn EACCES on ArchLinux #139

adrfantini opened this issue Mar 26, 2018 · 16 comments

Comments

@adrfantini
Copy link

Using decktape from the ArchLinux AUR, I get this error when trying to convert anything:

Error: spawn EACCES
    at ChildProcess.spawn (internal/child_process.js:330:11)
    at Object.exports.spawn (child_process.js:500:9)
    at Function.launch (/usr/lib/node_modules/decktape/node_modules/puppeteer/lib/Launcher.js:100:40)
    at <anonymous>

With any command. Also trying some of the example presentations in https://github.com/astefanutti/decktape, no difference.

@pat-s
Copy link

pat-s commented Mar 26, 2018

At a first glance this seems like an issue of puppeteer: alekzonder/docker-puppeteer#9

I can replicate your issue but its strange as nothing has changed since the creation of the AUR package.

Can you replicate the problem when installing decktape using npm?

@adrfantini
Copy link
Author

Yep, the problem is there even if using decktape from npm!

@astefanutti astefanutti changed the title Error: spawn EACCES Error: spawn EACCES on ArchLinux Mar 29, 2018
@astefanutti
Copy link
Owner

astefanutti commented Mar 29, 2018

I've been able to reproduce (using the base/archlinux Docker image).

Unfortunately, there is not much that can be done on DeckTape side. This is a Puppeteer install step issue where the Chromium binary (/usr/lib/node_modules/decktape/node_modules/puppeteer/.local-chromium/) hasn't the needed permissions.

For some reasons, permissions for
/usr/lib/node_modules/decktape/node_modules/puppeteer/.local-chromium/linux-508693/chrome-linux/chrome is only -rwx------.

Running:

$ chmod a+r /usr/lib/node_modules/decktape/node_modules/puppeteer/.local-chromium/linux-508693/chrome-linux/*
$ chmod a+x /usr/lib/node_modules/decktape/node_modules/puppeteer/.local-chromium/linux-508693/chrome-linux/chrome

Fixes things. I would suggest to create an issue in Puppeteer to follow this up.

@adrfantini
Copy link
Author

Done.

@pat-s
Copy link

pat-s commented Mar 29, 2018

Thanks guys. I could also manually fix it in the PGKBUILD but let's first see if there is a response from the puppeteer guys.

@astefanutti
Copy link
Owner

puppeteer/puppeteer#2283 has just been fixed. Let me upgrade to Puppeteer 1.3.0 to have this fixed in DeckTape.

@pat-s
Copy link

pat-s commented Apr 22, 2018

decktape v2.8.1. does not yet include the puppeteer fix right? Release notes say that you only upgraded to v1.1.1.

@astefanutti
Copy link
Owner

@pat-s right. I'm still holding the Puppeteer upgrade because of puppeteer/puppeteer#2411. If you could vote it up, that'd be great.

@astefanutti
Copy link
Owner

I've just released version 2.8.3 that contains upstream fix. Let me close this and do not hesitate to re-open if you still face the issue.

@adrfantini
Copy link
Author

Thanks!

@JJK96
Copy link

JJK96 commented Jun 29, 2018

I have this issue:

events.js:167
      throw er; // Unhandled 'error' event
      ^

Error: spawn /usr/lib/node_modules/decktape/node_modules/puppeteer/.local-chromium/linux-508693/chrome-linux/chrome EACCES
    at Process.ChildProcess._handle.onexit (internal/child_process.js:229:19)
    at onErrorNT (internal/child_process.js:406:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
Emitted 'error' event at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:235:12)
    at onErrorNT (internal/child_process.js:406:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)

@astefanutti
Copy link
Owner

@JJK96 what version of DeckTape are you using and what on OS?

@JJK96
Copy link

JJK96 commented Jul 1, 2018

The arch linux aur package nodejs-decktape, which is version 2.8.0-1.
However, by installing via npm I could get it to work, I did have to add the --no-sandbox flag though.

@astefanutti
Copy link
Owner

OK, the nodejs-decktape package may not have been updated yet to contain the fix for the spawn EACCES error.

@pat-s
Copy link

pat-s commented Jul 1, 2018

@JJK96
I cannot get the AUR package to build since 2.8.0.
Maybe with the next release of decktape. See the issue about the AUR package in this repo.

@JJK96
Copy link

JJK96 commented Jul 1, 2018

Yeah, I forgot that I had to edit the pkgbuild to make it work, I believe it was removing a rmdir line.

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

4 participants