[GeoNode-users] Errors installing from testing PPA
Cliff Patterson
cpatterson at psdrcs.com
Wed May 8 06:58:07 PDT 2019
I get the following error when installing Geonode from the testing PPA on a
VM. After setting the IP address, the error appears again. Consequently,
geoserver is not accessible and Geonode throws up 404 errors (e.g. when
opening map view). No changes have been made to the settings.py file.
When logging into Geonode to access geoserver (from host machine), the
address is looking for geoserver at localhost:
http://x.x.x.x/proxy/?url=http://localhost:8080/geoserver/
<http://192.168.20.47/proxy/?url=http://localhost:8080/geoserver/>
Setting up oauth
Waiting Tomcat Service to Restart...
Waiting Apache HTTPD Service to Restart...
Inspecting the available layers in GeoServer ...
Traceback (most recent call last):
File "/usr/bin/django-admin", line 21, in <module>
management.execute_from_command_line()
File
"/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
364, in execute_from_command_line
utility.execute()
File
"/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.7/dist-packages/django/core/management/base.py",
line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/lib/python2.7/dist-packages/django/core/management/base.py",
line 330, in execute
output = self.handle(*args, **options)
File
"/usr/local/lib/python2.7/dist-packages/geonode/geoserver/management/commands/updatelayers.py",
line 124, in handle
execute_signals=True)
File
"/usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py", line
564, in gs_slurp
resources = cat.get_resources()
File "/usr/lib/python2.7/dist-packages/geoserver/catalog.py", line 864,
in get_resources
for ws in self.get_workspaces():
File "/usr/lib/python2.7/dist-packages/geoserver/catalog.py", line 1015,
in get_workspaces
description = self.get_xml("%s/workspaces.xml" % self.service_url)
File "/usr/lib/python2.7/dist-packages/geoserver/catalog.py", line 218,
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:
<!doctype html><html lang="en"><head><title>HTTP Status 404 – Not
Found</title><style type="text/css">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;} .line
{height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP
Status 404 – Not Found</h1><hr class="line" /><p><b>Type</b> Status
Report</p><p><b>Message</b>
/geoserver/rest/workspaces.xml</p><p><b>Description</b> The
origin server did not find a current representation for the target resource
or is not willing to disclose that one exists.</p><hr class="line"
/><h3>Apache Tomcat/8.5.39 (Ubuntu)</h3></body></html>
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for ureadahead (0.100.0-21) ...
Processing triggers for systemd (237-3ubuntu10.21) ...
Processing triggers for ufw (0.36-0ubuntu0.18.04.1) ...
Processing triggers for rsyslog (8.32.0-1ubuntu4) ...
Processing triggers for ca-certificates (20180409) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
The same error appears when attempting to set IP for Geonode:
$ sudo geonode-updateip x.x.x.x
[sudo] password for cliffpat:
Replacing SITEURL value with '192.168.20.47' in
/etc/geonode/local_settings.py ... done.
Adding entry for '192.168.20.47' in
/usr/share/geoserver/data/printing/config.yaml ... done.
Setting up oauth
Waiting Tomcat Service to Restart...
Waiting Apache HTTPD Service to Restart...
Inspecting the available layers in GeoServer ...
Traceback (most recent call last):
File "/usr/bin/django-admin", line 21, in <module>
management.execute_from_command_line()
File
"/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
364, in execute_from_command_line
utility.execute()
File
"/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.7/dist-packages/django/core/management/base.py",
line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/lib/python2.7/dist-packages/django/core/management/base.py",
line 330, in execute
output = self.handle(*args, **options)
File
"/usr/local/lib/python2.7/dist-packages/geonode/geoserver/management/commands/updatelayers.py",
line 124, in handle
execute_signals=True)
File
"/usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py", line
564, in gs_slurp
resources = cat.get_resources()
File "/usr/lib/python2.7/dist-packages/geoserver/catalog.py", line 864,
in get_resources
for ws in self.get_workspaces():
File "/usr/lib/python2.7/dist-packages/geoserver/catalog.py", line 1015,
in get_workspaces
description = self.get_xml("%s/workspaces.xml" % self.service_url)
File "/usr/lib/python2.7/dist-packages/geoserver/catalog.py", line 218,
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:
<!doctype html><html lang="en"><head><title>HTTP Status 404 – Not
Found</title><style type="text/css">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;} .line
{height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP
Status 404 – Not Found</h1><hr class="line" /><p><b>Type</b> Status
Report</p><p><b>Message</b>
/geoserver/rest/workspaces.xml</p><p><b>Description</b> The
origin server did not find a current representation for the target resource
or is not willing to disclose that one exists.</p><hr class="line"
/><h3>Apache Tomcat/8.5.39 (Ubuntu)</h3></body></html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20190508/588db35c/attachment.html>
More information about the geonode-users
mailing list