update failing on trixbox 2.6.1

comwarrior
Posts: 3
Member Since:
2008-10-04

I'm new to asterisk / trixbox but have 5 years exp with linux.
It's a fresh install and i'm trying to update / add packages from the PACKAGES menu.
however, it's returning an error message "error: the XML response that was returned by the server was invalid recieved: "

i've even updated the core packages and tried again with same result.

Anyone got any surgestions?

thanks



JRayfield
Posts: 38
Member Since:
2008-04-20
I'm having similar

I'm having similar problems....

When I click on the Submit button in the Repositories screen: I get an Internet Explorer error that says "Inernet Explorer cannot open the Internet site http://www.mysite.com/maint/index.php?repo&."

If I refresh the page, then the page is redisplayed correctly.

Then, if I only have CentOS Base Packages selected and I click on Packages, within a few seconds I get this error: Error: the XML response that was returned from the server is invalid. Received: Cannot write to file (cache/outputYumAvailList.txt).

At that point, the Downloading updated package list 'message' just stays on the screen and nothing else ever happens.

If I have the trixbox AND the CentOS Base Package repositories selected, then I usually don't get this error (but sometimes I do).

John



bubbapcguy
Posts: 3765
Member Since:
2006-06-02
yum errors

at the console do a yum clean all then try again
also you should check /etc/resolv.conf for vaild dns servers



JRayfield
Posts: 38
Member Since:
2008-04-20
I tried 'yum clean all' and

I tried 'yum clean all' and double-checked the dns servers and I still have the same problem.

John



comwarrior
Posts: 3
Member Since:
2008-10-04
diferent problems

jrayfield and my problem are diferent. I don't have a problem selecting repositories...

yum command not worked... i resterted server AND router just incase

:EDIT
my resolv.conf is empty.... and yet trixbox has my DNS and router settings...
going to populate and double check my other network settings and then retry

:EDIT2
entries into resolv.conf havn't helped...
i'm going to run down the network diagnostic route and see if i can spot it...
would help to know the domain it trying to get to....



comwarrior
Posts: 3
Member Since:
2008-10-04
ok... update

i've been through the normal network diagnostics and from a console i can ping websites, so DNS and gateways are correct

Still got the same result...

I went into the repositories and deselected everything except CentOS Base Packages and tried again and this time i got a diferent error...

"error: the XML response that was returned by the server was invalid
recieved:
cannot write to file (cache/outputYumAvailList.txt)"

I've tried chmod 777 on /var/cache with no luck

Conclusion:
1) the XML file from Trixbox Stable is missing or the site is down
2) Yum cant write to file cache/outputYumAvailList.txt

any help with these two appreciated

thanks



SkykingOH
Posts: 8081
Member Since:
2007-12-17
Do you have a firewall that

Do you have a firewall that could be blocking streams on Port 80?

You say you performed network diagnostics yet you did not show your results. Can you ping yum.trixbox.org?

Try using wget to grab any file from the repository and see how that works.

--

Scott

aka "Skyking"



JRayfield
Posts: 38
Member Since:
2008-04-20
Comwarrior, I AM getting the

Comwarrior, I AM getting the same error that you're getting (you apparently didn't read all of my post). But, I'm also getting another error that you are not getting.

I'll just repost my problems under another topic so that it doesn't get confusing under this topic.

John



takeabreak
Posts: 4
Member Since:
2009-01-07
Same

Help.. same problem as Comwarrior .. nothing mentioned above works.

Error: the XML response that was returned from the server is invalid.
Received:
Cannot write to file (cache/outputYumAvailList.txt)



imesbah
Posts: 25
Member Since:
2008-12-13
update not working

Hi,

Any updates on this? Has anyone been able to fix this problem? I can ping yum.trixbox.com, but unable to browse to Packages.

Thanks,
Ibrahim



mrrrl
Posts: 2
Member Since:
2008-04-05
Same

I have been trying for a week to update. No joy. I don't think it's our boxes. I saw this same problem last year and just had to keep trying once a week. It took a few months but was finally able to update. I believe its a problem at trixbox.com.



rikalps
Posts: 6
Member Since:
2008-05-25
same

