Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After updating a site from 7.x-1.0-rc2 to 7.x-1.1 (core 7.31). I received the following error with git add
error: insufficient permission for adding an object to repository database .git/objects
error: sites/all/modules/metatag/metatag_facebook/metatag_facebook.info: failed to insert into database
error: unable to index file sites/all/modules/metatag/metatag_facebook/metatag_facebook.info
fatal: updating files failed
What I did to troubleshoot:
- Disabled/enabled metatag (that was a mistake, don't ask)
- Verified that metatag facebook was disabled
- Reimported the backup database
- Ran all database updates (a few times)
- Cleared caches
I am out of ideas and need to get this up to the repo. The update looked normal and so did the db update. The module seems to be working fine but I don't work with metatag on a daily basis so could easily be overlooking something. I would appreciate any help. Thanks!
Comment | File | Size | Author |
---|---|---|---|
failed-to-insert-into-db.png | 99.94 KB | C13L0 | |
drush-updb.png | 124.19 KB | C13L0 |
Comments
Comment #1
DamienMcKennaThis is a problem with your git configuration and has nothing to do with Metatag.
The error indicates that the account last used to run git commands has a different permission level than the user account currently used to run the Drush commands. If you don't remember which one was used, use the command "ls -l .git" to see what user account was used. Try asking on IRC, I'm sure someone would be able to help you with the problem.
Comment #2
C13L0 CreditAttribution: C13L0 commentedThanks Damien...will do =)
Comment #3
C13L0 CreditAttribution: C13L0 commentedUpdate: There were major permission issues with the computer. Thank you for pointing me in the right direction and everything is cleared up now. I appreciate you taking the time to help me troubleshoot even though it had nothing to do with metatag.