Skip to content

Script cache:clear returned with error code 1 #27154

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

Closed
lperry65 opened this issue May 4, 2018 · 5 comments
Closed

Script cache:clear returned with error code 1 #27154

lperry65 opened this issue May 4, 2018 · 5 comments

Comments

@lperry65
Copy link

lperry65 commented May 4, 2018

Q A
Bug report? yes
Feature request? no
Symfony version 4.0.9

In Filesystem.php line 182:
!!
!! Failed to remove directory "/home/vagrant/Code/symfony/my-project/var/cache
!! /loca~/pools": unlink(/home/vagrant/Code/symfony/my-project/var/cache/local
!! /ContainerLzydxqx.legacy): No such file or directory.
!!

@linaori
Copy link
Contributor

linaori commented May 4, 2018

What did you do when this error occured? Do you have some more information?

@lperry65
Copy link
Author

lperry65 commented May 4, 2018 via email

@javiereguiluz
Copy link
Member

@lperry65 thanks for opening this issue and I'm sorry you faced this issue while evaluating Symfony. Sadly when using Vagrant, containers, etc, things may be a bit more complex to setup than when using native operating systems. But we'll try to help you debug this problem!

By the way, we recently merged a bug fix (#27061) that maybe is related to this somehow? @nicolas-grekas what do you think? Thanks!

@lperry65
Copy link
Author

lperry65 commented May 4, 2018 via email

@javiereguiluz
Copy link
Member

@lperry65 as a temporary solution, forget about installing the development server and also forget about running server:* commands. Just enter into the directory of your Symfony project and run this command:

php -S 127.0.0.1:8000 -t public

Now you can browse the app at http://127.0.0.1:8000 in your browser.


Regarding the "legacy container" ... is something internal used by Symfony and it doesn't refer to Laravel's Homestead. By the way, in case you missed it, this document about using Symfony with Homestead may be helpful: https://symfony.com/doc/current/setup/homestead.html

@fabpot fabpot closed this as completed May 11, 2018
fabpot added a commit that referenced this issue May 11, 2018
This PR was merged into the 3.4 branch.

Discussion
----------

[FrameworkBundle] Fix cache:clear on vagrant

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #27154
| License       | MIT
| Doc PR        | -

What a mess, shared folder on vbox...

![image](https://user-images.githubusercontent.com/243674/39903547-87bb2602-5488-11e8-914e-61aa53ffe6ea.png)

Commits
-------

3381611 [FrameworkBundle] Fix cache:clear on vagrant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants