ftocc

Unable to login to Package Manager

Chorca
Posts: 16
Member Since:
2007-05-03

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?



dorijan69
Posts: 2
Member Since:
2007-05-05
I got exact the same

I got exact the same problem...
please tell me how you solved it..
thankyou



Chorca
Posts: 16
Member Since:
2007-05-03
I haven't solved it yet.

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?



kerryg
Posts: 6449
Member Since:
2006-05-31
This is almost always a bad

This is almost always a bad DNS or gateway setting.

--

Kerry Garrison
I am not associated with Fonality anymore
VoipSpeak.net - Asterisk Tutorials



mongoose
Posts: 48
Member Since:
2007-02-02
having the exact issue

having the exact issue here... i can log into the forum from a different computer on the same network..

i can also ping trixbox.org from trixbox box command line !!!

Joe



Chorca
Posts: 16
Member Since:
2007-05-03
With mine, the trixbox

With mine, the trixbox machine is using DHCP and pulling that info right from the same server that hundreds more do, and they've had no issues. I'm able to ping and contact any server i try from the command line on the box, but the interface can't login properly.



whatsupskip
Posts: 4
Member Since:
2007-03-17
I am having the same problem

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.



vmusachi2007
Posts: 3
Member Since:
2007-05-10
Same problem

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...



jahyde
Posts: 1996
Member Since:
2006-06-02
same here - can ping

same here - can ping trixbox.org right from the Linux CLI on my box, I can wget files without hesitation, BUT:

invalid username and/or password

feels odd that others are having the same issue - really needed to download some packages tonight.

--

--my PBX is run on 2 V8's



Doormatt
Posts: 2
Member Since:
2007-04-28
Ditto

Here as well. Even tried creating two new accounts to see if something was fubared.



junglegunner
Posts: 1
Member Since:
2007-05-11
ditto

ditto



Chorca
Posts: 16
Member Since:
2007-05-03
Well there's not been much

Well there's not been much in the way of ideas to fix this issue, so i'm gonna try and see what i can find. I'm gonna try to search around for some logs and if that doesn't work packet capture the session with the server and see if i can see where the error is.



Chorca
Posts: 16
Member Since:
2007-05-03
Well i ran a packet capture

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.



rdyer
Posts: 12
Member Since:
2007-03-12
Unable to login to Package Manager

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.



Chorca
Posts: 16
Member Since:
2007-05-03
that kinda looks like it's

that kinda looks like it's having problems contacting the server or something, or the server is having issues processing and returning an error to the client.. looks like a script is taking too long to run and is returning that error..



jahyde
Posts: 1996
Member Since:
2006-06-02
ok - I messed with it all

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.

--

--my PBX is run on 2 V8's



rdyer
Posts: 12
Member Since:
2007-03-12
Fixed my unable to login packet manager

dorijan69
Posts: 2
Member Since:
2007-05-05
just tried this and it did

just tried this and it did not work :(



Chorca
Posts: 16
Member Since:
2007-05-03
this is a slightly different

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!



whatsupskip
Posts: 4
Member Since:
2007-03-17
I tried this timing out

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.



RJLennon
Posts: 111
Member Since:
2006-09-22
unable to login package manager/ time out problem

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.



drawls
Posts: 13
Member Since:
2007-05-08
Unfortunately no dice

Unfortunately this did not work for me.



Chorca
Posts: 16
Member Since:
2007-05-03
The fix that has been posted

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.



codian
Posts: 2
Member Since:
2007-05-15
Same Issue

I am having the same issue... My networking is set up correctly but i am unable to log in...
Would be great if someone could figure out how to fix this...

Thanks.
C



whatsupskip
Posts: 4
Member Since:
2007-03-17
There is still no resolution

There is still no resolution to this and there seems to be no real interest in resolving this either.



EvaKlim
Posts: 1
Member Since:
2007-04-23
Invalid user name

I have the same error...



cak007
Posts: 1
Member Since:
2007-05-23
I have the same problem and

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 !!



codian
Posts: 2
Member Since:
2007-05-15
That fixed it! Thanks!

That fixed it! Thanks!



whatsupskip
Posts: 4
Member Since:
2007-03-17
Thank You!

This had been driving crazy and worrying me about Trixbox as a product.



Toreau
Posts: 17
Member Since:
2007-02-13
Same Here..... PLEASE HELP!

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!!!!!!....................



zepmantra
Posts: 7
Member Since:
2006-07-06
at last ... finally thanks

at last ... finally thanks !!!! :D



jfinstrom
Posts: 1287
Member Since:
2007-03-07
There are a few php edits

If you have already registered and tried everything else the following will work

https://support.rhinoequipment.com/blog/2007/05/30/trixbox-22-log...



jedski
Posts: 60
Member Since:
2007-04-08
same prob resolved

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..

--

'Whatever you do DON'T press the red button'

theosaurus... a very intelligent, but extinct, person from geek mythology..



LeJoKeR
Posts: 79
Member Since:
2006-11-22
I had to create a New

I had to create a New Useraccount to get it to work. Mine isnt working, kinda weird.



takingky
Posts: 289
Member Since:
2006-09-18
Fix for all the problems

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

--

===============================
Get scripts to make your life easier
http://www.script-trix.us
===============================



jfinstrom
Posts: 1287
Member Since:
2007-03-07
Yes but with the disclaimers

Yes but with the disclaimers of death its easier, faster, safer, to go in and simply edit the one line....



hoveharry
Posts: 3
Member Since:
2007-05-16
Your fix worked for me

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.



takingky
Posts: 289
Member Since:
2006-09-18
Also true

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

--

===============================
Get scripts to make your life easier
http://www.script-trix.us
===============================



hbmus080
Posts: 109
Member Since:
2006-09-18
Unable to login to Package Manager

You can repair this bug by going to the command line of your trixbox and typing:
yum update tbm-GUIcore
Then try logging in to the trixbox user interface using your trixbox forum username and password.
--

Live To Learn.
:-D
The MH

--

got Nibiru?



eric_the_magician
Posts: 20
Member Since:
2007-06-18
Thanks to all of you :) I

