waltz-controls / waltz

A general purpose web application that provides the interface between SCADA(s) system and the scientific users who define and calibrate their experiments
https://waltz-docs.readthedocs.io/en/latest/
GNU General Public License v3.0
17 stars 6 forks source link

Setup WALTZ 1.0.10 using docker haproxy #265

Closed bala4901 closed 3 years ago

bala4901 commented 3 years ago

Hi, May I know there is support rest api 1.1

Ingvord commented 3 years ago

@bala4901 waltz uses tango-rest-client which supports only REST API v1.1

Hope this answers your question

bala4901 commented 3 years ago

I am sorry. I think I do not explain clearly. In document which explained Waltz support till TANGO REST-API RC4.

However, currently Tango Rest Server 2.1/2.2 is supported up to Tango REST-API version 1.1.

I had try to install using Rest-server (docker). Waltz connecteed but with json error.

image

I have 2 question:

  1. Waltz 1.0.10 is possible to support Tango REST-API version 1.1?
  2. Where to get the detail logs for the waltz?

Best regards

Ingvord commented 3 years ago

Sorry, the document is outdated - currently supported version of Tango REST API is v1.1

Waltz 1.0.10 is possible to support Tango REST-API version 1.1?

1.0.10 should perfectly work together with rest-server 2.1+

However they both must be deployed at the same servlet container i.e. put tango.war and waltz.war together into Apache Tomcat's webapps folder.

If you want to use dockers you need to setup a proxy e.g. HAProxy like here - see docker-compose

These are required to eliminate CORS issues

Where to get the detail logs for the waltz?

I use DevTools built-in to browser (usually you need to press F12)

bala4901 commented 3 years ago

thank @Ingvord I had implement as you commented.

After implementing the HAProxy, i get some error. Can you give me some guides whether can clear the errors. It said Data Loading error.

image

image

Ingvord commented 3 years ago

Hm... you also need user-context.war

I will update the docs. Thanks for reporting!

bala4901 commented 3 years ago

Hi @Ingvord

Thank you for your support. After adding the user-context.war. It can be run. I attached for my configuration for docker to run the waltz.

waltz1_0_11-docker.zip

Due to file size the WAR I do not including in the zip file: