1 Reply Latest reply on Jul 12, 2012 9:48 AM by Oesia Project

    "Could not establish network connection" doing a sync source

      We have a source that serves apparently "large amount of data": about 50Kb information in a hash. That is, in the query method: @result = <50Kb hash> . When the rhoconnect server executes the sync method of the source it spends a lot of time. Then, the client waits and 60 seconds after the client receives the error "Could not establish network connection". The server continues the process and execute the other sync sources. In the meanwhile, the client receives the same error one or two more times. After the total sync finalize, there are no data in the client model. It was deleted.

       

      We also tried the total sync disabling the sync in the source and all works fine for the other sources. It seems like the server has a timeout of 60 seconds in the sync method.

       

      How can we resolve this issue?

       

      We think this issue is directly in relation to this thread:

         https://developer.motorolasolutions.com/thread/1796

       

       

      The terminal log can be viewed at   http://s3.amazonaws.com/rhodes-app-logs/storemanager_12_Jul_2012_08_10.txt

         

      If it helps, this is our trace of the total sync (we have two traces in every method, one at the beginning and one at the end), it shows the time line. Our problematic source is "NonExecuteMotive":

       

      [04:07:04 PM 2012-07-12] Use of the GET /api/application is deprecated. Use GET /api/application/query instead.

      [04:07:06 PM 2012-07-12] BEGIN Meeting::initialize - User: TM0021

      [04:07:06 PM 2012-07-12] END Meeting::initialize - User: TM0021

      [04:07:10 PM 2012-07-12] BEGIN Meeting::login - User: TM0021

      [04:07:10 PM 2012-07-12] END Meeting::login - User: TM0021

      [04:07:10 PM 2012-07-12] BEGIN Meeting::query - User: TM0021

      [04:07:11 PM 2012-07-12] END Meeting::query - User: TM0021

      [04:07:11 PM 2012-07-12] BEGIN Meeting::sync - User: TM0021

      [04:07:13 PM 2012-07-12] END Meeting::sync - User: TM0021

      [04:07:14 PM 2012-07-12] BEGIN Meeting::logoff - User: TM0021

      [04:07:14 PM 2012-07-12] END Meeting::logoff - User: TM0021

       

      [04:07:22 PM 2012-07-12] Use of the GET /api/application is deprecated. Use GET /api/application/query instead.

      [04:07:23 PM 2012-07-12] BEGIN NonExecuteMotive::initialize - User: TM0021

      [04:07:24 PM 2012-07-12] END NonExecuteMotive::initialize - User: TM0021

      [04:07:27 PM 2012-07-12] BEGIN NonExecuteMotive::login - User: TM0021

      [04:07:27 PM 2012-07-12] END NonExecuteMotive::login - User: TM0021

      [04:07:28 PM 2012-07-12] BEGIN NonExecuteMotive::query - User: TM0021

      [04:07:29 PM 2012-07-12] END NonExecuteMotive::query - User: TM0021

      [04:07:30 PM 2012-07-12] BEGIN NonExecuteMotive::sync - User: TM0021

      [04:07:52 PM 2012-07-12] Use of the GET /api/application is deprecated. Use GET /api/application/query instead.

      [04:07:54 PM 2012-07-12] END NonExecuteMotive::sync - User: TM0021

      [04:07:56 PM 2012-07-12] BEGIN NonExecuteMotive::logoff - User: TM0021

      [04:07:57 PM 2012-07-12] BEGIN NonExecuteMotive::initialize - User: TM0021

      [04:07:57 PM 2012-07-12] END NonExecuteMotive::logoff - User: TM0021

      [04:07:57 PM 2012-07-12] END NonExecuteMotive::initialize - User: TM0021

       

      [04:08:23 PM 2012-07-12] Use of the GET /api/application is deprecated. Use GET /api/application/query instead.

      [04:08:28 PM 2012-07-12] BEGIN Observation::initialize - User: TM0021

      [04:08:29 PM 2012-07-12] END Observation::initialize - User: TM0021

      [04:08:53 PM 2012-07-12] Use of the GET /api/application is deprecated. Use GET /api/application/query instead.

      [04:08:56 PM 2012-07-12] BEGIN Observation::login - User: TM0021

      [04:08:56 PM 2012-07-12] END Observation::login - User: TM0021

      [04:08:57 PM 2012-07-12] BEGIN Observation::query - User: TM0021

      [04:08:57 PM 2012-07-12] BEGIN Observation::initialize - User: TM0021

      [04:08:58 PM 2012-07-12] END Observation::initialize - User: TM0021

      [04:08:58 PM 2012-07-12] END Observation::query - User: TM0021

      [04:08:59 PM 2012-07-12] BEGIN Observation::sync - User: TM0021

      [04:09:03 PM 2012-07-12] END Observation::sync - User: TM0021

      [04:09:05 PM 2012-07-12] BEGIN Observation::logoff - User: TM0021

      [04:09:05 PM 2012-07-12] END Observation::logoff - User: TM0021

      [04:09:14 PM 2012-07-12] Use of the GET /api/application is deprecated. Use GET /api/application/query instead.

      [04:09:19 PM 2012-07-12] BEGIN Observation::initialize - User: TM0021

      [04:09:19 PM 2012-07-12] END Observation::initialize - User: TM0021

       

      [04:09:34 PM 2012-07-12] Use of the GET /api/application is deprecated. Use GET /api/application/query instead.

      [04:09:35 PM 2012-07-12] BEGIN Operator::initialize - User: TM0021

      [04:09:36 PM 2012-07-12] END Operator::initialize - User: TM0021

      [04:09:39 PM 2012-07-12] BEGIN Operator::login - User: TM0021

      [04:09:40 PM 2012-07-12] END Operator::login - User: TM0021

      [04:09:40 PM 2012-07-12] BEGIN Operator::query - User: TM0021

      [04:09:41 PM 2012-07-12] END Operator::query - User: TM0021

      [04:09:41 PM 2012-07-12] BEGIN Operator::sync - User: TM0021

      [04:09:48 PM 2012-07-12] END Operator::sync - User: TM0021

      [04:09:48 PM 2012-07-12] BEGIN Operator::logoff - User: TM0021

      [04:09:49 PM 2012-07-12] END Operator::logoff - User: TM0021

      [04:10:01 PM 2012-07-12] Use of the GET /api/application is deprecated. Use GET /api/application/query instead.

      [04:10:02 PM 2012-07-12] BEGIN Operator::initialize - User: TM0021

      [04:10:02 PM 2012-07-12] END Operator::initialize - User: TM0021

       

      [04:10:11 PM 2012-07-12] Use of the GET /api/application is deprecated. Use GET /api/application/query instead.

      [04:10:13 PM 2012-07-12] BEGIN Reading::initialize - User: TM0021

      [04:10:13 PM 2012-07-12] END Reading::initialize - User: TM0021

      [04:10:18 PM 2012-07-12] BEGIN Reading::login - User: TM0021

      [04:10:18 PM 2012-07-12] END Reading::login - User: TM0021

      [04:10:19 PM 2012-07-12] BEGIN Reading::query - User: TM0021

      [04:10:19 PM 2012-07-12] END Reading::query - User: TM0021

      [04:10:20 PM 2012-07-12] BEGIN Reading::sync - User: TM0021

      [04:10:21 PM 2012-07-12] END Reading::sync - User: TM0021

      [04:10:22 PM 2012-07-12] BEGIN Reading::logoff - User: TM0021

      [04:10:22 PM 2012-07-12] END Reading::logoff - User: TM0021

       

      [04:10:30 PM 2012-07-12] Use of the GET /api/application is deprecated. Use GET /api/application/query instead.

      [04:10:32 PM 2012-07-12] BEGIN Subtask::initialize - User: TM0021

      [04:10:32 PM 2012-07-12] END Subtask::initialize - User: TM0021

      [04:10:32 PM 2012-07-12] Use of the POST /api/list_users is deprecated. Use POST /api/user/list_users instead.

      [04:10:33 PM 2012-07-12] BEGIN Subtask::login - User: TM0021

      [04:10:34 PM 2012-07-12] END Subtask::login - User: TM0021

      [04:10:34 PM 2012-07-12] BEGIN Subtask::query - User: TM0021

      [04:10:35 PM 2012-07-12] END Subtask::query - User: TM0021

       

      [04:10:45 PM 2012-07-12] Use of the GET /api/application is deprecated. Use GET /api/application/query instead.

      [04:10:47 PM 2012-07-12] BEGIN SystemOrigin::initialize - User: TM0021

      [04:10:48 PM 2012-07-12] END SystemOrigin::initialize - User: TM0021

      [04:10:51 PM 2012-07-12] BEGIN SystemOrigin::login - User: TM0021

      [04:10:51 PM 2012-07-12] END SystemOrigin::login - User: TM0021

      [04:10:52 PM 2012-07-12] BEGIN SystemOrigin::query - User: TM0021

      [04:10:53 PM 2012-07-12] END SystemOrigin::query - User: TM0021

      [04:10:53 PM 2012-07-12] BEGIN SystemOrigin::sync - User: TM0021

      [04:10:55 PM 2012-07-12] END SystemOrigin::sync - User: TM0021

      [04:10:56 PM 2012-07-12] BEGIN SystemOrigin::logoff - User: TM0021

      [04:10:57 PM 2012-07-12] END SystemOrigin::logoff - User: TM0021

      [04:11:05 PM 2012-07-12] Use of the GET /api/application is deprecated. Use GET /api/application/query instead.

      [04:11:07 PM 2012-07-12] BEGIN SystemOrigin::initialize - User: TM0021

      [04:11:07 PM 2012-07-12] END SystemOrigin::initialize - User: TM0021

       

      [04:11:17 PM 2012-07-12] Use of the GET /api/application is deprecated. Use GET /api/application/query instead.

      [04:11:18 PM 2012-07-12] BEGIN Task::initialize - User: TM0021

      [04:11:19 PM 2012-07-12] END Task::initialize - User: TM0021

      [04:11:22 PM 2012-07-12] BEGIN Task::login - User: TM0021

      [04:11:22 PM 2012-07-12] END Task::login - User: TM0021

      [04:11:23 PM 2012-07-12] BEGIN Task::query - User: TM0021

      [04:11:24 PM 2012-07-12] END Task::query - User: TM0021

      [04:11:24 PM 2012-07-12] BEGIN Task::sync - User: TM0021

      [04:11:26 PM 2012-07-12] END Task::sync - User: TM0021

      [04:11:26 PM 2012-07-12] BEGIN Task::logoff - User: TM0021

      [04:11:27 PM 2012-07-12] END Task::logoff - User: TM0021

       

      Regards,

      Oesía

        • Re: "Could not establish network connection" doing a sync source

          I answer myself. We resolve it.

           

          There are two main timeout parameters in the client - server architecture.

           

          - Rhoconnect Thin server timeout:

             It can be found in the .yml configuration file needed to start thin instance, tipically at /etc/thin/<app_name>.yml path:

                 (...)

                 timeout: 30

                 (...)

              We changed it to:

                (...)

                timeout: 300

                (...)

           

          - Client timeout:

             In the rhoconfig.txt:

                # timeout of network requests in seconds (30 by default)

                #net_timeout = 60

             We changed it to:

                # timeout of network requests in seconds (30 by default)

                net_timeout = 300

           

          Regards,

          Oesía