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

can't take screenshots EACCES permission denied exception #37

Open
sbhardwaj-mt opened this issue Feb 21, 2019 · 6 comments
Open

can't take screenshots EACCES permission denied exception #37

sbhardwaj-mt opened this issue Feb 21, 2019 · 6 comments

Comments

@sbhardwaj-mt
Copy link

docker run --shm-size 1G --rm -v $(pwd):/screenshots alekzonder/docker-puppeteer:latest full_screenshot 'https://www.google.com' 1366x768

{ Error: EACCES: permission denied, open '/screenshots/full_screenshot_1366_768.png'
errno: -13,
code: 'EACCES',
syscall: 'open',
path: '/screenshots/full_screenshot_1366_768.png' } Promise {
{ Error: EACCES: permission denied, open '/screenshots/full_screenshot_1366_768.png'
errno: -13,
code: 'EACCES',
syscall: 'open',
path: '/screenshots/full_screenshot_1366_768.png' } }

@LeeDawson
Copy link

We have the same question

@LeeDawson
Copy link

you remove --shm-size , Can solve the problem

@Alexfilus
Copy link

Alexfilus commented Apr 10, 2019

I have same error. Removing shm-size don't help.
docker run --rm -v /tmp/screens:/screenshots alekzonder/puppeteer:latest full_screenshot 'https://www.google.com' 1366x768
UPD: solved by adding -u root

@kkrieger85
Copy link

Same for me.
removing --shm-size did not solve this problem
adding -u root did not solve this problem

@kkrieger85
Copy link

kkrieger85 commented Jul 14, 2019

Error also comes with Version 1.8.0-0

docker run --shm-size 1G --rm -v /tmp/screenshots:/screenshots alekzonder/puppeteer:1.8.0-0 screenshot 'https://www.google.com' 1366x768

Status: Downloaded newer image for alekzonder/puppeteer:1.8.0-0
{ Error: EACCES: permission denied, open '/screenshots/screenshot_1366_768.png'
  errno: -13,
  code: 'EACCES',
  syscall: 'open',
  path: '/screenshots/screenshot_1366_768.png' } Promise {
  <rejected> { Error: EACCES: permission denied, open '/screenshots/screenshot_1366_768.png'
  errno: -13,
  code: 'EACCES',
  syscall: 'open',
  path: '/screenshots/screenshot_1366_768.png' } }

My docker Version:

docker -v
Docker version 18.09.7, build 2d0083d

@tjrox0825
Copy link

tjrox0825 commented Jun 30, 2022

Was anyone able to solve this problem ?
i'm also facing the same issue:

Error: EACCES: permission denied, open './test.jpg'
at handleError (parse.min.js:13)
at async createAccount (Signup.js:30) 'err'

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

5 participants