Several 2.2 issues after upgrade

drmessano
Posts: 208
Member Since:
2006-10-10

1. Get this error when I check for packages on one box:

Warning: fread(): Length parameter must be greater than 0. in /var/www/html/maint/includes/functions/genYumArray.php on line 21

Warning: fread(): Length parameter must be greater than 0. in /var/www/html/maint/includes/functions/genYumArray.php on line 196

2. On box 2, I get this error when I check for packages:

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

Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/maint/includes/classes/XPath.class.php on line 3520

You have whitespace in your response.

3. For the heck of it, tried to edit the DNS settings from the GUI, under Settings > Network. These settings do not seem to stick on either box.

Thanks,

Danny Messano



bubbapcguy
Posts: 3774
Member Since:
2006-06-02
refresh page /clear cache

refresh page /clear cache



drmessano
Posts: 208
Member Since:
2006-10-10
I saw your post on the other

I saw your post on the other thread... Doesn't work. I have been at this for hours, and it's more than a browser issue.

I tried the tricks the other gentleman mentioned, and 3 different browsers... even IE, which has never visited either of my boxes. Same errors on both of my boxes.

I updated by first running a yum update, then installed the tbuicore.



bubbapcguy
Posts: 3774
Member Since:
2006-06-02
If you run yum list

If you run yum list does it return the list or error??

I am doing a upgrade to a TB 1.1.1 system right now I will see I get the same error
(233 meg download for yum update so it take a Edit: few mins Gee her Inet download is crap it is slow so it will be a hour or so)



discusz
Posts: 62
Member Since:
2007-02-22
I do not think its a 2.2

I do not think its a 2.2 problem I had not upgraded my 2.0 to 2.2 yet. Yesterday I was able to go into the packages and grab some updates. after the release of 2.2 this has stopped (again I was only running 2.0) i think its something on the repo site thats the problem

Also the error i get is slightly different. Here is is

---------------------------
Windows Internet Explorer
---------------------------
Error: the XML response that was returned from the server is invalid.
Received:

Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 94 bytes) in /var/www/html/maint/includes/classes/XPath.class.php on line 2125

You have whitespace in your response.



bubbapcguy
Posts: 3774
Member Since:
2006-06-02
error

OK the error is that the two files outputYumInfo.txt and outputYumUpdateList.txt are empty
ZERO bits...

Temp fix until we figure out why (check permissions that asterisk:asterisk 0644)

cd /var/www/html/maint/cache

yum info >outputYumInfo.txt

yum check-update >outputYumUpdateList.txt



bubbapcguy
Posts: 3774
Member Since:
2006-06-02
errors

discusz are you sure yours is not a timeout error...
Do you have all the repos enabled??
If you go tot he consloe and do a yum clean all and then a yum list does it return the list??



drmessano
Posts: 208
Member Since:
2006-10-10
One box fixedDownloaded the

One box fixed

Downloaded the missing .repo files per another thread, REMOVED/downloaded the trixbox.repo and trixboxbeta.repo files that are present.
yum clean all
yum makecache

First time, I only downloaded the 2 missing files, and it did not work. Downloading them all again did work along with the yum clean all and yum makecache.

Still having the issue with the XML error on the second box.



drmessano
Posts: 208
Member Since:
2006-10-10
Should also note: Still

Should also note:

Still having problems with Network setting page. Does not work on either box.

Forums link returns "Page not found", as others have reported.

dm



itgadgets
Posts: 24
Member Since:
2007-03-27
Getting the same error

Hi all,

I am a newbie to TrixBox and getting the same error when running Packages!

Can you please post the exact steps to help resolve this issue

Cheers, Scott



drmessano
Posts: 208
Member Since:
2006-10-10
Here are the steps from the

Here are the steps from the command line:

cd /etc/yum.repos.d
rm trixbox*.repo (Answer "Y" to each confirmation)
wget http://yum.trixbox.org/trixbox.repo
wget http://yum.trixbox.org/trixboxbeta.repo
wget http://yum.trixbox.org/trixboxaddons.repo
wget http://yum.trixbox.org/trixboxdevel.repo
yum clean all
yum makecache

