Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the supervisor ERROR (spawn error) error

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the relevant knowledge of "how to solve supervisor ERROR (spawn error) errors". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

The process configured in supervisor does not start properly

Supervisorctl status

You can see the running status.

Cerebro FATAL Exited too quickly (process log may have details)

There is so little information here that we need to go to the specific log to see what went wrong.

Tail-20 / var/log/supervisord.log

2017-08-07 13 2318 829 INFO spawned: 'cerebro' with pid 16482

2017-08-07 13 INFO exited 2318 36863 INFO exited: cerebro (exit status 1; not expected)

2017-08-07 13 INFO gave up 2318 863 INFO gave up: cerebro entered FATAL state, too many start retries too quickly

Although there is a lot of information here, there is no substantive content.

What happened when it started?

Supervisorctl tail programname stdout (can solve most problems, programname changes the name of its own service)

This command is the dynamic output when the process is started

/ usr/bin/env: bash: Not a directory

Found that the environment variable was not configured correctly.

I have actually configured the environment variable for java in / etc/profile, but it has no effect.

Because the / etc/profile file is not loaded when supervisor starts. (design itself)

But supervisor provides a configuration parameter, enviroment.

[program:cerebro]

Environment = JAVA_HOME= "/ opt/jdk/"

Command = / bin/bash / opt/cerebro/bin/cerebro

Autostart = true

Autorestart = true

Use

Supervisorctl update

Supervisorctl reload

Supervisorctl status

The process is working properly

Cerebro RUNNING pid 17236, uptime 0:00:08

Elasticsearch RUNNING pid 17235, uptime 0:00:08

This is the end of the content of "how to solve supervisor ERROR (spawn error) errors". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report