Package Manager Problems Solved

kerryg
Posts: 6790
Member Since:
2006-05-31

During an upgrade this weekend, one file got corrupt that was causing problems for the package manager. This has no been resolved. For some people, your system may have written a bad registration file and you may need to delete it. To do this type the following command:

rm /var/www/html/maint/cache/guidRegistered

Then you should be able to log in.

--

Kerry Garrison
http://www.VoipStore.com - http://3cxbook.com
(888) VOIPSTORE - (888) 864-7786



LakeSolon
Posts: 3
Member Since:
2007-08-07
Just a quick bump for anyone

Just a quick bump for anyone who tried earlier and hasn't seen the "it's been fixed" thread yet.

Also, I'm not sure if this was just me or I was being impatient, but I also had to nuke the contents of sessionsFile.txt. (there must be atleast an empty file to avoid 404 errors).

~Lake



ccrobin
Posts: 16
Member Since:
2007-06-27
Did not fix my problem

I tried this and it has not fixed the problem. Anyone else having problems with this fix?



miroesq
Posts: 63
Member Since:
2007-01-19
This fix did not work for me either

I deleted the file /var/www/html/maint/cache/guidRegistered using my FTP client through an SSH connection and I deleted the contents of SessionsFile.txt and I am still unable to login.

I am not getting a username/password login error, but I am getting the error:

There is a problem with your network setup.
We cannot show you available packages because we cannot connect to the internet from this box.
Please make the necessary adjustment to allow this box access to the internet.

I read somewhere in this forum that both errors mean the same thing, but am not sure.

My TB has a public IP address xxx.xxx.xxx.10 with no firewall whatsoever. I can ping www.trixbox.org without any problem as well as successfully execute yum -y update.

my /etc/hosts file has the following entries

127.0.0.1 localhost
127.0.0.1 asterisk1.local

I tried changing the 127.0.0.1 in the 2nd line to my public ip address xxx.xxx.xxx.10, but that did not work either.

On a side note, do I have to edit any of the conf files to include my static public IP address or is it enough that I have it configured through netconfig? If I have to edit other files, please let me know which ones along with the proper syntax.



vrajesh.mp
Posts: 1
Member Since:
2007-07-02
Same here

Did try deleting the file from webmin filemanager, still the same message:
"There is a problem with your network setup..."

I can download, chk for update through freePBX but not from the packages tab, basically I can not log on.

any help ...!!! will be great.



jwussler
Posts: 30
Member Since:
2007-02-18
Same Thing here

There is a problem with your network setup. We cannot register your trixbox becasue we cannot connect to the internet from this box. Please make the neccessary adjustments to allow this box to access the internet.

I can ping external address form the SSH shell. FreePBX Updates work fine.

Joe



agit8or
Posts: 302
Member Since:
2006-05-31
FWIW: Same issue here,

FWIW: Same issue here, verified it with 6 different working installations.



grassrootsit
Posts: 7
Member Since:
2007-08-12
Fix did not work here either

Brand new install of the latest VM. Network appears to be working just fine. yum update has processed successfully. Cannot logon to the package manager with the same error as above. Have tried the fix by deleting the guidRegistered, emptying sessionsFile.txt and purging the local browser cache. Still cannot logon to the package manager.

I'm an absolute newbie at Trixbox, so a fix from one of the gurus really would be greatly appreciated.

Thx



jpe
Posts: 21
Member Since:
2006-06-01
Me seven....

Same Network Problem

---
If you think it's not a game, you've already lost.

--

---
If you think it's not a game, you've already lost.



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

Hey, grassrootsit

Can you redo your VM and NOT do any YUM updates just a bareass load and see if you can login?



ccrobin
Posts: 16
Member Since:
2007-06-27
I've tried that to no avail.

I've tried that to no avail. Login will not work regardless of fresh install with yum updates or fresh install without.



thisdude
Posts: 7
Member Since:
2007-08-03
tried it also

still no packages login from fresh install vm trixbox 2.2



n9jr
Posts: 91
Member Since:
2007-08-11
I also have the same problem

