-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Comments
What did you do when this error occured? Do you have some more information? |
I’m evaluating symfony as an alternative to Laravel. I was following the setup guid and got as far as installing the php web server.
composer require server --dev
Then I got the error.
…Sent from my iPhone
On 4 May 2018, at 15:21, iltar ***@***.***> wrote:
What did you do when this error occured? Do you have some more information?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@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! |
@nicolas-grekas thanks for your reply.
I’m running Release v4.0.9, Is homestead considered a legacy container ?
Running :
rm -R /home/vagrant/Code/symfony/my-project/var/cache/local
rm -R /home/vagrant/Code/symfony/my-project/var/cache/loca~
before `composer require server –dev` seems to have worked.
But know getting `There are no commands defined in the "server" namespace.`
I’m just trying to work through the following guide ?
https://symfony.com/doc/current/setup.html
Thanks,
Lee.
Sent from Mail for Windows 10
From: Javier Eguiluz
Sent: 04 May 2018 15:54
To: symfony/symfony
Cc: Lee Perry; Mention
Subject: Re: [symfony/symfony] Script cache:clear returned with error code 1(#27154)
@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!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@lperry65 as a temporary solution, forget about installing the development server and also forget about running 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 |
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...  Commits ------- 3381611 [FrameworkBundle] Fix cache:clear on vagrant
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.
!!
The text was updated successfully, but these errors were encountered: