[FATAL] XML error: Empty document at line 1

FreePBX 2.5.1
Asterisk 1.4.21.2
Pikatech Warp Appliance

Trying to bring this thing back from the dead, initial trouble report was a blank web page after updating an extensions display name. Last ditch effort was to run ./install_amp and here is what I get.

/persistent2/usr/src/freepbx-2.5.1 # ./install_amp
Checking for PEAR DB…OK
Checking for PEAR Console::Getopt…OK
Checking user…OK
Checking if Asterisk is running…running with PID: 14167…OK
Checking for /etc/amportal.conf…OK
Reading /etc/amportal.conf…OK
Checking for /etc/asterisk/asterisk.conf…OK
Reading /etc/asterisk/asterisk.conf…OK
Using asterisk as PBX Engine
Checking for Asterisk version…1.4.21.2
Checking for selinux…sh: getenforce: not found
OK
Connecting to database…OK
Checking current version of AMP…2.5.1
Installing new FreePBX files…/etc/asterisk/vm_email.inc has been changed from the original version.
Overwrite (y=yes/a=all/n=no/d=diff/s=shell/x=exit)? ay
OK (505 files copied, 0 skipped)
Configuring install for your environment…amportal…freepbx_engine…done
apply username/password changes to conf files…chown: /var/lib/asterisk/moh: No such file or directory
chown: /var/lib/asterisk/mohmp3: No such file or directory
chown: /var/spool/asterisk/voicemail: Operation not permitted
done
creating missing #include files…OK
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
OK
Setting permissions on files…chown: /var/lib/asterisk/moh: No such file or directory
chown: /var/lib/asterisk/mohmp3: No such file or directory
chown: /var/spool/asterisk/voicemail: Operation not permitted
OK
Checking for upgrades…No upgrades found
Generating AMP configs…
Generating Configurations.conf, (if Asterisk is not running, you will get an error
In case of error, start Asterisk and hit the red bar in the GUI to generate the Configuraions.conf files

Checking for PEAR DB…OK
Checking for PEAR Console::Getopt…OK
Running module install.php and install.sql scripts
Checking for /etc/amportal.conf …OK
Bootstrapping /etc/amportal.conf …OK
Parsing /etc/amportal.conf …OK
Parsing /etc/asterisk/asterisk.conf …OK
Connecting to database…OK
Connecting to Asterisk manager interface…OK
[FATAL] XML error: Empty document at line 1
Generating AMP configs…OK
Checking core…
Checking if directdids need migrating…already done
updating zap callgroup, pickupgroup…not needed
checking for delay_answer field …already exists
checking for pricid field …already exists
Checking for Global var RECORDING_STATE…Already exists!
[FATAL] XML error: Empty document at line 1

The following error(s) occured:

  • Module is already enabled
    installed
    Checking music…

[FATAL] XML error: Empty document at line 1

The following error(s) occured:

  • Module is already enabled
    installed
    Checking recordings…
    checking for fcode field…already exists
    checking for fcode_pass field…already exists
    [FATAL] XML error: Empty document at line 1

The following error(s) occured:

  • Module is already enabled
    installed
    Checking customappsreg…
    [FATAL] XML error: Empty document at line 1

The following error(s) occured:

  • Module is already enabled
    installed
    Checking framework…
    The following error(s) occured:
  • Module cannot be enabled
    enabled
    Checking infoservices…
    [FATAL] XML error: Empty document at line 1

The following error(s) occured:

  • Module is already enabled
    installed
    Checking dashboard…
    [FATAL] XML error: Empty document at line 1

The following error(s) occured:

  • Module is already enabled
    installed
    Checking voicemail…
    [FATAL] XML error: Empty document at line 1

The following error(s) occured:

  • Module is already enabled
    installed
    Checking featurecodeadmin…
    [FATAL] XML error: Empty document at line 1

The following error(s) occured:

  • Module is already enabled
    installed
    Please update your modules and reload Asterisk by visiting http://localhost/admin

  • Note: It’s possible that if you click the red ‘Update Now’ bar BEFORE *
  • updating your modules, your machine will start dropping calls. Ensure *
  • that all modules are up to date BEFORE YOU CLICK THE RED BAR. As long *
  • as this is observed, your machine will be fully functional whilst the *
  • upgrade is in progress. *

Navigating to the web interface now shows the “FATAL ERROR XML error: Empty document at line 1” which pops up a few times during the installation.

Is the disk full?

/usr/src # df -h
Filesystem Size Used Available Use% Mounted on
rootfs 126.6M 104.5M 15.7M 87% /
/dev/root 126.6M 104.5M 15.7M 87% /
/dev/mtdblock6 64.0M 17.6M 46.4M 28% /persistent
/dev/mtdblock7 64.0M 43.8M 20.2M 68% /persistent1
/dev/mtdblock8 64.0M 25.8M 38.2M 40% /persistent2
tmpfs 36.0M 56.0k 35.9M 0% /tmp
/dev/mmcblk0p1 1.8G 133.6M 1.7G 7% /mnt/sd

According to Pika /dev/root & /dev/root are typically @ 92% used space and shouldn’t cause a problem with the unit.

/persistent2/usr/src/freepbx-2.5.1 # rm -r /var/www/html/*
/persistent2/usr/src/freepbx-2.5.1 # ./install_amp

Errors gone, web interface is reachable.