[SOLVED]Getting Data from Online Server...Cant Reach Online Server

I am trying to upgrade to 12 from 2.11. So far it’s a disaster and my system is down. VERY bummed out.

I can’t refresh because I keep getting a 255 error. If It try to upgrade modules I get “Retrieved Module XML Was Empty”

I tried “amportal a ma refresh signatures” but it says it can’t reach the online server, or that the XML was empty.

root@raspbx:~# amportal a ma refreshsignatures

Please wait...

Getting Data from Online Server...Cant Reach Online Server
root@raspbx:~# amportal a ma refreshsignatures

Please wait...

Getting Data from Online Server...Cant Reach Online Server
root@raspbx:~# amportal a ma refreshsignatures

Please wait...

Getting Data from Online Server...Done
Checking Signatures of Modules...
Checking announcement...Signature Invalid
	Refreshing announcement
The following error(s) occured:
 - Retrieved Module XML Was Empty
root@raspbx:~#

What do I do??? Please help!

I am having the same issue with one of my boxes. Has anyone figured out what is going on? Thanks.

I have this on multiple servers. Maybe it has something to do with the sagnoma buyout?

Maybe I am just weird but I am a little glad I am not the only one with the issue. I tried again this morning and same thing!

No. everything is working fine. Please give us more information. Speculating only makes things worse.

I am seeing errors like this is freepbx_dbug:

2015-Jan-13 21:59:47	/var/www/html/admin/page.modules.php:367
[NOTICE]: ob_flush(): failed to flush buffer. No buffer to flush

2015-Jan-13 21:59:47	/var/www/html/admin/page.modules.php:259
[NOTICE]: Undefined variable: modules_online

2015-Jan-13 21:59:47	/var/www/html/admin/page.modules.php:367
[NOTICE]: ob_flush(): failed to flush buffer. No buffer to flush

2015-Jan-13 21:59:47	/var/www/html/admin/page.modules.php:259
[NOTICE]: Undefined variable: modules_online

2015-Jan-13 21:59:48	/var/www/html/admin/page.modules.php:367
[NOTICE]: ob_flush(): failed to flush buffer. No buffer to flush

2015-Jan-13 21:59:48	/var/www/html/admin/page.modules.php:259
[NOTICE]: Undefined variable: modules_online

2015-Jan-13 21:59:48	/var/www/html/admin/page.modules.php:367
[NOTICE]: ob_flush(): failed to flush buffer. No buffer to flush

2015-Jan-13 21:59:48	/var/www/html/admin/page.modules.php:259
[NOTICE]: Undefined variable: modules_online

2015-Jan-13 21:59:48	/var/www/html/admin/page.modules.php:367
[NOTICE]: ob_flush(): failed to flush buffer. No buffer to flush

2015-Jan-13 21:59:48	/var/www/html/admin/page.modules.php:259
[NOTICE]: Undefined variable: modules_online

2015-Jan-13 21:59:48	/var/www/html/admin/page.modules.php:367
[NOTICE]: ob_flush(): failed to flush buffer. No buffer to flush

2015-Jan-13 21:59:48	/var/www/html/admin/page.modules.php:259
[NOTICE]: Undefined variable: modules_online

2015-Jan-13 21:59:48	/var/www/html/admin/page.modules.php:367
[NOTICE]: ob_flush(): failed to flush buffer. No buffer to flush

2015-Jan-13 21:59:48	/var/www/html/admin/page.modules.php:259
[NOTICE]: Undefined variable: modules_online

2015-Jan-13 21:59:48	/var/www/html/admin/page.modules.php:367
[NOTICE]: ob_flush(): failed to flush buffer. No buffer to flush

2015-Jan-13 21:59:48	/var/www/html/admin/page.modules.php:259
[NOTICE]: Undefined variable: modules_online

2015-Jan-13 21:59:49	/var/www/html/admin/page.modules.php:367
[NOTICE]: ob_flush(): failed to flush buffer. No buffer to flush

2015-Jan-13 21:59:49	/var/www/html/admin/page.modules.php:259
[NOTICE]: Undefined variable: modules_online

2015-Jan-13 21:59:49	/var/www/html/admin/page.modules.php:367
[NOTICE]: ob_flush(): failed to flush buffer. No buffer to flush

