<div dir="ltr">There's no operations.py file in GeoNode, it is a django file and should not be modified.<div><br></div><div>you can add it to /etc/geonode/local_settings.py then restart your server</div><div><br></div><div>regards</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-11-09 9:47 GMT+01:00 Shah Md. Rajibul Islam <span dir="ltr"><<a href="mailto:rajibul.islam@cdmp.org.bd" target="_blank">rajibul.islam@cdmp.org.bd</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Do you mean to add it into operations.py or where? I am using putty to connect to the server, if possible could you please check my geonode using team viewer?<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal" style="background:white"><b><span style="font-size:13.5pt;font-family:"Calibri","sans-serif";color:navy">Shah Md. Rajibul Islam</span></b><span style="font-family:"Arial","sans-serif";color:#222222"><u></u><u></u></span></p><p class="MsoNormal" style="background:white"><b><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:navy">GIS Analyst</span></b><b><span style="font-family:"Calibri","sans-serif";color:navy"><br></span></b><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:navy">CDMP – II, UNDP</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"><br></span><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:navy">Disaster Management & Relief Bhaban</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"><br></span><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:navy">92-93, Mohakhali C/A, Dhaka - 1212</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"><br></span><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:navy">Tel # 989 0937; 882 1255; 882 1459, Ext - 303</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"><br></span><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:navy">Mobile: +88 </span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">01716 027389, </span><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:navy">E-mail: <a href="mailto:rajibul.islam@cdmp.org.bd" target="_blank"><span style="color:#1155cc">rajibul.islam@cdmp.org.bd</span></a></span><u><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:blue"><br></span></u><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:navy">Web: <a href="http://www.cdmp.org.bd/" target="_blank"><span style="color:#1155cc">www.cdmp.org.bd</span></a></span><span style="font-family:"Arial","sans-serif";color:#222222"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Simone Dalmasso [mailto:<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>] <br><b>Sent:</b> 09 November 2015 13:53<br><b>To:</b> Shah Md. Rajibul Islam<br><b>Cc:</b> <a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br><b>Subject:</b> Re: [GeoNode-users] Cannot access GeoNode 2.4 RC1 after istalling and updating IP (500 internal server error)<u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">ok, you can add<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><pre style="white-space:pre-wrap"><i><span style="color:black">POSTGIS_VERSION = (2,1,0)</span></i><span style="color:black"><u></u><u></u></span></pre><pre style="white-space:pre-wrap"><span style="color:black"><u></u> <u></u></span></pre><p class="MsoNormal">to your geonode settings.<br><br><br>Regards<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">2015-11-09 8:49 GMT+01:00 Shah Md. Rajibul Islam <<a href="mailto:rajibul.islam@cdmp.org.bd" target="_blank">rajibul.islam@cdmp.org.bd</a>>:<u></u><u></u></p><div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Dear Ciao,</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thank you for your reply. I found the followings-</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">geonode@geonode:~$ tail -f /etc/apache2/logs/error.log</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">tail: cannot open ‘/etc/apache2/logs/error.log’ for reading: No such file or directory</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">geonode@geonode:~$ tail -f /var/log/apache2/error.log</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">[Mon Nov 09 00:48:14.620992 2015] [:error] [pid 2175] [remote <a href="http://192.168.0.42:27831" target="_blank">192.168.0.42:27831</a>] conn = backend.DatabaseWrapper(db, alias)</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">[Mon Nov 09 00:48:14.621022 2015] [:error] [pid 2175] [remote <a href="http://192.168.0.42:27831" target="_blank">192.168.0.42:27831</a>] File "/usr/lib/python2.7/dist-packages/django/contrib/gis/db/backends/postgis/base.py", line 11, in __init__</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">[Mon Nov 09 00:48:14.621065 2015] [:error] [pid 2175] [remote <a href="http://192.168.0.42:27831" target="_blank">192.168.0.42:27831</a>] self.ops = PostGISOperations(self)</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">[Mon Nov 09 00:48:14.621095 2015] [:error] [pid 2175] [remote <a href="http://192.168.0.42:27831" target="_blank">192.168.0.42:27831</a>] File "/usr/lib/python2.7/dist-packages/django/contrib/gis/db/backends/postgis/operations.py", line 158, in __init__</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">[Mon Nov 09 00:48:14.621136 2015] [:error] [pid 2175] [remote <a href="http://192.168.0.42:27831" target="_blank">192.168.0.42:27831</a>] if self.spatial_version < (1, 3, 4):</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">[Mon Nov 09 00:48:14.621190 2015] [:error] [pid 2175] [remote <a href="http://192.168.0.42:27831" target="_blank">192.168.0.42:27831</a>] File "/usr/lib/python2.7/dist-packages/django/utils/functional.py", line 49, in __get__</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">[Mon Nov 09 00:48:14.621232 2015] [:error] [pid 2175] [remote <a href="http://192.168.0.42:27831" target="_blank">192.168.0.42:27831</a>] res = instance.__dict__[self.func.__name__] = self.func(instance)</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">[Mon Nov 09 00:48:14.621263 2015] [:error] [pid 2175] [remote <a href="http://192.168.0.42:27831" target="_blank">192.168.0.42:27831</a>] File "/usr/lib/python2.7/dist-packages/django/contrib/gis/db/backends/postgis/operations.py", line 258, in spatial_version</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">[Mon Nov 09 00:48:14.621306 2015] [:error] [pid 2175] [remote <a href="http://192.168.0.42:27831" target="_blank">192.168.0.42:27831</a>] 'template?' % self.connection.settings_dict['NAME']</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">[Mon Nov 09 00:48:14.621354 2015] [:error] [pid 2175] [remote <a href="http://192.168.0.42:27831" target="_blank">192.168.0.42:27831</a>] ImproperlyConfigured: Cannot determine PostGIS version for database "geonode_data". GeoDjango requires at least PostGIS version 1.3. Was the database created from a spatial database template?</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Regards</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Rajib</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal" style="background:white"><b><span style="font-size:13.5pt;font-family:"Calibri","sans-serif";color:navy">Shah Md. Rajibul Islam</span></b><u></u><u></u></p><p class="MsoNormal" style="background:white"><b><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:navy">GIS Analyst</span></b><b><span style="font-family:"Calibri","sans-serif";color:navy"><br></span></b><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:navy">CDMP – II, UNDP</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"><br></span><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:navy">Disaster Management & Relief Bhaban</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"><br></span><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:navy">92-93, Mohakhali C/A, Dhaka - 1212</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"><br></span><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:navy">Tel # 989 0937; 882 1255; 882 1459, Ext - 303</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"><br></span><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:navy">Mobile: +88 </span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">01716 027389, </span><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:navy">E-mail: <a href="mailto:rajibul.islam@cdmp.org.bd" target="_blank"><span style="color:#1155cc">rajibul.islam@cdmp.org.bd</span></a></span><u><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:blue"><br></span></u><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:navy">Web: <a href="http://www.cdmp.org.bd/" target="_blank"><span style="color:#1155cc">www.cdmp.org.bd</span></a></span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Simone Dalmasso [mailto:<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>] <br><b>Sent:</b> 09 November 2015 13:19<br><b>To:</b> Shah Md. Rajibul Islam<br><b>Cc:</b> <a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br><b>Subject:</b> Re: [GeoNode-users] Cannot access GeoNode 2.4 RC1 after istalling and updating IP (500 internal server error)</span><u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><div><p class="MsoNormal">Hi, <u></u><u></u></p><div><p class="MsoNormal">you can see what specific error is by reading the apache logs<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">$ tail -f /etc/apache2/logs/error.log<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">let us know so that we can better help you.<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">Ciao<u></u><u></u></p></div></div><div><p class="MsoNormal"> <u></u><u></u></p><div><p class="MsoNormal">2015-11-08 7:05 GMT+01:00 Shah Md. Rajibul Islam <<a href="mailto:rajibul.islam@cdmp.org.bd" target="_blank">rajibul.islam@cdmp.org.bd</a>>:<u></u><u></u></p><div><div><p class="MsoNormal">Dear Geonode users,<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">I have installed GeoNode 2.4 RC1/GeoNode version 2.4c2 on ubuntu-14.04-server-i386. First I have installed it in a virtual machine using VMware workstation and successfully installed and accessed it with the configured local IP. Later on, I have installed the same version of Geonode on the same version of Ubuntu server 14.04. I don’t have a real IP and hence I have configured the geonode with the local IP of the server. But I cannot access it through the web browser. It gives 500 internal server error:<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"><b><span style="font-size:10.0pt;color:red">Internal Server Error</span></b><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;color:red">The server encountered an internal error or misconfiguration and was unable to complete your request.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;color:red">Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;color:red">More information about this error may be available in the server error log.</span><u></u><u></u></p><div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:10.0pt;color:red"><hr size="2" width="100%" noshade style="color:black" align="center"></span></div><p class="MsoNormal"><i><span style="font-size:10.0pt;color:red">Apache/2.4.7 (Ubuntu) Server at 192.168.0.101 Port 80</span></i><u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Could you please suggest if it is related with the Local IP or I need a real IP to access it through web browser.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Best regards<u></u><u></u></p><p class="MsoNormal">Rajib<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal" style="background:white"><b><span style="font-size:13.5pt;color:navy">Shah Md. Rajibul Islam</span></b><u></u><u></u></p><p class="MsoNormal" style="background:white"><b><span style="font-size:10.0pt;color:navy">GIS Analyst</span><span style="color:navy"><br></span></b><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:navy">CDMP – II, UNDP</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"><br></span><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:navy">Disaster Management & Relief Bhaban</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"><br></span><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:navy">92-93, Mohakhali C/A, Dhaka - 1212</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"><br></span><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:navy">Tel # 989 0937; 882 1255; 882 1459, Ext - 303</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"><br></span><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:navy">Mobile: +88 </span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">01716 027389, </span><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:navy">E-mail: <a href="mailto:rajibul.islam@cdmp.org.bd" target="_blank"><span style="color:#1155cc">rajibul.islam@cdmp.org.bd</span></a></span><u><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:blue"><br></span></u><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:navy">Web: <a href="http://www.cdmp.org.bd/" target="_blank"><span style="color:#1155cc">www.cdmp.org.bd</span></a></span><u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p></div></div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>_______________________________________________<br>geonode-users mailing list<br><a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/geonode-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/geonode-users</a><u></u><u></u></p></div><p class="MsoNormal"><br><br clear="all"><u></u><u></u></p><div><p class="MsoNormal"> <u></u><u></u></p></div><p class="MsoNormal">-- <u></u><u></u></p><div><p class="MsoNormal">Simone <u></u><u></u></p></div></div></div></div></div><p class="MsoNormal"><br><br clear="all"><u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">-- <u></u><u></u></p><div><p class="MsoNormal">Simone <u></u><u></u></p></div></div></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Simone </div>
</div>