Avatar

Please consider registering
guest

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
Avatar
timbo
New Member
Members
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
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 382
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

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

InetAddress.getLocalHost();

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: 78

Currently Online:
20 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 89

pramanj: 86

ibrahim: 68

kapsl: 57

gjevremovic: 49

TimK: 41

Fransua33: 39

fred: 36

Rainer Versteeg: 32

peterrob45: 25

Member Stats:

Guest Posters: 0

Members: 857

Moderators: 12

Admins: 1

Forum Stats:

Groups: 3

Forums: 14

Topics: 872

Posts: 3676

Newest Members:

virgie88y3407, bennetcole, timbo, malissa6674, Markus Johansson, jonathancamp, michell9665, bqpkelvin990391, Christopher, HuMa

Moderators: Jouni Aro: 827, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 382, Heikki Tahvanainen: 402, Jukka Asikainen: 1, Teppo Uimonen: 15, Markus Johansson: 1

Administrators: admin: 0