<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-forward-container"><br>
<br>
-------- Message transféré --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Sujet :
</th>
<td>Re: [GeoNode-users] Error 405 when trying to display
layer, map</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date : </th>
<td>Wed, 29 Apr 2015 08:37:12 +0200</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">De : </th>
<td>Simone Dalmasso <a class="moz-txt-link-rfc2396E" href="mailto:simone.dalmasso@gmail.com"><simone.dalmasso@gmail.com></a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Pour : </th>
<td>FERRARI Hugo <a class="moz-txt-link-rfc2396E" href="mailto:ferrari_hugo@yahoo.fr"><ferrari_hugo@yahoo.fr></a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Copie
à : </th>
<td>Mickaël Mézino <a class="moz-txt-link-rfc2396E" href="mailto:mickael.mezino@cirad.fr"><mickael.mezino@cirad.fr></a></td>
</tr>
</tbody>
</table>
<br>
<br>
<div dir="ltr">ok good that you solved. In development
(DEBUG=True) ALLOWED_HOSTS should actually not be used by
django. In production django will use all the addresses in
there.
<div><br>
</div>
<div>For the user registration as a superuser you have to use
the geonode admin panel unless you enable REGISTRATION in the
settings, adding an email backed and enable the app
'notification' in the INSTALLED_APPS. Then run syncdb.</div>
<div><br>
</div>
<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2015-04-29 8:31 GMT+02:00 FERRARI Hugo
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:ferrari_hugo@yahoo.fr" target="_blank">ferrari_hugo@yahoo.fr</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hello<br>
finally we found what was the problem:<br>
we are now working on a developpement configuration<br>
and we went to the website throught its IP adress, not
throught the DN.<br>
but in local_settings.py we put in the ALLOWED_HOST
array [<DN>,<IP>] (DN in first rank).<br>
<br>
we tried to access with the DN and everything is working
fine.<br>
so maybe, the only host which is really allowed is the
first in the array, <br>
<br>
about the installation process, I have to show a beta
version of the application next week so I won't have the
time to make a new install from scratch until the
demonstration.<br>
Thanks for your help.<br>
<br>
Do you know how to enable the add user function ? Even
when I'm connected as superuser<br>
I can't add a new user neither from front or back end
(the add user button does not show up) <br>
<span class="HOEnZb"><font color="#888888"> <br>
Hugo FERRARI</font></span>
<div>
<div class="h5"><br>
<br>
<br>
Le 28/04/2015 17:57, Simone Dalmasso a écrit :<br>
</div>
</div>
</div>
<div>
<div class="h5">
<blockquote type="cite">
<div dir="ltr">My suggestion is to use the apt-get
package. We actually tested it many times and
never got any error but if that superuser error
shows up again then ask here. The package takes
care of some configurations.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2015-04-28 15:48
GMT+02:00 FERRARI Hugo <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:ferrari_hugo@yahoo.fr"
target="_blank">ferrari_hugo@yahoo.fr</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0
0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>everything works well from geoserver<br>
I can display all the shapefiles I had
uploaded from geonode.<br>
the error probably comes from the proxy.<br>
<br>
when i tried to install with the quick
method <br>
after "sudo apt-get install geonode"<br>
i couldn't create a superuser.<br>
<br>
so i decided to configure it manually.
<div>
<div><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Le 28/04/2015 17:24, Simone Dalmasso a
écrit :<br>
</div>
</div>
</div>
<div>
<div>
<blockquote type="cite">
<div dir="ltr">ok what happens when
you to to <span
style="font-size:12.8000001907349px"> </span><a
moz-do-not-send="true"
href="http://193.51.115.143/geoserver/web/?wicket:bookmarkablePage=:org.geoserver.web.demo.MapPreviewPage"
style="font-size:12.8000001907349px" target="_blank">http://193.51.115.143/geoserver</a> ?
any error there or in layer preview?
the issue seems to be in geoserver
communitcation.
<div><br>
</div>
<div>By the way, could you tell us
what kind of errors you got with
the ubuntu installer?<br>
<div class="gmail_extra"><br>
<div class="gmail_quote">2015-04-28
15:12 GMT+02:00 FERRARI Hugo <span
dir="ltr"><<a
moz-do-not-send="true"
href="mailto:ferrari_hugo@yahoo.fr"
target="_blank">ferrari_hugo@yahoo.fr</a>></span>:<br>
<blockquote
class="gmail_quote"
style="margin:0 0 0
.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div bgcolor="#FFFFFF"
text="#000000">
<div><br>
I did not,<br>
I installed manually
(with the documentation)<br>
because the automatic
installer could not work
properly with ubuntu
14.04 server<br>
<br>
When trying to display
layer nothing more is
written in the apache
log file:<br>
<br>
[Tue Apr 28
14:39:13.587397 2015]
[proxy:error] [pid
22520] [client <a
moz-do-not-send="true"
href="http://193.51.113.57:55539" target="_blank">193.51.113.57:55539</a>]
AH00898: Error reading
from remote server
returned by
/geoserver/geonode/wms,
referer: <a
moz-do-not-send="true"
href="http://193.51.115.143/geoserver/web/?wicket:bookmarkablePage=:org.geoserver.web.demo.MapPreviewPage"
target="_blank">http://193.51.115.143/geoserver/web/?wicket:bookmarkablePage=:org.geoserver.web.demo.MapPreviewPage</a><br>
[Tue Apr 28
14:39:13.587536 2015]
[proxy_<a
moz-do-not-send="true"
href="http:error"
target="_blank">http:error</a>]
[pid 22675]
(104)Connection reset by
peer: [client <a
moz-do-not-send="true"
href="http://193.51.115.143:49838" target="_blank">193.51.115.143:49838</a>]
AH01102: error reading
status line from remote
server localhost:8080<br>
[Tue Apr 28
14:39:13.587586 2015]
[proxy:error] [pid
22675] [client <a
moz-do-not-send="true"
href="http://193.51.115.143:49838" target="_blank">193.51.115.143:49838</a>]
AH00898: Error reading
from remote server
returned by
/geoserver/wms<br>
[Tue Apr 28
14:39:13.587761 2015]
[proxy_<a
moz-do-not-send="true"
href="http:error"
target="_blank">http:error</a>]
[pid 22677]
(104)Connection reset by
peer: [client <a
moz-do-not-send="true"
href="http://193.51.115.143:49845" target="_blank">193.51.115.143:49845</a>]
AH01102: error reading
status line from remote
server localhost:8080<br>
[Tue Apr 28
14:39:13.587813 2015]
[proxy:error] [pid
22677] [client <a
moz-do-not-send="true"
href="http://193.51.115.143:49845" target="_blank">193.51.115.143:49845</a>]
AH00898: Error reading
from remote server
returned by
/geoserver/wms<br>
[Tue Apr 28
07:17:00.249527 2015]
[:error] [pid 21159]
Exception TypeError:
"'NoneType' object is
not callable" in
<bound method
LGEOS330.__del__ of
<shapely.geos.LGEOS330
object at
0x7fa8d7e587a0>>
ignored<br>
[Tue Apr 28
07:17:00.346468 2015]
[:error] [pid 21160]
Exception TypeError:
"'NoneType' object is
not callable" in
<bound method
LGEOS330.__del__ of
<shapely.geos.LGEOS330
object at
0x7fa8dbe88120>>
ignored<br>
[Tue Apr 28
16:17:00.429134 2015]
[mpm_prefork:notice]
[pid 21156] AH00169:
caught SIGTERM, shutting
down<br>
[Tue Apr 28
16:17:01.211561 2015]
[mpm_prefork:notice]
[pid 23721] AH00163:
Apache/2.4.7 (Ubuntu)
PHP/5.5.9-1ubuntu4.9
mod_wsgi/3.4
Python/2.7.6 configured
-- resuming normal
operations<br>
[Tue Apr 28
16:17:01.211640 2015]
[core:notice] [pid
23721] AH00094: Command
line:
'/usr/sbin/apache2'
<div>
<div><br>
<br>
<br>
<br>
Le 28/04/2015 16:57,
Simone Dalmasso a
écrit :<br>
</div>
</div>
</div>
<div>
<div>
<blockquote
type="cite">
<div dir="ltr">Hi
Hugo, did you use
the apt-get
installer?
<div>the 405 is
normal and the
correct behavior
but the
unavailable
layer is
strange. Try to
do $tail -f
/var/log/apache2/error.log
and see if you
can get a better
error
explanation.</div>
</div>
<div
class="gmail_extra"><br>
<div
class="gmail_quote">2015-04-28
14:47 GMT+02:00
FERRARI Hugo <span
dir="ltr"><<a
moz-do-not-send="true" href="mailto:ferrari_hugo@yahoo.fr"
target="_blank">ferrari_hugo@yahoo.fr</a>></span>:<br>
<blockquote
class="gmail_quote"
style="margin:0
0 0
.8ex;border-left:1px
#ccc
solid;padding-left:1ex">Dear
Geonode users
and
developpers<br>
<br>
I installed
geonode on an
Ubuntu
14.04.1. I can
upload data as
a registered
user but when
triying to
display It
the only thing
I can get is
this message<br>
"Unavailable
layer
<layername>
removed."<br>
followed by a
405 error from
the console.<br>
" PUT
<IP>/gs/rest/styles
405 METHOD not
allowed"<br>
<br>
Thank you for
your help<br>
<br>
Hugo<br>
_______________________________________________<br>
geonode-users
mailing list<br>
<a
moz-do-not-send="true"
href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a
moz-do-not-send="true"
href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users"
target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div>Simone </div>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div>Simone </div>
</div>
</div>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div>Simone </div>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature">Simone </div>
</div>
<br>
</div>
<br>
</body>
</html>