treasure-data / digdag

Workload Automation System
https://www.digdag.io/
Apache License 2.0
1.3k stars 221 forks source link

digdag server: client commands resulting in error: HTTP 301 #1745

Closed doctor closed 2 years ago

doctor commented 2 years ago

Hello, Can you please point me in the right direction to resolve this issue? I am running digdag as server in Redhat linux development server in data center. digdag server --memory -b 0.0.0.0

I am able to access the UI from my local machine. I am able to create a project through the UI. Schedule workflows as well and sessions per schedule. All visible through the UI.

However when I run client side commands in the server where digdag is running, I am getting HTTP 301 error.

Error:

/home/server > digdag schedules
2022-06-02 00:04:55 -0500: Digdag v0.10.4
error: HTTP 301 Moved Permanently (web application)
  1. How do I resolve this issue and be able to run commands to check projects, schedules, etc. from the server
  2. Is there a way to issue commands to digdag server from my local machine?

Thanks in advance

doctor commented 2 years ago

I got it working in the server and local machine after setting this in config

~/.config/digdag/config
client.http.endpoint = http://hostname:65432