ConsoleBundle icon indicating copy to clipboard operation
ConsoleBundle copied to clipboard

Error assets:install web

Open eved42 opened this issue 10 years ago • 5 comments

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.

eved42 avatar Jun 11 '15 07:06 eved42

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?

laszlokorte avatar Jun 12 '15 09:06 laszlokorte

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

eved42 avatar Jun 12 '15 12:06 eved42

what chmod is assigned to the web/bundles folder?

laszlokorte avatar Jun 13 '15 15:06 laszlokorte

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

eved42 avatar Jun 15 '15 06:06 eved42

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

K4M1coder avatar Nov 04 '16 00:11 K4M1coder