Trixbox 2.8.0.4 - CDR / PHP Error

iceman747
Posts: 4
Member Since:
2009-07-29

Hi there,

I've got a clean Trixbox CE 2.8.0.4 and the Reports in FreePBX has an PHP Bug.
"YOU MUST ACCESS THE CDR THROUGH THE ASTERISK MANAGEMENT PORTAL!" is shown.
I've searched a Solution but the only one I found is that the php session folder has not the owner or group asterisk, but mine has had it already.
My PHPmyAdmin has the same Problem.

Has anyone else this Problem or a Solution ?!

This might be a bug in 2.8.0.4

Greetings
Mario



ccopmp
Posts: 2
Member Since:
2006-09-20
Yes, I'm having this issue

Yes,
I'm having this issue as well on multiple fresh installs. Any help would be appreciated.



microfirmz
Posts: 14
Member Since:
2007-03-13
Similar Issue on several fresh installs

I have a similar issue, and it seems like the SESSION is not getting stored.

Here's what happens on my installs (steps to reproduce):
1. Fresh Install
2. Open Web Interface
3. Log in as maint
4. Browse to 'Packages' (XML File error is thrown)
5. Browse to 'Repositories'
6. Make a change, Save.
7. Browse anytwhere else...

Result:
1. The styles of the outer page get wiped clean (i.e. no colors, pictures.. just plain text on the menus. JS still works.)
2. Cannot edit config files outside th '/etc/asterisk' folder. "Unable to read configuration file." is thrown.

Thoughts:
1. The /etc/asterisk is the default folder for config manager. If Session isn't stored correctly, that folder is set as default resulting in it being the only folder I can change configs in.
2. Similar problem with the CSS, the failes are under /maint, but the session is not passing the user to the code thus looking for the css files in // instead of /maint/.

I have checked that the php session dir has asterisk perms.

I'm not big on PHP, so if someone can take a look at this, it would be great!



obeliks
Posts: 878
Member Since:
2010-03-14
Given the number of bugs in

Given the number of bugs in 2.8.0.4 I am surprised people are using it.
Stick with 2.8.0.3, why do you need the latest version ?
Is there anything you need in 2.8.0.4 not available in 2.8.0.3 ?
Did you get your iPhone 4 yet ? ;-)))



microfirmz
Posts: 14
Member Since:
2007-03-13
link

The downloads page happened to list that as the latest *stable* with asterisk 1.6. Trying 2.8.0.3 now...
No iPhone 4, still holding out for WinPho7 ;)



obeliks
Posts: 878
Member Since:
2010-03-14
*stable* is a marketing term

*stable* is a marketing term really meaning we pushed the bits out and can pat ourselves on the back.



Cybercare
Posts: 132
Member Since:
2008-02-19
Its sad that these major

Its sad that these major bugs make it to release.

This bug should have gotten caught. We go through these so called beta and RC and still things like this make the entire build useless.

I know this is open source and that not a lot of people work on it but its not like this was a hard to find bug or anything.

Its sad, a few years ago Trixbox was great, and dont get me wrong it still is but it seems to be getting worse as far as quality.

