<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Django apache wsgi config in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Django-apache-wsgi-config/m-p/726694#M5419</link>
    <description>&lt;P&gt;I know this is an old post, but did you ever find a resolution for this?&amp;nbsp; I am seeing the same issue with the loop of the pyagent process going defunct then the watchdog spinning up a new one.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jul 2020 15:53:00 GMT</pubDate>
    <dc:creator>Jeremy_Freedman</dc:creator>
    <dc:date>2020-07-22T15:53:00Z</dc:date>
    <item>
      <title>Django apache wsgi config</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Django-apache-wsgi-config/m-p/726691#M5416</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;I’m looking for further documentation or support materials to assist me with configuring the pyagent for Django using webfaction, apache wsgi and virtualenv. The 44 docs&amp;nbsp;detail a python email address but I've had no reply.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;I’ve installed and configured the agent as per the docs, my site loads and functions as expected. But when starting the proxy manually it simply loops trying to connect creating pids and no agent connection to the controller is successful.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;I’m able to invoke curl to the controller and get a correct response, so I’m suspecting my config within&amp;nbsp;httpd.conf is not correct.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;My scriptalias points to a .py file, with ScriptAlias pointing to wsgi.py file. W&lt;/SPAN&gt;&lt;SPAN class=""&gt;ithin&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;wsgi.py&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;a wsgi handler is created with &lt;/SPAN&gt;application = get_wsgi_application(), which&amp;nbsp;is of type&amp;nbsp;&amp;lt;class 'django.core.handlers.wsgi.WSGIHandler’&amp;gt; so I refereenced this in the APPD_WSGI_MODULE variable.&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;SetEnv&lt;/SPAN&gt;&lt;SPAN class=""&gt; APPD_CONFIG_FILE /path-to-config/appdynamics.cfg&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;SetEnv&lt;/SPAN&gt;&lt;SPAN class=""&gt; APPD_WSGI_MODULE myapp.config.wsgi:application&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;WSGIDaemonProcess&lt;/SPAN&gt;&lt;SPAN class=""&gt; wowtest processes=2 threads=12 python-&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;WSGIProcessGroup wowtest&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;WSGIRestrictEmbedded &lt;/SPAN&gt;&lt;SPAN class=""&gt;On&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;WSGILazyInitialization &lt;/SPAN&gt;&lt;SPAN class=""&gt;On&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;WSGIScriptAlias / /path-to-venv/venv/lib/python3.6/site-packages/appdynamics/scripts/wsgi.py&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;When manually running the proxy passing the app dynamics.cfg path with the -c flag, no connection is made the proxy appears to keep&amp;nbsp;trying to connect&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Is there any further information for configuring the agent for&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;pyagent for Django&amp;nbsp;wssgi?&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Thanks&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Jan 2019 06:24:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Django-apache-wsgi-config/m-p/726691#M5416</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2019-01-17T06:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Django apache wsgi config</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Django-apache-wsgi-config/m-p/726692#M5417</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;

&lt;P&gt;If the pyagent proxy "watchdog" is looping, likely what's happening is that the Java process is not starting up properly. We want to recursively check the permissions on each of these directories: /tmp/appd, the Python module directory. The user which runs the Python process and the pyagent proxy command should have read execute on both. Let me know if that helps!&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Kyle&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2019 01:02:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Django-apache-wsgi-config/m-p/726692#M5417</guid>
      <dc:creator>Kyle_Furlong</dc:creator>
      <dc:date>2019-01-18T01:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Django apache wsgi config</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Django-apache-wsgi-config/m-p/726693#M5418</link>
      <description>&lt;P&gt;Hey Kyle&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the note.&lt;/P&gt;
&lt;P&gt;I'm running within a python3.6 virtual env, created by my user to which i have full permissions. The /tmp/appd dir and children again are all belonging to my user.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've spent a couple of hours trying things with no joy. I'm wondering if it's related to the loading of python path incorrectly, and using another version that requires root privileges&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN class="s3"&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="s3"&gt;Chris&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2019 15:36:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Django-apache-wsgi-config/m-p/726693#M5418</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2019-01-18T15:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Django apache wsgi config</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Django-apache-wsgi-config/m-p/726694#M5419</link>
      <description>&lt;P&gt;I know this is an old post, but did you ever find a resolution for this?&amp;nbsp; I am seeing the same issue with the loop of the pyagent process going defunct then the watchdog spinning up a new one.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 15:53:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Django-apache-wsgi-config/m-p/726694#M5419</guid>
      <dc:creator>Jeremy_Freedman</dc:creator>
      <dc:date>2020-07-22T15:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Django apache wsgi config</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Django-apache-wsgi-config/m-p/726695#M5420</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;These issues are usually due to the proxy process not being able to start. In the watchdog logs you should have a command line printed out that's trying to run. Please try to run that separately and see if there are any errors.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 16:44:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Django-apache-wsgi-config/m-p/726695#M5420</guid>
      <dc:creator>Kyle_Furlong</dc:creator>
      <dc:date>2020-07-24T16:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Django apache wsgi config</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Django-apache-wsgi-config/m-p/726696#M5421</link>
      <description>&lt;P&gt;I found my issue, posting it here in case anyone else has similar issues.&lt;/P&gt;&lt;P&gt;After I installed the agent via pip, I had to set execute permissions on:&lt;/P&gt;&lt;P&gt;&amp;lt;path to my virtualenv&amp;gt;&lt;SPAN&gt;/lib64/python3.6/site-ackages/appdynamics_bindeps/proxy/runProxy&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;path to my virtualenv&amp;gt;/lib64/python3.6/site-packages/appdynamics_proxysupport/java&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 19:13:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Django-apache-wsgi-config/m-p/726696#M5421</guid>
      <dc:creator>Jeremy_Freedman</dc:creator>
      <dc:date>2020-07-28T19:13:11Z</dc:date>
    </item>
  </channel>
</rss>

