repos in package cache missing group permissions
Today it was reported that db update fails because of a permission error:
09:32 felixonmars | any idea what went wrong with my db-update?
09:32 felixonmars | error: cannot open 'FETCH_HEAD': Permission denied
09:32 felixonmars | ==> ERROR: Couldn't find package nodejs-lts-iron in git!
It turns out this most likely is because missing group permissions to update the package repo in the package cache (/srv/repos/pkg-cache/nodejs-lts-iron
):
-rw-r--r-- 1 jelle users 441 Nov 22 18:33 FETCH_HEAD
I have also checked since when this seems to happen so its maybe easier to find the root cause of the bug:
$ find . -perm 644 -name FETCH_HEAD -print | xargs stat --print="%w %n\n" | sort
2023-10-25 17:37:29.043251287 +0000 ./zix/FETCH_HEAD
2023-10-28 19:27:29.735538204 +0000 ./apprise/FETCH_HEAD
2023-10-29 14:29:55.417919112 +0000 ./goverlay/FETCH_HEAD
2023-10-30 16:09:27.823707185 +0000 ./gitleaks/FETCH_HEAD
2023-10-31 10:11:26.522466459 +0000 ./bcachefs-tools/FETCH_HEAD
2023-11-01 10:48:33.764486260 +0000 ./kirigami-addons5/FETCH_HEAD
2023-11-10 09:38:51.854762032 +0000 ./kgamma/FETCH_HEAD
2023-11-10 09:38:51.961428993 +0000 ./kglobalacceld/FETCH_HEAD
2023-11-10 09:38:54.021434691 +0000 ./ocean-sound-theme/FETCH_HEAD
2023-11-10 09:38:56.164773952 +0000 ./plasma5support/FETCH_HEAD
2023-11-10 09:38:57.058109756 +0000 ./wacomtablet/FETCH_HEAD
2023-11-11 19:00:35.868140547 +0000 ./monaspace-font/FETCH_HEAD
2023-11-12 17:15:34.777408692 +0000 ./haskell-attoparsec-aeson/FETCH_HEAD
2023-11-13 21:40:14.180351014 +0000 ./ollama-cuda/FETCH_HEAD
2023-11-14 00:20:31.717840277 +0000 ./materialx/FETCH_HEAD
2023-11-15 17:26:40.382571814 +0000 ./mirro-rs/FETCH_HEAD
2023-11-15 20:37:13.735232865 +0000 ./analitza5/FETCH_HEAD
2023-11-15 20:56:11.865410143 +0000 ./python-openai/FETCH_HEAD
2023-11-16 23:52:17.459694970 +0000 ./fast_float/FETCH_HEAD
2023-11-18 13:26:25.336611154 +0000 ./python-jsonschema-path/FETCH_HEAD
2023-11-20 01:35:50.994965763 +0000 ./usd/FETCH_HEAD
2023-11-20 06:23:44.411885916 +0000 ./deepin-desktop-theme/FETCH_HEAD
2023-11-22 16:21:47.439397215 +0000 ./rdfind/FETCH_HEAD
2023-11-22 17:20:04.078106662 +0000 ./wlroots0.16/FETCH_HEAD
2023-11-23 15:51:56.196217188 +0000 ./python-simple-term-menu/FETCH_HEAD
2023-11-23 21:47:11.702677062 +0000 ./jupyterlab-pygments/FETCH_HEAD
2023-11-24 23:42:20.110601381 +0000 ./toot/FETCH_HEAD
2023-11-25 23:08:50.876727118 +0000 ./libakonadi5/FETCH_HEAD
2023-11-26 13:05:21.673141994 +0000 ./grantleetheme5/FETCH_HEAD
2023-11-26 13:08:08.600383663 +0000 ./akonadi-contacts5/FETCH_HEAD
2023-11-26 13:09:41.714037351 +0000 ./akonadi-notes5/FETCH_HEAD
2023-11-26 13:12:06.314534414 +0000 ./kpimtextedit5/FETCH_HEAD
2023-11-26 13:13:52.884900485 +0000 ./kmime5/FETCH_HEAD
2023-11-26 13:15:10.885165425 +0000 ./kontactinterface5/FETCH_HEAD
2023-11-26 17:18:41.758236858 +0000 ./python-nethsm-sdk-py/FETCH_HEAD
2023-11-28 02:39:49.649037609 +0000 ./esbonio/FETCH_HEAD
2023-11-29 00:20:54.748686893 +0000 ./js80p/FETCH_HEAD
2023-11-29 01:23:14.593773377 +0000 ./go-task/FETCH_HEAD
2023-11-29 19:45:55.549878741 +0000 ./libplasma/FETCH_HEAD
2023-11-29 19:45:56.586549268 +0000 ./plasma-activities/FETCH_HEAD
2023-11-29 19:45:56.679882949 +0000 ./plasma-activities-stats/FETCH_HEAD
2023-11-30 07:11:44.607084898 +0000 ./isoimagewriter/FETCH_HEAD
2023-11-30 07:12:53.464013607 +0000 ./mimetreeparser/FETCH_HEAD
2023-11-30 16:59:21.473707816 +0000 ./kunifiedpush/FETCH_HEAD
2023-11-30 23:20:48.299276357 +0000 ./kidentitymanagement5/FETCH_HEAD
2023-12-01 07:54:09.167608636 +0000 ./ot-urchin/FETCH_HEAD
2023-12-01 21:56:14.971799424 +0000 ./talosctl/FETCH_HEAD
cc @felixonmars