Wonder if this can get fixed with a simple update or will require another re-install.... Its been about a year I been waiting for a good asterisk 1.6 code system and seems my wait has to continue because we have yet to get a stable one. :(



jas_williams
Posts: 205
Member Since:
2007-05-13
I have found the resolution

I have found the resolution it seems that the memcache module that is used to hold the session information is not started at bootup

It can be started Manually by

/etc/init.d/memcached start

on my system

chkconfig --list | grep mem

shows

memcached 0:off 1:off 2:off 3:off 4:off 5:off 6:off

memcached needs to be running at runlevels 2,3,4 & 5

do issue the following command

chkconfig memcached on

chkconfig --list | grep mem

now shows

memcached 0:off 1:off 2:on 3:on 4:on 5:on 6:off

All good--- CDR's should work fine now
so you need to issue the following commands

/etc/init.d/memcached start
chkconfig --add memcached
chkconfig memcached on

Regards

Jason



Astrosmurfer
Posts: 643
Member Since:
2009-12-28
Perhaps...

Thanks for posting your solution Jason.

After several posts about this being a bug, I'd like to point out that this issue does not occur on all or even most systems. This suggests that the issue may be hardware related/specific. It would be helpful to the project as a whole if, those that are experiencing this problem, posted details about their broken installation. Things like hardware (PC and peripherals), deviations from default options during installation, specific configuration changes would help in identifying the true cause of the problem and, if it is a bug, resolving it.

<Soapbox mode>
Anyone that has used open source software for any length of time is painfully aware that the lack of dedicated development resources and cold hard cash cause most projects to lack features and have lots of bugs that are slow to be resolved. However, the project also relies on the community to assist. This assistance comes in many forms including testing and bug reports.

trixbox itself is not developed by Andrew or Fonality. It is a compilation of other projects, a distribution. But, they still have beta tests prior to releases. How many people have tested a recent trixbox beta? How many have filed even one proper bug report? You can't expect the project to grow and mature if you just suck up the free stuff and moan about its deficiencies. You've got to contribute as well.
</Soapbox mode>



microfirmz
Posts: 14
Member Since:
2007-03-13
Hardware/Installation

Jason, thanks for the fix! Just tried it and it resolved the problems I was having.

Info:
Dell Poweredge 2850
No additional hardware
Trixbox 2.8.0.4 Standard Install. Language: US. Timezone Chicago.
Steps to cause failure are described above. (4 clean installs, same problem).

Again, Jason, thank you.



jas_williams
Posts: 205
Member Since:
2007-05-13
I have not said it is a

I have not said it is a bug

It a module not configured to load on startup this is only on the latest 2.8.4 iso it worked fine in the 2.8.3

You only see this problem if you build a new system from the 2.8.04 iso

Jason



jas_williams
Posts: 205
Member Since:
2007-05-13
Does this fix your problems

Quote >>>
After several posts about this being a bug, I'd like to point out that this issue does not occur on all or even most systems. This suggests that the issue may be hardware related/specific. It would be helpful to the project as a whole if, those that are experiencing this problem, posted details about their broken installation. Things like hardware (PC and peripherals), deviations from default options during installation, specific configuration changes would help in identifying the true cause of the problem and, if it is a bug, resolving it.

Astrosmurfer have you actually built a trixbox system 2.8.04 from the Iso posted on line ????

On the systems you have built from a clean install that work

what is the output from

chkconfig --list | grep memcached

and

ps -ef | grep memcached

I would be interested to see if memcached is running on your machines. If it is then how.

If it is not do you have a memcached.ini file or not

I agree it doesn't occur on systems that have been yum updated from earlier versions...



andrew
Posts: 1472
Member Since:
2006-05-30
Thanks, not sure why it

Thanks, not sure why it worked for all the beta testers including myself even though memcached was not running. I'll make sure this goes into the next release.

If you find any other problems with 2.8.0.4 please post a detailed bug report so they can be resolved quickly.



KiwiSA
Posts: 1
Member Since:
2010-06-27
Problem Resolved.

Thank you Jason for showing me how to restore the TB Interface, I had followed your instructions from top to bottom and restarted the computer and was pleasantly surprised when I logged back into my TB that the User Interface was back to normal again, I will come back to this page in the future so I can restore the setting's until it becomes second nature.

Thank you again.



jas_williams
Posts: 205
Member Since:
2007-05-13
This should now have

This should now have resolved your issue it will not happen again on your server unless you rebuild

Jason



nttranbao
Posts: 189
Member Since:
2008-02-16
Hi Jason, thanks for

Hi Jason, thanks for pointing this out. In fact with no memcached running, there are more issues rather than CDR. One of them is to phpMyAdmin: you can create database, but can NOT delete/drop it, or edit any single records....

I have thought of an reinstallation of Trixbox 2.8.0.3, but after starting memcached, phpMyAdmin works great :)

--

----------------------
IT/VOIP consultancy, VOIP eStore, Support Forum
Bao Nguyen IT Co., Ltd.
http://www.baonguyen.vn
WE MAKE IT



