Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-1983

OpenTM2 create TM timeout on big file upload

    XMLWordPrintable

Details

    • High
    • -

    Description

      problem

      When creating TM with an uploaded TM file, this may result in a timeout depending on the TM size. The timeout in tis special case configured to 10 seconds.

      The produced error message:

      ERROR Zend_Http_Client_Adapter_Exception: E9999 - Read timed out after 10 seconds
      in core /home/tlauria/libaries/zf1-php7.3/library/Zend/Http/Client/Adapter/Socket.php (511)
      Request: PUT /editor/worker/55911?cleanupSessionAfterRun=1
      Trace:
      #0 /home/tlauria/libaries/zf1-php7.3/library/Zend/Http/Client/Adapter/Socket.php(329): Zend_Http_Client_Adapter_Socket->_checkSocketReadTimeout()
      #1 /home/tlauria/libaries/zf1-php7.3/library/Zend/Http/Client.php(1089): Zend_Http_Client_Adapter_Socket->read()
      #2 /home/tlauria/www/translate5-master/application/modules/editor/Services/OpenTM2/HttpApi.php(361): Zend_Http_Client->request()
      #3 /home/tlauria/www/translate5-master/application/modules/editor/Services/OpenTM2/HttpApi.php(98): editor_Services_OpenTM2_HttpApi->request()
      #4 /home/tlauria/www/translate5-master/application/modules/editor/Services/OpenTM2/Connector.php(127): editor_Services_OpenTM2_HttpApi->createMemory()
      #5 /home/tlauria/www/translate5-master/application/modules/editor/Services/Connector.php(163): editor_Services_OpenTM2_Connector->addTm()
      #6 /home/tlauria/www/translate5-master/application/modules/editor/Services/ImportWorker.php(82): editor_Services_Connector->__call()
      #7 /home/tlauria/www/translate5-master/application/modules/editor/Services/ImportWorker.php(65): editor_Services_ImportWorker->doImport()
      #8 /home/tlauria/www/translate5-master/library/ZfExtended/Worker/Abstract.php(517): editor_Services_ImportWorker->work()
      #9 /home/tlauria/www/translate5-master/library/ZfExtended/Worker/Abstract.php(462): ZfExtended_Worker_Abstract->_run()
      #10 /home/tlauria/www/translate5-master/library/ZfExtended/Controllers/WorkerController.php(119): ZfExtended_Worker_Abstract->runQueued()
      #11 /home/tlauria/libaries/zf1-php7.3/library/Zend/Controller/Action.php(516): ZfExtended_WorkerController->putAction()
      #12 /home/tlauria/www/translate5-master/library/ZfExtended/Controllers/AAARestController.php(287): Zend_Controller_Action->dispatch()
      #13 /home/tlauria/libaries/zf1-php7.3/library/Zend/Controller/Dispatcher/Standard.php(308): ZfExtended_RestController->dispatch()
      #14 /home/tlauria/libaries/zf1-php7.3/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch()
      #15 /home/tlauria/libaries/zf1-php7.3/library/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
      #16 /home/tlauria/libaries/zf1-php7.3/library/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
      #17 /home/tlauria/www/translate5-master/library/ZfExtended/Application.php(47): Zend_Application->run()
      #18 /home/tlauria/www/translate5-master/library/ZfExtended/BaseIndex.php(147): ZfExtended_Application->run()
      #19 /home/tlauria/www/translate5-master/public/index.php(35): ZfExtended_BaseIndex->startApplication()
      #20 {main}

       

      Due the so cancelled PHP process the internally stored file name of the local TM was corrupted too. This was leading to the following errors when requesting the TM:

      ERROR ZfExtended_BadGateway: E9999 - Die angefragte OpenTM2 Instanz meldete folgenden Fehler:
      in LanguageResources /home/tlauria/www/translate5-master/application/modules/editor/Services/OpenTM2/Connector.php (479)
      User: manager (Thömas Lauria) ({F1D11C25-45D2-11D0-B0E2-444553540101})
      Request: GET /editor/languageresourceinstance/2259/download.tmx
      Extra: Array
      (
      [0] => stdClass Object
      (
      [type] => HTTP
      [error] => 404
      [url] => http://localhost:1984/otmmemoryservice/XXX.tm/
      [method] => GET
      )

      )

       

      This was fixed too, by saving the TM internally with the correct name before making the upload request.

       

      Attachments

        Activity

          People

            tlauria Thomas Lauria
            tlauria Thomas Lauria
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: