8000 手动将gogs.db文件作为sqlite修改后,覆盖文件导致ssh起不来 · Issue #7964 · gogs/gogs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

手动将gogs.db文件作为sqlite修改后,覆盖文件导致ssh起不来 #7964

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
doglex opened this issue May 5, 2025 · 0 comments
Open
1 task done
Labels
📖 documentation Documentation needs more love

Comments

@doglex
Copy link
doglex commented May 5, 2025

What needs to be improved? Please describe

log/gogs.log 文件 报错 [gogs.io/gogs/internal/ssh/ssh.go:118 func1()] SSH: Wait: exit status 1

查看 log/hooks/serv.log 文件是 [ERROR] [...ogs.io/gogs/internal/cmd/serv.go:48 fail()] UpdatePublicKey: attempt to write a readonly database

说明是db文件没有写权限

查看同目录其他文件是lighthouse组和用户的

将db文件给这个组和用户
chown lighthouse gogs.db
chgrp lighthouse gogs.db

然后重启docker容器,就能启动ssh了

Why do you think it is important?

帮助解决ssh启动问题

Code of Conduct

  • I agree to follow this project's Code of Conduct
@doglex doglex added the 📖 documentation Documentation needs more love label May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📖 documentation Documentation needs more love
Projects
None yet
Development

No branches or pull requests

1 participant
0