<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Problems getting 0.8 running on Debian</title>
		<link>http://wikipbx.subwiki.com/forum/t-233617/problems-getting-0-8-running-on-debian</link>
		<description>Posts in the discussion thread &quot;Problems getting 0.8 running on Debian&quot; - Some wikipbx web pages don&#039;t display.</description>
				<copyright></copyright>
		<lastBuildDate>Mon, 06 Feb 2012 00:40:18 +0000</lastBuildDate>
		
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-233617#post-831767</guid>
				<title>Re: Problems getting 0.8 running on Debian</title>
				<link>http://wikipbx.subwiki.com/forum/t-233617/problems-getting-0-8-running-on-debian#post-831767</link>
				<description></description>
				<pubDate>Sun, 18 Jul 2010 18:05:42 +0000</pubDate>
				<wikidot:authorName>chigambamukoko</wikidot:authorName>				<wikidot:authorUserId>517173</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I apologize for being a newbie, I had missed a step, everything seems to be working now, thanks for the help to everyone</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-233617#post-831653</guid>
				<title>Re: Problems getting 0.8 running on Debian</title>
				<link>http://wikipbx.subwiki.com/forum/t-233617/problems-getting-0-8-running-on-debian#post-831653</link>
				<description></description>
				<pubDate>Sun, 18 Jul 2010 14:55:38 +0000</pubDate>
				<wikidot:authorName>chigambamukoko</wikidot:authorName>				<wikidot:authorUserId>517173</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>ledda: care to share step by step instructions on how to do this solution? I have the same problem but I'm kinda limited on my skills here :-) thanks bud</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-233617#post-808496</guid>
				<title>Re: Problems getting 0.8 running on Debian</title>
				<link>http://wikipbx.subwiki.com/forum/t-233617/problems-getting-0-8-running-on-debian#post-808496</link>
				<description></description>
				<pubDate>Mon, 14 Jun 2010 18:39:07 +0000</pubDate>
				<wikidot:authorName>stas_shtin</wikidot:authorName>				<wikidot:authorUserId>230176</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Concratulations on solving this issue. I've added this info to our troubleshooting guide.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-233617#post-808350</guid>
				<title>Re: Problems getting 0.8 running on Debian</title>
				<link>http://wikipbx.subwiki.com/forum/t-233617/problems-getting-0-8-running-on-debian#post-808350</link>
				<description></description>
				<pubDate>Mon, 14 Jun 2010 14:13:42 +0000</pubDate>
				<wikidot:authorName>ledda</wikidot:authorName>				<wikidot:authorUserId>497236</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I was able to make it work stable, rebuilding FreeSwitch ESL python interface.</p> <p>1. I've installed latest SWIG (2.0.0)</p> <p>2. Rebuild SWIG generated files in libs/esl/python directory:<br /> make reswig</p> <p>3. Then in libs/esl/ directory:<br /> make clean; make pymod</p> <p>After that wikipbx was able to call ESL functions properly.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-233617#post-808128</guid>
				<title>Re: Problems getting 0.8 running on Debian</title>
				<link>http://wikipbx.subwiki.com/forum/t-233617/problems-getting-0-8-running-on-debian#post-808128</link>
				<description></description>
				<pubDate>Mon, 14 Jun 2010 08:15:37 +0000</pubDate>
				<wikidot:authorName>ledda</wikidot:authorName>				<wikidot:authorUserId>497236</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I've made few changes in get_fs_connections() to add more logs. My code looks like:</p> <p>logger.info("creating eslconnection %s %s %s" % (socket.listen_ip, str(socket.listen_port),socket.password))<br /> con = ESL.ESLconnection("localhost","8021","ClueCon")<br /> if con.connected:<br /> logger.info("connected")<br /> else:<br /> logger.info("NOT connected")<br /> yield con</p> <p>Today after booting computer and starting wikipbx I was able to load several pages where get_fs_connections() being used (Endpoints Manage, Gateways Managed).<br /> Apache logs looks like this:</p> <p>[Mon Jun 14&nbsp;05:56:27&nbsp;2010] [error] get_fs_connections()<br /> [Mon Jun 14&nbsp;05:56:27&nbsp;2010] [error] 1 eventsockets<br /> [Mon Jun 14&nbsp;05:56:27&nbsp;2010] [error] creating eslconnection 127.0.0.1&nbsp;8021 ClueCon<br /> [Mon Jun 14&nbsp;05:56:27&nbsp;2010] [error] connected<br /> [Mon Jun 14&nbsp;05:56:27&nbsp;2010] [error] get_fs_connections() done</p> <p>After few clicks in wikipbx interface get_fs_connections() stops working and in apache logs I have:</p> <p>[Mon Jun 14&nbsp;05:56:33&nbsp;2010] [error] get_fs_connections()<br /> [Mon Jun 14&nbsp;05:56:33&nbsp;2010] [error] 1 eventsockets<br /> [Mon Jun 14&nbsp;05:56:33&nbsp;2010] [error] creating eslconnection 127.0.0.1&nbsp;8021 ClueCon</p> <p>Now every click on "Calls Live", "Gateways Manage", "Endpoints Manage" just hangs, without producing any output or error logs.</p> <p>After that I've tried FreeSwitch ESL sample scripts freeswitch-1.0.6/libs/esl/python/events.py and its working fine everytime I'm starting it.<br /> It has the same kind of code:</p> <p>con = ESLconnection("localhost","8021","ClueCon")<br /> #are we connected?<br /> if con.connected:<br /> print "connected"<br /> con.events("plain", "all");<br /> ….</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-233617#post-806593</guid>
				<title>Re: Problems getting 0.8 running on Debian</title>
				<link>http://wikipbx.subwiki.com/forum/t-233617/problems-getting-0-8-running-on-debian#post-806593</link>
				<description></description>
				<pubDate>Fri, 11 Jun 2010 18:03:52 +0000</pubDate>
				<wikidot:authorName>tleyden</wikidot:authorName>				<wikidot:authorUserId>230690</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>In the webserver logs, does it spit out the exact Ip / port its trying to connect to? (eg, wikipbx code running in webserver makes a socket connection to freeswitch)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-233617#post-806443</guid>
				<title>Re: Problems getting 0.8 running on Debian</title>
				<link>http://wikipbx.subwiki.com/forum/t-233617/problems-getting-0-8-running-on-debian#post-806443</link>
				<description></description>
				<pubDate>Fri, 11 Jun 2010 14:10:09 +0000</pubDate>
				<wikidot:authorName>ledda</wikidot:authorName>				<wikidot:authorUserId>497236</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I have the same issue on SuSE 10.3.<br /> Apache/2.2.4 (Linux/SUSE) mod_ssl/2.2.4 OpenSSL/0.9.8e PHP/5.2.11 with Suhosin-Patch mod_wsgi/3.2 Python/2.5.1 configured</p> <p>FS 1.0.6.</p> <p>This problems happens with any page that is calling get_fs_connections(). E.g. (live calls, manage account, manage gateways…)<br /> ESL.ESLconnection(…) from fsutil.py doesn't connect. The code stuck on this function and doesn't go any further.</p> <p>I wasn't able to solve this issue so far.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-233617#post-751538</guid>
				<title>Re: Problems getting 0.8 running on Debian</title>
				<link>http://wikipbx.subwiki.com/forum/t-233617/problems-getting-0-8-running-on-debian#post-751538</link>
				<description></description>
				<pubDate>Tue, 13 Apr 2010 04:58:14 +0000</pubDate>
				<wikidot:authorName>sirdotcom</wikidot:authorName>				<wikidot:authorUserId>468485</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi again — well I did a fresh install of debian, FS, and wikipbx and everything works great now! Sometimes a fresh install is just what is needed, and it only took a few hours :)</p> <p>To answer your questions … yes, the points where the GUI hung were all that you mentioned, so they were all points where wikipbx is querying freeswitch. The problem links were 'manage endpoints' 'manage gateways' and 'live calls'. The dialplan link worked like you said, as did all the ones I didn't just mention. So apparently it was a fallout between ESL and freeswitch.</p> <p>Great to have it working. Thanks for your help!</p> <p>Steve</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-233617#post-751432</guid>
				<title>Re: Problems getting 0.8 running on Debian</title>
				<link>http://wikipbx.subwiki.com/forum/t-233617/problems-getting-0-8-running-on-debian#post-751432</link>
				<description></description>
				<pubDate>Tue, 13 Apr 2010 02:21:00 +0000</pubDate>
				<wikidot:authorName>tleyden</wikidot:authorName>				<wikidot:authorUserId>230690</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I guess it's too late, but I was going to ask if the pages where it would never return a response were only those which used ESL to talk to freeswitch, eg:</p> <ul> <li>Show endpoints (queries freeswitch for registration status)</li> <li>Live calls</li> </ul> <p>Maybe a few others I am forgetting about right now. But for example on the extensions page, it does not need to talk to freeswitch, all that just comes straight out of the db.</p> <p>So was it just those two pages or was it a site-wide issue?</p> <p>Well regardless, glad to hear you got it working .. and thanks for the kind words!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-233617#post-751394</guid>
				<title>Re: Problems getting 0.8 running on Debian</title>
				<link>http://wikipbx.subwiki.com/forum/t-233617/problems-getting-0-8-running-on-debian#post-751394</link>
				<description></description>
				<pubDate>Tue, 13 Apr 2010 01:36:19 +0000</pubDate>
				<wikidot:authorName>sirdotcom</wikidot:authorName>				<wikidot:authorUserId>468485</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Thanks for the info … DEBUG in settings.py was True already but I tried False anyway — no errors in the wikipbx-error log. However, I did go back and check all the Django and Python paths, and everything looked good, but still no GUI page loads. So as a last ditch effort, I re-installed apache2 along with mod_wsgi, and now it works! I'm not sure what changed exactly, but now that I [think] I know how it all fits together I'm going to re-install Debian, FS, and wikipbx from scratch and see how it all works! Looking forward to using it.</p> <p>Thanks…<br /> Steve</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-233617#post-750543</guid>
				<title>Re: Problems getting 0.8 running on Debian</title>
				<link>http://wikipbx.subwiki.com/forum/t-233617/problems-getting-0-8-running-on-debian#post-750543</link>
				<description></description>
				<pubDate>Mon, 12 Apr 2010 12:30:26 +0000</pubDate>
				<wikidot:authorName>stas_shtin</wikidot:authorName>				<wikidot:authorUserId>230176</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Although those messages appear in the error log, they are actually just informational. They look normal to me.</p> <p>Can you have a look at the access log file and see which status do the hanging pages return?</p> <p>Try changing DEBUG value in your settings.py file to True or False, see if it makes any difference. You'll need to restart apache for the new value to have effect.</p> <p>If it won't help, here's a patch that would show some info about ESL connection:</p> <div class="code"> <pre> <code>Index: wikipbx/wikipbxweb/views.py =================================================================== --- wikipbx/wikipbxweb/views.py (revision 276) +++ wikipbx/wikipbxweb/views.py (working copy) @@ -851,16 +851,20 @@ for connection in fsutil.get_fs_connections(): try: for endpoint in endpoints: + logger.info("Endpoint: %s" % endpoint) # we have to check each profile, since in theory # and endpoint can be regd to any defined profile regd_on_any_profile = False for sipprofile in SipProfile.objects.all(): cmd = ("api sofia status profile %s user %s@%s" % (sipprofile.name, endpoint.userid, account.domain)) + logger.info("Sending command: %s" % cmd) results = connection.sendRecv(cmd) + logger.info("Result: %s" % results) if not results: raise Exception("Could not connect to FreeSWITCH") data = results.getBody().splitlines() + logger.info("Results data: %s" % str(data)) for line in data: if line.startswith("Contact:"): # found "Contact:", that means this endpoint is reg'd</code> </pre></div> <p>Make a backup copy of your wikipbx/wikipbxweb/views.py file, cd to wikipbx root directory, apply the patch with "patch -p0 &lt; /path/to/patch/file" and restart apache. You should see some extra info in apache error log after following Endpoints &gt; Manage link. Post it here, replacing any confidential info with *'s and restore you views.py file from the backup.</p> <p>That would shed some light in case if it's ESL library problem.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-233617#post-750489</guid>
				<title>Re: Problems getting 0.8 running on Debian</title>
				<link>http://wikipbx.subwiki.com/forum/t-233617/problems-getting-0-8-running-on-debian#post-750489</link>
				<description></description>
				<pubDate>Mon, 12 Apr 2010 10:38:02 +0000</pubDate>
				<wikidot:authorName>sirdotcom</wikidot:authorName>				<wikidot:authorUserId>468485</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Yes, I am able to connect to the event socket by telnet (on port 8021). The apache error log shows 3 errors for each request:</p> <div class="code"> <pre> <code>[Mon Apr 12 10:22:38 2010] [error] get_fs_connections() [Mon Apr 12 10:22:38 2010] [error] 1 eventsockets [Mon Apr 12 10:22:38 2010] [error] creating eslconnection</code> </pre></div> <p>So it must be something with ESL? The freeswitch libs/esl was compiled as the installation manual described.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-233617#post-750440</guid>
				<title>Re: Problems getting 0.8 running on Debian</title>
				<link>http://wikipbx.subwiki.com/forum/t-233617/problems-getting-0-8-running-on-debian#post-750440</link>
				<description></description>
				<pubDate>Mon, 12 Apr 2010 08:52:18 +0000</pubDate>
				<wikidot:authorName>stas_shtin</wikidot:authorName>				<wikidot:authorUserId>230176</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Did it give you any errors in web server's error log?</p> <p>It looks like some kind of problem with ESL library or with event socket connection to freeswitch. Can you connect with telnet to the same host IP and port you've specified in event socket config settings?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-233617#post-750301</guid>
				<title>Problems getting 0.8 running on Debian</title>
				<link>http://wikipbx.subwiki.com/forum/t-233617/problems-getting-0-8-running-on-debian#post-750301</link>
				<description></description>
				<pubDate>Mon, 12 Apr 2010 05:10:26 +0000</pubDate>
				<wikidot:authorName>sirdotcom</wikidot:authorName>				<wikidot:authorUserId>468485</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I am running a fresh install of wikipbx 0.8 on debian lenny. I finally got all the python, django, and wsgi stuff working ;-) Now everything seems to be stable and operating - Freeswitch shows the SIP profiles I created in wikipbx so I know they are communicating. But for some reason some of the links on the Admin User dashboard just don't load (I click them and the browser sits forever "waiting for response" which doesn't come.) Also when I create an endpoint and hit 'submit' the page does not reload, but when I click on 'manage' it shows the endpoint I just created. Also when I click 'Endpoints -&gt; Manage' or 'Calls -&gt; Live' the same thing happens, no response. Everything seems to be square and I haven't seen anybody else having similar problems.</p> <p>Other than that, I ram really excited about wikipbx and how powerful it is … I've tried Fusionpbx and freepbx-v3 but wasn't nearly as impressed as I am with Wikipbx.</p> <p>Thanks,<br /> Steve</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>
