Skip to content
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

关于搭建过程中 security.sock 无法正常访问的问题 #92

Open
i-yyi opened this issue Nov 12, 2021 · 3 comments
Open

关于搭建过程中 security.sock 无法正常访问的问题 #92

i-yyi opened this issue Nov 12, 2021 · 3 comments

Comments

@i-yyi
Copy link

i-yyi commented Nov 12, 2021

unix socket 目录 /tmp/treehollow/treehollow-security-api.sock
目录权限/sock权限均为777
Nginx无法正常连接此socket
在测试过程中,发现push/service两个程序的socket均可以通过 socat - $SOCKET_ADDR 连接,但是 security 会 connection refused
后端通过低权限用户hole启动,nginx通过nginx用户启动,socat是在root权限下启动
如果需要提供其他信息,请回复我
感谢您的处理与解答

@i-yyi
Copy link
Author

i-yyi commented Nov 12, 2021

无奈的选择了配置security为http,在某一端口直接提供服务。这样做是成功的。

@thuhole
Copy link
Collaborator

thuhole commented Nov 12, 2021

您好,您可以在/var/log/nginx/error.log查看Nginx错误日志,如果出现permission问题可以参考https://access.redhat.com/articles/2191331 检查SELinux状态,并尝试按照https://www.server-world.info/en/note?os=CentOS_7&p=selinux&f=9 解决。

如果不是SELinux的问题,您可以将Nginx错误日志提供,我们来进行一下分析。

@i-yyi
Copy link
Author

i-yyi commented Nov 18, 2021

很抱歉,最近一直在做安卓客户端和Ios客户端的相关问题。一直没有回复。
我将尝试复现错误并提供Nginx log
SELinux为disable, 因为是测试期暂时并没有开启SELinux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants