And I am still dealing with nextcloud pretending to download files does but it does not. I just do not get it.
it would be nice if you would give out some more information about the problematic systems… (there has been a template here to fill out when you open a new thread… it is not just for fun or to taunt our users here…)
1 Like
So once again I am the only one on this entire platform who has ever received this error. Not one other person at all. Same goes for the lock files and the pretending to downloading too, huh?
tflidd
February 8, 2022, 1:22pm
8
Which platform are you talking of?
If you look for the error, there are a few things you can find:
https://www.000webhost.com/forum/t/502-bad-gateway-openresty-randomly-occurs/118628
https://discussion.dreamhost.com/t/502-bad-gateway-openresty-1-15-8-2-error/76452/2
opened 08:14AM - 29 Oct 19 UTC
closed 07:24AM - 11 Nov 19 UTC
**NGINX Ingress controller version**: 0.26.1
**Kubernetes version** (use `kub… ectl version`):
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.7", GitCommit:"8fca2ec50a6133511b771a11559e24191b1aa2b4", GitTreeState:"clean", BuildDate:"2019-09-18T14:47:22Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.7", GitCommit:"8fca2ec50a6133511b771a11559e24191b1aa2b4", GitTreeState:"clean", BuildDate:"2019-09-18T14:39:02Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"linux/amd64"}
**Environment**:
- **Cloud provider or hardware configuration**:
MacBook Pro
- **OS** (e.g. from /etc/os-release):
ProductName: Mac OS X
ProductVersion: 10.14.6
BuildVersion: 18G95
- **Kernel** (e.g. `uname -a`):
Darwin Rexy-MacBook-Pro.local 18.7.0 Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019; root:xnu-4903.271.2~2/RELEASE_X86_64 x86_64
- **Install tools**:
Docker For Mac
- **Others**:
Ingress-nginx installed from:
Mandatory: kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/mandatory.yaml
Service: kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/provider/cloud-generic.yaml
**What happened**:
So, I try to deploy my web with using Ingress. I get 502 Bad Gateway openresty when I access the web from curl or browser.
**Deployment file**
I have 2 deployments with same configuration, but just image is different.
```
apiVersion: v1
kind: Service
metadata:
name: first-svc
spec:
type: ClusterIP
ports:
- port: 80
selector:
app: first-app
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: first-app
spec:
replicas: 3
selector:
matchLabels:
app: first-app
template:
metadata:
labels:
app: first-app
spec:
containers:
- name: app1
image: rexysihombing/app1:latest
ports:
- containerPort: 80
```
**Ingress file**
```
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: app-ingress
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
rules:
- host: localhost
http:
paths:
- path: /
backend:
serviceName: first-svc
servicePort: 80
- path: /first
backend:
serviceName: first-svc
servicePort: 80
- path: /second
backend:
serviceName: second-svc
servicePort: 80
```
As far as I know, everything is correct. But, I don't know why the result is 502 Bad Gateway.
**What you expected to happen**:
I want when I access http://localhost/ or http://localhost/first/ or http://localhost/second/ the result is my web page, not 502.
Thank you in advance for your help.
After that, I haven’t heard of many using openrestly here
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.