No such Host is known

  • 11 September 2008
  • 3 replies
  • 6 views

Badge +3

I've been banging my head against this one for a couple of hours so I thought I'd share my pain and see if anyone has a solution.

I have a process that works in development that's not working in a staging environment.  The process uses a client event to request approval and sends email with the resulting status.  The destination user and to addresses are specified as K2:mydomainmyaccount.  When I run the process it's hung on the mail event.

Running in console mode, I can see the error: No Such Host Is known.

 In the Error Profile, I can see:Value cannot be null. Parameter name: address

 

If I specify the user as myaccount@mydomain.com, the process and email work correctly (albeit not using the preferred email address because K2 doesn't do the AD lookup in the mail event unless the to address contains both a ":" and a "")

My best guess is that there's something not quite right with AD or K2's querying.   Does anyone have any ideas on what I should be checking into?

 

 


3 replies

Badge +5

Have you tried setting the "To:" address to the actual email address property of the user?


In the User Browser, expand the K2 security label, find and expand the user.  You should be able to select the Email property of that user.


The variable shown in the wizard should look like:



K2:mydomainmyaccount.Email


 HTH...

Badge +3

Thank for the suggestion, but we're determining users dynamically right now, pulling the account names from a SmartObject to determine destination users.  The solution works in my virtual environment, but it's not functioning in the other environment.  One big difference between the environments is that the AD is the non-functioning environment is only Win2k and not Win2k3 like the virtual environment.

 

This is what I can see when I expand the logging to "ALL" for all categories in the hostServerLogging.config file:

 

 

Debug   28066 Mail Status.Status: Started
Debug   25020 Executing Server Event Mail Status(25), Act:Status Notification(21), Proc:TermsheetReview(52)
Debug   8047 Connected to 10.1.205.40:18
Debug   8039 Receiving 10.1.205.40:18 Bytes From 8
Debug   8039 Receiving 10.1.205.40:18 Bytes From 11
Debug   8037 Sending 10.1.205.40:18 Bytes to 42
Debug   8039 Receiving 10.1.205.40:18 Bytes From 8
Debug   8039 Receiving 10.1.205.40:18 Bytes From 1282
Debug   8037 Sending 10.1.205.40:18 Bytes to 171
Debug   8039 Receiving 10.1.205.40:18 Bytes From 8
Debug   8040 Processing 16 IOCP Bytes Related To 10.1.205.40:1
Debug   8038 Received 16 Bytes From 10.1.205.40:1
Debug   8040 Processing 191 IOCP Bytes Related To 10.1.205.40:1
Debug   8038 Received 191 Bytes From 10.1.205.40:1
Debug   1035 Session Marshal F339ECA4FA52BC557D3CFB8ABE4C3334.SourceCode.Security.UserRoleManager.Runtime.UserRoleManagerServer.GetDefaultLabelName
Debug   8040 Processing 61 IOCP Bytes Related To 10.1.205.40:1
Debug   8036 Sent 61 Bytes to 10.1.205.40:1
Debug   8040 Processing 16 IOCP Bytes Related To 10.1.205.40:1
Debug   8038 Received 16 Bytes From 10.1.205.40:1
Debug   8040 Processing 517 IOCP Bytes Related To 10.1.205.40:1
Debug   8038 Received 517 Bytes From 10.1.205.40:1
Debug   1035 Session Marshal F339ECA4FA52BC557D3CFB8ABE4C3334.SourceCode.Security.UserRoleManager.Runtime.UserRoleManagerServer.FormatItemName
Debug   8040 Processing 80 IOCP Bytes Related To 10.1.205.40:1
Debug   8036 Sent 80 Bytes to 10.1.205.40:1
Debug   8040 Processing 16 IOCP Bytes Related To 10.1.205.40:1
Debug   8038 Received 16 Bytes From 10.1.205.40:1
Debug   8040 Processing 191 IOCP Bytes Related To 10.1.205.40:1
Debug   8038 Received 191 Bytes From 10.1.205.40:1
Debug   1035 Session Marshal F339ECA4FA52BC557D3CFB8ABE4C3334.SourceCode.Security.UserRoleManager.Runtime.UserRoleManagerServer.GetDefaultLabelName
Debug   8040 Processing 61 IOCP Bytes Related To 10.1.205.40:1
Debug   8036 Sent 61 Bytes to 10.1.205.40:1
Debug   8040 Processing 16 IOCP Bytes Related To 10.1.205.40:1
Debug   8038 Received 16 Bytes From 10.1.205.40:1
Debug   8040 Processing 505 IOCP Bytes Related To 10.1.205.40:1
Debug   8038 Received 505 Bytes From 10.1.205.40:1
Debug   1035 Session Marshal F339ECA4FA52BC557D3CFB8ABE4C3334.SourceCode.Security.UserRoleManager.Runtime.UserRoleManagerServer.GetUser
Debug   5003 Username: K2:DEVDOMAINdshookowsky , extraData: null
Debug   8040 Processing 377 IOCP Bytes Related To 10.1.205.40:1
Debug   8036 Sent 377 Bytes to 10.1.205.40:1
Debug   8040 Processing 16 IOCP Bytes Related To 10.1.205.40:1
Debug   8038 Received 16 Bytes From 10.1.205.40:1
Debug   8040 Processing 191 IOCP Bytes Related To 10.1.205.40:1
Debug   8038 Received 191 Bytes From 10.1.205.40:1
Debug   1035 Session Marshal F339ECA4FA52BC557D3CFB8ABE4C3334.SourceCode.Security.UserRoleManager.Runtime.UserRoleManagerServer.GetDefaultLabelName
Debug   8040 Processing 61 IOCP Bytes Related To 10.1.205.40:1
Debug   8036 Sent 61 Bytes to 10.1.205.40:1
Debug   8040 Processing 16 IOCP Bytes Related To 10.1.205.40:1
Debug   8038 Received 16 Bytes From 10.1.205.40:1
Debug   8040 Processing 476 IOCP Bytes Related To 10.1.205.40:1
Debug   8038 Received 476 Bytes From 10.1.205.40:1
Debug   1035 Session Marshal F339ECA4FA52BC557D3CFB8ABE4C3334.SourceCode.Security.UserRoleManager.Runtime.UserRoleManagerServer.QueryGroupProperties
Debug   8040 Processing 1461 IOCP Bytes Related To 10.1.205.40:1
Debug   8036 Sent 1461 Bytes to 10.1.205.40:1
Debug   8040 Processing 16 IOCP Bytes Related To 10.1.205.40:1
Debug   8038 Received 16 Bytes From 10.1.205.40:1
Debug   8040 Processing 2182 IOCP Bytes Related To 10.1.205.40:1
Debug   8038 Received 2182 Bytes From 10.1.205.40:1
Debug   1035 Session Marshal F339ECA4FA52BC557D3CFB8ABE4C3334.SourceCode.Security.UserRoleManager.Runtime.UserRoleManagerServer.FindGroups
Info    24401 Authenticated K2:DEVDOMAINdshookowsky at 10.1.205.40:18 using Kerberos
Debug   8037 Sending 10.1.205.40:18 Bytes to 197
Debug   8039 Receiving 10.1.205.40:18 Bytes From 8
Debug   8039 Receiving 10.1.205.40:18 Bytes From 375
Debug   28053 Marshalling: OpenWorklist2 K2:DEVDOMAINdshookowsky
Debug   8040 Processing 1178 IOCP Bytes Related To 10.1.205.40:1
Debug   8036 Sent 1178 Bytes to 10.1.205.40:1
No such host is known
Debug   8037 Sending 10.1.205.40:18 Bytes to 28
Debug   8045 Disconnected From 10.1.205.40:18
Debug   15 ServerEvent: Value cannot be null.
Parameter name: address
Debug   28068 Mail Status.Status: Completed

Badge +3

More information:

When users are specified as DomainUserName (no K2 label), K2 notifications work, but mail events fail because the string isn't in the format of an email address.

 

Reply