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

help request: apisix restart fail #10495

Closed
lisea2017 opened this issue Nov 15, 2023 · 10 comments
Closed

help request: apisix restart fail #10495

lisea2017 opened this issue Nov 15, 2023 · 10 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@lisea2017
Copy link

lisea2017 commented Nov 15, 2023

Description

After the apisix process is running, when the command 'apisix restart' is executed, the apisix process disappears without any error messages. What could be the issue?

Environment

  • APISIX version (run apisix version): 3.6.0
  • Operating system (run uname -a):
  • OpenResty / Nginx version (run openresty -V or nginx -V): 1.21.4.1
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info): 3.4.0
  • APISIX Dashboard version, if relevant:3.0.1
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):3.8.0
@moonming
Copy link
Member

Without error logs and core dumps, there is no way to tell

@lisea2017
Copy link
Author

How can I find error logs? The error.log only shows [notice] 15846#15846: signal process started, and after restarting, it indicates 'configuration test is successful.' APISIX is running... Where else can I check?

@luoluoyuyu
Copy link
Contributor

Hi @lisea2017
I think you've rebooted successfully and it looks like this.
image

@lisea2017
Copy link
Author

The display is the same as yours, but when using the command ps -ef | grep apisix, it shows that the process no longer exists.

@monkeyDluffy6017
Copy link
Contributor

@lisea2017 have you solved your problem?

@monkeyDluffy6017 monkeyDluffy6017 added the help wanted Extra attention is needed label Dec 12, 2023
@monkeyDluffy6017 monkeyDluffy6017 moved this to 📋 Backlog in Apache APISIX backlog Dec 12, 2023
@lisea2017
Copy link
Author

No, it has always been the case. I can only use reload as a replacement now.

@monkeyDluffy6017
Copy link
Contributor

@luoluoyuyu could you help to check this?

@luoluoyuyu
Copy link
Contributor

Hi @lisea2017
You are right, I also had this problem, when I executed apisix restart and then executed ps -ef command no apisix process was found. When I execute apisix restart again to reboot successfully.

@monkeyDluffy6017 monkeyDluffy6017 added the bug Something isn't working label Dec 13, 2023
@hanqingwu
Copy link
Contributor

hanqingwu commented Dec 22, 2023

i have got a root cause, so i can submit a PR .
when apisix is running and after kill, it return to exit

--- a/apisix/cli/ops.lua
+++ b/apisix/cli/ops.lua
@@ -805,8 +805,8 @@ local function start(env, ...)
 
         local ok, err, err_no = signal.kill(pid, signone)
         if ok then
-            print("APISIX is running...")
-            return
+            print("APISIX is running... and now kill ...")
+        --    return
         -- no such process
         elseif err_no ~= errno.ESRCH then
             print(err)

@Vacant2333
Copy link
Contributor

@lisea2017 hello, this issue looks was resolved, can we close it now

@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in Apache APISIX backlog Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
Archived in project
Development

No branches or pull requests

6 participants