2015-Jan-13 21:59:49	/var/www/html/admin/page.modules.php:259
[NOTICE]: Undefined variable: modules_online

2015-Jan-13 21:59:49	/var/www/html/admin/page.modules.php:367
[NOTICE]: ob_flush(): failed to flush buffer. No buffer to flush

2015-Jan-13 21:59:49	/var/www/html/admin/page.modules.php:259
[NOTICE]: Undefined variable: modules_online

2015-Jan-13 21:59:49	/var/www/html/admin/page.modules.php:367
[NOTICE]: ob_flush(): failed to flush buffer. No buffer to flush

2015-Jan-13 21:59:49	/var/www/html/admin/config.php:547
[NOTICE]: ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush

2015-Jan-14 06:34:20	/var/www/html/admin/libraries/BMO/GPG.class.php:510
[DEPRECATION_WARNING]: Comments starting with '#' are deprecated in Unknown on line 20

2015-Jan-14 06:34:20	/var/www/html/admin/libraries/BMO/GPG.class.php:510
[DEPRECATION_WARNING]: Comments starting with '#' are deprecated in Unknown on line 33

2015-Jan-14 06:34:20	/var/www/html/admin/libraries/BMO/GPG.class.php:510
[DEPRECATION_WARNING]: Comments starting with '#' are deprecated in Unknown on line 29

Those are “notices” not errors.

Try dropping down to the CLI and running

wget http://mirror.freepbx.org/all-12.0.xml

Do you get an xml file back with data inside?

When I try upgrading modules I get this error at the top of the page.

Warning: Error retrieving updates from online repository(s) (http://mirror1.freepbx.org,http://mirror2.freepbx.org). Online modules are not available.

I click confirm and this is what comes up in the popup window.

Please wait while module actions are performed

Downloading and Installing callrecording
Downloading callrecording
Error(s) downloading callrecording:
Retrieved Module XML Was Empty
Downloading and Installing cdr
Downloading cdr
Error(s) downloading cdr:
Retrieved Module XML Was Empty
Downloading and Installing conferences
Downloading conferences
Error(s) downloading conferences:
Retrieved Module XML Was Empty
Downloading and Installing conferencespro
Downloading conferencespro
Error(s) downloading conferencespro:
Retrieved Module XML Was Empty
Downloading and Installing core
Downloading core
Error(s) downloading core:
Retrieved Module XML Was Empty
Downloading and Installing cos
Downloading cos
Error(s) downloading cos:
Retrieved Module XML Was Empty
Downloading and Installing dashboard
Downloading dashboard
Error(s) downloading dashboard:
Retrieved Module XML Was Empty
Downloading and Installing directory
Downloading directory
Error(s) downloading directory:
Retrieved Module XML Was Empty
Downloading and Installing endpoint
Downloading endpoint
Error(s) downloading endpoint:
Retrieved Module XML Was Empty
Downloading and Installing extensionroutes
Downloading extensionroutes
Error(s) downloading extensionroutes:
Retrieved Module XML Was Empty
Downloading and Installing fax
Downloading fax
Error(s) downloading fax:
Retrieved Module XML Was Empty
Downloading and Installing faxpro
Downloading faxpro
Error(s) downloading faxpro:
Retrieved Module XML Was Empty
Downloading and Installing featurecodeadmin
Downloading featurecodeadmin
Error(s) downloading featurecodeadmin:
Retrieved Module XML Was Empty
Downloading and Installing motif
Downloading motif
Error(s) downloading motif:
Retrieved Module XML Was Empty
Downloading and Installing paging
Downloading paging
Error(s) downloading paging:
Retrieved Module XML Was Empty
Downloading and Installing pagingpro
Downloading pagingpro
Error(s) downloading pagingpro:
Retrieved Module XML Was Empty
Downloading and Installing parking
Downloading parking
Error(s) downloading parking:
Retrieved Module XML Was Empty
Downloading and Installing parkpro
Downloading parkpro
Error(s) downloading parkpro:
Retrieved Module XML Was Empty
Downloading and Installing queues
Downloading queues
Error(s) downloading queues:
Retrieved Module XML Was Empty
Downloading and Installing restart
Downloading restart
Error(s) downloading restart:
Retrieved Module XML Was Empty
Downloading and Installing ringgroups
Downloading ringgroups
Error(s) downloading ringgroups:
Retrieved Module XML Was Empty
Downloading and Installing sipsettings
Downloading sipsettings
Error(s) downloading sipsettings:
Retrieved Module XML Was Empty
Downloading and Installing sipstation
Downloading sipstation
Error(s) downloading sipstation:
Retrieved Module XML Was Empty
Downloading and Installing timeconditions
Downloading timeconditions
Error(s) downloading timeconditions:
Retrieved Module XML Was Empty
Downloading and Installing userman
Downloading userman
Error(s) downloading userman:
Retrieved Module XML Was Empty
Downloading and Installing vmblast
Downloading vmblast
Error(s) downloading vmblast:
Retrieved Module XML Was Empty
Downloading and Installing voicemail
Downloading voicemail
Error(s) downloading voicemail:
Retrieved Module XML Was Empty
Downloading and Installing weakpasswords
Downloading weakpasswords
Error(s) downloading weakpasswords:
Retrieved Module XML Was Empty

From the main freepbx status page it has a security warning that my modules are unsigned and should be redownloaded. Which is ok since I just was upgrading. So I try to follow the procedure from this site

http://wiki.freepbx.org/display/F2/Module+Signing

and this is what I get:

[root@pbx01 ~]# amportal a ma refreshsignatures

Fetching FreePBX settings with gen_amp_conf.php…

Getting Data from Online Server…Cant Reach Online Server

The wget command works from me and I get an xml file

[root@pbx01 ~]# ls -l
total 860
-rw-r–r-- 1 root root 806183 Jan 14 12:16 all-12.0.xml

wget works for me as well:

root@raspbx:~# wget http://mirror.freepbx.org/all-12.0.xml
--2015-01-14 09:28:23--  http://mirror.freepbx.org/all-12.0.xml
Resolving mirror.freepbx.org (mirror.freepbx.org)... 162.253.134.144
Connecting to mirror.freepbx.org (mirror.freepbx.org)|162.253.134.144|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/xml]
Saving to: ‘all-12.0.xml’

    [  <=>                                                                                           ] 806,183     2.01MB/s   in 0.4s

