I upgrade my ubuntu 10.04 installation of geonode to version 1.1 with the Installer for Ubuntu (thanks Ariel...) During the installation, the upgrade overwrite my modified web.xml file (in /etc/geonode/geoserver/) After a reboot I get this error when I try to load a map: "javax.servlet.ServletException: Error connecting to GeoNode authentication server: Connection refused" I searched in the list and found this: http://librelist.com/browser//geonode/2011/5/22/problem-in-deploying-geonode-on-ubuntu/ I modified web.xml file (as described here: http://readthedocs.org/docs/geonode/en/1.0/deploy/ubuntu.html#deploying-geoserver) but it doesn't work (same error message). If I try to connect to http://localhost:8080/geoserver or http://localhost/geoserver I get the same error. Any idea how to solve the problem? Thanks Thomas
Thomas, I wonder if you and I had a similar situation http://librelist.com/browser//geonode/2012/2/7/failed-get-request-workspaces-xml-catalog-py/ ? Try this, as Ariel helped me get over the issue: > All those problems are caused by GeoServer not being properly configured. > > The way to debug is keep hitting: http://yourgeonode.com/geoserver > until it gives you the UI. > > What I found to be missing after the upgrade were two things: > > #1. GEOSERVER_DATA_DIR set to /var/lib/geoserver/geonode-data in > /var/lib/tomcat6/webapps/geoserver/WEB-INF/web.xml > #2. GEONODE_BASE_URL set to http://localhost/ or http://mygeonode.com/ > in /var/lib/tomcat6/webapps/geoserver/WEB-INF/web.xml > > Without GeoServer properly configured, no other part of GeoNode will > work correctly. > > Let me know if that helps, > Ariel. Best, Joe. On Feb 15, 2012, at 12:43 AM, info@dooit.it wrote: > I upgrade my ubuntu 10.04 installation of geonode to version 1.1 with > the Installer for Ubuntu (thanks Ariel...) > During the installation, the upgrade overwrite my modified web.xml file > (in /etc/geonode/geoserver/) > After a reboot I get this error when I try to load a map: > "javax.servlet.ServletException: Error connecting to GeoNode > authentication server: Connection refused" > > I searched in the list and found this: > http://librelist.com/browser//geonode/2011/5/22/problem-in-deploying-geonode-on-ubuntu/ > > I modified web.xml file (as described here: > http://readthedocs.org/docs/geonode/en/1.0/deploy/ubuntu.html#deploying-geoserver) > but it doesn't work (same error message). > > If I try to connect to http://localhost:8080/geoserver or > http://localhost/geoserver I get the same error. > > Any idea how to solve the problem? > > Thanks Thomas >
Thanks Joe but it doesn't work for me, I had already correct the web.xml. The error is different (in your case "404 Not Found", in my case "500 Internal Server Error") Not only if I try to connect to geoserver (v. http://localhost/geoserver) , also if I try to login to geonode. This is the error stack: javax.servlet.ServletException: Error connecting to GeoNode authentication server: GeoNode communication failed, status report is: 500, INTERNAL SERVER ERROR org.geonode.security.GeoNodeAnonymousProcessingFilter.doFilter(GeoNodeAnonymousProcessingFilter.java:87) org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:174) org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) org.geonode.security.GeoNodeCookieProcessingFilter.doFilter(GeoNodeCookieProcessingFilter.java:107) org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235) org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:185) org.springframework.security.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:99) org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:71) org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.java:183) org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41) *root cause* java.io.IOException: GeoNode communication failed, status report is: 500, INTERNAL SERVER ERROR org.geonode.security.HTTPClient.sendGET(HTTPClient.java:72) org.geonode.security.DefaultSecurityClient.authenticate(DefaultSecurityClient.java:153) org.geonode.security.DefaultSecurityClient.authenticateAnonymous(DefaultSecurityClient.java:136) org.geonode.security.GeoNodeAnonymousProcessingFilter.doFilter(GeoNodeAnonymousProcessingFilter.java:75) org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:174) org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) org.geonode.security.GeoNodeCookieProcessingFilter.doFilter(GeoNodeCookieProcessingFilter.java:107) org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235) org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:185) org.springframework.security.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:99) org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:71) org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.java:183) org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41) Thanks, Thomas Il 15/02/2012 15.58, Joe Larson ha scritto: > Thomas, > > I wonder if you and I had a similar situation > http://librelist.com/browser//geonode/2012/2/7/failed-get-request-workspaces-xml-catalog-py/ ? > > Try this, as Ariel helped me get over the issue: > >> All those problems are caused by GeoServer not being properly configured. >> >> The way to debug is keep hitting: http://yourgeonode.com/geoserver >> until it gives you the UI. >> >> What I found to be missing after the upgrade were two things: >> >> #1. GEOSERVER_DATA_DIR set to /var/lib/geoserver/geonode-data in >> /var/lib/tomcat6/webapps/geoserver/WEB-INF/web.xml >> #2. GEONODE_BASE_URL set t o http://localhost/ or http://mygeonode.com/ >> in /var/lib/tomcat6/webapps/geoserver/WEB-INF/web.xml >> >> Without GeoServer properly configured, no other part of GeoNode will >> work correctly. >> >> Let me know if that helps, >> Ariel. > > Best, Joe. > > On Feb 15, 2012, at 12:43 AM, info@dooit.it <mailto:info@dooit.it> wrote: > >> I upgrade my ubuntu 10.04 installation of geonode to version 1.1 with >> the Installer for Ubuntu (thanks Ariel...) >> During the installation, the upgrade overwrite my modified web.xml file >> (in /etc/geonode/geoserver/) >> After a reboot I get this error when I try to load a map: >> "javax.servlet.ServletException: Error connecting to GeoNode >> authentication server: Connection refused" >> >> I searched in the list and fo und this: >> http://librelist.com/browser//geonode/2011/5/22/problem-in-deploying-geonode-on-ubuntu/ >> >> I modified web.xml file (as described here: >> http://readthedocs.org/docs/geonode/en/1.0/deploy/ubuntu.html#deploying-geoserver) >> >> but it doesn't work (same error message). >> >> If I try to connect to http://localhost:8080/geoserver or >> http://localhost/geoserver I get the same error. >> >> Any idea how to solve the problem? >> >> Thanks Thomas >> >
The request that GeoServer is trying to make should be to http://localhost/data/acls . If you try a manual request to that URL, does the response contain valid JSON? You can also check the Apache error log for a python stack trace, that would probably be useful in diagnosing the issue. -- David Winslow OpenGeo - http://opengeo.org/ On Wed, Feb 15, 2012 at 5:58 PM, info@dooit.it <info@dooit.it> wrote: > Thanks Joe but it doesn't work for me, I had already correct the web.xml. > > The error is different (in your case "404 Not Found", in my case "500 > Internal Server Error") > > Not only if I try to connect to geoserver (v. http://localhost/geoserver) > , also if I try to login to geonode. > > This is the error stack: > > javax.servlet.ServletException: Error connecting to GeoNode authentication server: GeoNode communication failed, status report is: 500, INTERNAL SERVER ERROR > org.geonode.security.GeoNodeAnonymousProcessingFilter.doFilter(GeoNodeAnonymousProcessingFilter.java:87) > org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) > org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:174) > org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) > org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) > org.geonode.security.GeoNodeCookieProcessingFilter.doFilter(GeoNodeCookieProcessingFilter.java:107) > org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) > org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235) > org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) > org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) > org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:185) > org.springframework.security.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:99) > org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:71) > org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.java:183) > org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41) > > *root cause* > > java.io.IOException: GeoNode communication failed, status report is: 500, INTERNAL SERVER ERROR > org.geonode.security.HTTPClient.sendGET(HTTPClient.java:72) > org.geonode.security.DefaultSecurityClient.authenticate(DefaultSecurityClient.java:153) > org.geonode.security.DefaultSecurityClient.authenticateAnonymous(DefaultSecurityClient.java:136) > org.geonode.security.GeoNodeAnonymousProcessingFilter.doFilter(GeoNodeAnonymousProcessingFilter.java:75) > org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) > org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:174) > org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) > org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) > org.geonode.security.GeoNodeCookieProcessingFilter.doFilter(GeoNodeCookieProcessingFilter.java:107) > org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) > org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235) > org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) > org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) > org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:185) > org.springframework.security.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:99) > org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:71) > org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.java:183) > org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41) > > > Thanks, Thomas > > > Il 15/02/2012 15.58, Joe Larson ha scritto: > > Thomas, > > I wonder if you and I had a similar situation > http://librelist.com/browser//geonode/2012/2/7/failed-get-request-workspaces-xml-catalog-py/ > ? > > Try this, as Ariel helped me get over the issue: > > All those problems are caused by GeoServer not being properly configured. > > The way to debug is keep hitting: http://yourgeonode.com/geoserver > until it gives you the UI. > > What I found to be missing after the upgrade were two things: > > #1. GEOSERVER_DATA_DIR set to /var/lib/geoserver/geonode-data in > /var/lib/tomcat6/webapps/geoserver/WEB-INF/web.xml > #2. GEONODE_BASE_URL set t o http://localhost/ or http://mygeonode.com/ > in /var/lib/tomcat6/webapps/geoserver/WEB-INF/web.xml > > Without GeoServer properly configured, no other part of GeoNode will > work correctly. > > Let me know if that helps, > Ariel. > > > Best, Joe. > > On Feb 15, 2012, at 12:43 AM, info@dooit.it wrote: > > I upgrade my ubuntu 10.04 installation of geonode to version 1.1 with > the Installer for Ubuntu (thanks Ariel...) > During the installation, the upgrade overwrite my modified web.xml file > (in /etc/geonode/geoserver/) > After a reboot I get this error when I try to load a map: > "javax.servlet.ServletException: Error connecting to GeoNode > authentication server: Connection refused" > > I searched in the list and fo und this: > > http://librelist.com/browser//geonode/2011/5/22/problem-in-deploying-geonode-on-ubuntu/ > > I modified web.xml file (as described here: > > http://readthedocs.org/docs/geonode/en/1.0/deploy/ubuntu.html#deploying-geoserver) > > but it doesn't work (same error message). > > If I try to connect to http://localhost:8080/geoserver or > http://localhost/geoserver I get the same error. > > Any idea how to solve the problem? > > Thanks Thomas > > >
Thanks David for your reply. > The request that GeoServer is trying to make should be to http://localhost/data/acls . If you try a manual request to that URL, does the response contain valid JSON? No, just a "Internal Server Error" > You can also check the Apache error log for a python stack trace, that would probably be useful in diagnosing the issueI I checked the Apache error.log (in /var/log/apache2) and there is only one entry (no error): - [Fri Feb...] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8 Python/2.6.5 configured -- resuming normal operations Is there any other error log that I can check? Thanks Thomas Il 16/02/2012 16.08, David Winslow ha scritto: > The request that GeoServer is trying to make should be to > http://localhost/data/acls . If you try a manual request to that URL, > does the response contain valid JSON? > > You can also check the Apache error log for a python stack trace, that > would probably be useful in diagnosing the issue. > > -- > David Winslow > OpenGeo - http://opengeo.org/ > > On Wed, Feb 15, 2012 at 5:58 PM, info@dooit.it <mailto:info@dooit.it> > <info@dooit.it <mailto:info@dooit.it>> wrote: > > Thanks Joe but it doesn't work for me, I had already correct the > web.xml. > > The error is different (in your case "404 Not Found", in my case > "500 Internal Server Error") > > Not only if I try to connect to geoserver (v. > http://localhost/geoserver) , also if I try to login to geonode. > > Thanks, Thomas > > > Il 15/02/2012 15.58, Joe Larson ha scritto: >> Thomas, >> >> I wonder if you and I had a similar situation >> http://librelist.com/browser//geonode/2012/2/7/failed-get-request-workspaces-xml-catalog-py/ ? >> >> Try this, as Ariel helped me get over the issue: >> >>> All those problems are caused by GeoServer not being properly >>> configured. >>> >>> The way to debug is keep hitting: http://yourgeonode.com/geoserver >>> until it gives you the UI. >>> >>> What I found to be missing after the upgrade were two things: >>> >>> #1. GEOSERVER_DATA_DIR set to /var/lib/geoserver/geonode-data in >>> /var/lib/tomcat6/webapps/geoserver/WEB-INF/web.xml >>> #2. GEONODE_BASE_URL set t o http://localhost/ or >>> http://mygeonode.com/ >>> in /var/lib/tomcat6/webapps/geoserver/WEB-INF/web.xml >>> >>> Without GeoServer properly configured, no other part of GeoNode will >>> work correctly. >>> >>> Let me know if that helps, >>> Ariel. >> >> Best, Joe. >> >> On Feb 15, 2012, at 12:43 AM, info@dooit.it >> <mailto:info@dooit.it> wrote: >> >>> I upgrade my ubuntu 10.04 installation of geonode to version 1.1 >>> with >>> the Installer for Ubuntu (thanks Ariel...) >>> During the installation, the upgrade overwrite my modified >>> web.xml file >>> (in /etc/geonode/geoserver/) >>> After a reboot I get this error when I try to load a map: >>> "javax.servlet.ServletException: Error connecting to GeoNode >>> authentication server: Connection refused" >>> >>> I searched in the list and fo und this: >>> http://librelist.com/browser//geonode/2011/5/22/problem-in-deploying-geonode-on-ubuntu/ >>> >>> I modified web.xml file (as described here: >>> http://readthedocs.org/docs/geonode/en/1.0/deploy/ubuntu.html#deploying-geoserver) >>> >>> but it doesn't work (same error message). >>> >>> If I try to connect to http://localhost:8080/geoserver or >>> http://localhost/geoserver I get the same error. >>> >>> Any idea how to solve the problem? >>> >>> Thanks Thomas >>> >> >
You can modify /etc/geonode/local_settings.py to increase the logging level (there is a comment in that file near the end explaining how to do it). However it is surprising that you would get a 500 error with nothing in the error.log file - are the other parts of the Django site functioning properly? Can you successfully view the home page at http://localhost/ ? -- David Winslow OpenGeo - http://opengeo.org/ On Fri, Feb 17, 2012 at 5:04 AM, info@dooit.it <info@dooit.it> wrote: > Thanks David for your reply. > > > > The request that GeoServer is trying to make should be to > http://localhost/data/acls . If you try a manual request to that URL, > does the response contain valid JSON? > > No, just a "Internal Server Error" > > > You can also check the Apache error log for a python stack trace, that > would probably be useful in diagnosing the issueI > > I checked the Apache error.log (in /var/log/apache2) and there is only one > entry (no error): > - [Fri Feb...] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8 Python/2.6.5 > configured -- resuming normal operations > > Is there any other error log that I can check? > > Thanks Thomas > > Il 16/02/2012 16.08, David Winslow ha scritto: > > The request that GeoServer is trying to make should be to > http://localhost/data/acls . If you try a manual request to that URL, > does the response contain valid JSON? > > You can also check the Apache error log for a python stack trace, that > would probably be useful in diagnosing the issue. > > -- > David Winslow > OpenGeo - http://opengeo.org/ > > On Wed, Feb 15, 2012 at 5:58 PM, info@dooit.it <info@dooit.it> wrote: > >> Thanks Joe but it doesn't work for me, I had already correct the web.xml. >> >> The error is different (in your case "404 Not Found", in my case "500 >> Internal Server Error") >> >> Not only if I try to connect to geoserver (v. http://localhost/geoserver) >> , also if I try to login to geonode. >> >> Thanks, Thomas >> >> >> Il 15/02/2012 15.58, Joe Larson ha scritto: >> >> Thomas, >> >> I wonder if you and I had a similar situation >> http://librelist.com/browser//geonode/2012/2/7/failed-get-request-workspaces-xml-catalog-py/ >> ? >> >> Try this, as Ariel helped me get over the issue: >> >> All those problems are caused by GeoServer not being properly >> configured. >> >> The way to debug is keep hitting: http://yourgeonode.com/geoserver >> until it gives you the UI. >> >> What I found to be missing after the upgrade were two things: >> >> #1. GEOSERVER_DATA_DIR set to /var/lib/geoserver/geonode-data in >> /var/lib/tomcat6/webapps/geoserver/WEB-INF/web.xml >> #2. GEONODE_BASE_URL set t o http://localhost/ or http://mygeonode.com/ >> in /var/lib/tomcat6/webapps/geoserver/WEB-INF/web.xml >> >> Without GeoServer properly configured, no other part of GeoNode will >> work correctly. >> >> Let me know if that helps, >> Ariel. >> >> >> Best, Joe. >> >> On Feb 15, 2012, at 12:43 AM, info@dooit.it wrote: >> >> I upgrade my ubuntu 10.04 installation of geonode to version 1.1 with >> the Installer for Ubuntu (thanks Ariel...) >> During the installation, the upgrade overwrite my modified web.xml file >> (in /etc/geonode/geoserver/) >> After a reboot I get this error when I try to load a map: >> "javax.servlet.ServletException: Error connecting to GeoNode >> authentication server: Connection refused" >> >> I searched in the list and fo und this: >> >> http://librelist.com/browser//geonode/2011/5/22/problem-in-deploying-geonode-on-ubuntu/ >> >> I modified web.xml file (as described here: >> >> http://readthedocs.org/docs/geonode/en/1.0/deploy/ubuntu.html#deploying-geoserver) >> >> but it doesn't work (same error message). >> >> If I try to connect to http://localhost:8080/geoserver or >> http://localhost/geoserver I get the same error. >> >> Any idea how to solve the problem? >> >> Thanks Thomas >> >> >> >
I have modified the local_settings.py and restart apache. Now I get a more readable error message... Probably trying to resolve the problem I did some changes to the postgres db that did other error. Finally I decided to remove all and restart from beginning Thanks Thomas