Skip to content

Cannot rename because the target ...DebugProjectContainer.xml already exist #7816

Closed
@webmozart

Description

@webmozart

I recently frequently get the error "Cannot rename because the target "...app...DebugProjectContainer.xml" already exist.".

I get this error both in web applications (Apache) and on the CLI during testing. The latest CLI backtrace is:

Symfony\Bundle\FrameworkBundle\Tests\Functional\ProfilerTest::testProfilerIsDisabled with data set #0 (false)
Symfony\Component\Filesystem\Exception\IOException: Cannot rename because the target "/tmp/2.3.0-DEV/Profiler/cache/frameworkbundletestprofiler/appFrameworkbundletestprofilerDebugProjectContainer.xml" already exist.

/home/bernhard/Entwicklung/Web/Symfony2/src/Symfony/Component/Filesystem/Filesystem.php:237
/home/bernhard/Entwicklung/Web/Symfony2/src/Symfony/Component/Filesystem/Filesystem.php:455
/home/bernhard/Entwicklung/Web/Symfony2/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/ContainerBuilderDebugDumpPass.php:36
/home/bernhard/Entwicklung/Web/Symfony2/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php:119
/home/bernhard/Entwicklung/Web/Symfony2/src/Symfony/Component/DependencyInjection/ContainerBuilder.php:589
/home/bernhard/Entwicklung/Web/Symfony2/src/Symfony/Component/HttpKernel/Kernel.php:559
/home/bernhard/Entwicklung/Web/Symfony2/src/Symfony/Component/HttpKernel/Kernel.php:130
/home/bernhard/Entwicklung/Web/Symfony2/src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php:43
/home/bernhard/Entwicklung/Web/Symfony2/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ProfilerTest.php:24

I will provide a backtrace for the web application when I get the error again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions