#5891 (Git pull says "detected dubious ownership in repository")
by Luc Saffre · in Hosting (system administration) · assigned to Luc Saffre
Résumé
Concepts sous-jacents
Commentaires
- 1 année, 6 mois ago by Luc Saffre about #5891 (Git pull says "detected dubious ownership in repository") : For shared environments it makes sense that you must be root for updating them.
- 1 année, 6 mois ago by Luc Saffre about #5891 (Git pull says "detected dubious ownership in repository") : I tried to do it using
git config --global --add safe.directory /usr/local/lino/shared/env/pilv/repositories/synodal
But we would have to add every single repository because there is no wildcard option. - 1 année, 6 mois ago by Luc Saffre about #5891 (Git pull says "detected dubious ownership in repository") : After reading here and there, I am still undecided about how we should manage this in general. I believe that we want to have potentially multiple maintainers of a same Lino site. Until now I thought that upgrading a Lino site should NOT require sudo permission except for restarting the services. Ma...
- 1 année, 8 mois ago by Luc Saffre about #5891 (Git pull says "detected dubious ownership in repository") : I noticed that the owner of the .git directory in atelier was luc and not root. After changing this to root, hannes was able to run "sudo su" and "git pull" in atelier. And I noticed that in a "sudo su" session when I say "set | grep luc", it says that SUDO_USER=luc, and it is possible that git some...
- 1 année, 8 mois ago by Luc Saffre about #5891 (Git pull says "detected dubious ownership in repository") : I noticed that most subdirectories of /usr/local/lino/shared/env/master/repositories are owned by luc. Now I said "sudo chown root *".
- 1 année, 8 mois ago by Luc Saffre about #5891 (Git pull says "detected dubious ownership in repository") : The cron job failed again. Again with the same message.
- 1 année, 8 mois ago by Luc Saffre about #5891 (Git pull says "detected dubious ownership in repository") : The pull.sh now ran successfully. Uff. The online demos are back.
- 1 année, 8 mois ago by Luc Saffre about #5891 (Git pull says "detected dubious ownership in repository") : I restarted pull.sh after doing yet another optimization: stop supervisor during pull() but restart it before prep().
- 1 année, 8 mois ago by Luc Saffre about #5891 (Git pull says "detected dubious ownership in repository") : I now said the following on LF: sudo git config --global --add safe.directory '/usr/local/lino/shared/env/master/repositories/*'
- 1 année, 8 mois ago by Luc Saffre about #5891 (Git pull says "detected dubious ownership in repository") : TIL that this can even happen to the root user: [url confluence.atlassian.com/bbkb/git-command-returns-fatal-error-about-the-repository-being-owned-by-someone-else-1167744132.html]
- 1 année, 8 mois ago by Luc Saffre about #5891 (Git pull says "detected dubious ownership in repository") : Created new Ticket #5891 (Git pull says "detected dubious ownership in repository").