Unable to login to Package Manager
I've got a fresh install of Trixbox 2.2, and i'm having an issue logging into the Package manager. It attempts to log me in for a few seconds, then shows "Invalid Username/Password". I've tried the exact login for the forums, and i'm still getting the message. I know the machine has internet access, yum updated it's package lists very quickly and is installing a package right now. Any ideas on what might be causing this?
I haven't solved it yet. Does your box have internet access from the console? Can you ping/access internet from the system itself? It seems like it's not getting a proper response from the server and is throwing a generic error, or for some reason the forum logins don't work like they're supposed to. Anyone else having this issue?
I am having the same problem with the logging and the username and password error. I tried the different cases for the user name and the password was just numbers. No luck, so I got a new password sent out and then changed it to numbers again. No luck.
This was working fine the other day, but not now. This is very frustrating.
I am running trixbox from vmware and even having access to internet, solving IP addresses from the virtual machine, having changed the max_execution_time to 120 and being able to login to the forum from my Firefox I get the "bad username and/or password" message from the packages login a few seconds after...
Well i ran a packet capture this morning on the error that occurs when the trixbox attempts to login. It posts what appears to be two encoded strings, one on either side of a cleartext username. Then it gets a response from the server, telling it that the username and password are invalid for this trixbox. Here is the actual response my Trixbox gets from the server:
HTTP/1.1 200 OK Date: Fri, 11 May 2007 14:07:00 GMT Server: Apache/2.0.59 (CentOS) X-Powered-By: PHP/5.1.6 X-SOAP-Server: NuSOAP/0.7.2 (1.94) Content-Length: 569 Cache-Control: max-age=1209600 Expires: Fri, 25 May 2007 14:07:00 GMT Connection: close Content-Type: text/xml; charset=ISO-8859-1 <?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:loginUserResponse xmlns:ns1="http://tempuri.org"><return xsi:type="xsd:string">0|Username and Password for this TrixBox is incorrect</return></ns1:loginUserResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
I don't know very much about SOAP and whatnot, really don't know anything about it. But to me, this doesent' seem like a DNS/Gateway issue, it seems like an account issue. I apologize for the wide line, but i didn't want to break it up any, in case someone wanted to see the entire string that was returned in it's original format.
Same here. Times out with the following:
Error: the XML response that was returned from the server is invalid.
Received:
Fatal error: Maximum execution time of 30 seconds exceeded in
/var/ww/html/maint/includes/classes/XPath.class.php on line 3948
You have whitespace in your response.
And now since I registered my copy it no longer has the "Username:" and "Password:" prompts at the top right hand corner.
ok - I messed with it all night as well - had another 2.2 box here - and very surprised to find it just logged right in - went back to my new box, still - no login. I changed the DNS and IP every which way, no issues what soever downloading files, and pinging trixbox.org - but no way was it logging in.
So finally out of desperation I just slapped the cd in it again and did a fresh load, and first thing I did was run netconfig and login to package manaager without a problem - not sure what it was, the load was just done the same day, and had very little going on it, I only installed webmin.
this is a slightly different problem than we're having, there is no error returned other than that the username/password is invalid. the PHP error has to do with something local on the machine where this problem occurs on trixbox forum servers. Great that you found a fix for your problem though!
I tried this timing out error correction and it did not solve the problem.
As I suspected when you do a complete reinstallation it solves the problem. Clearly there is a problem somewhere on the local machine. There is no real indication of what causes the problem in the first place either.
HEY : I fixed mine this is a link I found !
use putty or log into your machine ,one or the other
when you log in type yum -y update
(may take a few mins to update depending on your broadband speed)
next step
When the updates are downloaded and installed do a Reboot.
next login back into your trixbox.
follow the these steps
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.
one you get this part done ,Copy the following all at once, then right click to paste it in putty then hit enter (text to copy below)
cp --reply=yes /etc/yum.repos.d/trixboxbeta.repo /etc/yum.repos.d/trixboxaddons.repo
sed -i s/beta/addons/ /etc/yum.repos.d/trixboxaddons.repo
cp --reply=yes /etc/yum.repos.d/trixboxbeta.repo /etc/yum.repos.d/trixboxdevel.repo
sed -i s/beta/devel/ /etc/yum.repos.d/trixboxdevel.repo
sed -i s/trixboxdevel/trixboxdev/ /etc/yum.repos.d/trixboxdevel.repo
then do a reboot
.log in to the trixbox via the web and go to packages .it should take a few seconds then you should get it.work like a charm for me .
P.S I'm making a word file of this post for next time it happens.
The fix that has been posted is for an issue that is dealing with a PHP script that is taking too long to execute, this is not the same issue that some of us are having. The Invalid Username and/or Password dialog is coming up due to the server responding with that information. The trixbox.org server is not authenticating the username and password, and therefore sending back an invalid username and password reply, which the trixbox sees and shows the Invalid Username/Password dialog.
I have the same problem and the same error.
i dont know why but i have a workaround for this.
Filename:/var/www/html/maint/includes/functions/login_functions.php
Line:369 (Home Version: 1.0.0.26)
Find:
if($loginStatusArray[0] == 1)
replace:
if($loginStatusArray[0] == 0)
Please dont forget to make a backup of the file !!
I've tried changing the execution timeout to 60 seconds but this didn't help. Kerry Garrison posted "This is almost always a bad DNS or gateway setting." Can anyone tell me how and where these are changed? My trixbox-update.sh was updating just fine until this evening. Now it can't ping update.trixbox.org and suggests to test network connection. The yum -y update fails too and the GUI won't allow me to login or register to see update packages. AAAAAAAAAAAAHHHH!!!!!!....................
If you have already registered and tried everything else the following will work
https://support.rhinoequipment.com/blog/2007/05/30/trixbox-22-log...
Hi I had the same problem last week on a fresh install. Could update trixbox through console but not login to package manger. Kerry's right it usually is a DNS problem,
i ran netconfig and assigned a known empty IP address also noticed trixbox pointing to itself for DNS so changed that to router IP ... problem dissappeared..
This fix works in all cases I have tried it on so far. This patch allows you to connect to the package manager sans logging in.
http://www.script-trix.us/disablepackagelogon.htm
Download the appropriate version either for tb 2.0 or 2.2 and run it.
I suspect that the software monitoring gods will plug this hole with a mandatory patch in the new future but until then works like a charm.
Tom
Hi Takingky
I had a problem with login - but my error was shown as as an "Intenet access error (see http://www.trixbox.org/forums/trixbox-forums/help/cant-login-pack...)
Anyway, I tried your fix from the web site - followed the instructions.....and my trixbox now works.
Thanks.
I put the disclaimers on there so I dont get bothered as much as I used to. I love developing and releasing stuff for the community but I just don't have the time to help everyone out there who refuses to read up on linux in general. Sigh I know I should have endless time to help everyone.........
You should read the warnings on my a2billing page!
Tom
After trying almost every fix in these forums this worked for me. I added these to the /etc/hosts file
66.234.135.90 www.trixbox.org
69.41.170.176 mirror.freepbx.org
That fixed the module admin
For the package manager I had to replace the contents of sessionsFile.txt. I made a copy before clearing the contents. This fixed the problem with the maint page. The format wasnt correct after that change.
Then I did the change to the max_script execution and voila, I can see the packages again in the gui.
One note, everything seemed to work fine when doing the updates manaually. Hope this helps.
This worked for me.
http://www.trixbox.org/forums/trixbox-forums/open-discussion/trix...
+---------------
Yup - this worked for me. Changing the 30 to 60 did the trick!
Thanks!
THANK YOU SOOOO MUCH this is the solution to this weeks problem!
edit File
nano /var/www/html/maint/includes/functions/login_functions.php
(Search for string)
Ctrl+w
Find:
if($loginStatusArray[0] == 1)
replace:
if($loginStatusArray[0] == 0)
apachectl restart
and restart apache
command line, type: service httpd restart
Leo
There are several text editors in linux. I use nano.
To change with nano type the following in the CLI.
Type: nano /var/www/html/maint/includes/functions/login_functions.php
Press [ctrl]+w = Search
paste this: if($loginStatusArray[0] == 1)
press enter
change the 1 to a 0 in the end.
press [ctrl]+x
y to save
Restart apache with command: service httpd restart
Enjoy!!
/Anderas
Have a new error:
Error: the XML response that was returned from the server is invalid. Received:
Fatal Error : Cannot redeclare class soapclient in
/var/www/html/maint/includes/classes/nusoap/lib/nusoap.php on line 7240
.
You have whitespace in your response.
I tried both solutions discussed here (note: max execution time was already at 90 from installation) - none worked.
Please help!
Regards
Franz X. Maier



Member Since:
2007-05-03