Skip to content

Installation problems on Ubuntu 16.04 and Geonode 2.8 #178

@mconte79

Description

@mconte79

Hi,
I tried to add cartoview on existing geonode following this instructions:

  1. pip install cartoview==1.8.3 --no-cache-dir => OK no errors;
  2. open geonode settings.py and add the following lines at the end of the file....I add the lines to the files /usr/local/lib/python2.7/dist-packages/geonode/settings.py
  3. reboot

When the server is on if I try to access to Geonode I get Internal Server Error.

In the apache error.log I find this messages:

[Wed Sep 12 14:22:54.488436 2018] [mpm_event:notice] [pid 1420:tid 139792714028928] AH00491: caught SIGTERM, shutting down
extern "Python": function Cryptography_rand_bytes() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.
extern "Python": function Cryptography_rand_bytes() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.
extern "Python": function Cryptography_rand_bytes() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.
extern "Python": function Cryptography_rand_bytes() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.
extern "Python": function Cryptography_rand_bytes() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.
extern "Python": function Cryptography_rand_bytes() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.
extern "Python": function Cryptography_rand_bytes() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.
extern "Python": function Cryptography_rand_bytes() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.
extern "Python": function Cryptography_rand_bytes() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.
extern "Python": function Cryptography_rand_bytes() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.
extern "Python": function Cryptography_rand_bytes() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.
extern "Python": function Cryptography_rand_bytes() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.
extern "Python": function Cryptography_rand_bytes() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.
extern "Python": function Cryptography_rand_bytes() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.
extern "Python": function Cryptography_rand_bytes() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.
extern "Python": function Cryptography_rand_bytes() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.
extern "Python": function Cryptography_rand_bytes() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.
extern "Python": function Cryptography_rand_bytes() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.
[Wed Sep 12 14:23:35.842473 2018] [wsgi:warn] [pid 1440:tid 140316488402816] mod_wsgi: Compiled for Python/2.7.11.
[Wed Sep 12 14:23:35.842649 2018] [wsgi:warn] [pid 1440:tid 140316488402816] mod_wsgi: Runtime using Python/2.7.12.
[Wed Sep 12 14:23:35.843643 2018] [mpm_event:notice] [pid 1440:tid 140316488402816] AH00489: Apache/2.4.18 (Ubuntu) mod_wsgi/4.3.0 Python/2.7.12 configured -- resuming normal operations
[Wed Sep 12 14:23:35.843674 2018] [core:notice] [pid 1440:tid 140316488402816] AH00094: Command line: '/usr/sbin/apache2'
[Wed Sep 12 07:23:45.464017 2018] [wsgi:error] [pid 1443:tid 140316354684672] [09-12 07:23:45] p1443  { cartoview.app_manager.helpers /usr/local/lib/python2.7/dist-packages/cartoview/app_manager/helpers.py:18}                             ERROR - 
[Wed Sep 12 07:23:45.464193 2018] [wsgi:error] [pid 1443:tid 140316354684672] [remote 192.168.0.142:21754] mod_wsgi (pid=1443): Target WSGI script '/var/www/geonode/wsgi/geonode.wsgi' cannot be loaded as Python module.
[Wed Sep 12 07:23:45.464209 2018] [wsgi:error] [pid 1443:tid 140316354684672] [remote 192.168.0.142:21754] mod_wsgi (pid=1443): Exception occurred processing WSGI script '/var/www/geonode/wsgi/geonode.wsgi'.
[Wed Sep 12 07:23:45.464231 2018] [wsgi:error] [pid 1443:tid 140316354684672] [remote 192.168.0.142:21754] Traceback (most recent call last):
[Wed Sep 12 07:23:45.464251 2018] [wsgi:error] [pid 1443:tid 140316354684672] [remote 192.168.0.142:21754]   File "/var/www/geonode/wsgi/geonode.wsgi", line 7, in <module>
[Wed Sep 12 07:23:45.464321 2018] [wsgi:error] [pid 1443:tid 140316354684672] [remote 192.168.0.142:21754]     application = get_wsgi_application()
[Wed Sep 12 07:23:45.464337 2018] [wsgi:error] [pid 1443:tid 140316354684672] [remote 192.168.0.142:21754]   File "/usr/lib/python2.7/dist-packages/django/core/wsgi.py", line 14, in get_wsgi_application
[Wed Sep 12 07:23:45.467280 2018] [wsgi:error] [pid 1443:tid 140316354684672] [remote 192.168.0.142:21754]     django.setup()
[Wed Sep 12 07:23:45.467298 2018] [wsgi:error] [pid 1443:tid 140316354684672] [remote 192.168.0.142:21754]   File "/usr/lib/python2.7/dist-packages/django/__init__.py", line 17, in setup
[Wed Sep 12 07:23:45.474472 2018] [wsgi:error] [pid 1443:tid 140316354684672] [remote 192.168.0.142:21754]     configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
[Wed Sep 12 07:23:45.474492 2018] [wsgi:error] [pid 1443:tid 140316354684672] [remote 192.168.0.142:21754]   File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 48, in __getattr__
[Wed Sep 12 07:23:45.479550 2018] [wsgi:error] [pid 1443:tid 140316354684672] [remote 192.168.0.142:21754]     self._setup(name)
[Wed Sep 12 07:23:45.479569 2018] [wsgi:error] [pid 1443:tid 140316354684672] [remote 192.168.0.142:21754]   File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 44, in _setup
[Wed Sep 12 07:23:45.479592 2018] [wsgi:error] [pid 1443:tid 140316354684672] [remote 192.168.0.142:21754]     self._wrapped = Settings(settings_module)
[Wed Sep 12 07:23:45.479603 2018] [wsgi:error] [pid 1443:tid 140316354684672] [remote 192.168.0.142:21754]   File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__
[Wed Sep 12 07:23:45.479619 2018] [wsgi:error] [pid 1443:tid 140316354684672] [remote 192.168.0.142:21754]     mod = importlib.import_module(self.SETTINGS_MODULE)
[Wed Sep 12 07:23:45.479630 2018] [wsgi:error] [pid 1443:tid 140316354684672] [remote 192.168.0.142:21754]   File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
[Wed Sep 12 07:23:45.480055 2018] [wsgi:error] [pid 1443:tid 140316354684672] [remote 192.168.0.142:21754]     __import__(name)
[Wed Sep 12 07:23:45.480073 2018] [wsgi:error] [pid 1443:tid 140316354684672] [remote 192.168.0.142:21754]   File "/usr/local/lib/python2.7/dist-packages/geonode/settings.py", line 1350, in <module>
[Wed Sep 12 07:23:45.480391 2018] [wsgi:error] [pid 1443:tid 140316354684672] [remote 192.168.0.142:21754]     INSTALLED_APPS += load_apps()
[Wed Sep 12 07:23:45.480409 2018] [wsgi:error] [pid 1443:tid 140316354684672] [remote 192.168.0.142:21754]   File "/usr/local/lib/python2.7/dist-packages/cartoview/app_manager/settings.py", line 33, in load_apps
[Wed Sep 12 07:23:45.480594 2018] [wsgi:error] [pid 1443:tid 140316354684672] [remote 192.168.0.142:21754]     create_apps_dir()
[Wed Sep 12 07:23:45.480611 2018] [wsgi:error] [pid 1443:tid 140316354684672] [remote 192.168.0.142:21754]   File "/usr/local/lib/python2.7/dist-packages/cartoview/app_manager/settings.py", line 28, in create_apps_dir
[Wed Sep 12 07:23:45.480632 2018] [wsgi:error] [pid 1443:tid 140316354684672] [remote 192.168.0.142:21754]     change_path_permission(settings.APPS_DIR)
[Wed Sep 12 07:23:45.480644 2018] [wsgi:error] [pid 1443:tid 140316354684672] [remote 192.168.0.142:21754]   File "/usr/local/lib/python2.7/dist-packages/cartoview/app_manager/helpers.py", line 25, in change_path_permission
[Wed Sep 12 07:23:45.480818 2018] [wsgi:error] [pid 1443:tid 140316354684672] [remote 192.168.0.142:21754]     os.chmod(path, mode)
[Wed Sep 12 07:23:45.480851 2018] [wsgi:error] [pid 1443:tid 140316354684672] [remote 192.168.0.142:21754] OSError: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/geonode/apps'

How I can resolve?
Best regards
Matteo

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions