Login  •  Register


UaServer can't register with LDS

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

UaServer can't register with LDS

Postby tuan_phan » 20 Jul 2017, 08:26

I have installed the UA Local Discovery Server (LDS) and edit ualds.ini file. Purpose for allow when UaServer register LDS without security

Code: Select all
[General]
# The OPCUA application uri used by the LDS.
ServerUri = urn:[gethostname]:UALocalDiscoveryServer

# maximum age of registered server entries before they expire in seconds. (Default=600)
ExpirationMaxAge = 600

# AllowLocalRegistration: (default=no) this will disable certificate trust checks for connections comming from
# localhost. Note that this is a security risk. Only enable this feature if you are aware of the full implications.
AllowLocalRegistration = yes

# Endpoint configuration
# Number of available endpoints
Endpoints/size = 1
Endpoints/0/Url = opc.tcp://[gethostname]:4840
Endpoints/0/SecurityPolicies = SecurityPolicy_None

[SecurityPolicy_None]
Url = http://opcfoundation.org/UA/SecurityPolicy#None
MessageSecurity = None


Then I register to LDS, see logfile :
[*]
ServerUri '' is invalid (needs to start with 'urn:' or 'http://')
[*]

So I can't register with LDS.

Any idea of where could be the mistake?

Thank you very much,
tuan_phan
Jr. Member
Jr. Member
 
Posts: 1
Joined: 20 Jul 2017, 08:16

Re: UaServer can't register with LDS

Postby Support Team » 26 Jul 2017, 13:19

Yes, read the error message. The problem is that the ServerUri is invalid. Your server seems to send an empty ApplicationUri. That is not allowed by OPC UA standard.
Check your server configuration to provide a valid ApplicationUri.
In our C++ DemoServer for example you can set the Uri in the ServerConfig.xml:
Code: Select all
<ServerUri>urn:[NodeName]:UnifiedAutomation:UaServerCpp</ServerUri>
Best regards
Unified Automation Support Team
User avatar
Support Team
Hero Member
Hero Member
 
Posts: 2439
Joined: 18 Mar 2011, 15:09

Re: UaServer can't register with LDS

Postby joshua.eliser » 03 Jan 2020, 18:43

