Problems with freepbx GUI

Hello.

My freepbx asterisk server is working perfectly but i have big problemes with the http gui which is very very slow and don’t work correctly.

All modules are up to date but when i go on the http gui, it take minutes to update each page (when i click on a link it can take one to several minutes to opdate each time) and i can not apply updates because of the retrieve_conf problem.

Also, all the options of the menu are now availaible as you can see on this screen shot.

Someone know what can be the issue ??

Thank you




It’s slow because the settings in manager.conf do not match the settings in advanced settings.

thank you for your answer.

can you tell me what are the setting that can cause this issue ?

it is strange

i did not change anything and today it is not slow at all and the “apply config” works… these did not happen since several weeks…

i really don’t understand

if the issue was a setting, it would not change itselfe ???

Are you hosted CyberLynk?
Are you running iSymphony?

i have installed the freepbx distro on a computer that is in our office.

There is isymphony on it but i never used it

I was running very slow just like you on a CyberLynk hosted system and they took a look and suggested I disable iSymphony if I wasn’t using it since it was memory intensive… “freed up about 25% of your memory, which will allow Linux to cache more things in memory, and should improve performance”. We did and it made a nice difference. I am VERY new to this but its worth a try.

http://www.freepbxhosting.com/blog/disable-isymphony-on-freepbx/

now i have this error when i want to set outbound routes

someone know how to fix it ?

Add Route

FATAL ERROR

DB Error: unknown error

Error selecting from fax

Trace Back

/var/www/html/admin/modules/fax/functions.inc.php:425 die_freepbx()
[0]: DB Error: unknown error

Error selecting from fax

/var/www/html/admin/modules/fax/functions.inc.php:192 fax_get_destinations()

/var/www/html/admin/helpers/freepbx_helpers.php:123 fax_destinations()

/var/www/html/admin/modules/core/page.routing.php:817 drawselects()
[0]:
[1]: 0
[2]:
[3]: 1
[4]: Normal Congestion
[5]:

/var/www/html/admin/config.php:509 include()
[0]: /var/www/html/admin/modules/core/page.routing.php

and now i have this error when i do a
amportal stop

[root@pc47 dev]# amportal stop

Fetching FreePBX settings with gen_amp_conf.php…
/usr/local/sbin/amportal: line 50: [FATAL]: command not found

/var/lib/asterisk/bin/freepbx_engine: line 98: [FATAL]: command not found
**** WARNING: ERROR IN CONFIGURATION ****
astrundir in ‘/etc/asterisk’ is set to but the directory
does not exists. Attempting to create it with: 'mkdir -p ’

mkdir: missing operand
Try `mkdir --help’ for more information.
**** ERROR: COULD NOT CREATE ****
Attempt to execute 'mkdir -p ’ failed with an exit code of 1
You must create this directory and the try again.
[root@pc47 dev]#

Your database is corrupt or not running.

Thank you for your answer, i really appreciate your help.

and is there something i can do to fix that ?

when i do a service mysqld start
it says :
[root@pc47 ~]# service mysqld start
Timeout error occurred trying to start MySQL Daemon.
Starting mysqld: [FAILED]

and the gui says :

FATAL ERROR

DB Error: connect failed

Trace Back

/var/www/html/admin/libraries/db_connect.php:71 die_freepbx()
[0]: DB Error: connect failed

/var/www/html/admin/bootstrap.php:91 require_once()
[0]: /var/www/html/admin/libraries/db_connect.php

/etc/freepbx.conf:9 require_once()
[0]: /var/www/html/admin/bootstrap.php

/var/www/html/admin/config.php:99 include_once()
[0]: /etc/freepbx.conf

Thank you

hello

i have checked the issue and it seem that there is a full disk problem. the mysql log returns an error 28

And i see that the root filesystem is full

root@pc47 ~]# df -m
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/mapper/vg_pc47-lv_root
50397 47966 0 100% /
tmpfs 1860 0 1860 0% /dev/shm
/dev/sda1 485 34 426 8% /boot
/dev/mapper/vg_pc47-lv_home
1823105 196 1730301 1% /home
[root@pc47 ~]#

Is it possible to do something that the recorded calls will be saved in another file system ?

Thank you

You have lots of room in /home which indicates a “roll your own” setup, but asterisk’s home directory is (unconventionally) /var/lib/asterisk , either set up a “bind mount” for /var/spool/asterisk/monitor into that file system if you are linux savvy, or using the gooey (with careful prepreparation :slight_smile: ) change the “directory layout” settings in advanced settings after you have consumed the wiki and understand how Asterisk/FreePBX works in depth, you could even set asterisk’s home directory to be in into /home/asterisk.

(In asterisk the recordings go to whatever is eventually defined as

astspooldir (by default “=> /var/spool/asterisk”)

in

/etc/asterisk/asterisk.conf

)

I would also note that if this box is “just” an Asterisk/FreePBX server then at this point in time you might want to boot the machine with a “recovery” linux iso/usb and use parted or gparted to resize all your mountpoints moving home back to your root partition, as by default there is really only disadvantages in a separately mounted /home file system, all the big stuff like asterisk,mysql, the web server and the log files are all in /var, these will all eventually get “big”, your /home directory . . . “Not so much” :wink:

hello

i have moved the recordings in another filesystem and now mysqld is working.

But when i go in the gui i still got this error.

Do you know what it is ?

Thank you

FATAL ERROR

SELECT value FROM admin WHERE variable = 'version'<br> DB Error: unknown error

Trace Back

/var/www/html/admin/libraries/utility.functions.php:240 die_freepbx()
  [0]: SELECT value FROM admin WHERE variable = 'version'<br> DB Error: unknown error

/var/www/html/admin/modules/userman/functions.inc/guihooks.php:14 getversion()

/var/www/html/admin/libraries/BMO/GuiHooks.class.php:237 userman_configpageinit()
  [0]: index

/var/www/html/admin/config.php:312 GuiHooks-&gt;doConfigPageInits()
  [0]: index
  [1]:

Given your guessed deployment method, If I where you, I would start over with a “distribution” iso that is known to work, it should take care of partitioning and setup for you without you needing to reconfigure anything yourself.

hello

thank you for you answer but THIS IS a freepbx distrib iso.

I downloaded two months ago the dvd on freepbx site, i booted on the dvd and it installed automaticly !!!

Forgive me for disagreeing, but I don’t think that any distro would set up your partitioning as you have described it it you followed the defaults offered.

hello and thank you

i have to say that i have installed it myself and i don’t have the skill nor the knowledge to install it myself on linux !!! even if i wanted to do it myself, i couldn’t do it !!!

so i can really assure you that this is a freepbx destrib with default install.

About my last issue, do you know what is it from and if i can fix it ?

Thank you

I have an idea of what it is, but it’s a deep rabbit hole you would need to go down to fix it :-), I suggest you fix it by just re-installing everything from scratch, then restore from your last good backup, it will be easier for everyone concerned.