on 01-15-2013 2:14 PM
Need to know the procedure like how you can add your sybase unwired server in Sybase Relay Hosted server.
After subscribing,in manage account,i clicked on Add sybase unwired Farm.In that i have checked Replication Based for SUP 2.1.3,entered random farm ID,but confused in entering server name???.....
Since it is alphanumeric i cant enter my Server IP,I have entered my Local hostname of SUP server......is it correct???
Regards,
Rehan
Hi Rehen,
Steps to subscription:
1)Open sybase relay service portal.
2)Create Sybase Unwired Platform farm (MBS/RBS/DCN), give some farmname and node value (you can give any string,no need of IP, this is to just for further reference).
3)It will give you following details:type, host,ports,farmname,token,protocal details.
Steps to configure in SCC.
1)Open SCC,click on 'localhost@localhost' -> Relay server.
2)Click on new and give host and port values which was generated earlier.
3)Give farm ID and select the type(MBS/RBS/DCN) and click on '+'.
4)Select the new generated row and Node Id(which was given by you earlier) and token value which is genereted earlier and add it by clicking +.
5)Click on finish.
Kindly let me know for any clarrifications.
Regards
Buddha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Buddhapuneeth,
Thanks for your quick reply,i have done the above steps.
My outbound enabler status in SCC is Running but when i retrieved log,I found the following
I. 2013-01-15 18:38:09. <UpChannel-0000> parseHTTP(): HTTP status received: 200
I. 2013-01-15 18:38:09. <UpChannel-0000> parseHeaders: successfully parsed Content-Length: 4
I. 2013-01-15 18:38:09. <UpChannel-0000> parseHeaders: successfully parsed Connection or Proxy-Connection header
I. 2013-01-15 18:38:09. <UpChannel-0000> Successfully connected to relay server: RELAYSERVER02.sybase.com:80
I. 2013-01-15 18:38:09. <UpChannel-0000> PacketRead packet-len: 2
I. 2013-01-15 18:38:09. <UpChannel-0000> PacketRead packet-opcode: 0xf001
I. 2013-01-15 18:38:09. <UpChannel-0000> packet read..
I. 2013-01-15 18:38:09. <UpChannel-0000> successful packet read.. processing it..
I. 2013-01-15 18:38:09. <UpChannel-0000> packet:
I. 2013-01-15 18:38:09. <UpChannel-0000> 0000: 02 00 01 F0 ....
E. 2013-01-15 18:38:09. <UpChannel-0000> Error: Encountered authentication error with Relay Server, Farm ID or backend server ID could be invalid
I. 2013-01-15 18:38:09. <UpChannel-0000> packet read..
E. 2013-01-15 18:38:09. <UpChannel-0000> Failed to read response from Relay Server. Connection closed by server!
I. 2013-01-15 18:38:09. <UpChannel-0000> Restart OE instance requested.
I. 2013-01-15 18:38:09. <UpChannel-0000> Terminating..
I. 2013-01-15 18:38:09. <UpChannel-0000> Releasing connect mutex
I. 2013-01-15 18:38:09. <DnChannel-0000> Acquired connect mutex
I. 2013-01-15 18:38:09. <DnChannel-0000> Releasing connect mutex
I. 2013-01-15 18:38:09. <DnChannel-0000> Restart OE instance requested.
I. 2013-01-15 18:38:09. <DnChannel-0000> Sender thread terminating..
I. 2013-01-15 18:38:10. <Main-0000> Restarting
I. 2013-01-15 18:38:10. <Main-0000> Stop using Relay Server RELAYSERVER02.sybase.com:80
I. 2013-01-15 18:38:10. <Main-0000> Waiting for worker thread to terminate. _socketsCount: 0
I. 2013-01-15 18:38:10. <Backend-0000> Done Run()
I have given the same username and password in outbound enabler connection setting(http user and http password) that i used to login in Sybase hosted Relay server........then how come authentication error???
Hi Rehan,
No need to provide Username and password details in outbound enabler.
Follow this steps:
1. Click on new.
2.Give type (messaging/replication) ,Unwired server port,relayserver host,relay server port (http or https), unwired farm id and node name(which you had given earlier).
3.Click next, here provide only proxy server.
4.Click next and finish, don't provide any additional details.
Try these steps and let me know if you are facing any problems.(delete previous one and re-configure outbound enabler).
Regards
Buddha Puneeth
Hi,
Followed ur guidance but still getting the following error:
. 2013-01-16 16:49:53. <UpChannel-0000> parseHTTP(): HTTP status received: 200
I. 2013-01-16 16:49:53. <UpChannel-0000> parseHeaders: successfully parsed Content-Length: 4
I. 2013-01-16 16:49:53. <UpChannel-0000> parseHeaders: successfully parsed Connection or Proxy-Connection header
I. 2013-01-16 16:49:53. <UpChannel-0000> Successfully connected to relay server: RELAYSERVER02.sybase.com:80
I. 2013-01-16 16:49:53. <UpChannel-0000> PacketRead packet-len: 2
I. 2013-01-16 16:49:53. <UpChannel-0000> PacketRead packet-opcode: 0xf001
I. 2013-01-16 16:49:53. <UpChannel-0000> packet read..
I. 2013-01-16 16:49:53. <UpChannel-0000> successful packet read.. processing it..
I. 2013-01-16 16:49:53. <UpChannel-0000> packet:
I. 2013-01-16 16:49:53. <UpChannel-0000> 0000: 02 00 01 F0 ....
E. 2013-01-16 16:49:53. <UpChannel-0000> Error: Encountered authentication error with Relay Server, Farm ID or backend server ID could be invalid
I. 2013-01-16 16:49:53. <UpChannel-0000> packet read..
E. 2013-01-16 16:49:53. <UpChannel-0000> Failed to read response from Relay Server. Connection closed by server!
I. 2013-01-16 16:49:53. <UpChannel-0000> Restart OE instance requested.
I. 2013-01-16 16:49:53. <UpChannel-0000> Terminating..
I. 2013-01-16 16:49:53. <UpChannel-0000> Releasing connect mutex
I. 2013-01-16 16:49:53. <DnChannel-0000> Acquired connect mutex
I. 2013-01-16 16:49:53. <DnChannel-0000> Releasing connect mutex
I. 2013-01-16 16:49:53. <DnChannel-0000> Restart OE instance requested.
I. 2013-01-16 16:49:53. <DnChannel-0000> Sender thread terminating..
I. 2013-01-16 16:49:54. <Main-0000> Restarting
I. 2013-01-16 16:49:54. <Main-0000> Stop using Relay Server RELAYSERVER02.sybase.com:80
I. 2013-01-16 16:49:54. <Main-0000> Waiting for worker thread to terminate. _socketsCount: 0
I. 2013-01-16 16:49:54. <Backend-0000> Done Run()
Hi Rehan,
Yes, on SUP server in SCC. When you entered details of your Relay server, relay server port, your FarmID, your NodeID and also you need to provide the Token also.
Looks like you missed the token part.
Please take a look at attached pic for reference. This is done in SCC top node --> Relay Servers tab.
After this you can go to your server node and click on Outbound enabler. Here just select the farm details you just entered and if to access internet from your machine you need any proxy then enter details in next screen.
Regards,
Abhishek Joshi
Hi Abhishek,
As per your guidance,I am able to solve the authentication error
And in iOS frontend, m encountering the below error:
onConnectionStatusChanged: status = 105, code = 571, message = Error: 571 Detail: Session failed Source: /Users/iotabuilder/svn/Pioneer/MOClients/iPhone/../Common/C/moClient.cpp 1024.
While trying to register application.I am doing as follows:
SUPApplication* app = [SUPApplication getInstance];
app.applicationIdentifier = @"MyApp";
CallbackHandler *acb = (CallbackHandler *) [CallbackHandler getInstance];
[acb retain];
[app setApplicationCallback:acb];
SUPConnectionProperties* props = app.connectionProperties;
NSString *portno = @"80";
[props setServerName:@"relayserver.sybase.com"];
[props setPortNumber:[portno intValue]];
[props setNetworkProtocol:@"http"];
[props setUrlSuffix:@""];
[props setFarmId:@"Rehan.FarmMBS"];
SUPLoginCredentials* login = [SUPLoginCredentials getInstance];
login.username = @"rehan";
login.password = nil;
props.activationCode = @"123";
props.securityConfiguration = @"admin";
props.loginCredentials = login;
[app registerApplication:800];
if(![MyApp1DB databaseExists])
{
[MyApp1DB createDatabase];
[MyApp1DB generateEncryptionKey];
[MyApp1DB closeConnection];
SUPConnectionProfile *cp = [MyApp1DB getConnectionProfile];
[SUPPOApprovalVault setString:@"encryptionkey" withValue:[cp getEncryptionKey]];
[cp.syncProfile setDomainName:@"default"];
[cp setAsyncReplay:NO];
[cp setServerName:@"relayserver.sybase.com"];
[cp setPortNumber:[portno intValue]];
[cp setNetworkProtocol:@"http"];
[cp setNetworkStreamParams:@"trusted_certificates=;compression=none;url_suffix=/ias_relay_server/client/rs_client.dll/Rehan.FarmRBS"];
[cp setUser:@"rehan"];
[cp setPassword:@"mypassword"];
[cp enableTrace:NO];
[cp.syncProfile enableTrace:YES];
}
Hi Rehan,
I think it's better to open a new thread for iOS issue as this one was intended for relay server configuration.
Just to cross-check that relay is not creating problem, please check your Outbound enabler's log on SUP server. Make sure that you get a call from your device in the log.
Regards,
Abhishek Joshi
Hi Rehan,
Above shows only iOS logs. But i got following logs from your RSOE in the email
I.
2013-01-19 11:12:01. <UpChannel-0000> parseHTTP(): HTTP status received:
407
I. 2013-01-19 11:12:01. <UpChannel-0000> parseHTTP(): proxy auth required
- need to resend with credentials
I. 2013-01-19 11:12:01. <UpChannel-0000> parseHeaders: successfully
parsed Content-Length: 322
I. 2013-01-19 11:12:01. <UpChannel-0000> parseHeaders: successfully parsed
Proxy-Authenticate
I. 2013-01-19 11:12:01. <UpChannel-0000> parseHeaders: successfully
parsed Connection or Proxy-Connection header
I. 2013-01-19 11:12:01. <UpChannel-0000> absorbing data (len=322)
I. 2013-01-19 11:12:01. <UpChannel-0000> resending POST request
I. 2013-01-19 11:12:01. <UpChannel-0000> Wrote request headers:
POST http://RELAYSERVER02.sybase.com:80/ias_relay_server/server/rs_server.dll
HTTP/1.1
Content-Type: application/octet-stream
Content-Length: 216
Host: RELAYSERVER02.sybase.com:80
Proxy-Authorization: Basic dnNob2RjXDI5NjA1NTpuYWptdW5AMTIzNA==
Connection: close
Proxy-Connection: close
User-Agent: IAS_OE_UpChannel
I. 2013-01-19 11:13:00. <OEHost> starting garbage collection..
I. 2013-01-19 11:13:00. <Backend-0000> Performing session GC for oeIdx: 0
I. 2013-01-19 11:13:00. <Backend-0000> Done session GC for oeIdx: 0
I. 2013-01-19 11:14:00. <OEHost> starting garbage collection..
I. 2013-01-19 11:14:00. <Backend-0000> Performing session GC for oeIdx: 0
I. 2013-01-19 11:14:00. <Backend-0000> Done session GC for oeIdx: 0
E. 2013-01-19 11:14:01.
<UpChannel-0000> doHTTPRequest: read reply failed
I. 2013-01-19 11:14:01. <UpChannel-0000> Terminating..
I. 2013-01-19 11:14:01. <UpChannel-0000> Releasing connect mutex
I. 2013-01-19 11:14:01. <DnChannel-0000> Acquired connect mutex
I. 2013-01-19 11:14:01. <DnChannel-0000> Releasing connect mutex
I. 2013-01-19 11:14:01. <DnChannel-0000> Restart OE instance requested.
I. 2013-01-19 11:14:01. <DnChannel-0000> Sender thread terminating..
If you have a proxy in between you SUP server and internet then please provide details in Outbound enabler tab in the properties section.
I couldnt see your RSOE log in above reply and only iOS log is visible hence got confused. 🙂
Regards,
Abhishek Joshi
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.