login and registration problems FAQ for trixbox 2.3/2.4
Hello,
Trixbox2.4 uses php5. Some have posted login and registration problems. Another symptom is when you select a new language (in the bottom left hand corner of trixbox dashboard) the green look and feel of the dashboard disappears.
If this is happening to you please do the following:
1.) On the command line of your trixbox type the following:
chown asterisk:asterisk /var/lib/php/session
2.) I would then clear private data from your browser, close your browser and then access the trixbox dashboard again.
3.) Once in the dashboard try changing you language setting in the bottom right hand corner of the dashboard. If you still loose your look and feel please post to this posting.
I too was having problems... but I just thing I was being too smart for my own good!
using 2.2.4 (clean build), I was trying to register and found that I was getting the invalid usernme/password problem (using an account I have used privisouly for other builds).
So I re-registered with a whole different name (and e-mail address), and it too failed.
But I think my problem was me being too enthusisatic!
Like a good little network administrator, when I got the e-mail in my mailbox saying my account was registered, I would click on the link to change my password... (like all good net
'admins suggest) - reset it, then go and do a register.... only to have it fail!
However, when I re-re-re-registered the final time... I used the password THAT WAS ALLOCATED TO ME from within the e-mail...
Bingo!
Problem fixed!
Maybe once you have changed your password - it is not secure enough? or something..
none the less, using the one that came in the e-mail (rather than me resetting it before using it to register with) got me going...
Hope it helps someone else..
Now I am going to have a rest and let this brickwork-mark that is inbedded in my forehead work its way out.
Goodluck.
I can't login on the trixbox.org on the admin page of my trixbox. I always display invalid user and/or password. I need to to install a package using the admin page... but if will login directly on the trixbox.org, i can enter. please help me...
result of ls -la /var/lib/php:
drwxr-xr-x 3 root root 4096 May 24 02:46 .
drwxr-xr-x 19 root root 4096 May 24 02:52 ..
drwxrwx--- 2 root apache 4096 Jul 11 2006 session
For some reason i can't register my box. I go to the registration page from the settings tab and then fill out my details, but then when i click on the register button, the page changes but nothing is displayed. It just has the normal layout but with "tbreg Version: 1.0.0.25" in the middle.
I am running Trixbox 2.2.3 and the TBM_GUICore of 1.0.0.28
Any help?
Thanks
OK.... I have an account. I am following the instructions on http://dumbme.voipeye.com.au/trixbox2/trixbox2_without_tears.pdf All I get is "invalid username and/or password". Just for grins, I did a yum centos update.... reooted no change. I cannot get to the FreePBX set up screen. I tried registering under other names to no avail. Now I get "Access denied
You are not authorized to access this page."
So.... this sucks. Asterisk/Trixbox (apocraful name?) is down. Lost ver 2.0 when T1 went to flashing red after a power outage, even though the * is on a good UPS that kept running through the outage. !!# So, one fault leads to another and udev blows up access to the Trixbox install, even though the other disk, which was supposed to be a mirror, still boots to run level 1. What to do? Time to jump to a current version? So after a bit 'o back up to a costco USB drive via Unbuntu live disk... i install 2.2.4 over the previous Trixbox after removing the useless old Centos drive. I thought it would take a while to configure the t1, Mitel CAS extension crap, and get stuff sorta working again.... so i try to get to free pbx gui... and it wont connect.... yikes.... what gives????
It is now 2.30 in the morning and I got up at 6.30 AM. I can't believe being locked out of free pbx because I registered long ago (my current conspiracy theory)... good night and I hope you have better luck than I have had. PU.
I just spoke with PWDasterisk who was having a problem registering the box. He is using trixbox 2.2.4. The solution to his problem was changing the ownership of the html folder from root to asterisk.
When I typed:
ls -la /var/www
I got the following result:
drwxr-xr-x 7 root root 4096 Jul 14 11:56 .
drwxr-xr-x 24 root root 4096 Sep 12 00:11 ..
drwxr-xr-x 2 root root 4096 Jul 14 11:56 cgi-bin
drwxr-xr-x 3 root root 4096 Sep 10 10:10 error
drwxr-xr-x 17 root root 4096 Sep 11 09:58 html
drwxr-xr-x 3 root root 4096 Sep 10 10:10 icons
drwxrwxrwx 2 root root 4096 Sep 10 09:56 upload
This shows root owns the html folder. If you get this same output, please type the following on the commnad line of your trixbox:
chown asterisk:asterisk /var/www/html
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 !!
Everyone can thank cak007 for this fix!!! He rocks!
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 !!
Everyone can thank cak007 for this fix!!! He rocks!
Right, I STILL CANT REGISTER MY BOX!
[root@pbx ~]# ls -la /var/www
total 52
drwxr-xr-x 7 root root 4096 Aug 20 20:00 .
drwxr-xr-x 22 root root 4096 Aug 20 19:58 ..
drwxr-xr-x 2 root root 4096 May 4 11:29 cgi-bin
drwxr-xr-x 3 root root 4096 Aug 20 19:57 error
drwxr-xr-x 17 asterisk asterisk 4096 Sep 5 16:55 html
drwxr-xr-x 3 root root 4096 Aug 20 19:57 icons
drwxrwxrwx 2 root root 4096 Aug 20 20:00 upload
well... turned out the install that went down was not 2.0 (i forgot what I had) but was 1.2 and we installed that on a drive, untared the old 2nd drive. The old box came right back as though it had not been off for two days, except for the Digium dual t1 card flashing red. I swapped in the spare $1,000 card, and sure enough, it came right back green as solar electricity. Trixbox 1.2.x seems to have a much friendlier user gui interface.... 2.x ran at a crawl on my Mozilla and it assumed i had a much larger monitor leaving stuff spilling over off the screen... i e it 2.x does not scale well. And the old 1.x does not have the user registration issue... sorry.
As I mentioned before, Centos seems to have previously installed what we wanted as a mirror drive, as, instead, a two drive system.... worst possible situation in terms of reliability... now that we copied all stuff onto one drive, Asterisk/Trixbox is back and happier, as now everything is on one disk, and I can just copy the active drive to what is now a spare, thus giving us a full back up. I hope Trixbox gets its act together. Above I see there is a command line maybe fix. Too late for me... we were down two days. Not a big deal for our enterprise, as i just patch in the old Mitel, and pay normal long dist. for a few days,,,, but still, my time was ill spent.
I tried both commands:
chown asterisk:asterisk /var/lib/php/session
chown asterisk:asterisk /var/www/html
Tried with IE and Firefox, cleared cache blah blah blah.....
Still no luck.
I did a search for "Invalid Login" in the Forum and found this post by Kerry.
Deleting the file in the first post by Kerry solved my problem
http://www.trixbox.org/forums/trixbox-forums/help/package-manager...
Chad Sturgill
CSC | President | csturgill@gmail.com
I'm also having trouble logging in to use the Packages section.
I get the error "There is a problem with your network setup.
We cannot show you available packages becasue [sic] we cannot connect to the internet from this box.
Please make the necessary adjustment to allow this box access to the internet."
But I can ping anything I can think of, by IP, by DNS name, whatever. Internet seems to be working fine.
I am also experiencing the same exact behavior when I attempt to register, I fill out the on line form, submit it and after a short wait I end up at a page that tells me...
There is a problem with your network setup. We cannot register your trixbox because we cannot connect to the internet from this box. Please make the necessary adjustments to allow this box to access the internet.
Well that's just wrong it seems, unless there's some magic going on there... I can ping trixbox.org successfully from a shell prompt on the asterisk machine, so it seems to me the network on that machine is working fine.
My network contains a hardware firewall, and most everything is blocked on the inbound side, so if there are any ports that need to be opened I'd like to know.
Oh and in the process of reading through this thread I have changed ownership of the /var/www/. directory to asterisk recursively, and I do have a session file in /var/lib, for what it's worth.
Any help resolving this would be appreciated...
Ah
I changed the owner of /var/lib/pho/session to ashterisk and I rebooted the machine.
Now when I hit the server with a browser and log into the box, I fill out the reg form and when I hit 'submit', the registration page goes blank and that's it. I don't see any response (should I?) and no email has come to my address.
Still wondering...
Ah
Whew, I managed to register...
After trying numerous fixes, the following actions fixed the problem I was having with registration. I hope it works for others, and thank you SO MUCH to the contributors...
Found this posted by "smattingly" @ http://www.trixbox.org/forums/trixbox-forums/help/package-manager...
====================
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
======================
And THANK YOU AGAIN!!!
The only prompt I get is - inactive login:
To begin login as the user "activate" at the login prompt.
It never activates??? any ideas?
Verified connectivity, has obtained IP address from DHCP. I type 'activate' it still reports - inactive login:
Can I get into the system to see whats wrong? How?????
Great responses ... We will deploy different product line.
Thank you,
Robert Belon
RG Belon Consulting
rgbelon@rgbelon.com
Please try going to the command line of your box and type the following:
yum update tbm-GUIcore
Confirm update and try login into the package manager.
Side Note:
When you register your trixbox you no longer are required to login to see the package manager. The login and password box will not display after you register. After registering clicking the package manager should allow you access.
Please post the results of your findings.
Thanks for the reply HBMUS
Ok did that and all installed/updated ok,restarted.
Went to package manager but the initial page still indicates that a login is required and the standard screen with instructions is displayed.
Happy to rebuild if needed with alternate instructions.
Regards
Ed
What happens when you enter your trixbox forum username and password into the login and password area of the user interface? Are you successful at login in? If so, when you click the packages link do you see the available packages? If there appears to be no packages listed, click the repositories link and make sure there is something checked off for display. Click submit and try clicking the packages link again.
Can switch between admin and user by hitting the 'switch' link in the top right.
Firefox shows no cached username or password, is that correct ?
In repositories, chose a some extra packages to show, clicked submit and the gui fell apart reverting to text mode ?
Had to choose the green template to get it back at which point the package selection had reverted to the default one choice.
This is a clean install on a latitude laptop for testing.
Regards
Ed
Nothing to update I think.
Unless anyone has any ideas guess I will go back to a previous version, current looks a little too broke for me.
Regards
Ed
[trixbox1.local ~]# yum update tbm-GUIcore
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
addons 100% |=========================| 951 B 00:00
trixbox 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
trixboxaddons 100% |=========================| 951 B 00:00
updates 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Could not find update match for tbm-GUIcore
No Packages marked for Update/Obsoletion
I have registered the product. I have been trying to download some packages. I have tried different browsers on different pc's thinking it might be a browser problem. I get an error
"Error: the XML response that was returned from the server is invalis. Received:
/> Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/maint/includes/classes/XPath.class.php on line 3511
You have whitespace in your response."
Please help!!
Thanks.
I did everything you guys have listed ad still have an empty package list. I run the update from the SSH client I modified the php.ini
Nothing I am surprised that the fox a Fonality have not fixed the problem to date his is a major bug that needs fixing. They don't seem to care, this tread is fairly long and many people are having the same issue.
Let me know if anyone has any ideas
FYI gettig this error on the dashboard:
Cronmanager encountered 1 ErrorsThe following commands failed with the listed error
/var/lib/asterisk/bin/module_admin listonline (255)
Added 2 days, 12 hours, 38 minutes ago
(cron_manager.EXECFAIL)
jrecho,
Are you using trixbox ce or trixbox pro?
If you are using ce please do the following:
1.) type the following on the command line and post the results:
more /etc/sudoers
2.) type the following on the command line and post the results:
more /etc/yum.repo.d/Centos-*
3.) When using the UI for trixbox ce go to the maint (also called admin) area and click the repositories link under settings and tell us how many repository names do you see.
Nothing was checked as soon a I cked Trixbox and trix box addons the packages show up. Thank you for thinking of this I did not thing that nothing was checked. It should at least have by defaukt Trixbox.
Here is the resuykts you asked for:
Welcome to trixbox
-------------------------------------------------
For access to the trixbox web GUI use this URL
http://
For help on trixbox commands you can use from this
command shell type help-trixbox.
[trixbox1.local ~]# more /etc/sudoers
## Sudoers allows particular users to run various commands as
## the root user, without needing the root password.
##
## Examples are provided at the bottom of the file for collections
## of related commands, which can then be delegated out to particular
## users or groups.
##
## This file must be edited with the 'visudo' command.
## Host Aliases
## Groups of machines. You may prefer to use hostnames (perhap using
## wildcards for entire domains) or IP addresses instead.
# Host_Alias FILESERVERS = fs1, fs2
# Host_Alias MAILSERVERS = smtp, smtp2
## User Aliases
## These aren't often necessary, as you can use regular groups
## (ie, from files, LDAP, NIS, etc) in this file - just use %groupname
## rather than USERALIAS
# User_Alias ADMINS = jsmith, mikem
## Command Aliases
## These are groups of related commands...
## Networking
Cmnd_Alias NETWORKING = /sbin/route, /sbin/ifconfig, /bin/ping, /sbin/dhclient,
/usr/bin/net, /sbin/iptables, /usr/bin/rfcomm, /usr/bin/wvdial, /sbin/iwconfig,
/sbin/mii-tool
## Installation and management of software
Cmnd_Alias SOFTWARE = /bin/rpm, /usr/bin/up2date, /usr/bin/yum
## Services
Cmnd_Alias SERVICES = /sbin/service, /sbin/chkconfig
## Updating the locate database
Cmnd_Alias LOCATE = /usr/sbin/updatedb
## Storage
Cmnd_Alias STORAGE = /sbin/fdisk, /sbin/sfdisk, /sbin/parted, /sbin/partprobe, /
bin/mount, /bin/umount
## Delegating permissions
Cmnd_Alias DELEGATING = /usr/sbin/visudo, /bin/chown, /bin/chmod, /bin/chgrp
## Processes
Cmnd_Alias PROCESSES = /bin/nice, /bin/kill, /usr/bin/kill, /usr/bin/killall
## Drivers
Cmnd_Alias DRIVERS = /sbin/modprobe
# Defaults specification
#
# Disable "ssh hostname sudo
# You have to run "ssh -t hostname sudo
#
# Defaults requiretty
Defaults env_reset
Defaults env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR \
LS_COLORS MAIL PS1 PS2 QTDIR USERNAME \
LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION \
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERI
C \
LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS \
_XKB_CHARSET XAUTHORITY"
## Next comes the main part: which users can run what software on
## which machines (the sudoers file can be shared between multiple
## systems).
## Syntax:
##
## user MACHINE=COMMANDS
##
## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
## Allows members of the 'sys' group to run networking, software,
## service management apps and more.
# %sys ALL = NETWORKING, SOFTWARE, SERVICES, STORAGE, DELEGATING, PROCESSES, LOC
ATE, DRIVERS
## Allows people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
## Allows members of the users group to mount and unmount the
## cdrom as root
# %users ALL=/sbin/mount /mnt/cdrom, /sbin/umount /mnt/cdrom
## Allows members of the users group to shutdown this system
# %users localhost=/sbin/shutdown -h now
asterisk ALL = NOPASSWD: /sbin/shutdown
asterisk ALL = NOPASSWD: /usr/bin/nmap
asterisk ALL = NOPASSWD: /usr/bin/yum
asterisk ALL = NOPASSWD: /bin/chown
asterisk ALL = NOPASSWD: /bin/chmod
asterisk ALL = NOPASSWD: /bin/touch
asterisk ALL = NOPASSWD: /sbin/service
asterisk ALL = NOPASSWD: /sbin/init
asterisk ALL = NOPASSWD: /sbin/route
asterisk ALL = NOPASSWD: /bin/hostname
asterisk ALL = NOPASSWD: /bin/ln
asterisk ALL = NOPASSWD: /bin/bash
[trixbox1.local ~]#
I am new to all of this Lunix/VBPX/ASTERISK deal so please excuse me if I sound very green.
I downloaded the ICO for Trixbox CE so I can test it out. I got it all installed on a machine and was able to get the IP address all set with the right DNS, Gateway and all that stuff. So I executed the updates and the YUM updates just fine. Then I went to TRIXBOX.ORG, created a username for myself and got the email with the password.
Now from my webbroser bring up the TRIX box CE, click on the SWITCH to go to Admin mode and and enter in my username and password. However it keeps saying that it's an invalid username/password. I then enter in all the information for the registration screen and when I press SUMMIT it goes blank and never comes back.
The last thing I did was run "yum update tbm-GUIcore" from the main screen and that showed no updates are available.
What the heck am I doing wrong????
Thanks!
One fustrated IT manager...
Right :.....
Trixbox pro..
for the new bieee who are a bit confused
type cd /ect
vi php.ini
press the following
/max_ [ENTER] (move over to the number 3)
press esc key and then the letter r
press 6 [to change the 3 to six ]
press :
press wq
then run the update again , worked for me but have another problem
in /etc/php.ini change:
max_execution_time = 30
to
max_execution_time = 60
First, I made the changes you requested and I am still getting the same thing. The registration screen comes up so I enter in all the data and press SUMMIT, then the registration screen goes blank and just sits there completly blank. However I just noticed on the bottom corner of the screen the word Done but with a ! next to it. So I click on it and got the following debug information:
Line: 9
Char: 46
Error: Object required
Code: 0
URL: http://192.168.99.3/maint/modules/27_registrationTool/index.php?t...
Now as for the Trixbox CE vs Pro, I've chosen CE for three main reasons: Money, Money, Money. I simply have no budget to purchase PRO for the needs that we have. But if I can get CE installed and setup on a test environment in our lab, then test it out within our IT department we should be able to convince the powers in charge to purchase the Pro system. So that's why I am sticking with CE for now.
As a programmer, what fustrates me the most is the fact that TrixBox has to communicate with trixbox.org in order to validate the installation. What happens if trixbox goes under, or trixbox is down due to some natural disaster? If the trixbox server can't validate my username and password now this makes me worried that it won't validate it later down the road when it's important!
For example, lets say we have a major earthquake here in California and our phone lines and internet are down for days. If I have no internet access then how would I access the admin page of trixbox to reconfigure things? Get my point?
I hope the above debug information is usefull.
Thanks!
Dean
citapinc (Dean?)
What I had to do to get in (finally) was talk to a friend who is currently using CE and he showed me this:
First, after logging in on the CLI on the box itself (not through the web interface), I typed in the following command and hit Enter:
passwd-maint
and when it prompted me to, I changed the password to something I would remember and then confirmed it. Once that was done, I had to wait several hours before it would take effect, but I went into the web interface and pulled it up. I then clicked on "switch" to get out of user mode and when it prompted me for a user name and password to the "Restricted Area" I typed in the following:
maint
xxxxxxxxxxxx ("x" representing the password I changed it to in the CLI before this)
This allowed me in. I had been trying the default of:
maint
password
but this netted me nothing.
Once you are in, then you want go to the Asterisk button in the menu bar where its has:
Home Packages Asterisk System Settings
and click on the Config Edit option. Once in there, scroll down the the manager.conf link and open it. In there you will find the following:
;
; Asterisk Call Management support
;
[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0
[admin]
secret = amp111
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user
#include manager_additional.conf
#include manager_custom.conf
You will want to copy from [admin] down to write=system, call....user and paste it right above the #include manager_additional.conf, so it will look like this:
;
; Asterisk Call Management support
;
[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0
[admin]
secret = amp111
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user
[admin]
secret = amp111
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user
#include manager_additional.conf
#include manager_custom.conf
Now change the [admin] that you just pasted to [maint] instead of [admin] and change the secret to the password you created in the CLI. This will cause your manager.conf to look like this
;
; Asterisk Call Management support
;
[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0
[admin]
secret = amp111
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user
[maint]
secret = xxxxxxxxx ("x" represents the password you created in the CLI)
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user
#include manager_additional.conf
#include manager_custom.conf
You then want to go to the bottom of the page and click on Update. Then back out one step to the page that lists the different Config Edit options (links) and go the mid-top right where it says Re-Read Configs in red. Click on that and let it redo its configuration settings and you are set to go.
It tried to register as well and only got a blank page, so I just turned the request to register off by going to the Settings button and down to Registration option. I then went to the bottom of the page and clicked on "Don't ask me to register again" on the right side of the page towards the bottom. This put a stop to that non-sense.
Hope this helps,
Brian
same problems as everyone else. Was working a couple weeks ago on a test-build system, but this week when I went through the same steps (with one less NAT'd hop in the way, same network otherwise), it would not login, and would not update packages. After following most/all of the suggestions above, it still refused, claiming network error.
So, I rebooted the box, and magically its working now. Must have tickled something. (Yes, before rebooting I had tried restarting amportal, apache, and quite a few other things to no avail).
T
briangbettes:
I did those changes and I'm getting the same result. now I've always been able to click on the SWITCH link and enter in maint and password to log in. It's when I enter in my userid that I created at trixbox.org and the password they sent me, it continually gives me the message "Invalid username and/or password". Very fustrating.
I'm going to give this one last try tonight. If I can't get past this, then I'm going to erase Trixbox, snap the CD in half and look for another solution for our needs.
And for those reading this who keep saying "use TrixBox Pro", my answer is this: if I can't get TrixBox CE to work, then why would I assume that TrixBox Pro would work?
Thanks!
OK after banging my head against the wall and breathing all the smoke and ash from the fires around here (yes I'm in So California which is on fire!), I've determine that there is a bug with the software.
I found several posts that talks about editing the login_functions.php file and change the IF statement from 1 to 0. All this does is trick the PHP code to think that it got a proper login when in fact it is still failing. I was able to verify this by making the change which allowed me to log in. However when I click on the Packages tab, I get a timeout error no matter now long I make the timeout setting. This is because TrixBox never makes a good connection with trixbox.org so it can't properly download any packages that are available.
My only thought at this point is ports. Maybe trixbox is trying to connect to the Asterisk machine via ports. So I'm going to research which ports are required for Asterisk, open them up and see if that solves the problem. I'll post my findings here.
Thanks.

Member Since:
2006-09-18