Development

#4470 (cache:clear locks the CLI environment)

You must first sign up to be able to contribute.

Ticket #4470 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

cache:clear locks the CLI environment

Reported by: peterVG Assigned to: fabien
Priority: major Milestone: 1.1.3
Component: tasks Version: 1.1.2
Keywords: sfCacheClearTask.class.php Cc:
Qualification: Unreviewed

Description

The ./symfony clear:cache task locks each environment before clearing the files. However, it appears that it now also locks the CLI env too. It thus quits with the Unavailable page output directly in the console without emptying the cache.

This defect appears to have been introduced here:

http://trac.symfony-project.org/changeset/11432

http://trac.symfony-project.org/changeset/11375

If I rollback the sfCacheClearTask.class.php file to r11374 the CLI cache:clear command works again.

My r11749 error output:

:~/public_html/qubit$ ./symfony cache:clear
>> cache     Clearing cache type "all" for "qubit" app and "prod" env
>> file+     /home/peter/public_html/qubit/data/qubit_prod-cli.lck
>> chmod 777 /home/peter/public_html/qubit/data/qubit_prod-cli.lck
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="title" content="Qubit - unavailable" />
<meta name="robots" content="index, follow" />
<meta name="language" content="en" />
<title>Qubit - unavailable</title>

<link rel="shortcut icon" href="/favicon.ico" />
<link rel="stylesheet" type="text/css" media="screen" href="./symfony/sf/sf_default/css/screen.css" />
<!--[if lt IE 7.]>
<link rel="stylesheet" type="text/css" media="screen" href="./symfony/sf/sf_default/css/ie.css" />
<![endif]-->

<link rel="stylesheet" type="text/css" media="all" href="./symfony/vendor/drupal/modules/system/defaults.css" />
<link rel="stylesheet" type="text/css" media="all" href="./symfony/vendor/drupal/modules/system/system.css" />
<link rel="stylesheet" type="text/css" media="all" href="./symfony/vendor/drupal/themes/garland/style.css" />
<link rel="stylesheet" type="text/css" media="all" href="./symfony/vendor/drupal/themes/garland/minnelli/minnelli.css" />
<link rel="stylesheet" type="text/css" media="print" href="./symfony/vendor/drupal/themes/garland/print.css" />
<link rel="stylesheet" type="text/css" media="screen" href="./symfony/css/main.css" />

</head>
<body>
<div class="sfTContainer" id="wrapper">
  <div class="clear-block" id="container">

    <div id="header">
      <div id="logo-floater">
        <h1><img alt="Qubit" id="logo" src="./symfony/images/logo.png" /><div>Qubit</div></h1>
      </div>
    </div>

    <div id="center">
      <div id="squeeze">
        <div class="right-corner">
          <div class="left-corner">

            <div class="sfTMessageContainer sfTAlert">
              <img alt="page not found" class="sfTMessageIcon" src="./symfony/sf/sf_default/images/icons/tools48.png" height="48" width="48" />
              <div class="sfTMessageWrap">
                <h1>Website Temporarily Unavailable</h1>
                <h5>Please try again in a few seconds...</h5>
              </div>
            </div>

            <dl class="sfTMessageInfo">
              <dt>What's next</dt>
              <dd>
                <ul class="sfTIconList">
                  <li class="sfTReloadMessage"><a href="javascript:window.location.reload()">Try again: Reload Page</a></li>
                </ul>
              </dd>
            </dl>

          </div>
        </div>
      </div>
    </div>

  </div>
</div>
</body>
</html>
:~/public_html/qubit$

Change History

09/23/08 19:20:42 changed by cbetta

  • milestone set to 1.1.3.

09/23/08 19:22:52 changed by djjuhasz

  • priority changed from minor to major.

I think this is a fairly major bug and have updated the priority to: major.

09/26/08 15:06:48 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.

(In [11797]) [1.1] fixed locking problem with symfony cache:clear task (closes #4470)

09/26/08 15:07:55 changed by fabien

(In [11798]) [1.2] fixed locking problem with symfony cache:clear task (closes #4470)