[GeoNode-users] Geonode error "page not found" on production install

Simone Dalmasso simone.dalmasso at gmail.com
Thu Jan 14 04:55:53 PST 2016


Hi Ivo,

it seems an apache misconfiguration.

did you add the "require all granted" to your static directive in the
virtualhost? see this readme
https://github.com/GeoNode/geonode-project/blob/master/README.rst

2016-01-14 13:17 GMT+01:00 Ivo Santos <ivojfs at gmail.com>:

> Hello to everyone,
>
> I already managed to solve the issue. I think that the problem I had on
> the installation made me lose some geoserver configuration file. I can
> upload layers and search them on the geoexplorer but they are no listed and
> the layers do not appear on the map.
>
> When I try to see a layer by itself the error is "Failed to load resource:
> the server responded with a status of 401 (UNAUTHORIZED):
> GET http://atlas.cidehusdigital.uevora.pt/security/permissions/1 401
> (UNAUTHORIZED)" [
> http://atlas.example.com/static/lib/js/assets.min.js?v=2.4]
>
> When I access geoserver the layer is there.
>
> The log of apache:
>
> Fatal Python error: PyEval_AcquireThread: NULL new thread state
> [Thu Jan 14 12:14:12.309151 2016] [core:notice] [pid 10156] AH00051: child
> pid 13857 exit signal Aborted (6), possible coredump in /etc/apache2
> Fatal Python error: PyEval_AcquireThread: NULL new thread state
> [Thu Jan 14 12:14:13.310554 2016] [core:notice] [pid 10156] AH00051: child
> pid 2262 exit signal Aborted (6), possible coredump in /etc/apache2
> Fatal Python error: PyEval_AcquireThread: NULL new thread state
> [Thu Jan 14 12:14:14.311891 2016] [core:notice] [pid 10156] AH00051: child
> pid 13860 exit signal Aborted (6), possible coredump in /etc/apache2
> Fatal Python error: PyEval_AcquireThread: NULL new thread state
> [Thu Jan 14 12:14:15.313226 2016] [core:notice] [pid 10156] AH00051: child
> pid 13861 exit signal Aborted (6), possible coredump in /etc/apache2
> Fatal Python error: PyEval_AcquireThread: NULL new thread state
> [Thu Jan 14 12:14:16.314475 2016] [core:notice] [pid 10156] AH00051: child
> pid 15953 exit signal Aborted (6), possible coredump in /etc/apache2
>
>
> The error appears to be related. Do you have any idea of what can be
> causing the problem?
>
> Best regards,
> Ivo
>
> 2016-01-13 9:52 GMT+00:00 Simone Dalmasso <simone.dalmasso at gmail.com>:
>
>> I think it should but each configuration should live in it's own
>> virtualhost, so one for suphp and one for geonode. with different
>> subdomains.
>>
>> 2016-01-13 10:50 GMT+01:00 Ivo Santos <ivojfs at gmail.com>:
>>
>>> Ok, can you tell me if geonode is compatible with suphp? I am trying to
>>> explore if it is a compatibility issue.
>>>
>>> 2016-01-13 9:48 GMT+00:00 Simone Dalmasso <simone.dalmasso at gmail.com>:
>>>
>>>> that is definitely an apache misconfiguration, maybe of the php module.
>>>>
>>>> 2016-01-13 10:43 GMT+01:00 Ivo Santos <ivojfs at gmail.com>:
>>>>
>>>>> Hi Simone,
>>>>>
>>>>> Yes, tomcat was already instaled. I used the geoserver.war on that
>>>>> link and now that part is working great.
>>>>>
>>>>> For now the only problem it's just the link of the homepage. For
>>>>> example, if I try to go to my homepage atlas.example.com I am being
>>>>> redirected to atlas.example.com/init/index.php and not to the geonode
>>>>> homepage.
>>>>> I had a previous configuration with another webgis using that
>>>>> subdomain. Do you think it could be a wrong configuration on apache or on
>>>>> geonode?
>>>>>
>>>>> Thank you for all the help and guidance,
>>>>> Ivo
>>>>>
>>>>> 2016-01-13 8:22 GMT+00:00 Simone Dalmasso <simone.dalmasso at gmail.com>:
>>>>>
>>>>>> Hi Ivo,
>>>>>>
>>>>>> one of the reasons why the apt-get installation can fail could be
>>>>>> that on the machine there were already installed some of the components, in
>>>>>> this case tomcat maybe.
>>>>>>
>>>>>> anyway if you install geoserver manually be sure to use the one
>>>>>> provided by geonode
>>>>>> http://build.geonode.org/geoserver/latest/geoserver.war.
>>>>>>
>>>>>> what link is broken, exactly?
>>>>>>
>>>>>> 2016-01-13 1:23 GMT+01:00 Ivo Santos <ivojfs at gmail.com>:
>>>>>>
>>>>>>> Finnaly I got it almost working but for some reason it appears that
>>>>>>> using the apt-get instalation, geoserver was not installed. Trying to
>>>>>>> manual install it.
>>>>>>> The homepage has also a problem. It's weird but it appears that
>>>>>>> something redirects the link to some page that is not present on geonode.
>>>>>>> All the other links are working correctly.
>>>>>>>
>>>>>>> Thank you!
>>>>>>>
>>>>>>> 2016-01-12 20:25 GMT+00:00 Ivo Santos <ivojfs at gmail.com>:
>>>>>>>
>>>>>>>> Hi everyone,
>>>>>>>>
>>>>>>>> So, after trying on localhost and themed my instalation to my
>>>>>>>> needs, I am installing geonode on the production server. I am again with
>>>>>>>> some doubts on the configuration. The automatic configuration file
>>>>>>>> geonode.conf was changed by me on:
>>>>>>>>
>>>>>>>> <VirtualHost *:80>
>>>>>>>>     Servername atlas.example.com
>>>>>>>>     ServerAlias atlas.example.com
>>>>>>>>
>>>>>>>> When I try to reach geoserver I get a apache tomcat 404. should i
>>>>>>>> change also on that file, the proxypass "localhost" to "
>>>>>>>> atlas.example.com"? These are the lines:
>>>>>>>>     ProxyPass /geoserver http://localhost:8080/geoserver
>>>>>>>>     ProxyPassReverse /geoserver http://localhost:8080/geoserver
>>>>>>>>
>>>>>>>>
>>>>>>>> My 000-default.conf was working with the www.example.com on a CMS,
>>>>>>>> now the configuration is redirecting to geoserver landing page. On other
>>>>>>>> hand atlas.example.com shows geonode with "page not found error"
>>>>>>>>
>>>>>>>> On my local_settings.py I changed the SITEURL= '
>>>>>>>> http://atlas.example.com' and ALLOWED_HOSTS=['atlas.example.com','
>>>>>>>> www.example.com']
>>>>>>>>
>>>>>>>>
>>>>>>>> Hoping that you can help me,
>>>>>>>> Best regards,
>>>>>>>> Ivo
>>>>>>>>
>>>>>>>> 2016-01-09 17:36 GMT+00:00 Ivo Santos <ivojfs at gmail.com>:
>>>>>>>>
>>>>>>>>> Simone,
>>>>>>>>>
>>>>>>>>> Thank you for your help. I am testing on a lamp instalation on my
>>>>>>>>> laptop. For now I will test other aspects and leave that part for the
>>>>>>>>> production environment.
>>>>>>>>>
>>>>>>>>> Best regards,
>>>>>>>>> Ivo
>>>>>>>>>
>>>>>>>>> 2016-01-08 10:42 GMT+00:00 Simone Dalmasso <
>>>>>>>>> simone.dalmasso at gmail.com>:
>>>>>>>>>
>>>>>>>>>> Ivo, if your server doesn't have a name (just the ip address)
>>>>>>>>>> then you cannot have multiple sites under the root. if you have a domain
>>>>>>>>>> name then  you can take a look at the apache virtualhost configuration
>>>>>>>>>> https://httpd.apache.org/docs/2.2/vhosts/examples.html.
>>>>>>>>>>
>>>>>>>>>> hope this helps
>>>>>>>>>>
>>>>>>>>>> 2016-01-08 11:39 GMT+01:00 Ivo Santos <ivojfs at gmail.com>:
>>>>>>>>>>
>>>>>>>>>>> Hi Simone,
>>>>>>>>>>>
>>>>>>>>>>> Thank you for showing me the correct way. I managed to use
>>>>>>>>>>> geonode on a subdomain like you suggested. But now every other site on the
>>>>>>>>>>> server is giving error "Bad Request (400)". Probably this is a common error
>>>>>>>>>>> due to my inexperience with apache. If this questions are not for this list
>>>>>>>>>>> please let me know.
>>>>>>>>>>>
>>>>>>>>>>> Regards,
>>>>>>>>>>> Ivo
>>>>>>>>>>>
>>>>>>>>>>> 2016-01-08 7:36 GMT+00:00 Simone Dalmasso <
>>>>>>>>>>> simone.dalmasso at gmail.com>:
>>>>>>>>>>>
>>>>>>>>>>>> Hi Ivo,
>>>>>>>>>>>>
>>>>>>>>>>>> Geonode works at the root of the domain and you cannot serve it
>>>>>>>>>>>> under /geonode unless you change the code or maybe do some tricks with
>>>>>>>>>>>> Apache. Not sure if someone else has tried that. The suggestion is to keep
>>>>>>>>>>>> at the root but serve it with an Apache virtualhost when you have a domain
>>>>>>>>>>>> name. Like geonode.yourdomain.com.
>>>>>>>>>>>>
>>>>>>>>>>>> Regards
>>>>>>>>>>>>
>>>>>>>>>>>> Il giovedì 7 gennaio 2016, Ivo Santos <ivojfs at gmail.com> ha
>>>>>>>>>>>> scritto:
>>>>>>>>>>>>
>>>>>>>>>>>>> Hi everyone,
>>>>>>>>>>>>>
>>>>>>>>>>>>> I am new to geonode and testing the possibility of using it on
>>>>>>>>>>>>> my work. For now, I am trying to install Geonode for production.
>>>>>>>>>>>>> I instaled via apt-get with the snapshots repository on latest
>>>>>>>>>>>>> version of ubuntu. After that I created the superuser, updated the ip and
>>>>>>>>>>>>> after that changed the local_settings.py (SITEURL = '
>>>>>>>>>>>>> http://10.0.2.15/geonode/') as on the docs
>>>>>>>>>>>>> <http://docs.geonode.org/en/dev/deploy/production.html>. But
>>>>>>>>>>>>> when I try to reach that page it appears "page not found". The homepage of
>>>>>>>>>>>>> geonode remains http://10.0.2.15
>>>>>>>>>>>>> Am I missing something here? Can you help me? If you need any
>>>>>>>>>>>>> kind of information, please ask.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Best regards and thank you in advance,
>>>>>>>>>>>>> Ivo
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> Ivo Santos
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Simone
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Ivo Santos
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Simone
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Ivo Santos
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Ivo Santos
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Ivo Santos
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Simone
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Ivo Santos
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Simone
>>>>
>>>
>>>
>>>
>>> --
>>> Ivo Santos
>>>
>>
>>
>>
>> --
>> Simone
>>
>
>
>
> --
> Ivo Santos
>



-- 
Simone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20160114/0501a4d0/attachment-0001.html>


More information about the geonode-users mailing list