[GeoNode-users] Geonode updatIP error

Joseph Kariuki joehene at gmail.com
Fri Sep 30 02:44:28 PDT 2016


Hi Francesco? It was a problem with the tomcat, I have restarted it. Thank
You for the help.

On Thu, Sep 29, 2016 at 7:54 PM, Francesco Bartoli <xbartolone at gmail.com>
wrote:

> Hi,
>
> it claims with a 404 related to geoserver. Are you sure that tomcat is
> started and running?
>
> Francesco
>
> Il giorno 29/set/2016, alle ore 18:44, Joseph Kariuki <joehene at gmail.com>
> ha scritto:
>
> I have successfully installed geonode in linux ubuntu 14.04 server.
> However updateip renders an error shown below
>
> root at ip-172-31-13-39:/# geonode updateip 127.0.0.1
>> Not enabling BingMaps base layer as a BING_API_KEY is not defined in
>> local_settings.py file.
>> Unknown command: 'updateip'
>> Type 'django-admin.py help' for usage.
>> root at ip-172-31-13-39:/# geonode-updateip 127.0.0.1
>> Replacing SITEURL value with '127.0.0.1' in
>> /etc/geonode/local_settings.py ... done.
>> Adding entry for '127.0.0.1' in /usr/share/geoserver/data/printing/config.yaml
>> ... done.
>> Adding 127.0.0.1 to ALLOWED_HOSTS in /etc/geonode/local_settings.py ...
>> '127.0.0.1' already found in ALLOWED_HOSTS list.
>> Not enabling BingMaps base layer as a BING_API_KEY is not defined in
>> local_settings.py file.
>>  * Restarting web server apache2
>>                                  [ OK ]
>> Not enabling BingMaps base layer as a BING_API_KEY is not defined in
>> local_settings.py file.
>> Traceback (most recent call last):
>>   File "/usr/bin/django-admin.py", line 5, in <module>
>>     management.execute_from_command_line()
>>   File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py",
>> line 399, in execute_from_command_line
>>     utility.execute()
>>   File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py",
>> line 392, in execute
>>     self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File "/usr/lib/python2.7/dist-packages/django/core/management/base.py",
>> line 242, in run_from_argv
>>     self.execute(*args, **options.__dict__)
>>   File "/usr/lib/python2.7/dist-packages/django/core/management/base.py",
>> line 285, in execute
>>     output = self.handle(*args, **options)
>>   File "/usr/local/lib/python2.7/dist-packages/geonode/
>> geoserver/management/commands/updatelayers.py", line 108, in handle
>>     remove_deleted=remove_deleted)
>>   File "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py",
>> line 395, in gs_slurp
>>     resources = cat.get_resources()
>>   File "/usr/lib/python2.7/dist-packages/geoserver/catalog.py", line
>> 723, in get_resources
>>     for ws in self.get_workspaces():
>>   File "/usr/lib/python2.7/dist-packages/geoserver/catalog.py", line
>> 861, in get_workspaces
>>     description = self.get_xml("%s/workspaces.xml" % self.service_url)
>>   File "/usr/lib/python2.7/dist-packages/geoserver/catalog.py", line
>> 216, in get_xml
>>     raise FailedRequestError("Tried to make a GET request to %s but got a
>> %d status code: \n%s" % (rest_url, response.status, content))
>> geoserver.catalog.FailedRequestError: Tried to make a GET request to
>> http://localhost:8080/geoserver/rest/workspaces.xml but got a 404 status
>> code:
>> <html><head><title>Apache Tomcat/7.0.52 (Ubuntu) - Error
>> report</title><style><!--H1 {font-family:Tahoma,Arial,
>> sans-serif;color:white;background-color:#525D76;font-size:22px;} H2
>> {font-family:Tahoma,Arial,sans-serif;color:white;
>> background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,
>> sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY
>> {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
>> B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
>> P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
>> {color : black;}A.name {color : black;}HR {color : #525D76;}--></style>
>> </head><body><h1>HTTP Status 404 - /geoserver/rest/workspaces.xml</h1><HR
>> size="1" noshade="noshade"><p><b>type</b> Status
>> report</p><p><b>message</b> <u>/geoserver/rest/workspaces.
>> xml</u></p><p><b>description</b> <u>The requested resource is not
>> available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.52
>> (Ubuntu)</h3></body></html>
>>
>>> Not enabling BingMaps base layer as a BING_API_KEY is not defined in
>>> local_settings.py file.
>>>
>>
> Kindly help.
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geonode-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20160930/c4bee26e/attachment.html>


More information about the geonode-users mailing list