Fresh install, can ping www.freepbx.org no problems. Name resolution works fine. Unable to access the Package Manager. Have also tried the various workarounds found in the archives to no available.

With so many people reporting the same issue at the same time it is not likely to be a client side issue. Guess I will have to wait to install the zaptel drivers for 2.2.4 :(

For time tracking I did an initial install on the evening of 7/10/2007. I was able to log in and access package manager to install the zaptel drivers. On 7/11 I repartioned the hard drive and reinstalled 2.2.4 from the same installation CD. On 7/11 I was unable to access the Package Manager.



psdata
Posts: 160
Member Since:
2006-06-01
re: Update Package Manager Problems Solved

UPDATE: Monday 06:50 GMT

It is still not work, after a yum update off the gui.

The totall login is not working, on this moment you get a screen with "Invalid username and/or password." But if I use these on this web site it's works (the back ground becomes transparant green)
If you gife OK you can do every thing accept starting the "Package Manager"
I still think it's on the online website / userstore to accept logging in

John

Sunday : 22:00 GMT
Also here it dosn't work.

I have search in the source off \main\include\functions\login_funktions.php

There is used a www.trixbox.org/login.php If i all so do a lookup to that file but it is not found.

I did also a the command (whith post off username and password) you don;t get feedback

Mayby the team must search there on the web server.

Regards

John



psdata
Posts: 160
Member Since:
2006-06-01
Re: Package Manager Problems Solved

Also here it dosn't work.

I have search in the source off \main\include\functions\login_funktions.php

There is used a www.trixbox.org/login.php If i do a lookup to that file it is nof found.

Do I also a the command (whith post off username and password) you don;t get feedback

Mayby the team must search there on the web server.

Regards

Johan



vikram007
Posts: 9
Member Since:
2007-08-10
Same Network Problem

Did a fresh install of Trixbox 2.2.4. The server is outside any firewall. Verified that default route and DNS entries are correct.
From a system on the same network, can successfully ssh, ping and http the Trixbox server.
Can NOT ping any ip address or host name beyond the default gateway. From systems on the public internet can NOT ping, http or ssh to the trixbox server.

Please let me know how to fix this problem.
Thanks



daveman
Posts: 28
Member Since:
2007-05-14
Two installs down at this end...

The above fix did not work and a fresh plus a 2 day old install will neither log in or register.

Dave



mfiendd
Posts: 6
Member Since:
2007-08-09
I'm not alone

I'm having the same issue.

1.) I can send ICMP's across the world with no issues.

2.) Followed instructions from Kerry and no dice.

3.) Changed my php.ini parameter Max_Execution_Time from 30 to 60. (Noted in other posts.)

4.) Ran a fresh install on another server and ran the updates, issue remains.

5.) Ran a fresh install on another server without running the updates, issue remains.

I had this running just fine with no issues on an install 08/08/07 what happened?

Kerry, are you sure that this isn't a bug that has just manifest itself and is the team working on a fix for this issue?

Cheers,

MFiendD



kerryg
Posts: 6790
Member Since:
2006-05-31
We have multiple versions of

We have multiple versions of this same thing we are working on depending of which trixbox version it is. If it is a code issue on our side, a yum update tbm-GUIcore will fix it (if it doesn't already) as soon as the different code patches are pushed.

--

Kerry Garrison
http://www.VoipStore.com - http://3cxbook.com
(888) VOIPSTORE - (888) 864-7786



ppmax
Posts: 7
Member Since:
2006-08-05
Fix no worky

Deleted guiRegisered--tried logging in: no dice.

FWIW: what should be in the guiRegistered file? cat guiRegistered returns nothing...



kerryg
Posts: 6790
Member Since:
2006-05-31
Should be empty

Should be empty

--

Kerry Garrison
http://www.VoipStore.com - http://3cxbook.com
(888) VOIPSTORE - (888) 864-7786



Blade McKain
Posts: 23
Member Since:
2007-07-19
the problem persists

can you fix it?



mbraun
Posts: 2
Member Since:
2007-08-11
Have the same problem

I'm using Trixbox 2.0and have the same problem!

yum update tbm-GUIcore

doesn't do anything!

The code in login_functions.php seems to be not up-to-date, if anybody can post the trixbox.org-links to login.php, user.php, etc. I can fix it by myself.



aalzate
Posts: 2
Member Since:
2007-07-15
Unable to log in for packages.

Well, thats it for reliability,
I had to install AsteriskNow in a box to be delivered over the weekend
after loosing sleep on this problem.
I rely on your loginn for updates, if not there, that's a problem.

As of 11:05 AM EDT, its im still unable to obtain packages.

Is there a fix ?

Art.



datu503
Posts: 261
Member Since:
2007-06-06
Attend FTOCC, see you in Los Angeles

Hello All.

I got 3 installations here, and all NOT able to LOGIN, even after deleting the guidRegistered.
Also got 2 units to ship out and gee, this is a scare huh?
But being a continuous development project, Trixbox is just too good to give up with.
Trixbox is definitely easier and better than most of them out there.

See you in Los Angeles!

W

--

Walden, Certified FtoCC Admin & Tech
www.tech-r-us.com everythingIP
www.citivoip.com everythingVOIP



bubbapcguy
Posts: 3774
Member Since:
2006-06-02
Gee, What you folks can not use yum?

Come on folks the package manager glitch should not cause THIS much pain.

As long as you can hit yum.trixbox.org then you can install whatever you wish.

Do a yum list >yumlist.txt
open it up find what you need and yum it down.
If you can not do this without a GUI; you really need to learn how to.



mbraun
Posts: 2
Member Since:
2007-08-11
Thanks bubbapcguy, thats a

Thanks bubbapcguy, thats a practical solution!



guidewire
Posts: 3
Member Since:
2007-08-06
I'm seeing it too...

I can log into the site NP but when I try and login through the App it says bad username or password. I've tried everything mentioned higher up on this site and had no luck. Any other suggestions?



kerryg
Posts: 6790
Member Since:
2006-05-31
My programmer has

My programmer has disappeared. I apologize for the problems but I am trying to get some other resources to look at it.

--

Kerry Garrison
http://www.VoipStore.com - http://3cxbook.com
(888) VOIPSTORE - (888) 864-7786



skmpobox
Posts: 1
Member Since:
2007-08-13
Problem cleared?

I'm now able to get in as of 5:45 PM PDT



n8zuz
Posts: 19
Member Since:
2006-10-12
can't login

I can't login with putty ssh, nor with ssh terminal in trixbox gui. It's a brand new install from a disk I made last night. Since I can't login I can't get a prompt so I can't do any yum updates.



grassrootsit
Posts: 7
Member Since:
2007-08-12
Started working!

Nothing was changed our end, but I tried again to access the package manager about 2 hours ago, and it logged on first time. Sorry I can't offer any guidance on why it's now working.



kerryg
Posts: 6790
Member Since:
2006-05-31
Dont know why you cant log

Dont know why you cant log in via SSH, that has never been a reported problem before.

--

Kerry Garrison
http://www.VoipStore.com - http://3cxbook.com
(888) VOIPSTORE - (888) 864-7786



time2try
Posts: 12
Member Since:
2007-08-06
Working.

It's working.
maybe a restart on the trixbox.org webserver did it!?!?

i changed the php.ini parameter Max_Execution_Time from 30 to 60, and then it started working.

Centeno
Time2Try, lda
Portugal

--

Centeno
Time2Try, lda
Portugal



hbmus080
Posts: 109
Member Since:
2006-09-18
The steps to solve the

The steps to solve the package manager login problem is as follows:

1.) vi /var/www/html/maint/includes/functions/captureSoapIPURLList.php

2.) The contents are:
$url = array('http://trixbox.org', 'http://66.28.209.215');
?>

3.) change:
trixbox.com to trixbox.org

--

got Nibiru?



n8zuz
Posts: 19
Member Since:
2006-10-12
I can ssh now

I rebooted the machine and now I can ssh into it. Weird!



smattingly
Posts: 1
Member Since:
2007-08-09
this is the fix nano

this is the fix

nano /etc/php.ini
ctrl-w and find execution_time
change the php.ini parameter Max_Execution_Time from 30 to 60
do a service restart httpd
worked like a charm... i also changed

