On Mon, May 23, 2011 at 10:15 AM, Shuguang Hao <[email protected]> wrote: > I still got the same error. > > When I tried to install GeoNode Django Site, everything seemed fine > until the 11th step when I tried to load > <http://localhost/media/static/gn/theme/app/img/header-bg.png>, after > I restarted Apache. The error I got was > > Not Found > The requested URL /media/static/gn/theme/app/img/header-bg.png was not > found on this server.
I think this actually needs a change in the docs after somewhat recent changes to the geonode-client. Can you verify that the following URL works. http://localhost/media/theme/img/header-bg.png > The 12th step also failed. I got this error: > > /var/www/geonode/wsgi/geonode/lib/python2.6/site-packages/registration/models.py:4: > DeprecationWarning: the sha module is deprecated; use the hashlib > module instead > import sha > Skipping creation of NoticeTypes as notification app not found > Traceback (most recent call last): > File "/var/www/geonode/wsgi/geonode/bin/django-admin.py", line 5, in <module> > management.execute_from_command_line() > File > "/var/www/geonode/wsgi/geonode/lib/python2.6/site-packages/django/core/management/__init__.py", > line 429, in execute_from_command_line > utility.execute() > File > "/var/www/geonode/wsgi/geonode/lib/python2.6/site-packages/django/core/management/__init__.py", > line 379, in execute > self.fetch_command(subcommand).run_from_argv(self.argv) > File > "/var/www/geonode/wsgi/geonode/lib/python2.6/site-packages/django/core/management/base.py", > line 191, in run_from_argv > self.execute(*args, **options.__dict__) > File > "/var/www/geonode/wsgi/geonode/lib/python2.6/site-packages/django/core/management/base.py", > line 218, in execute > output = self.handle(*args, **options) > File > "/var/www/geonode/wsgi/geonode/lib/python2.6/site-packages/django/core/management/base.py", > line 347, in handle > return self.handle_noargs(**options) > File > "/var/www/geonode/wsgi/geonode/lib/python2.6/site-packages/django/core/management/commands/syncdb.py", > line 52, in handle_noargs > cursor = connection.cursor() > File > "/var/www/geonode/wsgi/geonode/lib/python2.6/site-packages/django/db/backends/__init__.py", > line 75, in cursor > cursor = self._cursor() > File > "/var/www/geonode/wsgi/geonode/lib/python2.6/site-packages/django/db/backends/postgresql_psycopg2/base.py", > line 136, in _cursor > self.connection = Database.connect(**conn_params) > psycopg2.OperationalError: FATAL: password authentication failed for > user "geonode" > FATAL: password authentication failed for user "geonode" This error is pretty clear. You need to supply the same database username/password in your settings/local_settings.py as you specified when you setup the database as described here. http://docs.geonode.org/1.0.1/deploy/ubuntu.html#set-up-postgresql Can you verify that you are using the same one and give apache a restart to test? Jeff > On Sun, May 22, 2011 at 1:58 AM, Jeffrey Johnson <[email protected]> wrote: >> My mistake there, GeoServer and GeoNetwork will run on port 8080, but >> GeoNode itself should run on port 80 (not 8001). If you havent >> finished the steps beyond configuring GeoServer and GeoNetwork, it is >> normal for that error to come up until you have actually finished >> installing GeoNode ... carry on with the steps and then re-check the >> GeoServer installation when you are done. See the note in 2) here >> http://docs.geonode.org/1.0.1/deploy/ubuntu.html#changes-after-tomcat-is-running >> >> Jeff >> >> On Sun, May 22, 2011 at 4:24 PM, Shuguang Hao <[email protected]> wrote: >>> No. It answers only port 8080. I followed exactly the instruction. >>> I added GEONODE_BASE_URL and GEOSERVER_DATA_DIR. >>> >>> >>> On Sat, May 21, 2011 at 11:52 PM, Jeffrey Johnson <[email protected]> >>> wrote: >>>> This problem is caused by GeoServer not being able to communicate with >>>> GeoNode for authentication purposes. Is GeoNode answering on >>>> http://localhost:8001/ ? and if so, did you make sure to add the >>>> GEONODE_BASE_URL parameter to your GeoServer web.xml as documented >>>> here? >>>> >>>> http://docs.geonode.org/1.0.1/deploy/ubuntu.html#deploying-geoserver >>>> >>>> If both of these things are configured correctly, you should not see this >>>> error. >>>> >>>> Let us know how it goes, >>>> >>>> Jeff >>>> >>>> On Sun, May 22, 2011 at 12:12 PM, Shuguang Hao <[email protected]> >>>> wrote: >>>>> Hi, >>>>> >>>>> I'm trying to deploy GeoNode on a freshly installed Ubuntu. I >>>>> downloaded GeoNode-1.0.tar.gz from the release site and then followed >>>>> the section "Deploying on Ubuntu 10.04" in the documentation. >>>>> GeoNetwork seems working properly at >>>>> <http://localhost:8080/geonetwork>, but I get the following error when >>>>> I try to launch GeoServer >>>>> <http://localhost:8080/geoserver-geonode-dev/>. Any idea how to solve >>>>> the problem? Thanks a lot! >>>>> >>>>> HTTP Status 500 - >>>>> >>>>> type Exception report >>>>> >>>>> message >>>>> >>>>> description The server encountered an internal error () that prevented >>>>> it from fulfilling this request. >>>>> >>>>> exception >>>>> >>>>> javax.servlet.ServletException: Error connecting to GeoNode >>>>> authentication server: Connection refused >>>>> >>>>> org.geonode.security.GeoNodeAnonymousProcessingFilter.doFilter(GeoNodeAnonymousProcessingFilter.java:87) >>>>> >>>>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) >>>>> >>>>> org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) >>>>> >>>>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) >>>>> >>>>> org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174) >>>>> >>>>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) >>>>> >>>>> org.geonode.security.GeoNodeCookieProcessingFilter.doFilter(GeoNodeCookieProcessingFilter.java:107) >>>>> >>>>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) >>>>> >>>>> org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110) >>>>> >>>>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) >>>>> >>>>> org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) >>>>> >>>>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) >>>>> >>>>> org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149) >>>>> >>>>> org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98) >>>>> org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:73) >>>>> >>>>> org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.java:183) >>>>> org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41) >>>>> >>>>> root cause >>>>> >>>>> java.net.ConnectException: Connection refused >>>>> java.net.PlainSocketImpl.socketConnect(Native Method) >>>>> >>>>> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327) >>>>> >>>>> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193) >>>>> >>>>> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180) >>>>> java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384) >>>>> java.net.Socket.connect(Socket.java:546) >>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>>> >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >>>>> >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >>>>> java.lang.reflect.Method.invoke(Method.java:616) >>>>> >>>>> org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140) >>>>> >>>>> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:125) >>>>> >>>>> org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707) >>>>> >>>>> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361) >>>>> >>>>> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387) >>>>> >>>>> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) >>>>> >>>>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) >>>>> >>>>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) >>>>> org.geonode.security.HTTPClient.sendGET(HTTPClient.java:70) >>>>> >>>>> org.geonode.security.DefaultSecurityClient.authenticate(DefaultSecurityClient.java:108) >>>>> >>>>> org.geonode.security.DefaultSecurityClient.authenticateAnonymous(DefaultSecurityClient.java:97) >>>>> >>>>> org.geonode.security.GeoNodeAnonymousProcessingFilter.doFilter(GeoNodeAnonymousProcessingFilter.java:75) >>>>> >>>>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) >>>>> >>>>> org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) >>>>> >>>>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) >>>>> >>>>> org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174) >>>>> >>>>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) >>>>> >>>>> org.geonode.security.GeoNodeCookieProcessingFilter.doFilter(GeoNodeCookieProcessingFilter.java:107) >>>>> >>>>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) >>>>> >>>>> org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110) >>>>> >>>>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) >>>>> >>>>> org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) >>>>> >>>>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) >>>>> >>>>> org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149) >>>>> >>>>> org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98) >>>>> org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:73) >>>>> >>>>> org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.java:183) >>>>> org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41) >>>>> >>>>> note The full stack trace of the root cause is available in the Apache >>>>> Tomcat/6.0.28 logs. >>>>> Apache Tomcat/6.0.28 >>>>> >>>> >>> >> >
