-
Notifications
You must be signed in to change notification settings - Fork 4
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 Chrome clients fill up /tmp on bayes #145
Comments
Ok. I tested this commit locally and saw that this was correctly being set within my git repos. Up next, we will want to delete it every so often. I think a cron job for that could be helpful. I'll wait though to speak with @mattpen. I restarted the client instances with puppeteer user data being stored in |
Oh! And I also cleaned up the puppeteer user data in |
|
It looks like @zepumph mentioned there is a way to use a different temporary directory for chromium (puppeteer? pm2?) which I would hope would alleviate the problem. The other solution could be to grow the root partition. It is currently 10GB which is not very large. There are still around 3TB unallocated on bayes so we have plenty of room to grow. However, I think we would want to rule out that this behavior is not buggy somehow before we grow the fs. |
`I got it!!! Didn't work: ( async () => {
process.env.PUPPETEER_TMP_DIR = '/c/Users/Michael/PhET/git/sandbox/temp/';
const puppeteer = require( 'puppeteer' );
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto( 'https://google.com' );
await browser.close();
} )(); I got an error running locally though which basically was an issue making the puppeteer folders within the new temp dir. Perhaps this was permissions problems, but while trying to research things, I found the actual issue: What worked: Thanks a ton to @mattpen and @jonathanolson for helping me work through this. |
Looks like #143 has caused /tmp to explode in size, and caused potentially some build failures? I'm not sure, but I looked into things and it is storing user data from the chrome sessions there:
puppeteer/puppeteer#1791
I can set a different user data section with
--user-data-dir=BLARG
Here was a script to clean up the user data after use, but I don't think I'll go here first.
The text was updated successfully, but these errors were encountered: