Can't connect to Unified Automation Demo Server
Moderator: uaexpert
-
- Jr. Member
- Posts: 2
- Joined: 21 Sep 2011, 20:27
Can't connect to Unified Automation Demo Server
I am trying to connect to the Unified Automation Demo Server but I get an error that says:
\"BadCommunicationError 800500000\"
What does this mean? I am trying to connect annoymously. I am running Windows XP.
\"BadCommunicationError 800500000\"
What does this mean? I am trying to connect annoymously. I am running Windows XP.
Last edited by montagjm on 07 Feb 2013, 10:48, edited 1 time in total.
- Support Team
- Hero Member
- Posts: 3070
- Joined: 18 Mar 2011, 15:09
Re:Can't connect to Unified Automation Demo Server
This error code can be caused by several different issues depending on the configuration you are trying to use e.e local/remote, with/without security, discovery/direct connect.
Are you using \"none\" oder \"BasicRSAxxx\" security policy?
> if error comes only on secured endpoint, trust the clients certificate on the server side
Is that a local or a remote connect?
> try if local connect is possible
Are you using DNS name or IP address?
> try ping on the name and the IP
Are you getting the error during discovery or on the direct connect?
> use the \"advanced tab\" type the server url directly
Are you using \"none\" oder \"BasicRSAxxx\" security policy?
> if error comes only on secured endpoint, trust the clients certificate on the server side
Is that a local or a remote connect?
> try if local connect is possible
Are you using DNS name or IP address?
> try ping on the name and the IP
Are you getting the error during discovery or on the direct connect?
> use the \"advanced tab\" type the server url directly
Last edited by Support Team on 07 Feb 2013, 10:48, edited 1 time in total.
Best regards
Unified Automation Support Team
Unified Automation Support Team
-
- Jr. Member
- Posts: 2
- Joined: 21 Sep 2011, 20:27
Re:Can't connect to Unified Automation Demo Server
I am trying to use the option for no security policy to simply. If believe that my server supports this. Both the server and the client are on the same local PC. I am using a URI to connect with.
If found that my previous error was because the server was not started. I assumed it would autostart as with OPC DA. I now have a new error about a BadIdentityTokenInvalid.
17:08:57.003 | Server Node | Demo 4 Server | Connecting failed with error 'BadIdentityTokenInvalid (0x80200000)'
17:08:50.050 | Server Node | Demo 4 Server | User forced to continue the connection to a possible unsecure server.
17:08:35.144 | Server Node | Demo 4 Server | The server returned a valid certificate.
17:08:35.144 | Server Node | Demo 4 Server | ApplicationUri: 'uri://KYHEDSK801V8Q1/DemoServer/OpcUa/Server_4'
17:08:35.144 | Server Node | Demo 4 Server | Found security policy 'http://opcfoundation.org/UA/SecurityPolicy#None'
17:08:35.128 | Server Node | Demo 4 Server | Found endpoint 'opc.tcp://localhost:4880/DemoServer'
17:07:44.239 | Server Node | Demo 4 Server | Could not connect to server: BadTimeout (0x800A0000)
Does this mean the certificate is bad?
Thanks,
Jonathan
If found that my previous error was because the server was not started. I assumed it would autostart as with OPC DA. I now have a new error about a BadIdentityTokenInvalid.
17:08:57.003 | Server Node | Demo 4 Server | Connecting failed with error 'BadIdentityTokenInvalid (0x80200000)'
17:08:50.050 | Server Node | Demo 4 Server | User forced to continue the connection to a possible unsecure server.
17:08:35.144 | Server Node | Demo 4 Server | The server returned a valid certificate.
17:08:35.144 | Server Node | Demo 4 Server | ApplicationUri: 'uri://KYHEDSK801V8Q1/DemoServer/OpcUa/Server_4'
17:08:35.144 | Server Node | Demo 4 Server | Found security policy 'http://opcfoundation.org/UA/SecurityPolicy#None'
17:08:35.128 | Server Node | Demo 4 Server | Found endpoint 'opc.tcp://localhost:4880/DemoServer'
17:07:44.239 | Server Node | Demo 4 Server | Could not connect to server: BadTimeout (0x800A0000)
Does this mean the certificate is bad?
Thanks,
Jonathan
Last edited by montagjm on 07 Feb 2013, 10:48, edited 1 time in total.
- Support Team
- Hero Member
- Posts: 3070
- Joined: 18 Mar 2011, 15:09
Re:Can't connect to Unified Automation Demo Server
Which server are you connecting to?
> In some cases UaExpert sets the wrong PolicyId in the UserIdentityToken sent to the server. If the server checks this value and rejects the connection if it is wrong, you would get the error you described.
This behavior will get fixed in the next release of UaExpert.
> In some cases UaExpert sets the wrong PolicyId in the UserIdentityToken sent to the server. If the server checks this value and rejects the connection if it is wrong, you would get the error you described.
This behavior will get fixed in the next release of UaExpert.
Last edited by Support Team on 07 Feb 2013, 10:48, edited 1 time in total.
Best regards
Unified Automation Support Team
Unified Automation Support Team
-
- Sr. Member
- Posts: 16
- Joined: 02 Sep 2011, 19:30
Re:Can't connect to Unified Automation Demo Server
I board a java sdk an OPC UA server that I run in eclipse but I can not connect to the server with the client UA EXPERT that is installed on my machine with the local server. I use an anonymous connection but I can connect to the remote server to another computer. \"Could not connect to server: BadTimeout (0x800A0000)\" .Can you help me please!!
Last edited by kp85 on 07 Feb 2013, 10:48, edited 1 time in total.
- Support Team
- Hero Member
- Posts: 3070
- Joined: 18 Mar 2011, 15:09
Re:Can't connect to Unified Automation Demo Server
There are many possibilities that could lead to this problem.
Can you connect to your Java server with other clients? If not, the problem probably is in the server and not in UaExpert. If so, please open a new thread describing your problem exactly in the 'JAVA based OPC UA SDK' forum.
Also, you can try to increase the Connect and Call Tiemout settings in UaExpert (Settings -> Configure UaExpert... -> General.ConnectTimeout/CallTimeout) if the timeout values are set too short.
Can you connect to your Java server with other clients? If not, the problem probably is in the server and not in UaExpert. If so, please open a new thread describing your problem exactly in the 'JAVA based OPC UA SDK' forum.
Also, you can try to increase the Connect and Call Tiemout settings in UaExpert (Settings -> Configure UaExpert... -> General.ConnectTimeout/CallTimeout) if the timeout values are set too short.
Last edited by Support Team on 07 Feb 2013, 10:48, edited 1 time in total.
Best regards
Unified Automation Support Team
Unified Automation Support Team
-
- Sr. Member
- Posts: 16
- Joined: 02 Sep 2011, 19:30
Re:Can't connect to Unified Automation Demo Server
thank you it was the time out
bye:woohoo:
bye:woohoo:
Last edited by kp85 on 07 Feb 2013, 10:48, edited 1 time in total.
-
- Hero Member
- Posts: 20
- Joined: 07 Feb 2013, 11:01
Re:Can't connect to Unified Automation Demo Server
Hi! I'm trying to connect to the DemoServer with Certificate, but I get the "BadIdentityTokenInvalid"-error. With Anonymous it works well.
I've installed certificates in "Manage Certificates" and copied to certs from rejected. In server properties, what certificate and key should be selected? The newest certificate and key in server folder?
I get something like this:
Found endpoint 'opc.tcp://XXX:4841
Found security policy 'http://opcfoundation.org/UA/SecurityPolicy#None'
Found endpoint 'opc.tcp://XXX:4841
Found security policy 'http://opcfoundation.org/UA/SecurityPol ... ic128Rsa15'
ApplicationUri: 'urn: XXX:UnifiedAutomation:UaDemoserver'
The server returned valid certificate.
Connecting failed with error 'BadIdentityTokenInvalid'
XXX being localhost. And I'm using Windows 7.
I've installed certificates in "Manage Certificates" and copied to certs from rejected. In server properties, what certificate and key should be selected? The newest certificate and key in server folder?
I get something like this:
Found endpoint 'opc.tcp://XXX:4841
Found security policy 'http://opcfoundation.org/UA/SecurityPolicy#None'
Found endpoint 'opc.tcp://XXX:4841
Found security policy 'http://opcfoundation.org/UA/SecurityPol ... ic128Rsa15'
ApplicationUri: 'urn: XXX:UnifiedAutomation:UaDemoserver'
The server returned valid certificate.
Connecting failed with error 'BadIdentityTokenInvalid'
XXX being localhost. And I'm using Windows 7.
- Support Team
- Hero Member
- Posts: 3070
- Joined: 18 Mar 2011, 15:09
Re:Can't connect to Unified Automation Demo Server
Hello,
for new questions please always open a new topic to prevent confusion about the thread topic.
It seems that you're trying to connect to the server with a certificate user token. The SDK supports this but the UaDemoserver - at the moment - does not.
Please note that there is a difference between using encryption (which implies the usage of certificates) and authentication (in case of user token certificate with certificates).
For successfully connecting to a server using the user token certificate, the server needs to support it and needs to know about all certificates that might be used for authentication.
Best regards
Unified Automation Support Team
for new questions please always open a new topic to prevent confusion about the thread topic.
It seems that you're trying to connect to the server with a certificate user token. The SDK supports this but the UaDemoserver - at the moment - does not.
Please note that there is a difference between using encryption (which implies the usage of certificates) and authentication (in case of user token certificate with certificates).
For successfully connecting to a server using the user token certificate, the server needs to support it and needs to know about all certificates that might be used for authentication.
Best regards
Unified Automation Support Team
Best regards
Unified Automation Support Team
Unified Automation Support Team
-
- Hero Member
- Posts: 20
- Joined: 07 Feb 2013, 11:01
Re:Can't connect to Unified Automation Demo Server
Ah, ok. Thanks a lot!
- Support Team
- Hero Member
- Posts: 3070
- Joined: 18 Mar 2011, 15:09
Re:Can't connect to Unified Automation Demo Server
This topic is solved and has been locked by the administrator.
For new issues, please create a new topic.
For new issues, please create a new topic.
Best regards
Unified Automation Support Team
Unified Automation Support Team