Package Manager Problems Solved
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.
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
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.
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
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
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.
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
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
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
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
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.
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
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.
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:
<?php
$url = array('http://trixbox.org', 'http://66.28.209.215');
?>
3.) change:
trixbox.com to trixbox.org
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
<?php
$url = array('http://trixbox.org', 'http://66.234.135.90');
?>
in /var/www/html/maint/includes/functions/captureSoapIPURLList.php
thanks time2try and hbmus080
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/
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
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
<?php
$url = array('http://trixbox.org', 'http://66.28.209.215');
?>
Hope this helps those like me who skipped the registration :-)
Regards,
Sully
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
Please look to Redjim's solution, that worked for me:
http://www.trixbox.org/forums/trixbox-forums/help/packages-login#...
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.
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...
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 :))
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.
[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
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?

Member Since:
2006-05-31