ndynamics
Posts: 7
Member Since:
2006-09-04
Same problem here

Dell Poweredge 860 with fresh ISO install of 2.8.0.4, no hardware or cards outside of a stock system with a SATA hard drive. Added two extensions, enabled voice mail on both, hooked up SIP phones, had one phone call the other and left a voice mail. Accessed ARI, logged in, and could not delete the voice mail.

# chkconfig --list | grep mem
memcached 0:off 1:off 2:off 3:off 4:off 5:off 6:off
# chkconfig memcached on
# chkconfig --list | grep mem
memcached 0:off 1:off 2:on 3:on 4:on 5:on 6:off
# /etc/init.d/memcached start
Starting Distributed memory caching (memcached): [ OK ]

Now I can delete voice mails.

Thanks for the post!



digitize
Posts: 2
Member Since:
2009-09-24
I had this problem after

I had this problem after upgrading to 2.8.0.4 and thanks to the above post I managed to get the "reports" to work again. I was going to revert back to 2.8.0.1 but now all is good. Thanks!!!!!



AlexQ
Posts: 6
Member Since:
2006-08-23
Thank you Jason

Excellent explanation

Thanks

trixbox Certified Technician since 2007
Networking Expert Support
English, Spanish and French
http://www.ishitech.com
http://www.armeca.net

--

trixbox Certified Technician since 2007
Networking Expert Support
English, Spanish and French
http://www.ishitech.com
http://www.armeca.net



chetlabruyere
Posts: 5
Member Since:
2009-08-19
Thank you Jason!!

We had the same problem with a clean installation. We are using a Dell Optiplex GX755, QuadCore 4GB RAM



Shellite
Posts: 1
Member Since:
2010-10-24
Thanks Jason!!

As with the prior replies, I too had this problem and am very glad I found this post!

Clean installation running on a HP DL360 G4 Dual Xeon 6Gb RAM virtualised on SLES 11.0 Xen.



fjeanmar
Posts: 7
Member Since:
2009-02-06
Thanks you Jason. You rock!

I had the same problem as everyone with maint menu, CDR not working, etc. I came across this post and my issues are resolved.



fjeanmar
Posts: 7
Member Since:
2009-02-06
Problem solved. Thanks again!

obeliks
Posts: 878
Member Since:
2010-03-14
better solution is posted in

better solution is posted in this thread:

http://fonality.com/trixbox/forums/trixbox-forums/help/yum-update...



ansalgado
Posts: 1
Member Since:
2010-12-12
Fixed issue on ESXi 4.1

Thank for your insight Jason. Followed your advice and everything is working fine now.



mkleine
Posts: 207
Member Since:
2007-04-22
Another symptom

When I loaded 2.8.0.4 from scratch, (thrice now), the trixbox maintenance header panel would disappear after a bit. The top of the page, where the navigation bar once was, had become simple plain text. The links still worked, they were VERY unfriendly to view and looked very unprofessional.

However, using Jason's Memcach trick above, the web page maintenance header panel now displays properly.

Nice job Jason, and this is a great example of open source software actually working!



mahrndt
Posts: 7
Member Since:
2006-06-21
LS command

Dear all,

this could also help you:
http://fonality.com/trixbox/node/37990

it did the trick for me. Just added the:
ln -s /var/spool/asterisk/monitor /var/www/html/maint/cache/monitor

into console and yup - it was working perfectly ever after.



jerrybk108
Posts: 3
Member Since:
2011-04-05
it worked fine!

@jas_williams:
Thank you very much!
Thank Jason!



AngelPlumber
Posts: 1
Member Since:
2011-08-17
This worked for me

Thank you for the fix Jason
I'm running a mini gateway box with a pentium E5500 chip



DaubeEspinozaV
Posts: 2
Member Since:
2009-10-29
Problem solved. Thanks

TB: v2.8.0.4
Asterisk 1.6.0.26
HW: HP Proliant ML110 G5, Pentium D 3.00GHz, 1GB RAM, TDM800P

Thanks Jason!



Comment viewing options

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