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

[emerg] 1#1: mkdir() "/var/cache/nginx/client_temp" failed (13: Permission denied) #308

Open
nbonagi opened this issue Jun 12, 2023 · 2 comments

Comments

@nbonagi
Copy link

nbonagi commented Jun 12, 2023

when i am trying to deploy the service-ui service in kuebnetes i am getting the below error

/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf is not a file or does not exist
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
2023/06/12 10:16:53 [emerg] 1#1: mkdir() "/var/cache/nginx/client_temp" failed (13: Permission denied)
nginx: [emerg] mkdir() "/var/cache/nginx/client_temp" failed (13: Permission denied)

All other services are up and running . the security context i have tried are 1000,2000,70, 65532. I tried both root and non-root images, but it is service-ui is not running. please suggest

@bond-
Copy link

bond- commented Jun 12, 2023

I had the same issue I deployed by modifying kubernetes/reportportal/templates/ui-deployment.yaml

I added volume mounts under the container:

        volumeMounts:
        - name: var-volume
          mountPath: /var/log/nginx
          readOnly: false
        - name: var-volume
          mountPath: /var/cache/nginx
          readOnly: false
        - name: var-volume
          mountPath: /var/run
          readOnly: false
        - name: var-volume
          mountPath: /etc/nginx/conf.d/
          readOnly: false

and a volume declaration for var-volume.

      volumes:
      - name: var-volume
        emptyDir: {}

After doing so the problem of permissions was solved. Since the kube cluster we have also doesn't allow cluster admin permission.

@nbonagi
Copy link
Author

nbonagi commented Jun 13, 2023

Thank you Raviteja Lokineni. After adding the volume It is working

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

2 participants