Giter Club home page Giter Club logo

Comments (2)

abramovantonru avatar abramovantonru commented on June 27, 2024 1

If you are interested in how to run everything on the server without a video adapter:

add to Dockerfile ->

...
&& apt-get install -y google-chrome-stable ...
&& apt-get install -yq dnsutils xvfb xorg xvfb gtk2-engines-pixbuf dbus-x11 xfonts-base xfonts-100dpi xfonts-75dpi xfonts-cyrillic xfonts-scalable \
    gconf-service libasound2 libatk1.0-0 libc6 libcairo2 \
    libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 \
    libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 \
    libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 \
    libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 \
    libxss1 libxtst6 ca-certificates fonts-liberation libnss3 lsb-release \
    xdg-utils wget \
...

edit docker-compose.yml ->

remove command: npm run start

add new properties ->

entrypoint: sh /build/start.sh
cap_add:
    - SYS_ADMIN

create start.sh file with content ->

Xvfb :90 -screen 0 1024x1024x24 -nolisten unix &

FREENOM_CLIENT_AREA_IP=$(dig +short my.freenom.com @8.8.8.8 | sed -n '2p')
echo "$FREENOM_CLIENT_AREA_IP my.freenom.com" >> /etc/hosts

npm run start

add to .env -> DISPLAY=:90


And I also had a problem (Failed Error: net::ERR_NAME_NOT_RESOLVED at my.freenom.com) with determining the IP of my personal account. In start.sh through dig, the IP is determined and written to /etc/hosts.

from freenom-auto-renew-domains.

Sorok-Dva avatar Sorok-Dva commented on June 27, 2024

This error is thrown by Puppeteer, please see puppeteer/puppeteer#8148

Unfortunately, it's not something that can be fixed in Puppeteer. A headful browser requires an x server or a display: see for various solutions depending on a operating system/docker etc https://stackoverflow.com/questions/60304251/unable-to-open-x-display-when-trying-to-run-google-chrome-on-centos-rhel-7-5
The issue also affects a whole range of programs not just chrome: see https://www.baeldung.com/linux/no-x11-display-error

from freenom-auto-renew-domains.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.