login and registration problems FAQ for trixbox 2.3/2.4

hbmus080
Posts: 109
Member Since:
2006-09-18

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.

--

got Nibiru?



burgeroz
Posts: 1
Member Since:
2007-06-28
What I found to fix it

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.



mazsol
Posts: 1
Member Since:
2007-09-06
registration

Tried both suggestions but I changed the password because the original one was 10 char long and it appears it only accepts 9.
Any ideas appreciated
Steve



Freebyrd
Posts: 30
Member Since:
2007-09-04
I used to be able to log in

I used to be able to log in but now I can't anymore. I think their site is broke.



Freebyrd
Posts: 30
Member Since:
2007-09-04
Is this going to be fixed

Is this going to be fixed any time soon, it's starting to get anoying



Jasons
Posts: 3
Member Since:
2007-09-08
Ok I've tried everything new

Ok I've tried everything new account no luck

How esle can I install packages and why the hell do I have to log into a site first to do that?



cwalter99
Posts: 1
Member Since:
2007-09-09
Possible workaround

I have been just logging into my trixbox via ssh and running yum update. This runs yum and instructs it to check for any updates to your system that might be available, it will ask if you want to upgrade before actually doing it.

Chad



Jasons
Posts: 3
Member Since:
2007-09-08
that doesn't help if I want

that doesn't help if I want to install new packages....

this sucks...

I can't get logged in at all....



hbmus080
Posts: 109
Member Since:
2006-09-18
login and registration problems FAQ for trixbox 2.3/2.4

Can you please post the error you are receiving when you try to login.
Also can you please type the following command on the CLI of your trixbox andpost the response:
ls -la /var/lib/php

--

got Nibiru?



monmagallanes
Posts: 2
Member Since:
2007-05-03
I can't login on the trixbox.org on the admin page of my trixbox

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



Marsoft
Posts: 73
Member Since:
2007-07-27
For some reason i can't

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



Jasons
Posts: 3
Member Since:
2007-09-08
[root@asterisk1 ~]# ls -la

[root@asterisk1 ~]# ls -la /var/lib/php
total 24
drwxr-xr-x 3 root root 4096 Sep 5 10:21 .
drwxr-xr-x 19 root root 4096 Sep 5 10:23 ..
drwxrwx--- 2 asterisk asterisk 4096 Jul 10 2006 session

The error when trying to log in is Invalid Username and/or password.



KWMD
Posts: 14
Member Since:
2006-10-07
No Login is possible

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.

--

jeremy of kwmd and other stuff



Freebyrd
Posts: 30
Member Since:
2007-09-04
Are they going to fix this

Are they going to fix this or what?



hbmus080
Posts: 109
Member Since:
2006-09-18
Registration problem and login issues continue,,,,,,

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

--

got Nibiru?



KWMD
Posts: 14
Member Since:
2006-10-07
nope

no workie - guess i will try to restore 2.0

--

jeremy of kwmd and other stuff



Freebyrd
Posts: 30
Member Since:
2007-09-04
So I guess the ppl that

So I guess the ppl that right this software don't read the forums, so are we just screwed here or what?

I was so exicted about running my own phone system now I'm thinking of going back to vonage :(



Freebyrd
Posts: 30
Member Since:
2007-09-04
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 !!

Everyone can thank cak007 for this fix!!! He rocks!



Freebyrd
Posts: 30
Member Since:
2007-09-04
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 !!

Everyone can thank cak007 for this fix!!! He rocks!



Marsoft
Posts: 73
Member Since:
2007-07-27
Right, I STILL CANT

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



Madmaxxxx
Posts: 3
Member Since:
2007-04-11
So is there any word from

So is there any word from the trixbox gods on a fix for this??????



hbmus080
Posts: 109
Member Since:
2006-09-18
Updating the trixbox UI

We are working on resolving this issue. One possible fix might be going to the command line of your trixbox and running the following command:
yum update tbm-GUIcore

--

got Nibiru?



KWMD
Posts: 14
Member Since:
2006-10-07
my update

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.

--

jeremy of kwmd and other stuff



ovcs
Posts: 1
Member Since:
2007-09-14
problem solved

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



