Comments (8)
Remove .probe at varnish default.vcl
from magento-2-server-installation.
I'm experiencing the same issue as @karamucho - including certbot installation failure.
I've removed .probe from varnish default.vcl and restarted varnish - however this did not resolve the issue.
from magento-2-server-installation.
I'm experiencing the same issue as @karamucho - including certbot installation failure.
I've removed .probe from varnish default.vcl and restarted varnish - however this did not resolve the issue.
Almost certain that magento is trying to reach https version of the site, but since certbot failed you will have to modify nginx configuration file and listen 443 is commented.
There are several solutions: you can create a self signed certificate and modify nginx conf, or pass varnish or disable varnish proxy (in this case you must garantee that magento will allow http without redirecting to https).
A bit tricky in fact if something goes wrong.
from magento-2-server-installation.
Removing .probe from varnish default.vcl before installing letsencrypt allowed the certificate to be installed, but despite the fact that the installation passed flawlessly https does not work and http causes a redirect loop on every browser, the problem must be somewhere between ssl, nginx and varnish, but where to look for it ?
from magento-2-server-installation.
In my version, i always generate a self signed ssl and uncomment the port 443 and attach the crt and key to nginx config.
That way will always work because https will be available. After that you run certbot.
In my opinion is the most reliable way. Never fails
from magento-2-server-installation.
for now this part is a bit confusing,
so probably better:
- comment varnish probe
- get cert with webroot
- enable ssl in nginx
- reload nginx
from magento-2-server-installation.
Hello this is normal to Magento 2
You need to update the /etc/varnish/default.vlc
Note this is for magento 2 lastest 2.3.5.p1
for magento 2.3.1 ---> 2.3.3 you need to update file /pub/health_check.php (Please Just Google it as I forgot already the link) and also update the default.vlc
backend default {
.host = "localhost";
.port = "8080";
.first_byte_timeout = 600s;
.probe = {
.url = "/health_check.php";
.timeout = 2s;
.interval = 5s;
.window = 10;
.threshold = 5;
}
}
and your site is working
BTW
on nginx.conf
you need to have event{} just add this and restart your nginx to be able to start Nginx service
from magento-2-server-installation.
After about 10times installing a server with this script. For me worked now.
Give the machine a hostname before installation
hostnamectl set-hostname server.yourdomain.com --static
Disable selinux
Check if DNS / Connection are working (after that my DNS Servers was not working anymore)
ping google.com , Set new DNS Server with nmtui / cmcli (ex. 1.1.1.1 , 1.0.0.1)
There is also a little bug in the code, change the line before installation
from
redis-cli -p6380 flushall
to
redis-cli -p 6380 flushall
If lets encrypt error in installation , create a new certificate and run certbot again.
certbot-auto
Restart Services:
systemctl restart nginx varnish
Clear Magento Cache
php bin/magento cache:clean
from magento-2-server-installation.
Related Issues (20)
- Magento slow with 5000 products HOT 2
- nginx: [emerg] zero size shared memory zone "zone3" HOT 1
- Elasticsearch indexer doesnt have enough permissions HOT 2
- Moving to OpenSearch HOT 13
- Oracle Cloud Instance ARM Support HOT 2
- Testing on OCI ARM HOT 14
- Installation Log HOT 1
- Switching Developer install to Production 404 css js HOT 6
- cron does not appear to be set up HOT 4
- Too many redirects on Admin HOT 2
- Multi store with one domain HOT 2
- Wrong user in php-fpm config?
- RabbitMQ 3.11* installation error HOT 1
- Missing/Wrong data on SQLite HOT 1
- Current version of RDBMS is not supported. HOT 6
- limit_req_zone default value limitation HOT 1
- Missing and wrong package in script
- error Command option 'timezone': Invalid value. HOT 1
- Getting Issue Your requirements could not be resolved to an installable set of packages. during install. HOT 1
- Interface "Magento\QuoteGraphQl\Model\Cart\Payment\AdditionalDataProviderInterface" not found
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 magento-2-server-installation.