Comments (2)
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.
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)
- This is not a real issue, just a thanks HOT 1
- How to use with Google login on Freenom? HOT 2
- Register domains, cancel domains, manage DNS and nameservers - use Discord application slash commands HOT 11
- i will going to sponsor for the project HOT 3
- Sending webhook notification exceeds 2000 character limit HOT 7
- Error on start HOT 4
- error (?) in Makefile
- syntax cronjob command
- Errors HOT 3
- not working HOT 3
- Error HOT 4
- Hosting on railway.app + deploy buttons HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freenom-auto-renew-domains.