jrecho
Posts: 78
Member Since:
2007-08-01
Packages gone ???

In 2.3 I see that when I click on packages it asks me to login everytime then retuens no list all I see is the buttons upgrade install and delete

I know ths is a beta version so I am reporting this bug.



jrecho
Posts: 78
Member Since:
2007-08-01
Packages gone ???

In 2.3 I see that when I click on packages it asks me to login every time then returns no list all I see is the buttons upgrade install and delete

I know ths is a beta version so I am reporting this bug.



jrecho
Posts: 78
Member Since:
2007-08-01
Packages gone ???

In 2.3 I see that when I click on packages it asks me to login every time then returns no list all I see is the buttons upgrade install and delete

I know this is a beta version so I am reporting this bug.



ah_clem
Posts: 74
Member Since:
2007-09-16
Can't install Trixbox...

Sorry, first time posting, I'm in the wrong place it seems... Didnt' mean to reply directly to this thread...



Alric
Posts: 1
Member Since:
2007-09-20
I'm also having trouble

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.



ah_clem
Posts: 74
Member Since:
2007-09-16
As I am as well...

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



ah_clem
Posts: 74
Member Since:
2007-09-16
A bit further I think...

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



ah_clem
Posts: 74
Member Since:
2007-09-16
Well my problem is solved

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



Marsoft
Posts: 73
Member Since:
2007-07-27
Quote:<?php $url =
Quote:
<?php
$url = array('http://trixbox.org', 'http://66.234.135.90');
?>

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

Ah, this fixed my issue with registering the box. Looks like the trixbox.com domain is bombing a clean install out!



rgbelon
Posts: 5
Member Since:
2007-02-21
Inactive Login:

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



supersizer
Posts: 5
Member Since:
2007-09-26
Clean Install Still No Luck

Hi

Driving me insane this Packages problem, no login box in the top right after succesfully registering on the pop-up.

Is there a definitive/simple method to allow the packages component to work ?

All help appreciated.

Regards

Ed



hbmus080
Posts: 109
Member Since:
2006-09-18
Clean Install Still No Luck

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.

--

got Nibiru?



supersizer
Posts: 5
Member Since:
2007-09-26
Clean Install Still No Luck

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



hbmus080
Posts: 109
Member Since:
2006-09-18
Clean Install Still No Luck

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.

--

got Nibiru?



hbmus080
Posts: 109
Member Since:
2006-09-18
Inactive Login:

Robert,
Which trixbox is you question related to:
trixbox pro?
or
trixbox CE?

--

got Nibiru?



supersizer
Posts: 5
Member Since:
2007-09-26
Clean Install Still No Luck

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



jrecho
Posts: 78
Member Since:
2007-08-01
I am geeting an empty

I am geeting an empty package page after I use my forum log in but only works fine.



jrecho
Posts: 78
Member Since:
2007-08-01
I am geeting an empty

I am geeting an empty package page after I use my forum log in but only works the first time then it has no packages



hbmus080
Posts: 109
Member Since:
2006-09-18
I Am Getting and Empty

Please try going to the command line of your box and type the following:
yum update tbm-GUIcore

--

got Nibiru?



hbmus080
Posts: 109
Member Since:
2006-09-18
Clean Install Still No Luck

Supersizer,
Please try going to the command line of your box and type the following:
yum update tbm-GUIcore

--

got Nibiru?



supersizer
Posts: 5
Member Since:
2007-09-26
Clean Install Still No Luck

Will give it a try tonight, no vpn to this rig

Regards

Ed



supersizer
Posts: 5
Member Since:
2007-09-26
Clean Install Still No Luck

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



bmgoldst
Posts: 27
Member Since:
2007-09-18
Packages Problem

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.



hbmus080
Posts: 109
Member Since:
2006-09-18
Packages Problem

bmgoldst,
1.) You need to edit the file /etc/php.ini.
2.) Look for the line that has the following text:
max_execution_time = 30
3.) Increase the value from 30 to 300
4.) then try to access the package manager again.

Please post the results of this action.

--

got Nibiru?



bmgoldst
Posts: 27
Member Since:
2007-09-18
THE RESULTS!!

