Skip to content
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

Error assets:install web #36

Open
eved42 opened this issue Jun 11, 2015 · 5 comments
Open

Error assets:install web #36

eved42 opened this issue Jun 11, 2015 · 5 comments
Labels

Comments

@eved42
Copy link

eved42 commented Jun 11, 2015

Hi everyone,

I have a project with Symfony2 and I use your bundle to execute my command lines. I have an error when I write assets:install web :

[Symfony\Component\Filesystem\Exception\IOException] Failed to remove file "web/bundles/framework/images/blue_picto_more.gif".

So, I have to do updates manually... I saw on the web that it was a permissions issue of the command line user. I read the "Setting up permissions" paragraph here http://symfony.com/doc/current/book/installation.html but the 'chmod +a' solution doesn't work, I'm not very friendly with ACL and the umask solution doesn't work either.

I don't know what to do now to make it work. My app/cache and app/logs folders have 777 rights. I can edit the httpd.conf of my server but I don't know what to write...

the cache:clear command works for me.

When I test php app/console assets:install web with a SSH connection (root user), I have this error :
[RuntimeException] Could not create cache directory "/path_of_my_website/httpdocs/app/cache/dev/annotations".

I don't understand because this folder is already created and it has 777 rights. I did this to be sure :
chmod -R 777 app/cache

I don't know very well command lines, so if you could explain me in a simple way, I will be thankful.

@laszlokorte
Copy link
Member

If it does not work even via ssh then it seems to be not a problem with this bundle.

Have you tried removing all the contents of the /web/bundles/ folder via ssh manually and then run assets:install via the web console?

@eved42
Copy link
Author

eved42 commented Jun 12, 2015

No it doesn't work :
[Symfony\Component\Filesystem\Exception\IOException] Failed to create "web/bundles/framework": mkdir() [function.mkdir]: Permission denied.

@laszlokorte
Copy link
Member

what chmod is assigned to the web/bundles folder?

@eved42
Copy link
Author

eved42 commented Jun 15, 2015

web/bundles/ has 755 and for example, .htaccess has 644.

@K4M1coder
Copy link

pretty sure this is missconfigured acl or something else messy on your host, nothing related to this plugin neither symfony

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants