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

Puppeteer cannot start chrome #3110

Closed
wotaen opened this issue Feb 28, 2018 · 6 comments
Closed

Puppeteer cannot start chrome #3110

wotaen opened this issue Feb 28, 2018 · 6 comments

Comments

@wotaen
Copy link

wotaen commented Feb 28, 2018

Issue details

When using storyshots and imageSnapshot:

initStoryshots({suite: 'Image storyshots', test: imageSnapshot({storybookUrl: 'http://localhost:9001'})});

headless chrome process is started, but jest cannot connect to it, first error:

Timeout - Async callback was not invoked within the 5000ms timeout specified by jest.setTimeout.

However, when I change this line in test-body-image-snapshot.js:
.launch({ args: ['--no-sandbox ', '--disable-setuid-sandbox'] })
to
.launch({execPath: '/usr/bin/chrome'}) where /usr/bin/chrome is headless chrome driver, everything works as expected.

Please specify which version of Storybook and optionally any affected addons that you're running

storybook/addon-storyshots: ^3.4.0-alpha.9,

Affected platforms

  • Ubuntu, 14.04
@danielduan
Copy link
Member

I wonder if this is a problem with different Linux distros and the configs of the binarys. We do run it on a docker image with Linux and it seems to work fine.

@stale
Copy link

stale bot commented Mar 24, 2018

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

@stale stale bot added the inactive label Mar 24, 2018
@Hypnosphi
Copy link
Member

Note that we also run this command before visual tests on CLI:

https://github.com/storybooks/storybook/blob/master/scripts/workaround-puppeteer-issue-290.sh

@stale stale bot removed the inactive label Mar 26, 2018
@stale
Copy link

stale bot commented Apr 16, 2018

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

@stale stale bot added the inactive label Apr 16, 2018
@stale
Copy link

stale bot commented May 16, 2018

Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!

@stale stale bot closed this as completed May 16, 2018
@EdenTurgeman
Copy link

I also just encountered this problem, would love to find out a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants