Support the ongoing development of Laravel.io →
Installation Authentication Packages

I had no problems until now, but when I run composer update I get this:

[RuntimeException]                                                                               
Failed to clone git@github.com:symfony/ClassLoader.git via git, https, ssh protocols, aborting.  
- git://github.com/symfony/ClassLoader.git                                                       
error: Unable to append to .git/logs/refs/remotes/composer/2.6: Permission denied              
From git://github.com/symfony/ClassLoader                                                      
! deac802..805179e  2.6        -> composer/2.6  (unable to update local ref)                  
error: Unable to append to .git/logs/refs/remotes/composer/2.7: Permission denied              
 ! 8aaaa43..9314099  2.7        -> composer/2.7  (unable to update local ref)                  
- https://github.com/symfony/ClassLoader.git                                                     
error: Unable to append to .git/logs/refs/remotes/composer/2.6: Permission denied              
From https://github.com/symfony/ClassLoader                                                    
 ! deac802..805179e  2.6        -> composer/2.6  (unable to update local ref)                  
error: Unable to append to .git/logs/refs/remotes/composer/2.7: Permission denied              
 ! 8aaaa43..9314099  2.7        -> composer/2.7  (unable to update local ref)                  
- git@github.com:symfony/ClassLoader.git                                                         
Permission denied (publickey).                                                                 
fatal: Could not read from remote repository.                                                  
                                                                                               
Please make sure you have the correct access rights                                            
and the repository exists.

I have no idea what to do. Isn't symfony/classloader public? Why should I authenticate and how?

Last updated 3 years ago.
0

error: Unable to append to .git/logs/refs/remotes/composer/2.6: Permission denied

Possible file permissions, i.e the user running composer doesn't have permission to write to the file.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.