I’m having trouble with PDF generation using Puppeteer on my Ubuntu server. Everything runs fine until I try to start the browser, then I get a symbol lookup error.
The error message looks like this:
Error: Failed to launch the browser process!
/home/user/.cache/puppeteer/chrome/linux-130.0.6723.58/chrome-linux64/chrome: symbol lookup error: /home/user/.cache/puppeteer/chrome/linux-130.0.6723.58/chrome-linux64/chrome: undefined symbol: snd_device_name_get_hint
My browser configuration:
const browserInstance = await puppeteer.launch({
headless: true,
args: [
'--no-gpu',
'--disable-web-security',
'--disable-features=VizDisplayCompositor',
'--disable-extensions',
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-dev-shm-usage',
'--disable-accelerated-2d-canvas',
'--disable-background-timer-throttling',
'--disable-renderer-backgrounding',
'--disable-backgrounding-occluded-windows',
'--disable-ipc-flooding-protection',
'--mute-audio',
'--disable-hang-monitor',
'--disable-component-extensions-with-background-pages',
'--disable-client-side-phishing-detection',
'--disable-sync',
'--disable-prompt-on-repost',
'--disable-default-apps',
'--hide-scrollbars',
'--metrics-recording-only',
'--no-first-run',
'--safebrowsing-disable-auto-update',
'--password-store=basic',
'--use-mock-keychain'
],
ignoreHTTPSErrors: true,
userDataDir: './browser-data'
});
I’ve tried several fixes:
- Deleted Puppeteer cache folder completely
- Fresh Puppeteer installation
- Installed audio libraries like
libasound2-dev - Updated all system packages
- Restarted the server multiple times
The problem keeps coming back. Anyone dealt with this before or have other ideas to try?
Thanks for any help!