Skip to content

unauthorized access too hook server (hook secret did not match) #121

@gohai

Description

@gohai

I recently decided to restart nginx after some configuration changes, using sudo systemctl restart nginx. Afterwards I saw renewal requests failing like so

2018/04/09 20:50:45 [error] 12017#12017: *103 [lua] hook.lua:8: server(): auto-ssl: unauthorized access to hook server (hook secret did not match), client: 127.0.0.1, server: , request: "POST /deploy-challenge HTTP/1.1", host: "127.0.0.1:8999"

(...)
 + Requesting challenge for www.somedomain.com...
 err: curl: (22) The requested URL returned error: 401 Unauthorized

and earlier also

 + Requesting challenge for delabrave.com...
 err: curl: (7) Failed connect to 127.0.0.1:8999; Connection refused

So I am wondering if the previous hook server potentially did not exit when the main resty process did? This is an issue for us, since we're quickly in Error creating new authz :: too many currently pending authorizations territory when this happens.

Any workarounds?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions