User Interface cannot get server version with \"-server http://...\" parameter

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
4 posts • Page 1 of 1
kfyraj
Posts:6
Joined: Mon Sep 10, 2018 12:57 pm

User Interface cannot get server version with \"-server http://...\" parameter

Post by kfyraj »

Hi,

I am trying to start a User Interface in console with

Code: Select all

-server http://127.0.0.1:79/
parameter (I used the 79 port to be sure that another software doesn't use the port), but it is not able to get the server version. However, I am able to connect to the HTML page from my browser.

As a server I started the

Code: Select all

rs_http.ctl
script with a control manager. In the config.http I just uncommented the http

Code: Select all

httpServerPort = "79"
and

Code: Select all

httpLogin = "pvss"
; the rest is commented.

I start the UI as follow:

Code: Select all

WCCOAui -p vision/startup.pnl -iconBar -menuBar -server http://127.0.0.1:79/
When I try to connect from the UI to the server I get the following log:

Code: Select all

Error in communication with HTTP server: 
http://127.0.0.1:79/_info?sessionToken=x
Error transferring http://127.0.0.1:79/_info?sessionToken=x - server replied: Not Found
Error in communication with HTTP server: 
http://127.0.0.1:79/_info?clientUpdateCheck=x&major=3&minor=16&patch=1&arch=windows-64
Error transferring http://para:@127.0.0.1:79/_info?clientUpdateCheck=x&major=3&minor=16&patch=1&arch=windows-64 - server replied: Not Found
Basically I am trying to use the

Code: Select all

WebView_ewo
and run a JavaScript code inside the UI

adaneau
Posts:310
Joined: Tue Feb 21, 2012 9:49 am

Re: User Interface cannot get server version with \"-server http://...\" parameter

Post by adaneau »

Hi,

Some tips.

1) Use webclient_http.ctl instead of rs_http.ctl

2) Entry for port is
[webClient]
httpPort = 79
httpsPort = 553

so not httpServerPort and no "" around value.

3) at manager starts check if port is good (in log viewer)

WCCOActrl (2), 2018.09.11 10:24:09.808, SYS, INFO, 2/http, Server listens on Port https:// - 555.
WCCOActrl (2), 2018.09.11 10:24:09.812, SYS, INFO, 2/http, Server listens on Port http:// - 79.

4) Use https if you can. If not disable it by setting port to 0.


BR
Alexandre

kfyraj
Posts:6
Joined: Mon Sep 10, 2018 12:57 pm

Re: User Interface cannot get server version with \"-server http://...\" parameter

Post by kfyraj »

Hi Alexandre,

Thanks a lot for the tips.

It did work. Just a note one has to give permission to the client from the device manager (system management->settings->device manager and the unlock for), even if the client is local.

However, I will try to connect with https, but I believe that I have to create the certifications, is that right?

Beste Regard
Klajdo

adaneau
Posts:310
Joined: Tue Feb 21, 2012 9:49 am

Re: User Interface cannot get server version with \"-server http://...\" parameter

Post by adaneau »

Hi Kladjo,

There is already a self signed certificate inside WinCC OA for https. You'll just need to accept it with your browser.

About unlocking devices, yes this is necessary but you can also check the box to always accept connection (security risk however).

Glad to helped you.

BR
Alexandre

4 posts • Page 1 of 1