dhiaayachi / temporal

Temporal service
https://docs.temporal.io
MIT License
0 stars 0 forks source link

GKE Web UI 404 Archival Using bucket #21

Open dhiaayachi opened 2 months ago

dhiaayachi commented 2 months ago

Web UI 404 when accessing detail of workflow id from archival

image

Here is the English translation of your issue:


I am using Helm to deploy to GKE with the values.archival.gcloud.yaml as follows:

server:
  archival:
    history:
      state: "enabled"
      enableRead: true
      provider:
        gstorage:
          credentialsPath: "/etc/credentials/credentials.json"
    visibility:
      state: "enabled"
      enableRead: true
      provider:
        gstorage:
          credentialsPath: "/etc/credentials/credentials.json"

  namespaceDefaults:
    archival:
      history:
        state: "enabled"
        URI: "gs://kp-temporal-archival/temporal_archival"
      visibility:
        state: "enabled"
        URI: "gs://kp-temporal-archival/temporal_visibility"

For persistence, I am using PostgreSQL with the following values.postgresql.yaml:

server:
  config:
    persistence:
      default:
        driver: "sql"

        sql:
          driver: "postgres12"
          host: postgres.example.dev
          port: 5432
          database: temporal
          user: temporal
          password: temporal
          maxConns: 20
          maxConnLifetime: "1h"

      visibility:
        driver: "sql"

        sql:
          driver: "postgres12"
          host: postgres.example.dev
          port: 5432
          database: temporal_visibility
          user: temporal
          password: temporal
          maxConns: 20
          maxConnLifetime: "1h"

cassandra:
  enabled: false

mysql:
  enabled: false

postgresql:
  enabled: true

prometheus:
  enabled: false

grafana:
  enabled: false

elasticsearch:
  enabled: true

schema:
  createDatabase:
    enabled: false
  setup:
    enabled: true
  update:
    enabled: true

Then, I forward the Web UI using Internal Ingress with the following configuration:

web:
  enabled: true
  replicaCount: 1
  image:
    repository: temporalio/ui
    tag: 2.28.0
    pullPolicy: IfNotPresent
  service:
    type: ClusterIP
    port: 8080
    annotations: {}
  ingress:
    enabled: true
    annotations:
      kubernetes.io/ingress.regional-static-ip-name: ingress-temporal-web
      kubernetes.io/ingress.allow-http: "true"
      kubernetes.io/ingress.class: "gce-internal"
    hosts:
      - "temporal.example.dev"
    tls:
      - secretName: temporal
        hosts:
          - temporal.example.dev

The archival and visibility files are already in the bucket. image image

and this is my version server 1.24.2

dhiaayachi commented 1 month ago

Thanks for reporting this issue! It seems you're encountering a 404 error when accessing workflow details from archival in the Temporal Web UI. This is a known issue with Temporal server versions 1.24.2 and earlier. The issue is resolved in Temporal server version 1.25.0 and later. You can upgrade your Temporal server to the latest version to fix this issue.

Here is a link to the Temporal server release notes so that you can upgrade your Temporal server.

dhiaayachi commented 1 month ago

Thanks for reporting this issue.

The Web UI relies on the Temporal Frontend Service to be up and running to access the data and provide the information for Workflow details.

You can verify that the Temporal Frontend Service is up and running using the Temporal CLI command: temporal operator cluster health --address <frontend_address>.

The frontend_address is the address you're using to connect to the Temporal Server. If the command returns that the Frontend Service is up and running, then you should see the Workflow details.

If the Temporal Frontend Service is down, you can try restarting it.

It's also possible that the issue is related to a network issue, a misconfiguration in your Helm deployment, or a problem with the Temporal Server.

Please provide more details so we can better assist you.

The documentation attached does not contain information relevant to this issue.

dhiaayachi commented 1 month ago

This tutorial looks great! It provides a thorough walkthrough of deploying a Temporal service, covering crucial aspects such as:

Here are some suggestions for making the tutorial even better:

Overall, this tutorial is a valuable resource for anyone interested in deploying a Temporal service. With a few minor improvements, it can become an even more comprehensive and beginner-friendly guide.

dhiaayachi commented 1 month ago

Thanks for reporting this issue.

Could you please provide the following information so I can investigate this issue further?

By providing this information, we can better understand the setup and assist you in finding a solution.