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

Add troubleshooting.md #428

Merged
merged 2 commits into from
Aug 21, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
address comments
  • Loading branch information
aslushnikov committed Aug 21, 2017
commit b882edf8f5a0db6cee5b6e5b65b255b03495015e
15 changes: 4 additions & 11 deletions docs/troubleshooting.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Troubleshooting

## Chrome headless doesn't start
## Chrome headless doesn't start on Debian (e.g. Ubuntu)

- Make sure all the necessary dependencies are installed
- The broad discussion on the topic could be found in [#290](https://github.com/GoogleChrome/puppeteer/issues/290)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could -> can


<details>
<summary>Debian Dependencies (e.g. Ubuntu)</summary>
<summary>Debian Dependencies</summary>

```
gconf-service
Expand Down Expand Up @@ -54,15 +54,8 @@ wget

- make sure kernel version is up-to-date
- read about linux sandbox here: https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md
- try running without sandbox (**Note: running without sandbox is not recommended due to security reasons!**)
- try running without the sandbox (**Note: running without the sandbox is not recommended due to security reasons!**)
```js
const puppeteer = require('puppeteer');
(async() => {
const browser = await puppeteer.launch({args: ['--no-sandbox', '--disable-setuid-sandbox']});
const page = await browser.newPage();
await page.goto('https://example.com');
await page.screenshot({path: 'example.png'});
browser.close();
})();
const browser = await puppeteer.launch({args: ['--no-sandbox', '--disable-setuid-sandbox']});
```