Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Container] cache:warmup failed to produce route cache, cache:clear works #57429

Copy link
Copy link
Closed
@dkarlovi

Description

@dkarlovi
Issue body actions

Symfony version(s) affected

7.1.1

Description

While upgrading from 7.0 to 7.1, my app started saying no routes exist.

I was doing

RUN bin/console cache:warmup --no-interaction -vvv

in my Dockerfile, cache folder doesn't exist before the command runs.

How to reproduce

rm -rf var/cache
bin/console cache:warmup --no-interaction -vvv
ls var/cache/prod/url_* # no files

Possible Solution

Have warmup behave exactly like clear would if it's running without a prior cache being present.

Alternatively, if this is impossible, have warmup throw it if notices there's no prior cache present because this is way too subtle of a change.

Additional Context

#53450 intended to fix this, but was closed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.