2015-01-14 09:28:24 (2.01 MB/s) - ‘all-12.0.xml’ saved [806183]

Run:

/var/lib/asterisk/bin/freepbx_setting MODULEADMINWGET 1

same as before (but command worked):

root@raspbx:~# /var/lib/asterisk/bin/freepbx_setting MODULEADMINWGET 1
trying to run as user asterisk:

[MODULEADMINWGET] changed from previous value: [] to new value: [1]

root@raspbx:~# amportal a ma refreshsignatures

Please wait...

Getting Data from Online Server...Done
Checking Signatures of Modules...
Checking announcement...Signature Invalid
	Refreshing announcement
The following error(s) occured:
 - Retrieved Module XML Was Empty
root@raspbx:~# amportal a ma refreshsignatures

Please wait...

Getting Data from Online Server...Cant Reach Online Server
root@raspbx:~#

Then do the reverse:

/var/lib/asterisk/bin/freepbx_setting MODULEADMINWGET 0

The pattern is interesting - the first time I get an empty XML file the second time it “Cant Reach Online Server”

No joy:

root@raspbx:~# /var/lib/asterisk/bin/freepbx_setting MODULEADMINWGET 0
trying to run as user asterisk:

[MODULEADMINWGET] changed from previous value: [1] to new value: [0]

root@raspbx:~# amportal a ma refreshsignatures

Please wait...

Getting Data from Online Server...Cant Reach Online Server
root@raspbx:~#

The pattern is actually the same for both of you. You are both connecting but you have a proxy/firewall/service in between that is modifying the XML. This is not a problem with Sangoma or FreePBX, its a problem on your end, but Im willing to help you get it figured out.

Unfortunately I am at a loss. You have some sort of device that is changing the XML freepbx is getting. As I previously stated the system is running for many other users. It just downloads one xml file: http://mirror.freepbx.org/all-12.0.xml

I have the ability to completely turn off my firewall - but I think it may be fail2ban or something on the box itself. Other notes:

I am using raspberry-asterisk.org

Everything was fully upgraded and working well prior to 12 upgrade attempt