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!

CommentFileSizeAuthor
failed-to-insert-into-db.png99.94 KBC13L0
drush-updb.png124.19 KBC13L0
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DamienMcKenna’s picture

Category: Bug report » Support request
Status: Active » Closed (works as designed)

This 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.

C13L0’s picture

Thanks Damien...will do =)

C13L0’s picture

Update: 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.