<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>I am not aware of any other django installed but will check </div>
<div><br>
</div>
<div>
<div>>>> django.get_version()</div>
<div>'1.8.12'</div>
<div>>>></div>
<div><br>
</div>
</div>
<div>
<div>Also fyi .. </div>
<div>drwxrwxr-x. 3 omero omero 89 Apr 18 12:50 cache</div>
<div>drwxrwxr-x. 4 omero omero 4096 Apr 18 12:50 checks</div>
<div>-rw-rw-r--. 1 omero omero 305 Apr 18 12:50 context_processors.py</div>
<div>-rw-rw-r--. 1 omero omero 482 Apr 18 12:50 context_processors.pyc</div>
<div>-rw-rw-r--. 1 omero omero 5276 Apr 18 12:50 exceptions.py</div>
<div>-rw-rw-r--. 1 omero omero 7394 Apr 18 12:50 exceptions.pyc</div>
<div>drwxrwxr-x. 2 omero omero 4096 Apr 18 12:50 files</div>
<div>drwxrwxr-x. 2 omero omero 101 Apr 18 12:50 handlers</div>
<div>-rw-rw-r--. 1 omero omero 0 Apr 18 12:50 __init__.py</div>
<div>-rw-rw-r--. 1 omero omero 139 Apr 18 12:50 __init__.pyc</div>
<div>drwxrwxr-x. 3 omero omero 4096 Apr 18 12:50 mail</div>
<div>drwxrwxr-x. 3 omero omero 4096 Apr 18 12:50 management</div>
<div>-rw-rw-r--. 1 omero omero 5037 Apr 18 12:50 paginator.py</div>
<div>-rw-rw-r--. 1 omero omero 6824 Apr 18 12:50 paginator.pyc</div>
<div>drwxrwxr-x. 2 omero omero 4096 Apr 18 12:50 serializers</div>
<div>drwxrwxr-x. 2 omero omero 4096 Apr 18 12:50 servers</div>
<div>-rw-rw-r--. 1 omero omero 247 Apr 18 12:50 signals.py</div>
<div>-rw-rw-r--. 1 omero omero 439 Apr 18 12:50 signals.pyc</div>
<div>-rw-rw-r--. 1 omero omero 6814 Apr 18 12:50 signing.py</div>
<div>-rw-rw-r--. 1 omero omero 8902 Apr 18 12:50 signing.pyc</div>
<div>-rw-rw-r--. 1 omero omero 24743 Apr 18 12:50 urlresolvers.py</div>
<div>-rw-rw-r--. 1 omero omero 22015 Apr 18 12:50 urlresolvers.pyc</div>
<div>-rw-rw-r--. 1 omero omero 12059 Apr 18 12:50 validators.py</div>
<div>-rw-rw-r--. 1 omero omero 13494 Apr 18 12:50 validators.pyc</div>
<div>-rw-rw-r--. 1 omero omero 394 Apr 18 12:50 wsgi.py</div>
<div>-rw-rw-r--. 1 omero omero 678 Apr 18 12:50 wsgi.pyc</div>
<div>(venv)[omero@lslapome01 core]$ pwd</div>
<div>/home/omero/venv/lib/python2.7/site-packages/django/core</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div id="MAC_OUTLOOK_SIGNATURE"></div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:12pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>ome-users <<a href="mailto:ome-users-bounces@lists.openmicroscopy.org.uk">ome-users-bounces@lists.openmicroscopy.org.uk</a>> on behalf of "Aleksandra Tarkowska (Staff)" <<a href="mailto:A.Tarkowska@dundee.ac.uk">A.Tarkowska@dundee.ac.uk</a>><br>
<span style="font-weight:bold">Reply-To: </span>OME User Support List <<a href="mailto:ome-users@lists.openmicroscopy.org.uk">ome-users@lists.openmicroscopy.org.uk</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, 28 April 2016 at 17:04<br>
<span style="font-weight:bold">To: </span>OME User Support List <<a href="mailto:ome-users@lists.openmicroscopy.org.uk">ome-users@lists.openmicroscopy.org.uk</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [ome-users] Helping debugging web access<br>
</div>
<div><br>
</div>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
This may be good idea too.
<div class="">Do you have any other django installed globally on your system?</div>
<div class=""><br class="">
</div>
<div class="">I have an impression there can be old django version in your pythonpath somewhere<br class="">
<div class=""><br class="webkit-block-placeholder">
</div>
<div class="">if you do:</div>
<div class=""><br class="">
</div>
<div class="">$ source env/bin/activate</div>
<div class="">
<div class="">$ python</div>
<div class="">Python 2.7.11 (default, Dec 26 2015, 17:47:53) </div>
<div class="">[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin</div>
<div class="">Type "help", "copyright", "credits" or "license" for more information.</div>
<div class="">>>> import django</div>
<div class="">>>> django.get_version()</div>
<div class="">'1.8.12'</div>
</div>
<div class=""><br class="">
</div>
<div class="">
<div apple-content-edited="true" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<br class="Apple-interchange-newline">
Ola</div>
<div apple-content-edited="true" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
Software Engineer</div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
Open Microscopy Environment</div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
University of Dundee</div>
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 28 Apr 2016, at 16:54, Shaun Hare <<a href="mailto:Shaun.Hare@nottingham.ac.uk" class="">Shaun.Hare@nottingham.ac.uk</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; font-family: Calibri, sans-serif;" class="">
<div class="">
<div class="">
<div class="">Thanks still same issue</div>
<div class=""><br class="">
</div>
<div class="">Shall I try and remove and reinstall of django?</div>
<div class=""><br class="">
</div>
<div class="">I will upload the logs</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">drwxr-xr-x. 9 omero omero 4096 Apr 28 16:11 omeroweb</div>
<div class="">-rw-r--r--. 1 omero omero 4524 Feb 28 17:16 omero_web_iis.py</div>
<div class="">-rw-r--r--. 1 omero omero 50892 Feb 28 17:16 path.py</div>
<div class="">-rw-r--r--. 1 omero omero 54715 Apr 26 09:58 path.pyc</div>
<div class="">drwxr-xr-x. 7 omero omero 4096 Apr 27 17:57 pipeline</div>
<div class="">-rw-r--r--. 1 omero omero 432 Feb 28 17:16 runProcessor.py</div>
<div class="">-rw-r--r--. 1 omero omero 1264 Feb 28 17:16 runTables.py</div>
<div class="">-rw-r--r--. 1 omero omero 3284 Feb 28 17:16 shellserver.py</div>
<div class="">(venv)[omero@lslapome01 python]$ gunicorn --bind 127.0.0.1:4080 --workers 5 --threads 1 --timeout 60 --max-requests 0 omeroweb.wsgi:application</div>
<div class="">[2016-04-28 16:53:25 +0000] [11833] [INFO] Starting gunicorn 19.3.0</div>
<div class="">[2016-04-28 16:53:25 +0000] [11833] [INFO] Listening at: <a href="http://127.0.0.1:4080" class="">
http://127.0.0.1:4080</a> (11833)</div>
<div class="">[2016-04-28 16:53:25 +0000] [11833] [INFO] Using worker: sync</div>
<div class="">[2016-04-28 16:53:25 +0000] [11838] [INFO] Booting worker with pid: 11838</div>
<div class="">[2016-04-28 16:53:25 +0000] [11838] [ERROR] Exception in worker process:</div>
<div class="">Traceback (most recent call last):</div>
<div class=""> File "/usr/lib/python2.7/site-packages/gunicorn/arbiter.py", line 507, in spawn_worker</div>
<div class=""> worker.init_process()</div>
<div class=""> File "/usr/lib/python2.7/site-packages/gunicorn/workers/base.py", line 118, in init_process</div>
<div class=""> self.wsgi = self.app.wsgi()</div>
<div class=""> File "/usr/lib/python2.7/site-packages/gunicorn/app/base.py", line 67, in wsgi</div>
<div class=""> self.callable = self.load()</div>
<div class=""> File "/usr/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 65, in load</div>
<div class=""> return self.load_wsgiapp()</div>
<div class=""> File "/usr/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp</div>
<div class=""> return util.import_app(self.app_uri)</div>
<div class=""> File "/usr/lib/python2.7/site-packages/gunicorn/util.py", line 355, in import_app</div>
<div class=""> __import__(module)</div>
<div class=""> File "/home/omero/OMERO.server/lib/python/omeroweb/wsgi.py", line 40, in <module></div>
<div class=""> from django.core.wsgi import get_wsgi_application</div>
<div class="">ImportError: No module named django.core.wsgi</div>
<div class="">Traceback (most recent call last):</div>
<div class=""> File "/usr/lib/python2.7/site-packages/gunicorn/arbiter.py", line 507, in spawn_worker</div>
<div class=""> worker.init_process()</div>
<div class=""> File "/usr/lib/python2.7/site-packages/gunicorn/workers/base.py", line 118, in init_process</div>
<div class=""> self.wsgi = self.app.wsgi()</div>
<div class=""> File "/usr/lib/python2.7/site-packages/gunicorn/app/base.py", line 67, in wsgi</div>
<div class=""> self.callable = self.load()</div>
<div class=""> File "/usr/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 65, in load</div>
<div class=""> return self.load_wsgiapp()</div>
<div class=""> File "/usr/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp</div>
<div class=""> return util.import_app(self.app_uri)</div>
<div class=""> File "/usr/lib/python2.7/site-packages/gunicorn/util.py", line 355, in import_app</div>
<div class=""> __import__(module)</div>
<div class=""> File "/home/omero/OMERO.server/lib/python/omeroweb/wsgi.py", line 40, in <module></div>
<div class=""> from django.core.wsgi import get_wsgi_application</div>
<div class="">ImportError: No module named django.core.wsgi</div>
<div class="">[2016-04-28 16:53:25 +0000] [11838] [INFO] Worker exiting (pid: 11838)</div>
<div class="">Traceback (most recent call last):</div>
<div class=""> File "/bin/gunicorn", line 11, in <module></div>
<div class=""> sys.exit(run())</div>
<div class=""> File "/usr/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 74, in run</div>
<div class=""> WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()</div>
<div class=""> File "/usr/lib/python2.7/site-packages/gunicorn/app/base.py", line 189, in run</div>
<div class=""> super(Application, self).run()</div>
<div class=""> File "/usr/lib/python2.7/site-packages/gunicorn/app/base.py", line 72, in run</div>
<div class=""> Arbiter(self).run()</div>
<div class=""> File "/usr/lib/python2.7/site-packages/gunicorn/arbiter.py", line 174, in run</div>
<div class=""> self.manage_workers()</div>
<div class=""> File "/usr/lib/python2.7/site-packages/gunicorn/arbiter.py", line 477, in manage_workers</div>
<div class=""> self.spawn_workers()</div>
<div class=""> File "/usr/lib/python2.7/site-packages/gunicorn/arbiter.py", line 541, in spawn_workers</div>
<div class=""> time.sleep(0.1 * random.random())</div>
<div class=""> File "/usr/lib/python2.7/site-packages/gunicorn/arbiter.py", line 214, in handle_chld</div>
<div class=""> self.reap_workers()</div>
<div class=""> File "/usr/lib/python2.7/site-packages/gunicorn/arbiter.py", line 459, in reap_workers</div>
<div class=""> raise HaltServer(reason, self.WORKER_BOOT_ERROR)</div>
<div class="">gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3></div>
</div>
<div class="">
<div id="" class=""></div>
</div>
</div>
</div>
<div class=""><br class="">
</div>
<span id="OLK_SRC_BODY_SECTION" class="">
<div style="font-family: Calibri; font-size: 12pt; text-align: left; border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0in 0in; border-top-color: rgb(181, 196, 223);" class="">
<span style="font-weight:bold" class="">From: </span>ome-users <<a href="mailto:ome-users-bounces@lists.openmicroscopy.org.uk" class="">ome-users-bounces@lists.openmicroscopy.org.uk</a>> on behalf of "Aleksandra Tarkowska (Staff)" <<a href="mailto:A.Tarkowska@dundee.ac.uk" class="">A.Tarkowska@dundee.ac.uk</a>><br class="">
<span style="font-weight:bold" class="">Reply-To: </span>OME User Support List <<a href="mailto:ome-users@lists.openmicroscopy.org.uk" class="">ome-users@lists.openmicroscopy.org.uk</a>><br class="">
<span style="font-weight:bold" class="">Date: </span>Thursday, 28 April 2016 at 16:49<br class="">
<span style="font-weight:bold" class="">To: </span>OME User Support List <<a href="mailto:ome-users@lists.openmicroscopy.org.uk" class="">ome-users@lists.openmicroscopy.org.uk</a>><br class="">
<span style="font-weight:bold" class="">Subject: </span>Re: [ome-users] Helping debugging web access<br class="">
</div>
<div class=""><br class="">
</div>
<span style="font-family: -webkit-standard; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""><span class="Apple-converted-space"> </span>gunicorn
--bind 127.0.0.1:4080 --workers 5 --threads 1 --timeout 60 --max-requests 0 omeroweb.wsgi:application</span></span>
<pre class="">This message and any attachment are intended solely for the addressee
and may contain confidential information. If you have received this
message in error, please send it back to me, and immediately delete it.
Please do not use, copy or disclose the information contained in this
message or in any attachment. Any views or opinions expressed by the
author of this email do not necessarily reflect the views of the
University of Nottingham.
This message has been checked for viruses but the contents of an
attachment may still contain software viruses which could damage your
computer system, you are advised to perform your own checks. Email
communications with the University of Nottingham may be monitored as
permitted by UK legislation.
</pre>
</div>
_______________________________________________<br class="">
ome-users mailing list<br class="">
<a href="mailto:ome-users@lists.openmicroscopy.org.uk" class="">ome-users@lists.openmicroscopy.org.uk</a><br class="">
<a href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
<br>
<span style="font-size:10pt;">The University of Dundee is a registered Scottish Charity, No: SC015096</span></div>
</div>
</span>
<PRE>
This message and any attachment are intended solely for the addressee
and may contain confidential information. If you have received this
message in error, please send it back to me, and immediately delete it.
Please do not use, copy or disclose the information contained in this
message or in any attachment. Any views or opinions expressed by the
author of this email do not necessarily reflect the views of the
University of Nottingham.
This message has been checked for viruses but the contents of an
attachment may still contain software viruses which could damage your
computer system, you are advised to perform your own checks. Email
communications with the University of Nottingham may be monitored as
permitted by UK legislation.
</PRE></body>
</html>