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

Backend not forwarding properly after upgrade to 1.14.x/1.15.x #222

Open
lord-kyron opened this issue Jan 26, 2024 · 5 comments
Open

Backend not forwarding properly after upgrade to 1.14.x/1.15.x #222

lord-kyron opened this issue Jan 26, 2024 · 5 comments
Labels
documentation Improvements or additions to documentation

Comments

@lord-kyron
Copy link

Hi,
I started using seatsurfing recently and I deployed version 1.13.8 in Kuberentes with the guide provided in the official documentation.
I've set it up as described Traefik ingressRoute + Nginx reverse proxy before it and it was running great.
However, I decided to upgrade to 1.15.0 latest version - suddenly the backend stopped working giving me this error:
Get "http://localhost:3000/admin/dashboard": dial tcp [::1]:3000: connect: connection refused
and respectively this for the UI:
Get "http://localhost:3001/ui/login": dial tcp [::1]:3001: connect: connection refused
I tried to deploy a new separate setup with 1.15.0 to start from scratch - it was giving me the same error from the start.
I also tried a new setup from scratch with 1.14.4 - the effect was the same.
So for now only 1.13.8 works for me and I can't understand why.
I am using the documentation as example how to deploy all the version - maybe something changed in 1.14/1.15 which is not properly added to documentation?

I don't know.
Can someone suggest how can I fix this and run a more recent version?
Thanks!
P.S. - here is my setup (URL are changed on purpose):

apiVersion: apps/v1
kind: Deployment
metadata:
  name: seatsurfing-backend
  namespace: services
spec:
  replicas: 1
  selector:
    matchLabels:
      app: seatsurfing-backend
  template:
    metadata:
      labels:
        app: seatsurfing-backend
    spec:
      containers:
      - image: seatsurfing/backend:latest
        name: server
        imagePullPolicy: Always
        ports:
        - name: port-http
          containerPort: 8080
        env:
        - name: POSTGRES_PASS
          valueFrom:
            secretKeyRef:
              name: seatsurfing-db
              key: db-password
        - name: POSTGRES_URL
          value: "postgres://seatsurfing:$(POSTGRES_PASS)@seatsurfing-db/seatsurfing?sslmode=disable"
        - name: JWT_SIGNING_KEY
          value: "a_random_key"
        - name: PUBLIC_URL
          value: "https://book.mycoworking.com" 
        - name: FRONTEND_URL
          value: "https://book.mycoworking.com"
      - image: seatsurfing/booking-ui:latest
        name: booking-ui
        imagePullPolicy: Always
        env:
        - name: FRONTEND_URL
          value: "https://book.mycoworking.com"
      - image: seatsurfing/admin-ui:latest
        name: admin-ui
        imagePullPolicy: Always
        env:
        - name: FRONTEND_URL
          value: "https://book.mycoworking.com"
---
apiVersion: v1
kind: Service
metadata:
  name: seatsurfing-backend
  namespace: services
spec:
  ports:
    - port: 80
      protocol: TCP
      targetPort: 8080
  selector:
    app: seatsurfing-backend
  type: ClusterIP
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: seatsurfing-backend
  namespace: services
spec:
  entryPoints:
    - web
  routes:
  - match: Host(`book.mycoworking.com`)
    kind: Rule
    services:
    - name: seatsurfing-backend
      port: 80
@lord-kyron
Copy link
Author

Someone to help with this one?

@virtualzone virtualzone added the documentation Improvements or additions to documentation label Mar 10, 2024
@virtualzone
Copy link
Collaborator

Hi @lord-kyron,
the Kubernetes documentation is missing instructions on how to use Seatsurfing with separate Admin UI and Booking UI containers. Please refer to the Docker documentation for now:
https://seatsurfing.app/docs/getting-started/
You'll need to set the BOOKING_UI_BACKEND and ADMIN_UI_BACKEND environment variables.

@miklosgeyer
Copy link

Same problem. The documentation of the environment variables doesn't help me much. 1.13.8 works, any higher version gives a connection refused to localhost:3000 oder localhost:3001.
Runnnig on kubernetes cluster at digitalocean.
Any additional help?

@0x3e4
Copy link

0x3e4 commented Apr 2, 2024

i guess we face the same issue #195
i am currently running backend:1.17.0 and booking-ui/admin-ui on 1.13.8 which is the only combination which works for me right now.

@0x3e4
Copy link

0x3e4 commented Sep 17, 2024

i think this is fixed with 1.19.5.. i could without any issues update my booking-ui and admin-ui to this version.

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

No branches or pull requests

4 participants