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

Shutdown gir feilmelding på server #361

Open
espso opened this issue Jun 21, 2022 · 1 comment
Open

Shutdown gir feilmelding på server #361

espso opened this issue Jun 21, 2022 · 1 comment
Assignees
Labels

Comments

@espso
Copy link
Contributor

espso commented Jun 21, 2022

Kan ikke bruke API kallet for shutdown, da det gir en internal server error

@josteinaj
Copy link
Member

Fra loggfila:

2022-06-24 12:02:19,818 ERROR    [Thread-2126                   ] http://0.0.0.0:3875/prodsys/v1/kill5973637670039528/
Traceback (most recent call last):
  File "/home/itadmin/.local/lib/python3.7/site-packages/flask/app.py", line 1523, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/itadmin/.local/lib/python3.7/site-packages/flask/app.py", line 1509, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "/opt/produksjonssystem/produksjonssystem/core/server.py", line 303, in kill
    raise RuntimeError("Not running with the Werkzeug Server")
RuntimeError: Not running with the Werkzeug Server
2022-06-24 12:02:19,860 INFO     [Thread-2126                   ] 127.0.0.1 - - [24/Jun/2022 12:02:19] "POST /prodsys/v1/kill5973637670039528/ HTTP/1.1" 500 -
2022-06-24 12:02:19,864 INFO     [Thread-2125                   ] 158.39.103.140 - - [24/Jun/2022 12:02:19] "GET /prodsys/v1/shutdown HTTP/1.1" 500 -
2022-06-24 12:02:20,111 INFO     [main thread                   ] Sender stoppsignal til alle pipelines...

Fra Slack:

Jostein: nlb prodsys shutdown
NLB: Could not query the production system (HTTP: 500 -- http://nlbprod1.nb.no:3875/prodsys/v1/shutdown)

Så API-kallet kan nok brukes men gir av en eller annen grunn en feilmelding sånn at det ser ut som at det ikke virker.

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

No branches or pull requests

3 participants