$url = array('http://trixbox.org', 'http://66.234.135.90');
?>

in /var/www/html/maint/includes/functions/captureSoapIPURLList.php

thanks time2try and hbmus080



dchouinard
Posts: 2
Member Since:
2007-08-18
No luck for me

Still no luck for me.

I did modified captureSoapIPURLList.php and my PHP.INI. I cleared sessionsFile.txt and guidRegistered. I do have a functionnal internet connexion from the server behind a NAT firewall. I can ping 66.234.135.90.

The script communicate with the server, that what tcpdump says anyway.

tcpdump -A src 66.234.135.90

My third packet shows a 301 http error :

09:42:10.398659 IP lax-90.ha-hosting.com.http > trixbox.32965: P 1:513(512) ack 69 win 1448
E..4%f@.0..?B..Z...2.P...S....4............

*h!..#.uHTTP/1.1 301 Moved Permanently

but I dont know what is the request.

By the way, this is a few references to ads. Anyone knows anything about that?
uploads/buyers_club_banner.jpg
/ads/adjs.php
http://www.sayersmedia.com/ads/



kerryg
Posts: 6790
Member Since:
2006-05-31
You can ping the ip but can

You can ping the ip but can you ping by host name?

--

Kerry Garrison
http://www.VoipStore.com - http://3cxbook.com
(888) VOIPSTORE - (888) 864-7786



techieg
Posts: 279
Member Since:
2006-06-13
Empty Package Manager

Can someone tell me why the Package Manager is empty even after successfully logging into it and how are we expected to receive packages?



kerryg
Posts: 6790
Member Since:
2006-05-31
If you are using trixbox

If you are using trixbox 2.3.0.1 its because we have not populated the repo for it because we have to build new packages.

--

Kerry Garrison
http://www.VoipStore.com - http://3cxbook.com
(888) VOIPSTORE - (888) 864-7786



toddmurray
Posts: 1
Member Since:
2006-12-18
I've tried everything in this thread so far.

I still get invalid username/password.



techieg
Posts: 279
Member Since:
2006-06-13
Okay

Okay, that explains it. I recently setup Trixbox 2.3beta. Any ETA on building and populating the repo? ;^P



kerryg
Posts: 6790
Member Since:
2006-05-31
This coming week.

This coming week.

--

Kerry Garrison
http://www.VoipStore.com - http://3cxbook.com
(888) VOIPSTORE - (888) 864-7786



gregkeys
Posts: 409
Member Since:
2006-06-01
Well, I downloaded the 2.3

Well, I downloaded the 2.3 beta, and did a fresh install. Got registered, but when I try to go to packages, I am told to login or register. As I have already registered, I have no option to do so......
Kerry, before you say it, this is NOT a DNS issue or a gateway issue :)
My box is 192.168.2.2, my gateway is 192.168.2.1, my DNS is set to a public DNS which I run, acting as primary for around 30 to 40 domains.
Pinging trixbox.org from the box works, pinging 66.234.135.90 works. Time is approx 68ms

P.S. for those reading this post, DO NOT set your DNS to your gateway even if the rest of the computers on your network are set that way, TB does NOT like it and will declare a network setup error :)

I have tried EVERYTHING referenced in this post to no avail. I still can not open the packages page on the web interface.

Greg Keys



sully
Posts: 6
Member Since:
2007-06-06
I still get invalid username/password.

Tried the above and I still get invalid username/password.

I created a new forum user (sorry) and it also gets invalid username/password.

??



sully
Posts: 6
Member Since:
2007-06-06
Working now... I too was getting invalid username/password

I too was getting invalid username/password

This is what I did to get to the Packages...

When I setup my test box with TrixBox I was so excited to get to the nut and bolts of TrixBox that I decided to skip the registration... DON'T DO THIS - Register as it asks and don't select "Don't ask mt to register again". Once I registered and preformed the suggestions in this thread, I was able to login and see the packages. Call me daft :-)

I put this in my /var/www/html/maint/includes/functions/captureSoapIPURLList.php