That fixed one box for me. My other box, which is an even cleaner TB 2.0 > 2.2 install that I had yet to load any extensions into, is still hosed with XML errors.



discusz
Posts: 62
Member Since:
2007-02-22
Definately not a timeout

Definately not a timeout issue. have tried all combinations of which repos are active. righjt now i only have the 1st one enabled and I get that size error.

I just tried the 2nd entry only (trixbox beta) and it works fine. the package populates

trixbox Does not work when selected
trixbox Beta works fine
CentOS Update Packages works fine
CentOS Extras Packages worksfine
CentOS Base Packages works fine
All Installed Packages works fine
trixbox Addons Packages works fine
trixbox Development Packages works fine

So the only one that does not work would be the (i am guessing) the released version repo (trixbox) ..

This definately was broke before I upgraded to 2.2 from 2.0...



discusz
Posts: 62
Member Since:
2007-02-22
interesting. Problem solved!

i think I might be on to something here.. The error I posted above means PHP exceeded its memory allocaton for a running script. I checked /etc/php.ini and its set to 20meg I bumped this to 60 meg and trixbox now works fine when going into the packages section

Why that is happening or why this exceeds 20 meg isbeyond me I suspect it has something to do with whats on that repo site

When you make this change make sure you restart the apache so this will take .

/etc/rc.d/init.d/httpd restart should work fine



drmessano
Posts: 208
Member Since:
2006-10-10
YES.. SOLVED!

Ok, I upped the max_execution_time to 60 on the slower box, package manager works great now on it. Slow, but working.

Issue remaining is the unwritable resolv.conf from the GUI

My guess is a permissions issue. Anyone know what permissions need to be set on that file?



itgadgets
Posts: 24
Member Since:
2007-03-27
Thanks! Worked on a new install

Thanks people!

This has resolved the issue on a new install of 2.2!

I can now go and put 2.2 on my customers box.

Cheers, scott



itgadgets
Posts: 24
Member Since:
2007-03-27
Update! Spoke to soon!

Looks as if it only works once after a system reboot!

I got it to work without the TrixBox Beta selected



itgadgets
Posts: 24
Member Since:
2007-03-27
Updates have corrected reboot issue

After running all of the available updates (took around 50 mins) the system does not require a reboot to gain access to the pakages area as in my previous post!

Installed a clean trixbox 2.2 server at a customers this afternoon and no issues at all.
Having Linksys phones in the endpoint manager was great.

The customer had an echo with their linksys 941 phones on all outbound calls, however this has been eliminated.

Great work people! :-)

Cheers, Scott



kangstadt
Posts: 64
Member Since:
2006-10-29
Fatal Error-Package Manager

I'm gettin the error: The XML Response that was returned from the server is invalid.
Received: Maximum execution time of 30 seconds exceeded in
/var/www/html/maint/included/classes/xpath.class.php on line 3648. You have white space in your response.

Now I upgraded from 2.0 to 2.2 and tried all suggestions to solve this issue. I then did a clean install of 2.2 and get the same error.

One other concern is serious echo problems after upgrading. I'm using the TDM400 card in this server.

Any suggestions would be appreciated.

Thanks,

Keith



drmessano
Posts: 208
Member Since:
2006-10-10
From the command line: nano

From the command line:

nano /etc/php.ini

Look for:

max_execution_time = 30

I changed to 60, and it took every bit of 50 seconds or so to get/process the package list, but it worked.

When you're finished, ctrl-x and save the file. Then do a:

service httpd restart

All should be well after that.



itgadgets
Posts: 24
Member Since:
2007-03-27
I found that the TB server

I found that the TB server with lower specs (PII 450, 384MB ram) had to have the php.ini editored, where as another TB server (Compaq) with dual PIII 866, 1GB ram and raid 5 was totally ok from the start.



kangstadt
Posts: 64
Member Since:
2006-10-29
Time out - Package Manager

I found the posting on resetting the max time and it worked. I actually increased the time to max_execution_time = 300 in the /etc/php.ini. Now to get the echo problem silved and we are good to go.

