exit status 255 - error: could not lock config file /data/git/.gitconfig: Permission denied
[FATAL] [...ogs.io/gogs@/internal/db/repo.go:142 NewRepoContext()] Failed to execute 'git config --global core.quotepath false': exit status 255 - error: could not lock config file /data/git/.gitconfig: Permission denied
出现这个问题说明gogs没问题 可能是挂载权限有问题 因为容器内只有root权限 而没有Samba权限
解决办法
chown -R 10013 /home/gogs
10013是gogs用户的uid,即samba。(echo $UID作为gogs用户)
105是本地gogs用户的uid,在服务器加入Active Directory(使用samba)之前使用。
转载自github里的issue:https://github.com/gogs/gogs/issues/1728
Tags : 本文未设置标签
所有原创文章采用 知识共享署名-非商业性使用 4.0 国际许可协议 进行许可。
您可以自由的转载和修改,但请务必注明文章来源并且不可用于商业目的。
本站部分内容收集于互联网,如果有侵权内容、不妥之处,请联系我们删除。敬请谅解!