$url = array('http://trixbox.org', 'http://66.28.209.215');
?>

Hope this helps those like me who skipped the registration :-)

Regards,
Sully



ccataldo
Posts: 145
Member Since:
2006-06-01
fresh installation of TB 2.3.0.1 - lacks /etc/resolv.conf

On a fresh installation of TB 2.3.0.1 immediately after doing anything else than doing
netconfig
service network restart
I did a trixbox-update.sh and discovered that the system couldn't resolve any site
so I checked and discovered that the /etc/resolv.conf was missing.
After creating it with the following lines
nameserver 208.67.220.220
nameserver 208.67.222.222

the trixbox-update.sh and yum -y update went fine.

Hope this helps



Jaop
Posts: 7
Member Since:
2006-06-19
Please look to Redjim's

Please look to Redjim's solution, that worked for me:

http://www.trixbox.org/forums/trixbox-forums/help/packages-login#...



unitetech
Posts: 121
Member Since:
2007-01-19
Awsome job! hpmus080

I had the same problem with a fresh install of 2.2.4 that I downloaded two days ago and the change of trixbox.com to trixbox.org followed by the service network restart worked for me.

Thank You Very Much hpmus080!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Damien



da_radioma
Posts: 3
Member Since:
2006-06-08
Package Manager error how to

Hello,

Thank for the solution to this problem but since I'm Linux challenged I would like to know if you could tell me how do I get to /var/www/html/maint/includes/functions/captureSoapIPURLList.php

I tried to do this at the root level on the box it self but I get a response that no such directory exist. I then tried to look in the GUI from my laptop in the asterisk configuration menu but still no luck. I did get as far as the /var/...maint directory but I don't what to do after that. I would appreciate any assistance you could give. Thanks in advance for your help.



jgaedke
Posts: 1
Member Since:
2007-08-31
My Problem Was Firewall!

I have two LANs at my house. One behind a Linksys and the other behind a Sonic. Both use the same WAN (DSL). Once I moved my TrixBox to my Linksys network, the package manager worked fine. Even though I could ping everything from both networks, something about my Sonic was causing the manager to fail every time. I may have to whip up Ethereal or EtherPeek and see what packets are getting dropped. - Nothing showing in my SonicWall logs...



basil
Posts: 3
Member Since:
2007-08-08
worked for me thanks a tonne

worked, just used the exact command in a jave shell, didn't need to delete sessions but might have a look at that if any other error pops up, but I can log in now so I am sorted...



mnapuran
Posts: 33
Member Since:
2007-09-04
I made the 2 changes and

I made the 2 changes and still having the same problem!

Any more ideas?



iksnet
Posts: 1
Member Since:
2007-07-05
Small HowTo (Login Problem)

Hello,

Trixbox Version 2.2.4

1.)
/var/www/html/maint/includes/functions/captureSoapIPURLList.php
change this:
$url = array('http://trixbox.org', 'http://66.234.139.90');

2.)
/var/www/html/maint/includes/functions/login_functions.php

Add this line before " if($loginStatusArray[0]==1) { " :

$loginStatusArray[0]="1";

It works fine (thanks for me :))



dchouinard
Posts: 2
Member Since:
2007-08-18
WORK WORK

Thanks iksnet, your patch worked for me too.



ushkand
Posts: 1
Member Since:
2007-10-22
This did it for me too.

This did it for me too. Thanks iksnet!



concite
Posts: 3
Member Since:
2007-10-18
Worked for me too

Thanks for the patch iksnet



jack88
Posts: 25
Member Since:
2006-09-14
WORK

It works for me too. Thanks iksnet!



yiannos
Posts: 52
Member Since:
2007-01-31
same here

same here - works fine
Thank you



orionvoip
Posts: 41
Member Since:
2007-08-07
iksnet has the answer

Worked like a charm.



orionvoip
Posts: 41
Member Since:
2007-08-07
iksnet has the answer

Worked like a charm.



Red01Z06
Posts: 53
Member Since:
2007-03-14
I got it to come up with a

I got it to come up with a no packages. I see the buttons but no packages.



fmccarthy
Posts: 1
Member Since:
2007-09-13
WTF

