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

Nginx doesnt start after updating swagger to the latest version #8448

Closed
RozmarinUS opened this issue Mar 6, 2023 · 1 comment
Closed

Nginx doesnt start after updating swagger to the latest version #8448

RozmarinUS opened this issue Mar 6, 2023 · 1 comment

Comments

@RozmarinUS
Copy link

RozmarinUS commented Mar 6, 2023

Q&A

  • OS: Ubuntu 22
  • Kubelet version: 1.26.1
  • Method of installation: Helm in kubernetes
  • Swagger-UI version: 4.17.1

The story

After updating to the latest version I got an error:

2023/03/06 21:58:17 [emerg] 1#1: socket() [::]:8080 failed (97: Address family not supported by protocol)
nginx: [emerg] socket() [::]:8080 failed (97: Address family not supported by protocol)

On version 4.16.1 it's works!

Content & configuration

configuration:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ .Chart.Name }}-swagger
  labels:
    app: {{ .Chart.Name }}-swagger
spec:
  replicas: 1
  selector:
      matchLabels:
        app: {{ .Chart.Name }}-swagger
  template:
    metadata:
      labels:
        app: {{ .Chart.Name }}-swagger
    spec:
      containers:
      - name: {{ .Chart.Name }}-swagger
        image: swaggerapi/swagger-ui
        ports:
          - containerPort: 8080
        env:
          - name: URLS
            value: "[{
              \"url\":\"/api/docs-json\",
              \"name\":\"api\"
            }]"
      - name: nginx
        image: nginx
        volumeMounts:
        - name: config-files
          subPath: nginx.conf
          mountPath: /etc/nginx/nginx.conf
      volumes:
      - name: config-files
        configMap:
          name: {{ .Chart.Name }}-swagger-nginx-conf

Expected behavior

The application should start stably

@RozmarinUS RozmarinUS changed the title Nginx doesnt start after updating to the latest version Nginx doesnt start after updating swagger to the latest version Mar 6, 2023
@RozmarinUS
Copy link
Author

Replica of #8447 =(

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

No branches or pull requests

1 participant