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
504 Gateway Time-out #307
Comments
@oshmyheliuk , @NadiyaS , please review. |
@sivamind Hi, |
@oshmyheliuk We've received this 504 error for a couple of times as well. One thing that I've seen is the fact the the reverse proxy settings in tls have no timeout set, thus nginx uses the default value. Maybe it's worth tweaking this. Also, for some reason the timeouts on different containers are so "different" in values
I think we should pass the same value to all parties involved, or decrease it until we reach php, that way if php time out is reached, we can get a response up till tls.. |
This is what happened to me. |
I ran into this also. After deploying (2.3.5-p2) the caches were setup like this: Current status:
config: 0
layout: 1
block_html: 1
collections: 0
reflection: 0
db_ddl: 0
compiled_config: 0
config_integration: 0
config_integration_api: 0
full_page: 1
target_rule: 0
config_webservice: 0
translate: 0
vertex: 0 |
I have the same issue also, 504 quite often
|
Thank you for reporting his. We have created an internal ticket MCLOUD-7992 to investigate |
AFAIK this happens cuz docker + developer mode + local environment + 0 caches. So, there are only 2 workarounds for this
With point 2 you will still get some 504 (during page builder related requests most of the time) occasionally but nothing that a fast refresh cant fix :) |
In my case the issue was related to implicitly default 60 second value of proxy_read_timeout in /etc/nginx/conf.d/default.conf incide TLS container.
|
below is my yaml file and host system is windows 10
version: '2.1'
services:
db:
hostname: db.magento2.docker
image: 'mariadb:10.2'
environment:
- MYSQL_ROOT_PASSWORD=magento2
- MYSQL_DATABASE=magento2
- MYSQL_USER=magento2
- MYSQL_PASSWORD=magento2
ports:
- '3306'
volumes:
- '.:/app:delegated'
- 'kp_magento_marketplace-magento-db:/var/lib/mysql'
healthcheck:
test: 'mysqladmin ping -h localhost -pmagento2'
interval: 30s
timeout: 30s
retries: 3
networks:
magento:
aliases:
- db.magento2.docker
redis:
hostname: redis.magento2.docker
image: 'redis:5.0'
volumes:
- '.:/app:delegated'
ports:
- 6379
healthcheck:
test: 'redis-cli ping || exit 1'
interval: 30s
timeout: 30s
retries: 3
networks:
magento:
aliases:
- redis.magento2.docker
elasticsearch:
hostname: elasticsearch.magento2.docker
image: 'magento/magento-cloud-docker-elasticsearch:6.5-1.2.0'
networks:
magento:
aliases:
- elasticsearch.magento2.docker
fpm:
hostname: fpm.magento2.docker
image: 'magento/magento-cloud-docker-php:7.3-fpm-1.2.0'
extends: generic
volumes:
- '.:/app:delegated'
networks:
magento:
aliases:
- fpm.magento2.docker
depends_on:
db:
condition: service_healthy
web:
hostname: web.magento2.docker
image: 'magento/magento-cloud-docker-nginx:1.19-1.2.0'
extends: generic
volumes:
- '.:/app:delegated'
environment:
- WITH_XDEBUG=0
networks:
magento:
aliases:
- web.magento2.docker
depends_on:
fpm:
condition: service_started
varnish:
hostname: varnish.magento2.docker
image: 'magento/magento-cloud-docker-varnish:6.2-1.2.0'
networks:
magento:
aliases:
- varnish.magento2.docker
depends_on:
web:
condition: service_started
tls:
hostname: tls.magento2.docker
image: 'magento/magento-cloud-docker-nginx:1.19-1.2.0'
extends: generic
networks:
magento:
aliases:
- magento2.docker
environment:
UPSTREAM_HOST: varnish
ports:
- '80:80'
- '443:443'
depends_on:
varnish:
condition: service_started
generic:
hostname: generic.magento2.docker
image: 'magento/magento-cloud-docker-php:7.3-cli-1.2.0'
env_file: ./.docker/config.env
environment:
- MAGENTO_RUN_MODE=developer
- 'PHP_EXTENSIONS=bcmath bz2 calendar exif gd gettext intl mysqli pcntl pdo_mysql soap sockets sysvmsg sysvsem sysvshm opcache zip redis xsl sodium'
build:
hostname: build.magento2.docker
image: 'magento/magento-cloud-docker-php:7.3-cli-1.2.0'
extends: generic
volumes:
- '.:/app:delegated'
networks:
magento-build:
aliases:
- build.magento2.docker
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
elasticsearch:
condition: service_healthy
deploy:
hostname: deploy.magento2.docker
image: 'magento/magento-cloud-docker-php:7.3-cli-1.2.0'
extends: generic
volumes:
- '.:/app:delegated'
networks:
magento:
aliases:
- deploy.magento2.docker
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
elasticsearch:
condition: service_healthy
mailhog:
hostname: mailhog.magento2.docker
image: 'mailhog/mailhog:latest'
ports:
- '1025:1025'
- '8025:8025'
networks:
magento:
aliases:
- mailhog.magento2.docker
volumes:
kp_magento_marketplace-magento-db: { }
networks:
magento:
driver: bridge
magento-build:
driver: bridge
The text was updated successfully, but these errors were encountered: