Uploaded image for project: 'FreePBX'
  1. FreePBX
  2. FREEPBX-20416

Slow Install results in Process Timeout

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: None
    • Component/s: Installation
    • Labels:
      None
    • Bug Tracker:
      Customer Issue
    • ToDo:
    • Asterisk Version:
      16.5.0
    • Distro Version:
      Stretch/9.9
    • Distro:
      Self Install Debian

      Description

      A slow install process (by executing "./install -n") results in a timeout caused by Symfonys Process default timeout of 60 seconds. Therefore any system command ("fwconsole ma install framework" in the example below, but also "fwconsole ma installlocal") can lead to a timeout on slower systems/internet connections.

      I successfully fixed this bug by increasing the default timeout to e.g. 180 seconds by adding

      
      $process->setTimeout(180);
      

      in installlib/installcommand.class.php:1023.

       
       
      {{bin is: /var/lib/asterisk/bin
      sbin is: /usr/sbin
      Symlinking /var/lib/asterisk/bin/fwconsole to /usr/sbin/fwconsole ...
      9812/9812 [============================] 100%Done
      Symlinking /var/lib/asterisk/bin/amportal to /usr/sbin/amportal ...Done
      Finishing up directory processes...Done!
      Running variable replacement...Done
      Creating missing #include files...Done
      Setting up Asterisk Manager Connection...Done
      Running through upgrades...
      Checking for upgrades..
      No further upgrades necessary
      Finished upgrades
      Setting FreePBX version to 15.0.11...Done
      Writing out /etc/amportal.conf...Done
      Writing out /etc/freepbx.conf...Done
      Chowning directories...
      Done
      Installing framework...In Process.php line 1335: The process "/usr/sbin/fwconsole ma install framework" exceeded the timeout
      of 60 seconds.
      install [--dbengine DBENGINE] [--dbname DBNAME] [--dbhost DBHOST] [--cdrdbname CDRDBNAME] [--dbuser DBUSER] [--dbpass DBPASS] [--user USER] [--group GROUP] [--dev-links] [--skip-install] [--webroot WEBROOT] [
      -astetcdir ASTETCDIR] [--astmoddir ASTMODDIR] [--astvarlibdir ASTVARLIBDIR] [--astagidir ASTAGIDIR] [--astspooldir ASTSPOOLDIR] [--astrundir ASTRUNDIR] [--astlogdir ASTLOGDIR] [--ampbin AMPBIN] [-ampsbin AM
      PSBIN] [--ampcgibin AMPCGIBIN] [--ampplayback AMPPLAYBACK] [-r|--rootdb] [-f|--force]}}

       

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                nthumann nthumann
                Reporter:
                nthumann nthumann
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  NextupJiraPlusStatus

                  Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.