Fixed errors on freeswitch startup
Forum » WikiPBX / Announcements » Fixed errors on freeswitch startup
Started by: tleydentleyden
On: 1239682195|%e %b %Y, %H:%M %Z|agohover
Number of posts: 5
rss icon RSS: New posts
Fixed errors on freeswitch startup
tleydentleyden 1239682195|%e %b %Y, %H:%M %Z|agohover

svn commit 70 fixes a really annoying bug in wikipbx which caused freeswitch to spit out a number of alarming errors during startup.

The fix was simple, just return the appropriate "not found" xml rather than an HTTP 404.

Reply  |  Options
Unfold Fixed errors on freeswitch startup by tleydentleyden, 1239682195|%e %b %Y, %H:%M %Z|agohover
Re: Fixed errors on freeswitch startup
tjaracastjaracas 1240612381|%e %b %Y, %H:%M %Z|agohover

I downloaded and configured the latest wikipbx from the svn link but see no improvements according the 404 error message in freeswitch console-.

Reply  |  Options
Unfold Re: Fixed errors on freeswitch startup by tjaracastjaracas, 1240612381|%e %b %Y, %H:%M %Z|agohover
Re: Fixed errors on freeswitch startup
tjaracastjaracas 1240869612|%e %b %Y, %H:%M %Z|agohover

Sorry it is OK. Strange but OK. What I did was downloading the trunk to another location than /usr/src/wikipbx and copied the settings.py from the older version into the new version. Changed the INSTALL _ROOT to the new location and ran ./wikipbx.sh. At that moment in time the new code was not executed. I fixed it by deleting the /usr/src/wikipbx directory and copying the template settings.py to settings.py and manually putting the corect settings in the settings.py. hereafter I started the ./wikipbx.sh and it generated the new *.py_c files. Now the 404`s are gone on startup.

Reply  |  Options
Unfold Re: Fixed errors on freeswitch startup by tjaracastjaracas, 1240869612|%e %b %Y, %H:%M %Z|agohover
Re: Fixed errors on freeswitch startup
tleydentleyden 1240871127|%e %b %Y, %H:%M %Z|agohover

I think you probably have the /usr/src directory on your PYTHONPATH environment variable (as the instructions suggest to do), and so it was picking up the "old stuff" in /usr/src/wikipbx.

I guess the following would have been better:

  • mv /usr/src/wikipbx /usr/src/wikipbx.OLD
  • cd /usr/src; svn co .. to create a new /usr/src/wikipbx with latest code
  • cp /usr/src/wikipbx.OLD/settings.py /usr/src/wikipbx

Then if the new version was broken, it would be easy to rollback ..

Reply  |  Options
Unfold Re: Fixed errors on freeswitch startup by tleydentleyden, 1240871127|%e %b %Y, %H:%M %Z|agohover
Re: Fixed errors on freeswitch startup
tjaracastjaracas 1240920695|%e %b %Y, %H:%M %Z|agohover

yeah, that eventually was what I did. The pythonpath setting was causing my problems.

Reply  |  Options
Unfold Re: Fixed errors on freeswitch startup by tjaracastjaracas, 1240920695|%e %b %Y, %H:%M %Z|agohover
New Post
page_revision: 0, last_edited: 1226259295|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License