Giter VIP home page Giter VIP logo

Comments (8)

shopwhizzy avatar shopwhizzy commented on August 16, 2024

Remove .probe at varnish default.vcl

from magento-2-server-installation.

jbutkowski avatar jbutkowski commented on August 16, 2024

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.

shopwhizzy avatar shopwhizzy commented on August 16, 2024

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.

karamucho avatar karamucho commented on August 16, 2024

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.

shopwhizzy avatar shopwhizzy commented on August 16, 2024

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.

magenx avatar magenx commented on August 16, 2024

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.

orbisunom avatar orbisunom commented on August 16, 2024

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.

seiya74656 avatar seiya74656 commented on August 16, 2024

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)

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.