Sorry to post on an old thread, but I'm having a problem with registering with the OPCUA LDS. I completely started over by using a fresh checkout of the LDS and the UA C++ SDK. I'm using the latest LDS application from the OPC Foundation (https://github.com/OPCFoundation/UA-LDS) and I'm using the UA SDK server examples. There is a section in the UA configuration for DiscoveryRegistration, and there is note for enabling the Url of the LDS. I did that in the UA configuration below ...

Code: Select all
        <!--Discovery configuration
            Configuration for registration with discovery server(s)-->
        <DiscoveryRegistration>
            <!--Flag indicating if the certificates should be exchanged with the windows certificate store -->
            <AutomaticCertificateExchange>false</AutomaticCertificateExchange>
            <!--Path of the local discovery server trust list. This is where the server copies it's certificate to
                if the file based store of the new LDS is used. -->
            <DiscoveryServerTrustListLocation></DiscoveryServerTrustListLocation>
            <!--Store name used for the local discovery server in the windows certificate store -->
            <DiscoveryServerStoreName>UA Applications</DiscoveryServerStoreName>
            <!--Certificate name of the local discovery server in the windows certificate store -->
            <DiscoveryServerCertificateName>UA Local Discovery Server</DiscoveryServerCertificateName>
            <!--Interval in milliseconds for registration with discovery server(s) -->
            <RegistrationInterval>30000</RegistrationInterval>
            <!--List of discovery servers to register with.
                If the list is empty, no registration is executed.
                Default is opc.tcp://localhost:4840 for the local discovery server.
                Additional remote discovery servers can be added -->
            <Url>opc.tcp://127.0.0.1:4840</Url>
        </DiscoveryRegistration>
        <!--Discovery configuration end-->


When the UA server example starts up and performs the LDS registration, the LDS application is closing the channel due to an error.

Code: Select all
Fri Jan  3 10:30:43 [11933]: Server startup complete. Host name is jeliser-thinkpad-x1.
Fri Jan  3 10:30:43 [11933]: Using certificate store at /opt/opcfoundation/ualds/pki/...
Fri Jan  3 10:30:43 [11933]: Opening endpoint 'opc.tcp://127.0.0.1:4840'...
Fri Jan  3 10:30:43 [11933]: Endpoint is open.
Fri Jan  3 10:30:45 [11933]: ualds_endpoint_callback called: Event=SecureChannelOpened, SecureChanneldId=0x00000001, uStatus=0x00000000
Fri Jan  3 10:30:45 [11933]: ualds_endpoint_callback: SecureChannel 0x00000001 opened with http://opcfoundation.org/UA/SecurityPolicy#None in mode 1 status 0x00000000!
Fri Jan  3 10:30:45 [11933]: [uastack] OpcUa_SecureListener_ProcessRequest: Closing channel due error 0x800B0000!


0x800B0000 corresponds to a UA_SCBADSERVICEUNSUPPORTED (https://documentation.unified-automation.com/uasdkhp/1.0.0/html/group__ua__statuscodes.html#ga00e7620685369f507e5394e90a436aee). I'm at a loss where to go from here. I looked through the UA server base class and didn't find anything that jumped out at me. I thought maybe there was a virtual method or something that was missing, but I couldn't find anything.

Thanks again for the help!
joshua.eliser
Jr. Member
Jr. Member
 
Posts: 3
Joined: 03 Jan 2020, 18:24

Re: UaServer can't register with LDS

Postby joshua.eliser » 03 Jan 2020, 18:56

Also, I'm using the demo version of the SDK while the PO is being processed. Is the discovery component of the server note included with the demo SDK?
joshua.eliser
Jr. Member
Jr. Member
 
Posts: 3
Joined: 03 Jan 2020, 18:24

Buy European fake and real passports, drivers license, ID ca

Postby EduardX » 06 Jan 2020, 16:20

w w w. Buyrealdocuments.cc do you want to travel to some other countries? Well, this can be the wish of many people who want to study in another country or get a job in another country. But you can’t make your wish a reality if you don’t have a passport. What to do then? Buy Database registered passport. Yes, you can buy real passport online and buy fake passport online from us. We offer fake passport for sale at an attractive price.

We understand and know your requirement as well as your situation. And that is the main reason why we are offering fake passport for sale. Have you lost your passport and worried that you cannot go to any other country ever? From us, you can buy real passport online as well as buy fake passport online. So Buy Database registered passport from us and remain tension-free.

The passports that we sell – both real and fake – maintain high-quality. If you buy real passport online, know that you can use it to travel to other countries. This is possible because the information entered in that passport will be registered into the database system and all your information will come up if one searches for you. If you buy fake passport online, you can use it inside the country only, as the information that contains in that document will not be entered into the database system. This is the only difference between a real and a fake passport. Buy Database registered passport and use it for the purpose you need it. Our fake passport for sale is something that you should not miss.


To get the additional information and place the order just visit our website:



w w w. buyrealdocuments.cc w w w. buyrealdocuments.cc



Keywords:

fake residence card European union
Buy fake permanent resident card
fake permanent resident card canada
fake resident alien card
Get fake us resident card
fake resident identity card number
fake permanent resident card usa
fake residence permit card
fake residence permit card uk
how to spot fake resident alien card
spotting a fake permanent resident card
how to spot a fake resident card
how to identify a fake resident card
how to tell a fake permanent resident card
how to identify a fake permanent resident card
how to spot a fake resident alien card
how to make a fake permanent resident card
how to get a fake permanent resident card
how to order a fake permanent resident card
what does a fake permanent resident card look like
permanent resident card fake vs real
permanent resident card real or fake
buy fake resident cards online
Buy fake permanent resident cards
buy fake residence card australia
get fake resident card
obtain fake residence permit card
get fake residence permit card uk
getfake uk residence card
order fake eu residence card
order fake resident cards
order fake permanent resident cards
fake national id card maker
fake national identity card
fake national id card online
fake national id card creator
fake national id card
fake national id for paypal
create a fake national id card
make a fake national id card
fake national id bangladesh
fake national id card bd
fake national id card online bd
create fake national id card bangladesh
fake national id card maker online
fake numero d'identification national france
free fake national id card generator
fake national id generator
fake national id card generator
fake national id number generator
fake nigeria national id generator
how to make fake national id card
how to create fake national id card
bd fake national id card maker
fake national id italy
fake national id indonesia
national identity card fake id
fake us national id number
fake national id indonesia
fake saudi national id
fake national id card trickbd
fake national id uk
fake us national id card
European fake national id
fake driving permit maker
fake driving permit canada
how to get a fake driving permit
european driving permit fake
fake british driving license
fake driving license Europe template
fake driving license ireland
fake driving license spain
fake driving license portugal
fake driving license germany
fake driving license in usa
fake driving license id uk
fake driving license in uk
fake driving license france
fake driver's permit maker
european driving permit real or fake
fake driving permits
fake driver's permit test
real driver's license id
real driver's license illinois
real driver's license nc
real driver's license tn
real driver's license ny
real driver's license arkansas
real driver's license application
real driver's license ar
real driver's license az
real id driver's license application
a real driver's license
a real id driver's license
the real driver's license california
the real driver's license ca
buy a real drivers license
buy real drivers license
buy real drivers license online
buy real registered drivers license
buy real fake drivers license
real driver's license cost
real driver's license ca requirements
real i d driver's license
real or enhanced driver's license

To get the additional information and place the order just visit our website:



w w w. buyrealdocuments.cc w w w. buyrealdocuments.cc
EduardX
Jr. Member
Jr. Member
 
Posts: 1
Joined: 28 Dec 2019, 02:43
Location: Slovenia

Re: UaServer can't register with LDS

Postby joshua.eliser » 13 Jan 2020, 20:42

We've purchased the licensed version of the UA C++ SDK and I'm still having the same problem. The UA server examples is unable to register with the LDS.
joshua.eliser
Jr. Member
Jr. Member
 
Posts: 3
Joined: 03 Jan 2020, 18:24


Return to C++ based OPC UA SDK

Who is online

Users browsing this forum: No registered users and 0 guests