<div dir="ltr"><div dir="ltr">Hi Dimitri,<div><br></div><div>think the issue here is generated from the reported error "IOError: [Errno 13] Permission denied: '/usr/local/share/GeoIP'"</div><div><br></div><div>Can you check if your user has write permissions on '/usr/local/share'? Anyway think you are using local_settings where this variable is defined at global system level <a href="https://github.com/GeoNode/geonode/blob/f4d067fe623a4952c2b7b7db26cd2111a557c623/package/support/geonode.local_settings#L522">https://github.com/GeoNode/geonode/blob/f4d067fe623a4952c2b7b7db26cd2111a557c623/package/support/geonode.local_settings#L522</a>.</div><div><br></div><div>If you override that variable then the issue should go away.</div><div><br></div><div>Francesco</div></div></div><br><div class="gmail_quote"><div dir="ltr">Il giorno mer 2 gen 2019 alle ore 15:20 Dimitris Kar <<a href="mailto:dkarakostis@gmail.com">dkarakostis@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hey Toni,</div><div><br></div><div>Yes. Actually when I execute the paver setup (as above), I get:</div><div><br></div><div>IOError: [Errno 13] Permission denied: '/usr/local/share/GeoIP'<br>GeoNode development environment successfully set up.If you have not set up an administrative account, please do so now. Use "paver start" to start up the server.</div><div><br></div><div>And then when I run the paver sync or the paver start (as in the instructions), I get:</div><div>"...</div><div>django.db.utils.OperationalError: could not connect to server: Connection refused<br> Is the server running on host "localhost" (127.0.0.1) and accepting<br> TCP/IP connections on port 5432?<br><br>GeoNode is now available. "</div><div><br></div><div>I am running the installation in a virtual environment inside a vagrant VM (ubuntu/xenial64). I thought it could be related with the port forwarding but that seems to be configured ok in the vagrantfile:</div><div><br></div><div> config.vm.network :forwarded_port, guest: 5432, host: 5432</div><div><br></div><div>I also tried to check the configuration in the pg_config file but I can not find out where my postgres is installed. I run: which psql but there is no output. <br></div><div><br></div><div>Have you faced this issue before? <br></div><div>On a different note, the installation comes with jetty server right?<br></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jan 2, 2019 at 1:27 PM Toni Schönbuchner <<a href="mailto:toni.schoenbuchner@csgis.de" target="_blank">toni.schoenbuchner@csgis.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hi Dimitris,<div><br></div><div>have you run </div><div><span style="font-family:ArialMT"><br></span></div><div><span style="font-family:ArialMT">DJANGO_SETTINGS_MODULE=wfp_geonode.local_settings paver setup</span></div><div><span style="font-family:ArialMT"><br></span></div><div><span style="font-family:ArialMT">this should download and create geoserver dependencies.</span></div><div><span style="font-family:ArialMT"><br></span></div><div><span style="font-family:ArialMT">Cheers,</span></div><div><span style="font-family:ArialMT"><br></span></div><div><span style="font-family:ArialMT">Toni</span></div><div><br><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div><div><div><div>-----------------------------------------------</div><div>CSGIS</div><div><br></div><div>-----------------------------------------------</div><div><div>Kolonnadenstraße 1</div><div>04109 Leipzig</div></div><div>-----------------------------------------------</div><div>Mobil<span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346Apple-tab-span" style="white-space:pre-wrap"> </span>+49/ (0) 176 6680 3198</div><div>Tel <span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346Apple-tab-span" style="white-space:pre-wrap"> </span>+49/ (0) 341 24 04 738</div><div>Fax <span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346Apple-tab-span" style="white-space:pre-wrap"> </span>+49/ (0) 341 24 04 73</div><div>Web<span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346Apple-tab-span" style="white-space:pre-wrap"> </span><a href="http://csgis.de" target="_blank">http://csgis.de</a></div><div>-----------------------------------------------</div><div><br></div><div>Hinweis gemäß § 33 BDSG</div><div>Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist ausschließlich für den </div><div>Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie diese E-Mail versehentlich </div><div>erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und löschen Sie diese Nachricht </div><div>von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung, Vervielfältigung, Veränderung, </div><div>Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.</div></div></div></div></div></div></div></div>
</div>
<div><br><blockquote type="cite"><div>Am 02.01.2019 um 11:56 schrieb Dimitris Kar <<a href="mailto:dkarakostis@gmail.com" target="_blank">dkarakostis@gmail.com</a>>:</div><br class="gmail-m_1558147114493540763gmail-m_-9203471006756019346Apple-interchange-newline"><div><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello Toni, <div><br></div><div>At last I found some time to try your instructions for installing the geonode-project. Everything was installed successfully but when I try to execute the paver commands I get certain errors. </div><div><br></div><div>More specifically - after enabling the local_settings - when I run:</div><div><br></div><div>DJANGO_SETTINGS_MODULE=wfp_geonode.local_settings paver start<br></div><div><br></div><div>I get</div><div><br></div><div><div>---> pavement.start</div><div>---> pavement.start_geoserver</div><div>cd /vagrant/wfp_geonode/geoserver/data</div><div><br></div><div><br></div><div>Captured Task Output:</div><div>---------------------</div><div><br></div><div>---> pavement.start</div><div>---> pavement.start_geoserver</div><div>cd /vagrant/wfp_geonode/geoserver/data</div><div>Traceback (most recent call last):</div><div> File "/home/ubuntu/Envs/wfp_geonode/local/lib/python2.7/site-packages/paver/tasks.py", line 196, in _run_task</div><div> return do_task()</div><div> File "/home/ubuntu/Envs/wfp_geonode/local/lib/python2.7/site-packages/paver/tasks.py", line 192, in do_task</div><div> task()</div><div> File "/home/ubuntu/Envs/wfp_geonode/local/lib/python2.7/site-packages/paver/tasks.py", line 321, in __call__</div><div> retval = environment._run_task(<a href="http://self.name/" target="_blank">self.name</a>, self.needs, self.func)</div><div> File "/home/ubuntu/Envs/wfp_geonode/local/lib/python2.7/site-packages/paver/tasks.py", line 214, in _run_task</div><div> return do_task()</div><div> File "/home/ubuntu/Envs/wfp_geonode/local/lib/python2.7/site-packages/paver/tasks.py", line 193, in do_task</div><div> return func(**kw)</div><div> File "pavement.py", line 667, in start_geoserver</div><div> with pushd(data_dir):</div><div> File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__</div><div> return self.gen.next()</div><div> File "/home/ubuntu/Envs/wfp_geonode/local/lib/python2.7/site-packages/paver/path.py", line 39, in pushd</div><div> os.chdir(dir)</div><div>OSError: [Errno 2] No such file or directory: '/vagrant/wfp_geonode/geoserver/data'</div></div><div><br></div><div><br></div><div>It seems like it can not find the geoserver folder. And in fact there is no geoserver folder under the wfp_geonode installation:</div><div><br></div><div><div style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)"><span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-s1" style="font-variant-ligatures:no-common-ligatures">dev_config.yml <span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-Apple-converted-space"> </span>Dockerfile<span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-Apple-converted-space"> </span>jetty-runner.xml<span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-Apple-converted-space"> </span></span><span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)"><b>package</b></span><span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-s1" style="font-variant-ligatures:no-common-ligatures">/<span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-Apple-converted-space"> </span>README.rst<span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-Apple-converted-space"> </span>setup.py <span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-Apple-converted-space"> </span>wait-for-databases.sh</span></div><div style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)"><span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-s1" style="font-variant-ligatures:no-common-ligatures">docker-compose.override.yml<span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-Apple-converted-space"> </span></span><span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(47,180,29)"><b>entrypoint.sh</b></span><span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-s1" style="font-variant-ligatures:no-common-ligatures">*<span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-Apple-converted-space"> </span>Makefile<span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-Apple-converted-space"> </span>pavement.py <span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-Apple-converted-space"> </span>requirements.txt<span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-Apple-converted-space"> </span>tasks.py <span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-Apple-converted-space"> </span></span><span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)"><b>wfp_geonode</b></span><span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-s1" style="font-variant-ligatures:no-common-ligatures">/</span></div><div style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)"><span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-s1" style="font-variant-ligatures:no-common-ligatures">docker-compose.yml <span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-Apple-converted-space"> </span></span><span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)"><b>fixtures</b></span><span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-s1" style="font-variant-ligatures:no-common-ligatures">/ <span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-Apple-converted-space"> </span></span><span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(47,180,29)"><b>manage.py</b></span><span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-s1" style="font-variant-ligatures:no-common-ligatures">*<span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-Apple-converted-space"> </span>playbook.yml<span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-Apple-converted-space"> </span></span><span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)"><b>scripts</b></span><span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-s1" style="font-variant-ligatures:no-common-ligatures">/<span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-Apple-converted-space"> </span>uwsgi.ini<span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-Apple-converted-space"> </span></span><span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)"><b>wfp_geonode.egg-info</b></span><span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-s1" style="font-variant-ligatures:no-common-ligatures">/</span></div></div><div><br></div><div>Do you have any clue, what could be the problem?</div><div><br></div><div><br></div><div><br></div><div><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:13.6px;margin-bottom:0px;margin-top:0px;background-color:rgb(246,248,250);border-radius:3px;line-height:1.45;overflow:auto;padding:16px;word-break:normal;color:rgb(106,115,125)"><br></pre><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:13.6px;margin-bottom:0px;margin-top:0px;background-color:rgb(246,248,250);border-radius:3px;line-height:1.45;overflow:auto;padding:16px;word-break:normal;color:rgb(106,115,125)"><br></pre><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:13.6px;margin-bottom:0px;margin-top:0px;background-color:rgb(246,248,250);border-radius:3px;line-height:1.45;overflow:auto;padding:16px;word-break:normal;color:rgb(106,115,125)"><br></pre><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:13.6px;margin-bottom:0px;margin-top:0px;background-color:rgb(246,248,250);border-radius:3px;line-height:1.45;overflow:auto;padding:16px;word-break:normal;color:rgb(106,115,125)"><br></pre></div><div><br></div><div><br></div><div><br></div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Dec 19, 2018 at 5:27 PM Toni Schönbuchner <<a href="mailto:toni.schoenbuchner@csgis.de" target="_blank">toni.schoenbuchner@csgis.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hi Dimitris,<div><br></div><div>it sounds you´re a bit puzzled between 'geonode core‘ and geonode-project.</div><div><br></div><div>To understand better see whats happening with geonode-project:</div><div><br></div><div>It installs `geonode core` as dependency:</div><div><span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-m_-1526161433802149472Apple-tab-span" style="white-space:pre-wrap"> </span><a href="https://github.com/GeoNode/geonode-project/blob/master/requirements.txt#L2" target="_blank">https://github.com/GeoNode/geonode-project/blob/master/requirements.txt#L2</a></div><div>further loads/overwrites it´s settings:</div><div><span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-m_-1526161433802149472Apple-tab-span" style="white-space:pre-wrap"> </span><a href="https://github.com/GeoNode/geonode-project/blob/master/project_name/settings.py#L30" target="_blank">https://github.com/GeoNode/geonode-project/blob/master/project_name/settings.py#L30</a></div><div><br></div><div>Doing so we can overwrite things like templates etc. in Geonode-Project without touching</div><div>core files. </div><div><br></div><div>As a rule of thumb, if you´d like to commit changes to geonode core, create a fork of the upstream</div><div>repository, do your changes and create a PR.</div><div><br></div><div>I think in your case – as you´d like to modify <u>your</u> specific version – start by creating a geonode </div><div>project as described here (and ignore the first 'geonode core' dev setup):</div><div><span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-m_-1526161433802149472Apple-tab-span" style="white-space:pre-wrap"> </span><a href="https://github.com/GeoNode/geonode-project#create-a-custom-project" target="_blank">https://github.com/GeoNode/geonode-project#create-a-custom-project</a></div><div><br></div><div>I hope I did not misunderstood your question.</div><div>Happy geonod’ ing.</div><div><br></div><div>– Toni</div><div><br><div>
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div><div><div><div>-----------------------------------------------</div><div>CSGIS</div><div><br></div><div>-----------------------------------------------</div><div><div>Kolonnadenstraße 1</div><div>04109 Leipzig</div></div><div>-----------------------------------------------</div><div>Mobil<span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-m_-1526161433802149472Apple-tab-span" style="white-space:pre-wrap"> </span>+49/ (0) 176 6680 3198</div><div>Tel <span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-m_-1526161433802149472Apple-tab-span" style="white-space:pre-wrap"> </span>+49/ (0) 341 24 04 738</div><div>Fax <span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-m_-1526161433802149472Apple-tab-span" style="white-space:pre-wrap"> </span>+49/ (0) 341 24 04 73</div><div>Web<span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-m_-1526161433802149472Apple-tab-span" style="white-space:pre-wrap"> </span><a href="http://csgis.de/" target="_blank">http://csgis.de</a></div><div>-----------------------------------------------</div><div><br></div><div>Hinweis gemäß § 33 BDSG</div><div>Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist ausschließlich für den </div><div>Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie diese E-Mail versehentlich </div><div>erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und löschen Sie diese Nachricht </div><div>von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung, Vervielfältigung, Veränderung, </div><div>Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.</div></div></div></div></div></div></div></div>
</div>
<div><br><blockquote type="cite"><div><div><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Wed, 19 Dec 2018 16:57:16 +0100<br>From: Dimitris Kar <<a href="mailto:dkarakostis@gmail.com" target="_blank">dkarakostis@gmail.com</a>><br>To: geonode-devel <<a href="mailto:geonode-devel@lists.osgeo.org" target="_blank">geonode-devel@lists.osgeo.org</a>><br>Subject: [GeoNode-devel] Custom geonode project installation<br>Message-ID:<br><span class="gmail-m_1558147114493540763gmail-m_-9203471006756019346gmail-m_-1526161433802149472Apple-tab-span" style="white-space:pre-wrap"> </span><<a href="mailto:CAH4UFc99H4OuAxKUc+FhFZ=13gSJZDdMnH7Lj1=ec49Qg+6sgA@mail.gmail.com" target="_blank">CAH4UFc99H4OuAxKUc+FhFZ=13gSJZDdMnH7Lj1=ec49Qg+6sgA@mail.gmail.com</a>><br>Content-Type: text/plain; charset="utf-8"<br><br>Hello all,<br><br><br>I am trying following the instructions from this workshop (<br><a href="http://geonode.org/dev-workshop/#/2" target="_blank">http://geonode.org/dev-workshop/#/2</a>) in order to install GeoNode and a<br>GeoNode project. I have installed GeoNode in dev mode using a python<br>virtualenv + django development server method.<br><br>Then I follow the instructions in order to create a geonode-project as<br>following:<br><br><br><br> 1. cd ./geonode<br> 2. django-admin.py startproject wfp_geonode --template=<br> <a href="https://github.com/GeoNode/geonode-project/archive/master.zip" target="_blank">https://github.com/GeoNode/geonode-project/archive/master.zip</a> -e<br> py,rst,json,yml,ini,env,sample -n Dockerfile wfp_geonode (I executed<br> this command without includong: -n Dockerfile wfp_geonode)<br> 3. workon geonode<br> 4. cd wfp_geonode<br> 5. pip install -e wfp_geonode<br> 6. cd ../geonode<br> 7. DJANGO_SETTINGS_MODULE=wfp_geonode.local_settings paver start<br><br><br>But when I actually run the command, I get the below command. If I am not<br>wrong, I remember, that I can not use geonode-project aside with a geonode<br>dev installation but this is not quite clear in the above workshop<br>presentation (see above link).<br><br><br>Did anyone had similar issues? Should I install a geonode for production<br>and use the geonode-project then?<br></div></div></blockquote></div><br></div></div></blockquote></div>
</div></blockquote></div><br></div></div></blockquote></div>
_______________________________________________<br>
geonode-devel mailing list<br>
<a href="mailto:geonode-devel@lists.osgeo.org" target="_blank">geonode-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/geonode-devel</a><br>
</blockquote></div>