<div dir="ltr">Hi,<div><br></div><div><br></div><div>this kind of error usually appear when the machine is not powerful enough, it should have at least 4 Gb of RAM (8 the best).</div><div><br></div><div>Could this be your case?</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-04-22 15:15 GMT+02:00 Benjamin Carter <span dir="ltr"><<a href="mailto:benjamincarter@muhlenberg.edu" target="_blank">benjamincarter@muhlenberg.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>All, <br>
</p>
<p>I am attempting to install Geonode on Ubuntu 14.04.5 x64 on
Digital Ocean. I am relatively new to working with Ubuntu and
Digital Ocean and certainly to Geonode. However, I am absolutely
infatuated with Geonode and want desperately to get it up and
running. It *should* solve a number of problems that I have had in
the past. <br>
</p>
<p>I created a droplet following the instructions here: <br>
</p>
<p><a class="m_-3882111169744843262moz-txt-link-freetext" href="https://www.digitalocean.com/community/tutorials/how-to-create-your-first-digitalocean-droplet-virtual-server" target="_blank">https://www.digitalocean.com/<wbr>community/tutorials/how-to-<wbr>create-your-first-<wbr>digitalocean-droplet-virtual-<wbr>server</a></p>
<p><a class="m_-3882111169744843262moz-txt-link-freetext" href="https://www.digitalocean.com/community/tutorials/how-to-connect-to-your-droplet-with-ssh" target="_blank">https://www.digitalocean.com/<wbr>community/tutorials/how-to-<wbr>connect-to-your-droplet-with-<wbr>ssh</a></p>
<p><a class="m_-3882111169744843262moz-txt-link-freetext" href="https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-14-04" target="_blank">https://www.digitalocean.com/<wbr>community/tutorials/initial-<wbr>server-setup-with-ubuntu-14-04</a></p>
<p>Note that I am using an SSH key and I am interacting with the
server via PuTTy. <br>
</p>
<p>Then, I am used the Geonode installation instructions here:</p>
<p><a class="m_-3882111169744843262moz-txt-link-freetext" href="http://docs.geonode.org/en/master/tutorials/install_and_admin/quick_install.html" target="_blank">http://docs.geonode.org/en/<wbr>master/tutorials/install_and_<wbr>admin/quick_install.html</a></p>
<p>I am following the "Ubuntu (standard deployment)" instructions</p>
<p>Within those instructions, I initially had problems with step 3,
which states:</p>
<p>"3. Set the correct IP address (NB: the first command below looks
up the IP address automatically).<br>
<br>
IP_ADDRESS=$(ip route get 8.8.8.8 | awk ‘{print $NF; exit}’) sudo
geonode-updateip $IP_ADDRESS</p>
<p>NB: The IP address must be set to enable access from another
machine, e.g. the host machine if geonode is installed in a
virtual machine."</p>
<p>This fails. Here's the output that I get: <br>
</p>
<p>User@server:~$ IP_ADDRESS=$(ip route get 8.8.8.8 | awk ‘{print
$NF; exit}’) sudo geonode-updateip $IP_ADDRESS<br>
Replacing SITEURL value with '' in /etc/geonode/local_settings.py
... sed: can't read /etc/geonode/local_settings.<wbr>py: No such file
or directory<br>
done.<br>
Adding entry for '' in
/usr/share/geoserver/data/<wbr>printing/config.yaml ... '' already
found to the printing whitelist.<br>
grep: /etc/geonode/local_settings.<wbr>py: No such file or directory<br>
Adding ALLOWED_HOSTS with in /etc/geonode/local_settings.py ...
done.<br>
Traceback (most recent call last):<br>
File "/usr/bin/django-admin.py", line 5, in <module><br>
management.execute_from_<wbr>command_line()<br>
File
"/usr/lib/python2.7/dist-<wbr>packages/django/core/<wbr>management/__init__.py",
line 399, in execute_from_command_line<br>
utility.execute()<br>
File
"/usr/lib/python2.7/dist-<wbr>packages/django/core/<wbr>management/__init__.py",
line 392, in execute<br>
self.fetch_command(subcommand)<wbr>.run_from_argv(self.argv)<br>
File
"/usr/lib/python2.7/dist-<wbr>packages/django/core/<wbr>management/__init__.py",
line 261, in fetch_command<br>
commands = get_commands()<br>
File
"/usr/lib/python2.7/dist-<wbr>packages/django/core/<wbr>management/__init__.py",
line 107, in get_commands<br>
apps = settings.INSTALLED_APPS<br>
File "/usr/lib/python2.7/dist-<wbr>packages/django/conf/__init__.<wbr>py",
line 54, in __getattr__<br>
self._setup(name)<br>
File "/usr/lib/python2.7/dist-<wbr>packages/django/conf/__init__.<wbr>py",
line 49, in _setup<br>
self._wrapped = Settings(settings_module)<br>
File "/usr/lib/python2.7/dist-<wbr>packages/django/conf/__init__.<wbr>py",
line 132, in __init__<br>
% (self.SETTINGS_MODULE, e)<br>
ImportError: Could not import settings 'geonode.settings' (Is it
on sys.path? Is there an import error in the settings file?): No
module named geonode.settings<br>
* Restarting web server
apache2 <wbr> <wbr> <wbr> <wbr>
[ OK ]<br>
Traceback (most recent call last):<br>
File "/usr/bin/django-admin.py", line 5, in <module><br>
management.execute_from_<wbr>command_line()<br>
File
"/usr/lib/python2.7/dist-<wbr>packages/django/core/<wbr>management/__init__.py",
line 399, in execute_from_command_line<br>
utility.execute()<br>
File
"/usr/lib/python2.7/dist-<wbr>packages/django/core/<wbr>management/__init__.py",
line 392, in execute<br>
self.fetch_command(subcommand)<wbr>.run_from_argv(self.argv)<br>
File
"/usr/lib/python2.7/dist-<wbr>packages/django/core/<wbr>management/__init__.py",
line 261, in fetch_command<br>
commands = get_commands()<br>
File
"/usr/lib/python2.7/dist-<wbr>packages/django/core/<wbr>management/__init__.py",
line 107, in get_commands<br>
apps = settings.INSTALLED_APPS<br>
File "/usr/lib/python2.7/dist-<wbr>packages/django/conf/__init__.<wbr>py",
line 54, in __getattr__<br>
self._setup(name)<br>
File "/usr/lib/python2.7/dist-<wbr>packages/django/conf/__init__.<wbr>py",
line 49, in _setup<br>
self._wrapped = Settings(settings_module)<br>
File "/usr/lib/python2.7/dist-<wbr>packages/django/conf/__init__.<wbr>py",
line 132, in __init__<br>
% (self.SETTINGS_MODULE, e)<br>
ImportError: Could not import settings 'geonode.settings' (Is it
on sys.path? Is there an import error in the settings file?): No
module named geonode.settings<br>
Traceback (most recent call last):<br>
File "/usr/bin/django-admin.py", line 5, in <module><br>
management.execute_from_<wbr>command_line()<br>
File
"/usr/lib/python2.7/dist-<wbr>packages/django/core/<wbr>management/__init__.py",
line 399, in execute_from_command_line<br>
utility.execute()<br>
File
"/usr/lib/python2.7/dist-<wbr>packages/django/core/<wbr>management/__init__.py",
line 392, in execute<br>
self.fetch_command(subcommand)<wbr>.run_from_argv(self.argv)<br>
File
"/usr/lib/python2.7/dist-<wbr>packages/django/core/<wbr>management/__init__.py",
line 261, in fetch_command<br>
commands = get_commands()<br>
File
"/usr/lib/python2.7/dist-<wbr>packages/django/core/<wbr>management/__init__.py",
line 107, in get_commands<br>
apps = settings.INSTALLED_APPS<br>
File "/usr/lib/python2.7/dist-<wbr>packages/django/conf/__init__.<wbr>py",
line 54, in __getattr__<br>
self._setup(name)<br>
File "/usr/lib/python2.7/dist-<wbr>packages/django/conf/__init__.<wbr>py",
line 49, in _setup<br>
self._wrapped = Settings(settings_module)<br>
File "/usr/lib/python2.7/dist-<wbr>packages/django/conf/__init__.<wbr>py",
line 132, in __init__<br>
% (self.SETTINGS_MODULE, e)<br>
ImportError: Could not import settings 'geonode.settings' (Is it
on sys.path? Is there an import error in the settings file?): No
module named geonode.settings<br>
<br>
</p>
<p>However, I now think that installation fails at the previous step
(2), for after I run "<span style="color:rgb(64,64,64);font-family:Lato,proxima-nova,"Helvetica Neue",Arial,sans-serif;font-size:16px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(252,252,252);text-decoration-style:initial;text-decoration-color:initial;display:inline!important;float:none">sudo apt-get
install geonode" I get the following output (at the end of a
very long line of what appears to be successfully executed
commands):</span></p>
<p>Creating config file /etc/logrotate.d/tomcat7 with new version<br>
* Starting Tomcat servlet engine
tomcat7 <wbr> <wbr> <wbr>
[ OK ]<br>
Processing triggers for ureadahead (0.100.0-16) ...<br>
Setting up geoserver-geonode (2.7.4-2) ...<br>
* Stopping Tomcat servlet engine
tomcat7 <wbr> <wbr> <wbr>
[ OK ]<br>
* Starting Tomcat servlet engine
tomcat7 <wbr> <wbr> <wbr>
[fail]<br>
dpkg: error processing package geoserver-geonode (--configure):<br>
subprocess installed post-installation script returned error exit
status 1<br>
dpkg: dependency problems prevent configuration of geonode:<br>
geonode depends on geoserver-geonode | geoserver; however:<br>
Package geoserver-geonode is not configured yet.<br>
Package geoserver is not installed.<br>
<br>
dpkg: error processing package geonode (--configure):<br>
dependency problems - leaving unconfigured<br>
Processing triggers for libc-bin (2.19-0ubuntu6.11) ...<br>
No apport report written because the error message indicates its a
followup error from a previous failure.<br>
<wbr> <wbr> <wbr>
Processing triggers for ufw (0.34~rc-0ubuntu2) ...<br>
Processing triggers for python-support (1.0.15) ...<br>
Processing triggers for ca-certificates (20160104ubuntu0.14.04.1)
...<br>
Updating certificates in /etc/ssl/certs... 0 added, 0 removed;
done.<br>
Running hooks in /etc/ca-certificates/update.d.<wbr>...<br>
done.<br>
done.<br>
Errors were encountered while processing:<br>
geoserver-geonode<br>
geonode<br>
E: Sub-process /usr/bin/dpkg returned an error code (1)<br>
<br>
</p>
<p>Many, many thanks for any help. <br>
</p>
<p>Cheers, <br>
</p>
<p>Ben <br>
</p>
</div>
<br>______________________________<wbr>_________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/geonode-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Simone </div>
</div>