-
Notifications
You must be signed in to change notification settings - Fork 766
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
为什么都root用户了还会提示Permission denied #28
Comments
你检查一下这几个lua文件所在的目录是不是对nginx worker用户开放了可执行权限
|
不是,,,,nginx.conf里没有指定用户,默认用的nobody,,,官方文档不详细啊,,对于我们这种新手刚开始不少踩坑 |
你明白我的意思了么?
|
都有的,,现在用户权限问题好了,,又来这个,要崩溃了 |
你好,这个问题应该是lualib的路径配置不对 git clone下repo后,在utils路径下,有abtesting.conf这个脚本,您什么都不用配置,启动redis后,执行该脚本,应该是不会出现这种问题的;repo提供了最小示例,包括nginx配置文件的。 目测现在你遇到的问题,仍然是文件权限的问题;建议先在自己的路径下以普通用户执行脚本再试试。 |
lua entry thread aborted: runtime error: ...oft/ABTestingGateway-master/utils/../admin/ab_action.lua:5: loop or previous error loading module 'abtesting.utils.utils' 同样遇到这个问题,如何解决??访问的时候返回500 |
你好,nginx的worker属主可能是nobody了,检查下worker |
你好,我把user 全都换成了root,没有Permission denied的情况了,访问admin也正常,配置策略也正常。但是访问的时候出现:ua entry thread aborted: runtime error: ...oft/ABTestingGateway-master/utils/../admin/ab_action.lua:5: loop or previous error loading module 'abtesting.utils.utils' 返回错误500 Internal Server Error |
权限问题该怎么解决啊,我也是把那个admin下面的lua脚本给了777的权限,但还是不行。 |
请求任何接口都返回404,日志里提示
cannot open /path/to/ABTestingGateway-master/utils/../admin/ab_action.lua: Permission denied
现在都是root用户了怎么还会这样,权限也改成777了
-rwxrwxrwx 1 root root 2681 May 11 15:54 ab_action.lua
-rwxrwxrwx 1 root root 2303 May 11 15:54 action.lua
-rwxrwxrwx 1 root root 7857 May 11 15:54 policygroup.lua
-rwxrwxrwx 1 root root 6093 May 11 15:54 policy.lua
-rwxrwxrwx 1 root root 7173 May 11 15:54 runtime.lua
The text was updated successfully, but these errors were encountered: