Skip to content

failed to reload NGINX: failed to send the HUP signal to NGINX main: operation not permitted #1055

Closed
@poneding

Description

@poneding

Describe the bug
I ran nginx-gateway and demo with the guide, but I couldn't get the correct results.
Get Error: failed to reload NGINX: failed to send the HUP signal to NGINX main: operation not permitted

I have no idea why this problem occurs, and I don't know how to solve it. Look for help.

Gateway.Status:

status:
  addresses:
    - type: IPAddress
      value: 10.244.0.63
  conditions:
    - lastTransitionTime: '2023-09-13T06:09:28Z'
      message: Gateway is accepted
      observedGeneration: 1
      reason: Accepted
      status: 'True'
      type: Accepted
    - lastTransitionTime: '2023-09-13T06:09:28Z'
      message: >-
        The Gateway is not programmed due to a failure to reload nginx with the
        configuration
      observedGeneration: 1
      reason: Invalid
      status: 'False'
      type: Programmed
  listeners:
    - attachedRoutes: 0
      conditions:
        - lastTransitionTime: '2023-09-13T06:09:28Z'
          message: Listener is accepted
          observedGeneration: 1
          reason: Accepted
          status: 'True'
          type: Accepted
        - lastTransitionTime: '2023-09-13T06:09:28Z'
          message: All references are resolved
          observedGeneration: 1
          reason: ResolvedRefs
          status: 'True'
          type: ResolvedRefs
        - lastTransitionTime: '2023-09-13T06:09:28Z'
          message: No conflicts
          observedGeneration: 1
          reason: NoConflicts
          status: 'False'
          type: Conflicted
        - lastTransitionTime: '2023-09-13T06:09:28Z'
          message: >-
            The Listener is not programmed due to a failure to reload nginx with
            the configuration
          observedGeneration: 1
          reason: Invalid
          status: 'False'
          type: Programmed
      name: http
      supportedKinds:
        - group: gateway.networking.k8s.io
          kind: HTTPRoute

nginx-gateway pod error logs:

{
  "level": "error",
  "ts": "2023-09-13T06:09:51Z",
  "logger": "eventHandler",
  "msg": "Failed to update NGINX configuration",
  "error": "failed to reload NGINX: failed to send the HUP signal to NGINX main: operation not permitted",
  "stacktrace": "github.com/nginxinc/nginx-kubernetes-gateway/internal/mode/static.(*eventHandlerImpl).HandleEventBatch
    /home/runner/work/nginx-kubernetes-gateway/nginx-kubernetes-gateway/internal/mode/static/handler.go:95
   github.com/nginxinc/nginx-kubernetes-gateway/internal/framework/events.(*EventLoop).Start.func1.1
    /home/runner/work/nginx-kubernetes-gateway/nginx-kubernetes-gateway/internal/framework/events/loop.go:68"
}

Info:

  • OS: linux (amd64)
  • OS Image: Ubuntu 22.04 LTS
  • Kernel version: 5.15.0-56-generic
  • Container runtime: docker:20.10.13
  • Kubelet version: v1.27.2
  • Gateway API: 0.8.0 standard-install
  • Nginx Gateway: 0.6

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions