cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure Sybase Hosted Relay Server with own SUP server

rehan_sayed
Explorer
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

rehan_sayed
Explorer
0 Kudos

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???

Former Member
0 Kudos

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

rehan_sayed
Explorer
0 Kudos

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()

0 Kudos

Hi Rehan,

Looks like you have provided wrong token for the backend-node.

Regards,

Abhishek Joshi

rehan_sayed
Explorer
0 Kudos

Hi abhishek,

What do you exactly mean by Backend node???

Is it my SUP server.....??

0 Kudos

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

rehan_sayed
Explorer
0 Kudos

Hi,

I have done the above steps for replication as well as messaging earlier and passed the token as well.

Still encountering the same error.But I have modified the regrelayserver.properties which was mentioned in Sybase hosted Relay Server.

0 Kudos

Hi Rehan,

When you connect to relay server through SCC, you dont have to modify regrelayserver.properties file. Just check the configuration details once and start Outbound enables and give verbosity 5 and paste log here

Regards,

Abhishek Joshi

rehan_sayed
Explorer
0 Kudos

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];
           
           
           
           
        }

0 Kudos

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

0 Kudos

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

Answers (0)