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

Updates to get things running in Docker again. #187

Merged
merged 3 commits into from
Jan 11, 2023
Merged

Conversation

ruebot
Copy link
Contributor

@ruebot ruebot commented Dec 16, 2022

A couple updates to get things running again locally for gccaedits.

  • Using an updated version of npm
  • Added chromium and dependencies Docker containers
  • Run puppeteer with --no-sandbox (it's a lazy hack to avoid errors like below)
Draft:Brampton Mortgage Wikipedia article edited anonymously from Shared Services Canada https://en.wikipedia.org/w/index.php?oldid=1128532486&rcid=1581842217                                                     
/opt/anon/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:193                                                                                                                                       
            reject(new Error([                                                                                                                                                                                     
                   ^                                                                                                                                                                                               
                                                                                                                                                                                                                   
Error: Failed to launch the browser process!                                                                                                                                                                       
[1220/165729.434964:ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.                                                                      
                                                                                                                                                                                                                   
                                                                                                                                                                                                                   
TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md                                                                                                                          
                                                                                                                                                                                                                   
    at onClose (/opt/anon/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:193:20)                                                                                                                   
    at Interface.<anonymous> (/opt/anon/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:183:68)                                                                                                     
    at Interface.emit (node:events:525:35)                                                                                                                                                                         
    at Interface.close (node:readline:590:8)                                                                                                                                                                       
    at Socket.onend (node:readline:280:10)                                                                                                                                                                         
    at Socket.emit (node:events:525:35)                                                                                                                                                                            
    at endReadableNT (node:internal/streams/readable:1358:12)                                                                                                                                                      
    at processTicksAndRejections (node:internal/process/task_queues:83:21)      

@ruebot ruebot changed the title Update nodejs version for Docker. Updates to get things running in Docker again. Dec 20, 2022
@edsu edsu merged commit dce9cd0 into edsu:master Jan 11, 2023
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

Successfully merging this pull request may close these issues.

None yet

2 participants