[GeoNode-users] Install Geonode on Ubuntu (on Digital Ocean) issue

Benjamin Carter benjamincarter at muhlenberg.edu
Tue Apr 25 18:00:58 PDT 2017


Simone,

Yes. That is most likely the issue. Thanks, Ben.

Benjamin P. Carter, PhD, RPA
Assistant Professor of Anthropology
Muhlenberg College
Allentown, PA
Office: Sociology/ Anthropology 9
Phone: (484)-664-3961

On 4/25/2017 12:02 PM, Simone Dalmasso wrote:
> Hi,
>
>
> 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).
>
> Could this be your case?
>
> 2017-04-22 15:15 GMT+02:00 Benjamin Carter 
> <benjamincarter at muhlenberg.edu <mailto:benjamincarter at muhlenberg.edu>>:
>
>     All,
>
>     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.
>
>     I created a droplet following the instructions here:
>
>     https://www.digitalocean.com/community/tutorials/how-to-create-your-first-digitalocean-droplet-virtual-server
>     <https://www.digitalocean.com/community/tutorials/how-to-create-your-first-digitalocean-droplet-virtual-server>
>
>     https://www.digitalocean.com/community/tutorials/how-to-connect-to-your-droplet-with-ssh
>     <https://www.digitalocean.com/community/tutorials/how-to-connect-to-your-droplet-with-ssh>
>
>     https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-14-04
>     <https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-14-04>
>
>     Note that I am using an SSH key and I am interacting with the
>     server via PuTTy.
>
>     Then, I am used the Geonode installation instructions here:
>
>     http://docs.geonode.org/en/master/tutorials/install_and_admin/quick_install.html
>     <http://docs.geonode.org/en/master/tutorials/install_and_admin/quick_install.html>
>
>     I am following the "Ubuntu (standard deployment)" instructions
>
>     Within those instructions, I initially had problems with step 3,
>     which states:
>
>     "3. Set the correct IP address (NB: the first command below looks
>     up the IP address automatically).
>
>     IP_ADDRESS=$(ip route get 8.8.8.8 | awk ‘{print $NF; exit}’) sudo
>     geonode-updateip $IP_ADDRESS
>
>     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."
>
>     This fails. Here's the output that I get:
>
>     User at server:~$ IP_ADDRESS=$(ip route get 8.8.8.8 | awk ‘{print
>     $NF; exit}’) sudo geonode-updateip $IP_ADDRESS
>     Replacing SITEURL value with '' in /etc/geonode/local_settings.py
>     ... sed: can't read /etc/geonode/local_settings.py: No such file
>     or directory
>     done.
>     Adding entry for '' in
>     /usr/share/geoserver/data/printing/config.yaml ... '' already
>     found to the printing whitelist.
>     grep: /etc/geonode/local_settings.py: No such file or directory
>     Adding ALLOWED_HOSTS with in /etc/geonode/local_settings.py ... done.
>     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/__init__.py",
>     line 261, in fetch_command
>         commands = get_commands()
>       File
>     "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py",
>     line 107, in get_commands
>         apps = settings.INSTALLED_APPS
>       File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py",
>     line 54, in __getattr__
>         self._setup(name)
>       File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py",
>     line 49, in _setup
>         self._wrapped = Settings(settings_module)
>       File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py",
>     line 132, in __init__
>         % (self.SETTINGS_MODULE, e)
>     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
>      * Restarting web server apache2 [ OK ]
>     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/__init__.py",
>     line 261, in fetch_command
>         commands = get_commands()
>       File
>     "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py",
>     line 107, in get_commands
>         apps = settings.INSTALLED_APPS
>       File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py",
>     line 54, in __getattr__
>         self._setup(name)
>       File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py",
>     line 49, in _setup
>         self._wrapped = Settings(settings_module)
>       File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py",
>     line 132, in __init__
>         % (self.SETTINGS_MODULE, e)
>     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
>     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/__init__.py",
>     line 261, in fetch_command
>         commands = get_commands()
>       File
>     "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py",
>     line 107, in get_commands
>         apps = settings.INSTALLED_APPS
>       File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py",
>     line 54, in __getattr__
>         self._setup(name)
>       File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py",
>     line 49, in _setup
>         self._wrapped = Settings(settings_module)
>       File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py",
>     line 132, in __init__
>         % (self.SETTINGS_MODULE, e)
>     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
>
>     However, I now think that installation fails at the previous step
>     (2), for after I run "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):
>
>     Creating config file /etc/logrotate.d/tomcat7 with new version
>      * Starting Tomcat servlet engine tomcat7 [ OK ]
>     Processing triggers for ureadahead (0.100.0-16) ...
>     Setting up geoserver-geonode (2.7.4-2) ...
>      * Stopping Tomcat servlet engine tomcat7 [ OK ]
>      * Starting Tomcat servlet engine tomcat7 [fail]
>     dpkg: error processing package geoserver-geonode (--configure):
>      subprocess installed post-installation script returned error exit
>     status 1
>     dpkg: dependency problems prevent configuration of geonode:
>      geonode depends on geoserver-geonode | geoserver; however:
>       Package geoserver-geonode is not configured yet.
>       Package geoserver is not installed.
>
>     dpkg: error processing package geonode (--configure):
>      dependency problems - leaving unconfigured
>     Processing triggers for libc-bin (2.19-0ubuntu6.11) ...
>     No apport report written because the error message indicates its a
>     followup error from a previous failure.
>     Processing triggers for ufw (0.34~rc-0ubuntu2) ...
>     Processing triggers for python-support (1.0.15) ...
>     Processing triggers for ca-certificates (20160104ubuntu0.14.04.1) ...
>     Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done.
>     Running hooks in /etc/ca-certificates/update.d....
>     done.
>     done.
>     Errors were encountered while processing:
>      geoserver-geonode
>      geonode
>     E: Sub-process /usr/bin/dpkg returned an error code (1)
>
>     Many, many thanks for any help.
>
>     Cheers,
>
>     Ben
>
>
>     _______________________________________________
>     geonode-users mailing list
>     geonode-users at lists.osgeo.org <mailto:geonode-users at lists.osgeo.org>
>     https://lists.osgeo.org/mailman/listinfo/geonode-users
>     <https://lists.osgeo.org/mailman/listinfo/geonode-users>
>
>
>
>
> -- 
> Simone

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170425/2ca4cbf5/attachment.html>


More information about the geonode-users mailing list