Please consider registering

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
ApplicationUri CentOS7 - Server does not start up - should not contain localhost
August 13, 2019
21:55, EEST
New Member
Forum Posts: 1
Member Since:
August 13, 2019
sp_UserOfflineSmall Offline

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

August 15, 2019
15:17, EEST
Bjarne Boström
Forum Posts: 941
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline


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.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
12 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 130

pramanj: 86

ibrahim: 75

rocket science: 72

Francesco Zambon: 62

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 651

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1415

Posts: 6035

Newest Members:

u310498, ntd, francescac, yahya95, leomajoe, Gus, sdfsdfsdfsd, riatuccker

Moderators: Jouni Aro: 988, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 941, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 25, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 288, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1