[GeoNode-users] Fwd: Re: Error 405 when trying to display layer, map
FERRARI Hugo
ferrari_hugo at yahoo.fr
Wed Apr 29 00:10:31 PDT 2015
-------- Message transféré --------
Sujet : Re: [GeoNode-users] Error 405 when trying to display layer, map
Date : Wed, 29 Apr 2015 08:37:12 +0200
De : Simone Dalmasso <simone.dalmasso at gmail.com>
Pour : FERRARI Hugo <ferrari_hugo at yahoo.fr>
Copie à : Mickaël Mézino <mickael.mezino at cirad.fr>
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.
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.
2015-04-29 8:31 GMT+02:00 FERRARI Hugo <ferrari_hugo at yahoo.fr
<mailto:ferrari_hugo at yahoo.fr>>:
Hello
finally we found what was the problem:
we are now working on a developpement configuration
and we went to the website throught its IP adress, not throught
the DN.
but in local_settings.py we put in the ALLOWED_HOST array
[<DN>,<IP>] (DN in first rank).
we tried to access with the DN and everything is working fine.
so maybe, the only host which is really allowed is the first in the
array,
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.
Thanks for your help.
Do you know how to enable the add user function ? Even when I'm
connected as superuser
I can't add a new user neither from front or back end (the add
user button does not show up)
Hugo FERRARI
Le 28/04/2015 17:57, Simone Dalmasso a écrit :
> 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.
>
> 2015-04-28 15:48 GMT+02:00 FERRARI Hugo <ferrari_hugo at yahoo.fr
> <mailto:ferrari_hugo at yahoo.fr>>:
>
> everything works well from geoserver
> I can display all the shapefiles I had uploaded from geonode.
> the error probably comes from the proxy.
>
> when i tried to install with the quick method
> after "sudo apt-get install geonode"
> i couldn't create a superuser.
>
> so i decided to configure it manually.
>
>
>
>
>
>
>
>
>
>
>
> Le 28/04/2015 17:24, Simone Dalmasso a écrit :
>> ok what happens when you to to
>> http://193.51.115.143/geoserver
>> <http://193.51.115.143/geoserver/web/?wicket:bookmarkablePage=:org.geoserver.web.demo.MapPreviewPage> ?
>> any error there or in layer preview? the issue seems to be in
>> geoserver communitcation.
>>
>> By the way, could you tell us what kind of errors you got
>> with the ubuntu installer?
>>
>> 2015-04-28 15:12 GMT+02:00 FERRARI Hugo
>> <ferrari_hugo at yahoo.fr <mailto:ferrari_hugo at yahoo.fr>>:
>>
>>
>> I did not,
>> I installed manually (with the documentation)
>> because the automatic installer could not work properly
>> with ubuntu 14.04 server
>>
>> When trying to display layer nothing more is written in
>> the apache log file:
>>
>> [Tue Apr 28 14:39:13.587397 2015] [proxy:error] [pid
>> 22520] [client 193.51.113.57:55539
>> <http://193.51.113.57:55539>] AH00898: Error reading from
>> remote server returned by /geoserver/geonode/wms,
>> referer:
>> http://193.51.115.143/geoserver/web/?wicket:bookmarkablePage=:org.geoserver.web.demo.MapPreviewPage
>> [Tue Apr 28 14:39:13.587536 2015] [proxy_http:error] [pid
>> 22675] (104)Connection reset by peer: [client
>> 193.51.115.143:49838 <http://193.51.115.143:49838>]
>> AH01102: error reading status line from remote server
>> localhost:8080
>> [Tue Apr 28 14:39:13.587586 2015] [proxy:error] [pid
>> 22675] [client 193.51.115.143:49838
>> <http://193.51.115.143:49838>] AH00898: Error reading
>> from remote server returned by /geoserver/wms
>> [Tue Apr 28 14:39:13.587761 2015] [proxy_http:error] [pid
>> 22677] (104)Connection reset by peer: [client
>> 193.51.115.143:49845 <http://193.51.115.143:49845>]
>> AH01102: error reading status line from remote server
>> localhost:8080
>> [Tue Apr 28 14:39:13.587813 2015] [proxy:error] [pid
>> 22677] [client 193.51.115.143:49845
>> <http://193.51.115.143:49845>] AH00898: Error reading
>> from remote server returned by /geoserver/wms
>> [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
>> [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
>> [Tue Apr 28 16:17:00.429134 2015] [mpm_prefork:notice]
>> [pid 21156] AH00169: caught SIGTERM, shutting down
>> [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
>> [Tue Apr 28 16:17:01.211640 2015] [core:notice] [pid
>> 23721] AH00094: Command line: '/usr/sbin/apache2'
>>
>>
>>
>>
>> Le 28/04/2015 16:57, Simone Dalmasso a écrit :
>>> Hi Hugo, did you use the apt-get installer?
>>> 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.
>>>
>>> 2015-04-28 14:47 GMT+02:00 FERRARI Hugo
>>> <ferrari_hugo at yahoo.fr <mailto:ferrari_hugo at yahoo.fr>>:
>>>
>>> Dear Geonode users and developpers
>>>
>>> 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
>>> "Unavailable layer <layername> removed."
>>> followed by a 405 error from the console.
>>> " PUT <IP>/gs/rest/styles 405 METHOD not allowed"
>>>
>>> Thank you for your help
>>>
>>> Hugo
>>> _______________________________________________
>>> geonode-users mailing list
>>> geonode-users at lists.osgeo.org
>>> <mailto:geonode-users at lists.osgeo.org>
>>> http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users
>>>
>>>
>>>
>>>
>>> --
>>> Simone
>>
>>
>>
>>
>> --
>> Simone
>
>
>
>
> --
> Simone
--
Simone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20150429/6ce18dd5/attachment-0001.html>
More information about the geonode-users
mailing list