WTF



da_radioma
Posts: 3
Member Since:
2006-06-08
CAN SOMEONE TELL ME HOW TO GET TO EDIT THE "FIX"

Hello,

Can someone tell were I should go to edit:/var/www/html/maint/includes/functions/captureSoapIPURLList.php

Is this located in the "phpconfig for Asterisk PBX" I've looked there but cannot find the file to change aforementioned. Can someone please tell me were and how to get I would really appreciate it as I am not proficient with LINUX commands. Thank you in advance for your help.



davidsain
Posts: 41
Member Since:
2007-09-20
Edit the fix

[user@asterisk1 ~]# nano /var/www/html/maint/includes/functions/captureSoapIP.php

Once the file is opened, search by pressing CTRL+w and typing "textToBeSearchedFor" and pressing Enter. I don't know where the reference to asterisk.org is to be inserted, I didn't need this fix. See Sully's message above (08/18/2007).

In two separate instances, two separate fixes worked. At my church, when I attempted to login, after entering my user/pass it would take a few moments to return with bad user/pass. yum update TBM-core mentioned above didn't fix it, but a fix similar to the second item in Iksnet's post did.

[user@asterisk1 ~]# nano /var/www/html/maint/includes/functions/login_functions.php

using [CTRL]+[w] search for: loginStatusArray
change " if($loginStatusArray[0]==1) { " :
to " if($loginStatusArray[0]==0) { " :
[CTRL]+[x] to exit
[y] to save
[enter]
see: http://www.trixbox.org/forums/trixbox-forums/help/login-and-regis...

At home when I attempted to login I got an instant failure response (were we going out to the net and actually trying to login to trixbox.org? Don't think so, even with 7Mbit, there's latency), so I started in on some of the other fixes. The one where one changes ownership of the html directory to asterisk did nothing (even after restarting httpd), but deleting the file Kerry mentioned at the top of this post let me get to loginFunctions.php, where a typo (I made) kicked me out. Once I fixed the loginStatusArray line to look like the one above, it worked perfectly.

At the church the Dell box is behind a 2wire DSL router. I have little control over it's configuration, so I don't know what ports are open and what are closed. The interface leaves a lot to be desired (well, I have full control, but the router sucks)

At home I'm running in VMWARE on XP x64 ed. I can do what I want with this DLINK cable modem (opening ports, etc) but didn't have to. Did have to kill NVidia's active armor to be able to access tb in VMWare. (I just have to open certain ports, I'm sure).

This failure to login is so common, I'm surprised it's not been addressed. There are a lot of different fixes with differing results, some work, some don't, depending on you, the phase of the moon, and your install. Good luck...

David



kkitech
Posts: 24
Member Since:
2007-10-04
invalid username/password

I deleted that file and it let me log in.. Thanks!



kerryg
Posts: 6790
Member Since:
2006-05-31
There was a server problem

There was a server problem that we found that was resolved yesterday.

--

Kerry Garrison
http://www.VoipStore.com - http://3cxbook.com
(888) VOIPSTORE - (888) 864-7786



GlenCrocker
Posts: 4
Member Since:
2007-11-15
Login problem... still

I've tried some of the fixes above with no luck, although I'm new to all this. I had a 2.2.4 working version. wiped it out and installed the new 2.2.8 and when I went to do the packages, I get the "There is a problem with your network setup. We cannot show you available packages because we cannot connect to the internet from this box. Please make the necessary adjustment to allow this box access to the internet."

Are you still having problems with the server, or am I misssing something else.
Is there a short correct way to do this?



netorange
Posts: 4
Member Since:
2007-08-10
2.2.8 login problem

I've the same problem with 2.2.8. Via SSH i can ping/yum outside. Via GUI I can't

ciao
Paolo



kerryg
Posts: 6790
Member Since:
2006-05-31
The server is working fine.

The server is working fine. If you are getting that error than there is something wrong. Perhaps a bad gateway or DNS setting or a firewall setting.

--

Kerry Garrison
http://www.VoipStore.com - http://3cxbook.com
(888) VOIPSTORE - (888) 864-7786



Comment viewing options

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