Thanks to all of you :)

I fixed another problem ...

Enrico



ma_xyz
Posts: 12
Member Since:
2006-07-04
hbmus080 solution worked for me

did install trixbox 2.0 in vmware and in hardware, vmware worked "out of the box", but on hardware had the above described problem (wrong user/passwd) - did the guicore update, works now. thx!



orionvoip
Posts: 38
Member Since:
2007-08-07
takingky's fix did it for

takingky's fix did it for me.

This adumbrates Fonality's increasing control of this product and does not bode well for free software users. I don't like having control over updates in the hands of others.



bensmith
Posts: 1
Member Since:
2007-04-12
my fix...for package download failure and module admin problems

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.



16again
Posts: 370
Member Since:
2007-03-04
Instead of adding stuff like

Instead of adding stuff like that to my hosts file, I'd prefer to fix DNS lookup



Freebyrd
Posts: 30
Member Since:
2007-09-04
Thank you so much :) I guess

Thank you so much :) I guess I should have searched this problem first before replying to another thread in the help section!



arajan
Posts: 40
Member Since:
2007-07-25
Bingo!!!!!!

Thankz a lot mate. you made my day. I had been trying to login since 4 hours and it was very urgent. Finally I made.

Thankz again buddy

cheers!!



meister_sd
Posts: 3
Member Since:
2006-07-10
This worked for

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!



Repair.JSNPC
Posts: 1
Member Since:
2007-10-03
Above posting worked for

Above posting worked for me.

Thanks guys.
Filename:/var/www/html/maint/includes/functions/login_functions.php

Find:
if($loginStatusArray[0] == 1)

replace:
if($loginStatusArray[0] == 0)

Jay Weiss, FtOCC
JSNPC

--

Randy
JSNPC Tech Support Supervisor



leoory
Posts: 1
Member Since:
2007-01-19
Finally!

The solution above posted by cak007 worked for me. Thanks!!
Remember to restart apache web server after making the change. At command line, type: service httpd restart

Leo



lawrencej
Posts: 2
Member Since:
2007-08-25
Cann't Login

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



cgraf
Posts: 4
Member Since:
2007-06-04
Fixed it for me too! Thanks

Fixed it for me too!

Thanks a lot and best regards fom Geneva

Chris



Vilius
Posts: 1
Member Since:
2007-10-25
question

hy, i'm very new at linux ant trixbox...How to access the Filename:/var/www/html/maint/includes/functions/login_functions.php ?
I only see root@asterisk1

thank you



aekstrom
Posts: 1
Member Since:
2007-03-21
Type: nano

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



davemkdw
Posts: 17
Member Since:
2007-03-01
package manager/ time out problem

THANK YOU RJLennon

This worked for me....

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.

Then do a: service httpd restart



da_radioma
Posts: 3
Member Since:
2006-06-08
Thank you!!!!

After after a suck @55 4 months it finally worked!!! NUFF RESPECT FROM JAMAICA!



lkeyes
Posts: 46
Member Since:
2006-11-14
Worked for me. -- Many thanks.

The PHP script edit described worked for me. Many thanks.

--

--- Larry Keyes FtOCC
Microdesign Consulting Inc.



vcepeda22
Posts: 3
Member Since:
2008-01-02
Easy solution

Thanks for the solution this worked for me.
:-)



franzxmaie
Posts: 71
Member Since:
2006-11-27
Unable to login to package manager

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



nivlacskrats
Posts: 1
Member Since:
2008-02-12
I get the same error Message, but

To be sure it was not a routing issue, I put my trixbox server in the DMZ. No change.



ouzogr
Posts: 1
Member Since:
2008-04-18
It Works!!

that fixed my problem. Thanks!



Pepe666
Posts: 5
Member Since:
2008-04-06
Cak007...

----------
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)
------------

Cak007 YOU AWESOME!!!

Thanx



stuckie27
Posts: 6
Member Since:
2008-09-09
That fixed it for me the

That fixed it for me the status Array set to 0

running trixbox 2.6.1 on vmware.

Thanks



Comment viewing options

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