Skip to content

Magento varnish 6 Too many restarts #24353

Closed
@ghost

Description

Preconditions (*)

Magento 2.4-develop;
Production mode;
Sample Data;
Php 7.3;
Varnish v. 6.2

We tried 8823790#diff-2f64f6171deecba61bea147539cf72ec

However it results in too many restarts after a while.

Steps to reproduce (*)

  1. Configure Varnish and Web server (Apache 2 in my case) devdocs;
  2. Configure Magento to use Varnish

Go to Admin->Stores->Configuration->System->Full Page Cache:

  • set Cache Application to Varnish Cache;
  • set TTL for public content to 120 sec;
    Screenshot from 2020-04-28 11-52-06
  1. Export Varnish 6 VCL, configure and restart varnish service;
  2. Run varnishlog in console;
  3. Go to Storefront and try browsing the site for longer than 10min.

Use the VCL on production site with varnish 6.2, after a while certain objects get into a restart loop.

Expected result (*)

We expect no 503 errors caused by restart

Actual result (*)

✖️ VCL keeps restarting forever resulting in: - VCL_Error Too many restarts after a few tries
503 Response status and VCL error: Too many restarts
Peek 2020-04-28 11-20

Varnish logs
Screenshot from 2020-04-28 11-24-25
screenshotvar
Screenshot from 2020-04-28 11-27-17

Metadata

Metadata

Assignees

Labels

Component: PageCacheFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P2A defect with this priority could have functionality issues which are not to expectations.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S1Affects critical data or functionality and forces users to employ a workaround.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions