[GeoNode-devel] Unable to install correctly geonode2.8 in remote VM (Toni Schönbuchner)

Dimitris Kar dkarakostis at gmail.com
Tue May 22 09:16:30 PDT 2018


Ciao Simone,
When I try to access one of these links it actually reloads the home page.
I would expect to show some css code but instead in redirects to the
homepage.
Regarding the apache.log file these are the errors on page load.

[Tue May 22 11:05:53.044719 2018] [wsgi:error] [pid 22852:tid
139708141008640] Traceback (most recent call last):
[Tue May 22 11:05:53.044723 2018] [wsgi:error] [pid 22852:tid
139708141008640]   File "/usr/lib/python2.7/dist-
packages/django/core/handlers/base.py", line 108, in get_response
[Tue May 22 11:05:53.044727 2018] [wsgi:error] [pid 22852:tid
139708141008640]     response = middleware_method(request)
[Tue May 22 11:05:53.044730 2018] [wsgi:error] [pid 22852:tid
139708141008640]   File
"/usr/lib/python2.7/dist-packages/django/middleware/common.py",
line 62, in process_request
[Tue May 22 11:05:53.044734 2018] [wsgi:error] [pid 22852:tid
139708141008640]     host = request.get_host()
[Tue May 22 11:05:53.044737 2018] [wsgi:error] [pid 22852:tid
139708141008640]   File "/usr/lib/python2.7/dist-
packages/django/http/request.py", line 94, in get_host
[Tue May 22 11:05:53.044741 2018] [wsgi:error] [pid 22852:tid
139708141008640]     if domain and validate_host(domain, allowed_hosts):
[Tue May 22 11:05:53.044744 2018] [wsgi:error] [pid 22852:tid
139708141008640]   File "/usr/lib/python2.7/dist-
packages/django/http/request.py", line 571, in validate_host
[Tue May 22 11:05:53.044759 2018] [wsgi:error] [pid 22852:tid
139708141008640]     pattern = pattern.lower()
[Tue May 22 11:05:53.044762 2018] [wsgi:error] [pid 22852:tid
139708141008640] AttributeError: 'NoneType' object has no attribute 'lower'
[Tue May 22 11:06:14.450424 2018] [wsgi:error] [pid 22853:tid
139708250121984] Internal Server Error: /lib/css/assets.min.css
[Tue May 22 11:06:14.450684 2018] [wsgi:error] [pid 22853:tid
139708250121984] Traceback (most recent call last):
[Tue May 22 11:06:14.450747 2018] [wsgi:error] [pid 22853:tid
139708250121984]   File "/usr/lib/python2.7/dist-
packages/django/core/handlers/base.py", line 108, in get_response
[Tue May 22 11:06:14.450796 2018] [wsgi:error] [pid 22853:tid
139708250121984]     response = middleware_method(request)
[Tue May 22 11:06:14.450847 2018] [wsgi:error] [pid 22853:tid
139708250121984]   File
"/usr/lib/python2.7/dist-packages/django/middleware/common.py",
line 62, in process_request
[Tue May 22 11:06:14.450893 2018] [wsgi:error] [pid 22853:tid
139708250121984]     host = request.get_host()
[Tue May 22 11:06:14.450948 2018] [wsgi:error] [pid 22853:tid
139708250121984]   File "/usr/lib/python2.7/dist-
packages/django/http/request.py", line 94, in get_host
[Tue May 22 11:06:14.450998 2018] [wsgi:error] [pid 22853:tid
139708250121984]     if domain and validate_host(domain, allowed_hosts):
[Tue May 22 11:06:14.451044 2018] [wsgi:error] [pid 22853:tid
139708250121984]   File "/usr/lib/python2.7/dist-
packages/django/http/request.py", line 571, in validate_host
[Tue May 22 11:06:14.451104 2018] [wsgi:error] [pid 22853:tid
139708250121984]     pattern = pattern.lower()
[Tue May 22 11:06:14.451150 2018] [wsgi:error] [pid 22853:tid
139708250121984] AttributeError: 'NoneType' object has no attribute 'lower'
[Tue May 22 11:06:14.547263 2018] [wsgi:error] [pid 22852:tid
139708149409536] Internal Server Error: /lib/css/lib/css/assets.min.css
[Tue May 22 11:06:14.547468 2018] [wsgi:error] [pid 22852:tid
139708149409536] Traceback (most recent call last):
[Tue May 22 11:06:14.547529 2018] [wsgi:error] [pid 22852:tid
139708149409536]   File "/usr/lib/python2.7/dist-
packages/django/core/handlers/base.py", line 108, in get_response
[Tue May 22 11:06:14.547609 2018] [wsgi:error] [pid 22852:tid
139708149409536]     response = middleware_method(request)
[Tue May 22 11:06:14.547661 2018] [wsgi:error] [pid 22852:tid
139708149409536]   File
"/usr/lib/python2.7/dist-packages/django/middleware/common.py",
line 62, in process_request
[Tue May 22 11:06:14.547704 2018] [wsgi:error] [pid 22852:tid
139708149409536]     host = request.get_host()
[Tue May 22 11:06:14.547766 2018] [wsgi:error] [pid 22852:tid
139708149409536]   File "/usr/lib/python2.7/dist-
packages/django/http/request.py", line 94, in get_host
[Tue May 22 11:06:14.547812 2018] [wsgi:error] [pid 22852:tid
139708149409536]     if domain and validate_host(domain, allowed_hosts):
[Tue May 22 11:06:14.547872 2018] [wsgi:error] [pid 22852:tid
139708149409536]   File "/usr/lib/python2.7/dist-
packages/django/http/request.py", line 571, in validate_host
[Tue May 22 11:06:14.547920 2018] [wsgi:error] [pid 22852:tid
139708149409536]     pattern = pattern.lower()
[Tue May 22 11:06:14.547966 2018] [wsgi:error] [pid 22852:tid
139708149409536] AttributeError: 'NoneType' object has no attribute 'lower'
[Tue May 22 11:06:14.551263 2018] [wsgi:error] [pid 22853:tid
139708149409536] Internal Server Error: /lib/css/geonode/css/ux-all.css
[Tue May 22 11:06:14.551382 2018] [wsgi:error] [pid 22853:tid
139708149409536] Traceback (most recent call last):
[Tue May 22 11:06:14.551450 2018] [wsgi:error] [pid 22853:tid
139708149409536]   File "/usr/lib/python2.7/dist-
packages/django/core/handlers/base.py", line 108, in get_response
[Tue May 22 11:06:14.551501 2018] [wsgi:error] [pid 22853:tid
139708149409536]     response = middleware_method(request)
[Tue May 22 11:06:14.551552 2018] [wsgi:error] [pid 22853:tid
139708149409536]   File
"/usr/lib/python2.7/dist-packages/django/middleware/common.py",
line 62, in process_request
[Tue May 22 11:06:14.551610 2018] [wsgi:error] [pid 22853:tid
139708149409536]     host = request.get_host()
[Tue May 22 11:06:14.551657 2018] [wsgi:error] [pid 22853:tid
139708149409536]   File "/usr/lib/python2.7/dist-
packages/django/http/request.py", line 94, in get_host
[Tue May 22 11:06:14.551700 2018] [wsgi:error] [pid 22853:tid
139708149409536]     if domain and validate_host(domain, allowed_hosts):
[Tue May 22 11:06:14.551745 2018] [wsgi:error] [pid 22853:tid
139708149409536]   File "/usr/lib/python2.7/dist-
packages/django/http/request.py", line 571, in validate_host
[Tue May 22 11:06:14.551800 2018] [wsgi:error] [pid 22853:tid
139708149409536]     pattern = pattern.lower()
[Tue May 22 11:06:14.551844 2018] [wsgi:error] [pid 22853:tid
139708149409536] AttributeError: 'NoneType' object has no attribute 'lower'
[Tue May 22 11:06:14.570258 2018] [wsgi:error] [pid 22852:tid
139708141008640] Internal Server Error: /lib/css/geonode/css/ext-
compatibility.css
[Tue May 22 11:06:14.570448 2018] [wsgi:error] [pid 22852:tid
139708141008640] Traceback (most recent call last):
[Tue May 22 11:06:14.570512 2018] [wsgi:error] [pid 22852:tid
139708141008640]   File "/usr/lib/python2.7/dist-
packages/django/core/handlers/base.py", line 108, in get_response
[Tue May 22 11:06:14.570568 2018] [wsgi:error] [pid 22852:tid
139708141008640]     response = middleware_method(request)
[Tue May 22 11:06:14.570617 2018] [wsgi:error] [pid 22852:tid
139708141008640]   File
"/usr/lib/python2.7/dist-packages/django/middleware/common.py",
line 62, in process_request
[Tue May 22 11:06:14.570664 2018] [wsgi:error] [pid 22852:tid
139708141008640]     host = request.get_host()
[Tue May 22 11:06:14.570707 2018] [wsgi:error] [pid 22852:tid
139708141008640]   File "/usr/lib/python2.7/dist-
packages/django/http/request.py", line 94, in get_host
[Tue May 22 11:06:14.570752 2018] [wsgi:error] [pid 22852:tid
139708141008640]     if domain and validate_host(domain, allowed_hosts):
[Tue May 22 11:06:14.570795 2018] [wsgi:error] [pid 22852:tid
139708141008640]   File "/usr/lib/python2.7/dist-
packages/django/http/request.py", line 571, in validate_host
[Tue May 22 11:06:14.570843 2018] [wsgi:error] [pid 22852:tid
139708141008640]     pattern = pattern.lower()
[Tue May 22 11:06:14.570889 2018] [wsgi:error] [pid 22852:tid
139708141008640] AttributeError: 'NoneType' object has no attribute 'lower'
[Tue May 22 11:06:14.576838 2018] [wsgi:error] [pid 22853:tid
139708250121984] Internal Server Error: /lib/css/geonode/css/base.css
[Tue May 22 11:06:14.576986 2018] [wsgi:error] [pid 22853:tid
139708250121984] Traceback (most recent call last):
[Tue May 22 11:06:14.577039 2018] [wsgi:error] [pid 22853:tid
139708250121984]   File "/usr/lib/python2.7/dist-
packages/django/core/handlers/base.py", line 108, in get_response
[Tue May 22 11:06:14.577086 2018] [wsgi:error] [pid 22853:tid
139708250121984]     response = middleware_method(request)
[Tue May 22 11:06:14.577153 2018] [wsgi:error] [pid 22853:tid
139708250121984]   File
"/usr/lib/python2.7/dist-packages/django/middleware/common.py",
line 62, in process_request
[Tue May 22 11:06:14.577199 2018] [wsgi:error] [pid 22853:tid
139708250121984]     host = request.get_host()
[Tue May 22 11:06:14.577244 2018] [wsgi:error] [pid 22853:tid
139708250121984]   File "/usr/lib/python2.7/dist-
packages/django/http/request.py", line 94, in get_host
[Tue May 22 11:06:14.577289 2018] [wsgi:error] [pid 22853:tid
139708250121984]     if domain and validate_host(domain, allowed_hosts):
[Tue May 22 11:06:14.577332 2018] [wsgi:error] [pid 22853:tid
139708250121984]   File "/usr/lib/python2.7/dist-
packages/django/http/request.py", line 571, in validate_host
[Tue May 22 11:06:14.577390 2018] [wsgi:error] [pid 22853:tid
139708250121984]     pattern = pattern.lower()
[Tue May 22 11:06:14.577436 2018] [wsgi:error] [pid 22853:tid
139708250121984] AttributeError: 'NoneType' object has no attribute 'lower'
[Tue May 22 11:06:14.590169 2018] [wsgi:error] [pid 22852:tid
139708166194944] Internal Server Error: /lib/css/lib/js/assets.min.js
[Tue May 22 11:06:14.590306 2018] [wsgi:error] [pid 22852:tid
139708166194944] Traceback (most recent call last):
[Tue May 22 11:06:14.590358 2018] [wsgi:error] [pid 22852:tid
139708166194944]   File "/usr/lib/python2.7/dist-
packages/django/core/handlers/base.py", line 108, in get_response
[Tue May 22 11:06:14.590406 2018] [wsgi:error] [pid 22852:tid
139708166194944]     response = middleware_method(request)
[Tue May 22 11:06:14.590454 2018] [wsgi:error] [pid 22852:tid
139708166194944]   File
"/usr/lib/python2.7/dist-packages/django/middleware/common.py",
line 62, in process_request
[Tue May 22 11:06:14.590500 2018] [wsgi:error] [pid 22852:tid
139708166194944]     host = request.get_host()
[Tue May 22 11:06:14.590544 2018] [wsgi:error] [pid 22852:tid
139708166194944]   File "/usr/lib/python2.7/dist-
packages/django/http/request.py", line 94, in get_host
[Tue May 22 11:06:14.590601 2018] [wsgi:error] [pid 22852:tid
139708166194944]     if domain and validate_host(domain, allowed_hosts):
[Tue May 22 11:06:14.590648 2018] [wsgi:error] [pid 22852:tid
139708166194944]   File "/usr/lib/python2.7/dist-
packages/django/http/request.py", line 571, in validate_host
[Tue May 22 11:06:14.590697 2018] [wsgi:error] [pid 22852:tid
139708166194944]     pattern = pattern.lower()
[Tue May 22 11:06:14.590742 2018] [wsgi:error] [pid 22852:tid
139708166194944] AttributeError: 'NoneType' object has no attribute 'lower'
[Tue May 22 11:06:14.616891 2018] [wsgi:error] [pid 22853:tid
139708166194944] Internal Server Error: /lib/css/geonode/js/utils/utils.js
[Tue May 22 11:06:14.617036 2018] [wsgi:error] [pid 22853:tid
139708166194944] Traceback (most recent call last):
[Tue May 22 11:06:14.617091 2018] [wsgi:error] [pid 22853:tid
139708166194944]   File "/usr/lib/python2.7/dist-
packages/django/core/handlers/base.py", line 108, in get_response
[Tue May 22 11:06:14.617141 2018] [wsgi:error] [pid 22853:tid
139708166194944]     response = middleware_method(request)
[Tue May 22 11:06:14.617185 2018] [wsgi:error] [pid 22853:tid
139708166194944]   File
"/usr/lib/python2.7/dist-packages/django/middleware/common.py",
line 62, in process_request
[Tue May 22 11:06:14.617234 2018] [wsgi:error] [pid 22853:tid
139708166194944]     host = request.get_host()
[Tue May 22 11:06:14.617285 2018] [wsgi:error] [pid 22853:tid
139708166194944]   File "/usr/lib/python2.7/dist-
packages/django/http/request.py", line 94, in get_host
[Tue May 22 11:06:14.617344 2018] [wsgi:error] [pid 22853:tid
139708166194944]     if domain and validate_host(domain, allowed_hosts):
[Tue May 22 11:06:14.617396 2018] [wsgi:error] [pid 22853:tid
139708166194944]   File "/usr/lib/python2.7/dist-
packages/django/http/request.py", line 571, in validate_host
[Tue May 22 11:06:14.617443 2018] [wsgi:error] [pid 22853:tid
139708166194944]     pattern = pattern.lower()
[Tue May 22 11:06:14.617486 2018] [wsgi:error] [pid 22853:tid
139708166194944] AttributeError: 'NoneType' object has no attribute 'lower'
[Tue May 22 11:06:14.774256 2018] [wsgi:error] [pid 22852:tid
139708132607744] Internal Server Error: /lib/css/geonode/js/base/base.js
[Tue May 22 11:06:14.774505 2018] [wsgi:error] [pid 22852:tid
139708132607744] Traceback (most recent call last):
[Tue May 22 11:06:14.774566 2018] [wsgi:error] [pid 22852:tid
139708132607744]   File "/usr/lib/python2.7/dist-
packages/django/core/handlers/base.py", line 108, in get_response
[Tue May 22 11:06:14.774615 2018] [wsgi:error] [pid 22852:tid
139708132607744]     response = middleware_method(request)
[Tue May 22 11:06:14.774661 2018] [wsgi:error] [pid 22852:tid
139708132607744]   File
"/usr/lib/python2.7/dist-packages/django/middleware/common.py",
line 62, in process_request
[Tue May 22 11:06:14.774706 2018] [wsgi:error] [pid 22852:tid
139708132607744]     host = request.get_host()
[Tue May 22 11:06:14.774753 2018] [wsgi:error] [pid 22852:tid
139708132607744]   File "/usr/lib/python2.7/dist-
packages/django/http/request.py", line 94, in get_host
[Tue May 22 11:06:14.774809 2018] [wsgi:error] [pid 22852:tid
139708132607744]     if domain and validate_host(domain, allowed_hosts):
[Tue May 22 11:06:14.774874 2018] [wsgi:error] [pid 22852:tid
139708132607744]   File "/usr/lib/python2.7/dist-
packages/django/http/request.py", line 571, in validate_host
[Tue May 22 11:06:14.774918 2018] [wsgi:error] [pid 22852:tid
139708132607744]     pattern = pattern.lower()
[Tue May 22 11:06:14.774969 2018] [wsgi:error] [pid 22852:tid
139708132607744] AttributeError: 'NoneType' object has no attribute 'lower'
[Tue May 22 11:06:14.779400 2018] [wsgi:error] [pid 22853:tid
139708149409536] Internal Server Error: /jsi18n/
[Tue May 22 11:06:14.779527 2018] [wsgi:error] [pid 22853:tid
139708149409536] Traceback (most recent call last):
[Tue May 22 11:06:14.779585 2018] [wsgi:error] [pid 22853:tid
139708149409536]   File "/usr/lib/python2.7/dist-
packages/django/core/handlers/base.py", line 108, in get_response
[Tue May 22 11:06:14.779633 2018] [wsgi:error] [pid 22853:tid
139708149409536]     response = middleware_method(request)
[Tue May 22 11:06:14.779677 2018] [wsgi:error] [pid 22853:tid
139708149409536]   File
"/usr/lib/python2.7/dist-packages/django/middleware/common.py",
line 62, in process_request
[Tue May 22 11:06:14.779728 2018] [wsgi:error] [pid 22853:tid
139708149409536]     host = request.get_host()
[Tue May 22 11:06:14.779774 2018] [wsgi:error] [pid 22853:tid
139708149409536]   File "/usr/lib/python2.7/dist-
packages/django/http/request.py", line 94, in get_host
[Tue May 22 11:06:14.779817 2018] [wsgi:error] [pid 22853:tid
139708149409536]     if domain and validate_host(doma
in, allowed_hosts):
[Tue May 22 11:06:14.779862 2018] [wsgi:error] [pid 22853:tid
139708149409536]   File "/usr/lib/python2.7/dist-pack
ages/django/http/request.py", line 571, in validate_host
[Tue May 22 11:06:14.779911 2018] [wsgi:error] [pid 22853:tid
139708149409536]     pattern = pattern.lower()
[Tue May 22 11:06:14.779965 2018] [wsgi:error] [pid 22853:tid
139708149409536] AttributeError: 'NoneType' object ha
s no attribute 'lower'
[Tue May 22 11:06:14.807392 2018] [wsgi:error] [pid 22852:tid
139708166194944] Internal Server Error: /lang.js
[Tue May 22 11:06:14.807575 2018] [wsgi:error] [pid 22852:tid
139708166194944] Traceback (most recent call last):
[Tue May 22 11:06:14.807629 2018] [wsgi:error] [pid 22852:tid
139708166194944]   File "/usr/lib/python2.7/dist-pack
ages/django/core/handlers/base.py", line 108, in get_response
[Tue May 22 11:06:14.807676 2018] [wsgi:error] [pid 22852:tid
139708166194944]     response = middleware_method(req
uest)
[Tue May 22 11:06:14.807721 2018] [wsgi:error] [pid 22852:tid
139708166194944]   File "/usr/lib/python2.7/dist-pack
ages/django/middleware/common.py", line 62, in process_request
[Tue May 22 11:06:14.807765 2018] [wsgi:error] [pid 22852:tid
139708166194944]     host = request.get_host()
[Tue May 22 11:06:14.807813 2018] [wsgi:error] [pid 22852:tid
139708166194944]   File "/usr/lib/python2.7/dist-pack
ages/django/http/request.py", line 94, in get_host
[Tue May 22 11:06:14.807858 2018] [wsgi:error] [pid 22852:tid
139708166194944]     if domain and validate_host(doma
in, allowed_hosts):
[Tue May 22 11:06:14.807904 2018] [wsgi:error] [pid 22852:tid
139708166194944]   File "/usr/lib/python2.7/dist-pack
ages/django/http/request.py", line 571, in validate_host
[Tue May 22 11:06:14.807948 2018] [wsgi:error] [pid 22852:tid
139708166194944]     pattern = pattern.lower()
[Tue May 22 11:06:14.808009 2018] [wsgi:error] [pid 22852:tid
139708166194944] AttributeError: 'NoneType' object ha
s no attribute 'lower'
[Tue May 22 11:06:14.978068 2018] [wsgi:error] [pid 22853:tid
139708166194944] Internal Server Error: /favicon.ico
[Tue May 22 11:06:14.978270 2018] [wsgi:error] [pid 22853:tid
139708166194944] Traceback (most recent call last):
[Tue May 22 11:06:14.978326 2018] [wsgi:error] [pid 22853:tid
139708166194944]   File "/usr/lib/python2.7/dist-pack
ages/django/core/handlers/base.py", line 108, in get_response
[Tue May 22 11:06:14.978374 2018] [wsgi:error] [pid 22853:tid
139708166194944]     response = middleware_method(req
uest)
[Tue May 22 11:06:14.978440 2018] [wsgi:error] [pid 22853:tid
139708166194944]   File "/usr/lib/python2.7/dist-pack
ages/django/middleware/common.py", line 62, in process_request
[Tue May 22 11:06:14.978492 2018] [wsgi:error] [pid 22853:tid
139708166194944]     host = request.get_host()
[Tue May 22 11:06:14.978538 2018] [wsgi:error] [pid 22853:tid
139708166194944]   File "/usr/lib/python2.7/dist-pack
ages/django/http/request.py", line 94, in get_host
[Tue May 22 11:06:14.978637 2018] [wsgi:error] [pid 22853:tid
139708166194944]     if domain and validate_host(doma
in, allowed_hosts):
[Tue May 22 11:06:14.978690 2018] [wsgi:error] [pid 22853:tid
139708166194944]   File "/usr/lib/python2.7/dist-pack
ages/django/http/request.py", line 571, in validate_host
[Tue May 22 11:06:14.978736 2018] [wsgi:error] [pid 22853:tid
139708166194944]     pattern = pattern.lower()
[Tue May 22 11:06:14.978788 2018] [wsgi:error] [pid 22853:tid
139708166194944] AttributeError: 'NoneType' object ha
s no attribute 'lower'

On Mon, May 21, 2018 at 6:39 PM, Simone Dalmasso <simone.dalmasso at gmail.com>
wrote:

> Ciao Dimitris. What do you get if you manually request one of those css?
> For the 500 you should see something in the Apache logs.
>
> Il giorno lun 21 mag 2018 alle 15:47 Dimitris Kar <dkarakostis at gmail.com>
> ha scritto:
>
>> Hey Toni
>>
>> Yes. I have installed the geonode using apt and in the end I also
>> executed the collectstatic command. I wonder if its related with firewall
>> properties or forwarding of the internal IP to the external etc.
>> _______________________________________________
>> geonode-devel mailing list
>> geonode-devel at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/geonode-devel
>>
> --
> Simone
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20180522/acb6d5d4/attachment-0001.html>


More information about the geonode-devel mailing list