I had the same problem in 3 boxes out of 4
downloaded the iso of trixbox 2.6.2.1.13 and installed on vmware server 2.0
everithing seems to work fine except when I selected packages,
after a while got the error:
Error: the XML response that was returned from the server is invalid.
Received:
so tried burning a cd and installed in a real box P4 3ghz 2gb ram, same result
so tried again with the same result
so tried again in vmware and finally the packages appeared
the network is the same for all the previous installations with version 2.6.1 worked fine for a long time
in my site (10 extensions) and in a customer's site (50 extensions).
what's going on, why some installations work and some other not?
I did the same procedute to install all the 4 systems.

thanks for your help
Riccardo Alparone (ITALY)



chrishorob
Posts: 20
Member Since:
2008-07-14
I am having the same problem

With a clean install of 2.6.2.1



necits
Posts: 419
Member Since:
2008-02-23
Try editing /etc/php.ini and

Try editing /etc/php.ini and changing max_execution_time and memory_limit to the values below.

max_execution_time = 200 
memory_limit = 256M 
--

Michael Mathewson CCNA,MCSE
Owner/Consultant
Northeast CT IT Solutions



bitsmt
Posts: 2
Member Since:
2009-02-06
BUG - Multiple posts found

We are not crazy. I have just found multiple posts with the same issue. I am ccing my entries below.

I'm encountering the same. Fresh install, right out of the box. Will keep looking for a solution, but I sure wish someone could shed some light on this one for me.

(Head slamming into desk, repeatedly until resolution is found)

Steps to reproduce (using v2.6.2.1):
1. Log into maint/index.php module and click on "Packages" (maint/index.php?packages)
2. A few seconds later, you will get a dialogue box named "The page at http:// says:" that says:

"Error: the XML response that was returned from the server is invalid.
Received:
Cannot write to file (cache/outputYumAvailList.txt)"

- Running the command "yum clean all" does not correct the issue.
- The file located at /etc/resolv.conf is empty.
- Editing the /etc/php.ini file and changing max_execution_time and memory_limit to the higher values does not correct the issue.



SkykingOH
Posts: 8081
Member Since:
2007-12-17
Quote: - Editing the
Quote:
- Editing the /etc/php.ini file and changing max_execution_time and memory_limit to the higher values does not correct the issue.

Triple posting won't solve your issue either. The memory_limit is the fix for this. Did you restart the web server (service httpd restart) after the change was made?

--

Scott

aka "Skyking"



wildindn
Posts: 3
Member Since:
2008-04-21
Packages repair fix

Thanks SkykingOH,

I keep forgetting the restart httpd

edit /etc/php.ini and changing max_execution_time and memory_limit to the values below.

max_execution_time = 300
memory_limit = 256M

restart asterisk : service asterisk restart
restart httpd: service httpd restart



simbo1973
Posts: 1
Member Since:
2009-03-12
Same problem - fixed

Hey,

For the benefit of googlebot; changing the php timeout and memory fixed this problem for me. I too was getting

Error: the XML response that was returned from the server is invalid.
Received:

on the Trixbox packages screen.

All is good now!

Cheers,
Simon.



puff19
Posts: 4
Member Since:
2009-03-31
NEW GUY

Sorry guys I am a complete NOB, what is the command to change the php.ini?

Since this is your first post you get one get out of free card. You can use the nano or vi editor to change the file. Command is nano filename.

You could have found this out with a Google search of 'CentOS editors'

It's also covered in the getting started guides 'trixbox without tears' and the Sureteq guide. I suggest you read one or the other.



atibs1
Posts: 10
Member Since:
2007-11-08
Helping the new guy out

New guy
use WinSCP it has an editor built in.



SkykingOH
Posts: 8081
Member Since:
2007-12-17
I suggest not using the

I suggest not using the WinSCP editor. I have heard of several instances where odd line breaks and non-printable characters caused module load problems.

--

Scott

aka "Skyking"



cards
Posts: 51
Member Since:
2007-05-24
I can also confirm that the

I can also confirm that the following steps fixed it for me:

edit /etc/php.ini and changing max_execution_time and memory_limit to the values below.

max_execution_time = 300
memory_limit = 256M

restart asterisk : service asterisk restart #I actually skipped this and everything worked fine...
restart httpd: service httpd restart



Coizado
Posts: 40
Member Since:
2007-11-08
An other confirmation.

The above suggestion did fix the problem.

TB 2.6.1.10

I also had to apply Kerry fix to the "Can't Login Problem" (rm /var/www/html/maint/cache/guidRegistered)

Thanks.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.