Guido, Did you bind the geonode server to the 0.0.0.0 IP address? I've never had the need to setup port forwarding when using VMs for GeoNode, with Bridge or NAT configurations I would just visit http://GUEST_IP:8000 from the host.
If you are using paver host you can do that like: paver host --bind=0.0.0.0 Cheers, Ariel. On Tue, Nov 2, 2010 at 9:50 AM, <[email protected]> wrote: > Further to installation, did anyone succeed in using port > forwarding to be able to reach geonode running in an Ubuntu > guest on a Windows 7 host? > > I am using: > > vboxmanage modifyvm Hagar --natpf1 "guestweb,tcp,,7000,,8000" > > (Hagar is the name of the Ubuntu guest) > > to try to reach geonode via http://localhost:7000 in a browser > on the host (where all my files are for uploading). > This appears to be the standard procedure for port forwarding, > but I don't get any response (while geonode works fine in the > guest via localhost:8000). > > The "VirtualBox SetUp" instructions in the README.rst seem to > address another scenario (running different browsers in > VirtualBox guests). Also, my guest froze when I did step 1 > (switching to "Host-only adapter" and then back to "NAT") > > GL > > >>-- Original Message -- >>Date: Tue, 2 Nov 2010 10:10:42 -0400 >>From: David Winslow <[email protected]> >>Reply-To: [email protected] >>Subject: Re: [geonode] Error installing GeoNode from source >>To: [email protected] >> >> >>If you are *installing*, setting up a Geonode site on a server for remote >>access, then you should follow the instructions from docs/source/deploy/, >>there are reasonably complete Ubuntu and CentOS instructions there. The >>Ubuntu instructions have been tested recently against a fresh installation >>of Ubuntu 10.04 LTS. >> >>For setting up a development environment, the README is all there is. > I'll >>comment inline on your specific issues... >> >>On Tue, Nov 2, 2010 at 6:27 AM, Ole Nielsen >><[email protected]>wrote: >> >>> Thanks for all your engagement and suggestions. Meanwhile, I upgraded > my >>> systems to see if that was the problem. >>> Here's the status: >>> >>> >>> - I still need to omit --no-site-packages in bootstrap for paver build >>> to find urlgrabber. I do not know if this omission leads to other > issues. >>> >>> --no-site-packages is recommended to avoid problems with incompatible >>versions of GeoNode's python dependencies installed in the system's >>site-packages. On a fresh Ubuntu system this should not be a problem. >> >>> >>> - On Ubuntu 10.04 LTS, I get the following error from the command > paver >>> build (full output log below): >>> - error: cannot open .git/FETCH_HEAD: Permission denied >>> >>> This is a regular, run-of-the-mill filesystem permissions error. One > way >>this might happen is if you had been trying to build as the root user >>(perhaps inadvertently after forgetting to log out of a 'sudo su -' session) >>and are now trying to build under an unprivileged user account. You can >>fix >>it with sudo chown $(whoami) -R /path/to/geonode-sources/ >> >>> >>> - On Ubuntu 10.10, it gets a bit further but there are lots of failed >>> checksums when downloading from repo.opengeo.org. I don't know if > this >>> matters, but it doesn't seem right. >>> >>> Yes, I've brought this checksum issue up with the maintainer of the opengeo >>maven repo. For now, it's safe to ignore. >> >>> >>> - Anyway, paver build eventually stops because it is Unable to locate >>> the Javac compiler. It appears that since Ubuntu ships with open-jre >>(since >>> Lucid) rather than Sun Java one must install the latter manually (I >>followed >>> the instructions at >>> >>> http://beeznest.wordpress.com/2010/04/23/howto-install-suns-java-on-ubuntu-lucid-lynx-10-04with >>the obvious modification for Maverick), agree to the license terms and >>> set JAVA_HOME=/usr/lib/jvm/java-6-sun. >>> >>> The problem is not that you have openjdk (while Sun Java is recommended >>for >>performance reasons, OpenJDK works fine as well.) The problem is that > the >>openjdk-jre package does not provide javac (the Java Compiler, part of > the >>JDK, or Java Development Kit). >> >> >>> >>> - After that the installation completed succesfully, but when I >>> proceeded to run paver host it hung for a while at 'Jetty is starting >>up, >>> please wait...' , then complained about a missing file >>> (local_settings.py) >>> and shut itself down. There was no connection at localhost:8000 or > 8001. >>Log >>> is included at the end of this mail. >>> >>> The output you report above seems to indicate that maven is still looking >>in openjdk and still not finding javac. Without a JDK in the path you > won't >>be able to get GeoServer running, and that means you won't be able to run >>GeoNode. >> >>The local_settings.py bit is a red herring, it's just there to warn you > that >>you're running with the default settings and, at least for deployment >>purposes, they are going to be incorrect. >> >> >>> One problem we are having in Indonesia is that this installation takes >>> several hours with our bandwitdth (~7MB/s) so troubleshooting becomes > very >>> slow. >>> I would really like to know if anyone has installed GeoNode on a fresh >>> Ubuntu installation (10.04 or 10.10) and get the exact steps required. >>> >>> Many thanks >>> Ole Nielsen >>> >>> --------------------------------------------------------------------- >>> >>> - Output from paver build on Ubuntu 10.04: >>> >>> >>> - nie...@shiva:~/sandpit/geonode$ source bin/activate >>> (geonode)nie...@shiva:~/sandpit/geonode$ paver build >>> ---> pavement.auto >>> ---> pavement.build >>> ---> pavement.install_deps >>> Installing from requirements file. Use "paver bundle_deps" to create >>an >>> install bundle >>> bin/pip install --download-cache=./build -r shared/core-libs.txt >>> Downloading/unpacking >>> http://www.reportlab.com/ftp/reportlab-2.3.tar.gz#egg=reportlab (from >>> -r shared/core-libs.txt (line 2)) >>> Using download cache from ./build/http%3A%2F%2Fwww.reportlab.com >>> %2Fftp%2Freportlab-2.3.tar.gz >>> Running setup.py egg_info for package from >>> http://www.reportlab.com/ftp/reportlab-2.3.tar.gz#egg=reportlab >>> >>> ################################################ >>> #Attempting install of _rl_accel, sgmlop & pyHnj >>> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/rl_accel' >>> ################################################ >>> ################################################ >>> #Attempting install of _renderPM >>> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/renderPM' >>> >>> # installing with freetype version 21 >>> ################################################ >>> >>> ########## SUMMARY INFO ######### >>> ################################################ >>> #Attempting install of _rl_accel, sgmlop & pyHnj >>> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/rl_accel' >>> ################################################ >>> ################################################ >>> #Attempting install of _renderPM >>> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/renderPM' >>> >>> # installing with freetype version 21 >>> ################################################ >>> Obtaining gsconfig.py from git+git:// >>> github.com/dwins/gsconfig.py.git#egg=gsconfig.py (from -r >>> shared/core-libs.txt (line 5)) >>> Updating ./src/gsconfig.py clone >>> Complete output from command /usr/bin/git fetch -q: >>> >>> ---------------------------------------- >>> Command /usr/bin/git fetch -q failed with error code 255 >>> Storing complete log in ./pip-log.txt >>> error: cannot open .git/FETCH_HEAD: Permission denied >>> >>> >>> Build failed: Subprocess return code: 1 >>> >>> (geonode)nie...@shiva:~/sandpit/geonode$ >>> >>> >>> >>> - ============================================ >>> - Error message regarding Java environment on Ubuntu 10.10 >>> - ---> pavement.setup_webapps >>> ---> pavement.setup_geoserver >>> ---> pavement.setup_gs_data >>> cd src/geoserver-geonode-ext >>> mvn clean install >>> [INFO] Scanning for projects... >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Building GeoNode GeoServer Extensions >>> [INFO] task-segment: [clean, install] >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] [clean:clean {execution: default-clean}] >>> [INFO] Deleting file set: >>> /home/aifdr/sandpit/geonode/src/geoserver-geonode-ext/target (included: >>> [**], excluded: []) >>> [INFO] [resources:resources {execution: default-resources}] >>> [INFO] Using 'UTF-8' encoding to copy filtered resources. >>> [INFO] Copying 4 resources >>> [INFO] [compiler:compile {execution: default-compile}] >>> [INFO] Compiling 41 source files to >>> /home/aifdr/sandpit/geonode/src/geoserver-geonode-ext/target/classes >>> [INFO] >>> ------------------------------------------------------------------------ >>> [ERROR] BUILD FAILURE >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Compilation failure >>> Unable to locate the Javac Compiler in: >>> /usr/lib/jvm/java-6-openjdk/jre/../lib/tools.jar >>> Please ensure you are using JDK 1.4 or above and >>> not a JRE (the com.sun.tools.javac.Main class is required). >>> In most cases you can change the location of your Java >>> installation by setting the JAVA_HOME environment variable. >>> >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] For more information, run Maven with the -e switch >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Total time: 3 seconds >>> [INFO] Finished at: Tue Nov 02 16:25:37 WIT 2010 >>> [INFO] Final Memory: 34M/252M >>> [INFO] >>> ------------------------------------------------------------------------ >>> >>> Build failed: Subprocess return code: 1 >>> >>> >>> ======= Failure to start after succesful build ======== >>> >>> Installed 10 object(s) from 1 fixture(s) >>> GeoNode development environment successfully set up. >>> If you have not set up an administrative account, please do so now. >>> Use "paver host" to start up the server. >>> (geonode)ai...@aifdr-laptop:~/sandpit/geonode$ paver host >>> ---> pavement.auto >>> ---> pavement.host >>> cd src/geoserver-geonode-ext >>> cd /home/aifdr/sandpit/geonode >>> Django is starting up, please wait... >>> Logging servlet output to jetty.log and django output to django.log... >>> Jetty is starting up, please wait... >>> django-admin.py updatelayers --settings=geonode.settings >>> File local_settings.py is not found. Continuing with default settings >>> Shutting down... >>> (geonode)ai...@aifdr-laptop:~/sandpit/geonode$ >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> On Fri, Oct 29, 2010 at 8:20 PM, Ariel Nunez >>> <[email protected]>wrote: >>> >>>> I had to do the same for my install yesterday, in my case it was >>>> because the curl version I had was 1.15 and the latest pycurl required >>>> 1.17. I had to first install a new curl and then run (inside the >>>> venv): >>>> >>>> pip install pycurl >>>> pip install >>>> http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz >>>> >>>> I fully support the idea of setting up our own PyPi mirror, hopefully >>>> avoiding the rewrite of the build script. >>>> >>>> Best, >>>> Ariel. >>>> >>>> >>>> On Fri, Oct 29, 2010 at 8:02 AM, David Winslow <[email protected]> >>>> wrote: >>>> > I haven't looked very hard but I can't find any information about > the >>>> > removal of urlgrabber from the python package repository. I think > it >>>> would >>>> > probably be a good idea for us to start mirroring our dependencies > in >>a >>>> > repository of our own to avoid this sort of thing. >>>> > In the shorter term I would be open to rewriting the build script > to >>>> avoid >>>> > requiring urlgrabber. >>>> > -- >>>> > David Winslow >>>> > OpenGeo - http://opengeo.org/ >>>> > On Fri, Oct 29, 2010 at 7:56 AM, Christian Spanring < >>>> [email protected]> >>>> > wrote: >>>> >> >>>> >> Ole, >>>> >> >>>> >> the problem is that easy_install can't find urlgrabber at >>>> pypi.python.org >>>> >> anymore, so you have to install urlgrabber manually as workaround: >>>> >> >>>> >> download and unpack it from http://urlgrabber.baseurl.org/ >>>> >> >>>> >> $ wget http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz >>>> >> $ tar xvzf urlgrabber-3.9.1.tar.gz >>>> >> >>>> >> install urlgrabber in GeoNode's Virtual Environment: >>>> >> >>>> >> $ . bin/activate >>>> >> (geonode) $ cd urlgrabber-3.9.1 >>>> >> (geonode) $ python setup.py install >>>> >> >>>> >> in my case it asked for pycurl, which I had to install first >>>> >> (geonode) $ easy_install pycurl >>>> >> >>>> >> That should to it. >>>> >> >>>> >> Christian >>>> >> >>>> >> On Oct 29, 2010, at 1:54 AM, Ole Nielsen wrote: >>>> >> >>>> >> > Dear all >>>> >> > I am trying to install GeoNode according to the instructions at >>>> >> > http://github.com/GeoNode/geonode/blob/1.0-RC2/README.rst and have >>>> gotten as >>>> >> > far as paver build. >>>> >> > >>>> >> > However, paver build fails with the following error: ImportError: >>No >>>> >> > module named urlgrabber.grabber >>>> >> > However, if I start Python normally (i.e. without virtual >>>> environment) >>>> >> > and try it works just fine: >>>> >> > >>>> >> > Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18) >>>> >> > [GCC 4.3.3] on linux2 >>>> >> > Type "help", "copyright", "credits" or "license" for more >>>> information. >>>> >> > >>> from urlgrabber.grabber import urlgrab, URLGrabError >>>> >> > >>> >>>> >> > >>>> >> > I am running Ubuntu 9.04 - 64 bit. >>>> >> > >>>> >> > The tail of the paver output follows below. >>>> >> > Cheers and thanks for any help >>>> >> > Ole Nielsen >>>> >> > >>>> >> > -- output from paver build -- >>>> >> > >>>> >> > ########## SUMMARY INFO ######### >>>> >> > ################################################ >>>> >> > #Attempting install of _rl_accel, sgmlop & pyHnj >>>> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/rl_accel' >>>> >> > ################################################ >>>> >> > ################################################ >>>> >> > #Attempting install of _renderPM >>>> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/renderPM' >>>> >> > # installing with freetype version 21 >>>> >> > ################################################ >>>> >> > Successfully installed avatar gsconfig.py OWSLib reportlab >>>> >> > ---> pavement.setup_webapps >>>> >> > ---> pavement.setup_geoserver >>>> >> > ---> pavement.setup_gs_data >>>> >> > Traceback (most recent call last): >>>> >> > File "/home/nielso/sandpit/geonode/bin/paver", line 8, in <module> >>>> >> > load_entry_point('Paver==1.0.1', 'console_scripts', 'paver')() >>>> >> > File >>>> >> > >>>> "/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py", >>>> >> > line 615, in main >>>> >> > _launch_pavement(args) >>>> >> > File >>>> >> > >>>> "/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py", >>>> >> > line 598, in _launch_pavement >>>> >> > _process_commands(args, auto_pending=auto_pending) >>>> >> > File >>>> >> > >>>> "/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py", >>>> >> > line 563, in _process_commands >>>> >> > task() >>>> >> > File >>>> >> > >>>> "/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py", >>>> >> > line 241, in __call__ >>>> >> > retval = environment._run_task(self.name, self.needs, self.func) >>>> >> > File >>>> >> > >>>> "/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py", >>>> >> > line 181, in _run_task >>>> >> > return do_task() >>>> >> > File >>>> >> > >>>> "/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py", >>>> >> > line 160, in do_task >>>> >> > task() >>>> >> > File >>>> >> > >>>> "/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py", >>>> >> > line 241, in __call__ >>>> >> > retval = environment._run_task(self.name, self.needs, self.func) >>>> >> > File >>>> >> > >>>> "/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py", >>>> >> > line 181, in _run_task >>>> >> > return do_task() >>>> >> > File >>>> >> > >>>> "/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py", >>>> >> > line 160, in do_task >>>> >> > task() >>>> >> > File >>>> >> > >>>> "/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py", >>>> >> > line 241, in __call__ >>>> >> > retval = environment._run_task(self.name, self.needs, self.func) >>>> >> > File >>>> >> > >>>> "/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py", >>>> >> > line 181, in _run_task >>>> >> > return do_task() >>>> >> > File >>>> >> > >>>> "/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py", >>>> >> > line 160, in do_task >>>> >> > task() >>>> >> > File >>>> >> > >>>> "/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py", >>>> >> > line 241, in __call__ >>>> >> > retval = environment._run_task(self.name, self.needs, self.func) >>>> >> > File >>>> >> > >>>> "/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py", >>>> >> > line 181, in _run_task >>>> >> > return do_task() >>>> >> > File >>>> >> > >>>> "/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py", >>>> >> > line 161, in do_task >>>> >> > return func(**kw) >>>> >> > File "pavement.py", line 186, in setup_gs_data >>>> >> > grab(src_url, dst_url) >>>> >> > File "pavement.py", line 159, in grab >>>> >> > from urlgrabber.grabber import urlgrab, URLGrabError >>>> >> > ImportError: No module named urlgrabber.grabber >>>> >> > (geonode)nie...@shiva:~/sandpit/geonode$ >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> >>>> > >>>> > >>>> >>> >>> > > >