Best to all,

Keith



agetz1
Posts: 14
Member Since:
2006-06-20
Command line worked for me.

I followed what dmessano did and it took a while to redownload everything but it worked for me. 2.0 -> 2.2 Yippee..Thanks .



kd5ckp
Posts: 3
Member Since:
2007-10-06
I was receiving this error

I was receiving this error

Received: Maximum execution time of 30 seconds exceeded in
/var/www/html/maint/included/classes/xpath.class.php on line 3648. You have white space in your response.

So I changed the max_execution_time = 300 in the /etc/php.ini

and now I get

Warning: fread(): Length parameter must be greater than 0. in /var/www/html/maint/includes/functions/genYumArray.php on line 21

Warning: fread(): Length parameter must be greater than 0. in /var/www/html/maint/includes/functions/genYumArray.php on line 196

Any other ideas out there?

Tim



kd5ckp
Posts: 3
Member Since:
2007-10-06
Re: Here are the steps from the

drmessaon's CLI trick worked for me.

Thanks



ccole
Posts: 1
Member Since:
2007-09-05
I had the same problem, here is how I fixed it

Had the same errors when running packages, fixed it by putting the full path in the genYumArray.php. Hope this helps...

$filename = array("cache/outputYumAvailList.txt" => "sudo rm /var/www/html/maint/cache/outputYumAvailList.txt; sudo yum ".$_SESSION['trixbox_basePack']." ".$_SESSION['trixbox_updatePack']." ".$_SESSION['trixbox_extrasPack']." ".$_SESSION['trixbox']." ".$_SESSION['trixbox_beta']." ".$_SESSION['trixbox_addons']." ".$_SESSION['trixbox_dev']." list > /var/www/html/maint/cache/outputYumAvailList.txt");

$filename2 = array("cache/outputYumInfo.txt" => "sudo rm /var/www/html/maint/cache/outputYumInfo.txt; sudo yum ".$_SESSION['trixbox_basePack']." ".$_SESSION['trixbox_updatePack']." ".$_SESSION['trixbox_extrasPack']." ".$_SESSION['trixbox']." ".$_SESSION['trixbox_beta']." ".$_SESSION['trixbox_addons']." ".$_SESSION['trixbox_dev']." info > /var/www/html/maint/cache/outputYumInfo.txt");

$filename3 =array("cache/outputYumUpdateList.txt" => "sudo rm /var/www/html/maint/cache/outputYumUpdateList.txt; sudo yum ".$_SESSION['trixbox_basePack']." ".$_SESSION['trixbox_updatePack']." ".$_SESSION['trixbox_extrasPack']." ".$_SESSION['trixbox']." ".$_SESSION['trixbox_beta']." ".$_SESSION['trixbox_addons']." ".$_SESSION['trixbox_dev']." check-update > /var/www/html/maint/cache/outputYumUpdateList.txt");

print_r($filename['/var/www/html/maint/cache/outputYumAvailList.txt']);
echo "
";
print_r($filename2['/var/www/html/maint/cache/outputYumInfo.txt']);
echo "
";
print_r($filename3['/var/www/html/maint/cache/outputYumUpdateList.txt']);
echo "
";
$file = genPackageFile($filename);
$file2 = genPackageFile($filename2);
$file3 = genPackageFile($filename3);



chido13
Posts: 1
Member Since:
2009-01-03
i have a problem, i need help

hi i am new in this forum....my name is omar and i need some help.....
i am trying to enter to the admin mode in trixbox, but when i want to go to free pbx.....appears a message of error that say:

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

Warning: session_start(): open(/tmp/sess_c86a9b6d11f80ee9c3c12f0724c6c57c, O_RDWR) failed: Read-only file system (30) in /var/www/html/maint/index.php on line 14

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/html/maint/index.php:14) in /var/www/html/maint/index.php on line 14

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/maint/index.php:14) in /var/www/html/maint/includes/xajax.inc.php on line 679

Admin Mode [ switch ]

]]>


Username:

Password:





I APPRECIATE YOUR HELP.....



Comment viewing options

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