21:55, EEST
August 13, 2019
Hey everybody
I’m using prosys Simulation Server as test application for a custom OPC-UA client.
On Mac everythings works like a charm, but on Linux: CentOS7 newest updates the server could not be started up.
The error-message is, that the ApplicationURI should not contain any “localhost” – thus i found no setting where to enter the ApplicationURI by hand, it seems that the program gets it from some environmental variable – the given hostname on system (could be derived by ‘hostname’ command of shell) of the machine significantly differs from “localhost”.
I’m using SimulationServer 3.2.0-214.
Any help would be appreciated.
Thanks in advance
15:17, EEST
April 3, 2012
Hi,
The part for the ApplicationURI is defined from hostname of the machine on it is run. This is because in OPC UA each server must have network-unique ApplicationURI and hostname fulfills this purpose.
One reason why this error could happen if for some reason the hostname could not be determined. Another is that currently the check validates that the String “localhost” does not exist in any part of the ApplicationURI, i.e. if you were to happen to have hostname literally e.g. as “localhost2”, it would cause the problem.
Due to one workaround we have in the (java) SDK which is used to make the application is if java call
fails, then it just uses “localhost” (so it causes this if it fails, could probably be better…). It does log a WARN level log if this happens. However in it’s current release version the software only displays logs in the “Debug Log” tab, which is not that convinient, but maybe you could check if anything is shown there.
Alternatively it is possible that something is broken in the newest CentOS. Additionally seaching e.g. https://stackoverflow.com/questions/1881546/inetaddress-getlocalhost-throws-unknownhostexception might provide some solutions.
We will try to reproduce the problem here as well.
Most Users Ever Online: 1919
Currently Online:
6 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 735
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1523
Posts: 6449
Newest Members:
rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerley, Thomassnism, biancacraft16Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0
Administrators: admin: 1