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