6

I have a systemd unit which failed, and I'm not sure what the result type is supposed to mean.

Active: failed (Result: resources) since Thu 2016-11-17 21:06:42 UTC; 32min ago

What does Result: resources mean? I'm familiar with Result: exit-code, but not this one.

1
  • You have run out of resources to start the application
    – tread
    Apr 9, 2017 at 18:21

1 Answer 1

3

I agree that it is quite generic error message. Since I am not sure when you get this message I am sending you the necessary information so you can find it yourself but it can be the interpretation of errnos of system calls, ex ENOMEM.

Follow SERVICE_FAILURE_RESOURCES in https://github.com/systemd/systemd/blob/2e6dbc0fcd45c152f15aed77cde4fd07957c150c/src/core/service.c.

2
  • Thanks for this. I looked into the source and it seems that it's a generic failure message, which is definitely not helpful given that I didn't even get any journalctl messages... github.com/systemd/systemd/blob/… "a bit of a misnomer, just our catch-all error for errnos we didn't expect"
    – 2rs2ts
    Nov 18, 2016 at 19:54
  • Notice that before going in to this state, we always print out something to the syslogs where we should be printing something about the error code. Example, github.com/systemd/systemd/blob/…
    – Umut
    Nov 21, 2016 at 6:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.