Endpoint Manager will not install

Anyone ever have a problem where Endpoint Manager will not install? I tried upgrading it, and it hung after untaring, so I uninstalled it, and am trying to reinstall it, but it keeps hanging after it untars the package.

In freepbx_dbug it just says:

2014-Apr-02 11:33:42 /usr/share/pear/DB.php:635
[WARNING]: preg_match() expects parameter 2 to be string, array given

2014-Apr-02 11:33:42 /usr/share/pear/DB/mysql.php:324
[WARNING]: mysql_query() expects parameter 1 to be string, array given

2014-Apr-02 11:33:42 /var/www/html/admin/modules/endpoint/install.php:133
[NOTICE]: Undefined variable: t41Fix

2014-Apr-02 11:33:43 /var/www/html/admin/modules/endpoint/install.php:518
[NOTICE]: Undefined variable: pys_net

2014-Apr-02 11:33:43 /var/www/html/admin/modules/endpoint/install/panasonicInstall.php:1808
[NOTICE]: Undefined variable: ftpUser

So if anyone has any advice I would love to hear it, I’m starting to miss having end point manager :slight_smile:

How long did you wait?

I set the upgrade in motion on Friday night, and gave it 2 days before I decided it was not working. After uninstalling it and trying to reinstall it, I’ve only waited 2 hours before giving up.

What Distro are you using?

what do your freepbx debug logs show?

We are running AsteriskNOW 3.0.0.

Nothing appears in freepbx_debug during the install.

In freepbx_dbug after I press the confirm button this appears:

2014-Apr-03 11:18:31 /usr/share/pear/DB.php:635
[WARNING]: preg_match() expects parameter 2 to be string, array given

2014-Apr-03 11:18:31 /usr/share/pear/DB/mysql.php:324
[WARNING]: mysql_query() expects parameter 1 to be string, array given

2014-Apr-03 11:18:31 /var/www/html/admin/modules/endpoint/install.php:133
[NOTICE]: Undefined variable: t41Fix

2014-Apr-03 11:18:31 /var/www/html/admin/modules/endpoint/install.php:518
[NOTICE]: Undefined variable: pys_net

2014-Apr-03 11:18:31 /var/www/html/admin/modules/endpoint/install/panasonicInstall.php:1808
[NOTICE]: Undefined variable: ftpUser

Is there any other log I should be looking in?

My gut says its a php memory limit issue. The module appears to be exceeding php memory limits that are setup by AsteriskNOW.

Looking at my web server error messages I see:

[Thu Apr 03 12:48:34 2014] [error] [client 10.1.80.31] PHP Fatal error: Allowed memory size of 104857600 bytes exhausted (tried to allocate 71 bytes) in /var/www/html/admin/modules/endpoint/install/basefilefix.php on line 11, referer: http://astnow.prconline.com/admin/config.php

Now to google to figure out where to increase taht.

For anyone in the future that runs into this problem, in /etc/php.d/freepbx.ini the memory limit is set to 100m. Increasing that (in my case I did 512m) fixes everything.