That worked!!
Thank You!!



jrecho
Posts: 78
Member Since:
2007-08-01
still empty package list

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)



hbmus080
Posts: 109
Member Since:
2006-09-18
still empty package list

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.

--

got Nibiru?



jrecho
Posts: 78
Member Since:
2007-08-01
using CE here are the results you asked for

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 ", because it will show the password in clear.

# 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 ~]#



comspeco
Posts: 6
Member Since:
2007-10-08
what fixed it for me

in /etc/php.ini change:

max_execution_time = 30

to

max_execution_time = 60

Found on line 230 for me in Trixbox CE beta 2.3.0.3. Thanks for that in an earlier post. Now I can login, grab new packages, and all that good stuff.



citapinc
Posts: 238
Member Since:
2007-10-13
Just installed and can't log in.

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



rgbelon
Posts: 5
Member Since:
2007-02-21
RE :: Inactive Login

Hi,

Trixbox Pro.



webboy
Posts: 9
Member Since:
2007-04-09
Right :..... Trixbox

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



briangbettes
Posts: 2
Member Since:
2007-10-16
Thank you!

I have followed all the exact same steps as citapinc and I am getting the exact same results. Please tell both of us what needs to happen here so we can login!



citapinc
Posts: 238
Member Since:
2007-10-13
Just installed and can't log in.

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



GeekNumb21
Posts: 54
Member Since:
2006-07-21
.

.



briangbettes
Posts: 2
Member Since:
2007-10-16
Just installed and can't log in.

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



easydave
Posts: 6
Member Since:
2006-12-22
can't login anymore

My system is running 3 weeks without rebooting and I checked update 3 times a week.
I can't login anymore since this morning. Please let me know, you might have problem verifying user ID and Password.



md1738
Posts: 5
Member Since:
2007-10-18
Same problem

I can't login from Trixbox, either. I tried changing the password. I can log into the Trixbox site directly... just not through Trixbox. This worked fine last week?



iticsolutions
Posts: 1
Member Since:
2007-10-09
Problem fixed for me

Hi everybody

Thanks Freebyrd I fixed my registration problem with your explanation

Refresh the browser is recommanded after modifications.



greentemp
Posts: 1
Member Since:
2006-11-18
Same problem for me...

Same problem for me...



Tmack0
Posts: 8
Member Since:
2007-10-12
ditto, but now its werkn

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



Sparky4
Posts: 13
Member Since:
2007-01-30
Freebyrd's solution (13/09/07) worked for me too !!

Many thanks Freebyrd

Best regards,

Sparky4



tuputamadre
Posts: 1
Member Since:
2007-10-22
Changed all, used a Mac used a PC and nothing

Nothing works... And has been like this for 3 weeks? So much for mission critical patching... I know you can do it manually, but not everybody here knows how or feels comfortable with it.



citapinc
Posts: 238
Member Since:
2007-10-13
briangbettes: I did those

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!



citapinc
Posts: 238
Member Since:
2007-10-13
OK after banging my head

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.



chuckjuhl
Posts: 19
Member Since:
2007-09-07
Same problem

I can't login from Trixbox, either. I tried changing the password. I can log into the Trixbox site directly... just not through Trixbox. This worked fine a few days ago.

Tried rebooting. Still no go. Sure as heck can't deploy something this buggy to clients.



davidsain
Posts: 41
Member Since:
2007-09-20
I had the same idea earlier today

@ citapinc

but haven't looked into it since the PHP fix took care of the login issue for me. The common problem is people can't login, but I'm sure the LAN configs are all different. I'm using a 2-wire DSL router from AT&T in a pretty much default setup. I have 5 public IPs, but those are being saved for the web server, etc. I wonder what hardware people are using who encounter these problems.

A point against this idea is one person posted indicating their server was on a public, non-firewalled IP, but I don't know how their router was setup. Perhaps ports were unknowingly blocked.

I found that the posted fix where www.trixbox.org is replaced with www.trixbox.com does make the response different (faster login failure with .com), but I have no idea how that might apply. I never had a problem with the packages showing up after the PHP fix.

Good luck, and I look forward to what you find.

David



Comment viewing options

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