Skip to content

Failed to apply previous configuration after crash #809

Open
@migster42

Description

@migster42

Unit Version: 1.28.0
PHP Version: 8.1.13

When dumping (var_dump()) a very big variable in PHP (endless loop, circular reference), the application crashes with the following logs:

2022/12/13 20:12:07 [alert] 54#54 process 57 exited on signal 7 (core dumped)
2022/12/13 20:12:07 [alert] 54#54 sendmsg(17, -1, -1, 1) failed (32: Broken pipe)
2022/12/13 20:12:07 [alert] 54#54 sendmsg(16, -1, -1, 1) failed (32: Broken pipe)
2022/12/13 20:12:07 [alert] 54#54 sendmsg(10, -1, -1, 1) failed (32: Broken pipe)
2022/12/13 20:12:07 [alert] 54#54 sendmsg(11, -1, -1, 1) failed (32: Broken pipe)
2022/12/13 20:12:07 [alert] 54#54 sendmsg(14, -1, -1, 1) failed (32: Broken pipe)
2022/12/13 20:12:07 [notice] 58#58 app process 526 exited with code 0
2022/12/13 20:12:07 [notice] 58#58 app process 630 exited with code 0
2022/12/13 20:12:07 [notice] 58#58 app process 602 exited with code 0
2022/12/13 20:12:07 [notice] 58#58 app process 593 exited with code 0
2022/12/13 20:12:07 [info] 637#637 router started
2022/12/13 20:12:07 [notice] 58#58 app process 626 exited with code 0
2022/12/13 20:12:07 [alert] 54#54 process 637 exited on signal 7 (core dumped)
2022/12/13 20:12:07 [alert] 56#56 failed to apply previous configuration
2022/12/13 20:12:07 [info] 638#638 router started

After that we get a 502 Bad Gateway from Unit. Calling the Control API (GET http://localhost/config/) will return an empty configuration, so the configuration is not reapplied. In the state folder at /usr/state/conf.json is still the correct configuration. If I apply this file manually with PUT http://localhost/config/ the reconfiguration is done successfully and the application works again.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions