[FATAL] [...g/setting/setting.go:515 NewContext()] Fail to create '/home/git/.ssh': mkdir /home/git/.ssh: read-only file system - Getting Help / 中文求助 - Gogs Discussion

kubxy

Sep '18

Gogs 版本:0.11.66
系统类型及版本:CentOS Linux release 7.4.1708 (Core)
数据库:mysql-5.6.39
问题描述:
使用二进制包的方式安装,首次启动采用的systemctl,但启动会报错:
[FATAL] […g/setting/setting.go:515 NewContext()] Fail to create ‘/home/git/.ssh’: mkdir /home/git/.ssh: read-only file system
切换到git用户,通过命令行启动没有问题,但不能通过systemctl来管理

Solved by kubxy in post #2

问题已经解决,是systemd配置文件中的以下配置项的影响: ProtectSystem=full PrivateDevices=yes PrivateTmp=yes NoNewPrivileges=true

Original url: Access
Created at: 2020-06-02 10:11:25
Category: default
Tags: none

请先后发表评论
  • 最新评论
  • 总共0条评论