[GeoNode-devel] Custom geonode project installation

francesco bartoli xbartolone at gmail.com
Wed Jan 2 06:36:14 PST 2019


Hi Dimitri,

think the issue here is generated from the reported error "IOError: [Errno
13] Permission denied: '/usr/local/share/GeoIP'"

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
https://github.com/GeoNode/geonode/blob/f4d067fe623a4952c2b7b7db26cd2111a557c623/package/support/geonode.local_settings#L522
.

If you override that variable then the issue should go away.

Francesco

Il giorno mer 2 gen 2019 alle ore 15:20 Dimitris Kar <dkarakostis at gmail.com>
ha scritto:

> Hey Toni,
>
> Yes. Actually when I execute the paver setup (as above), I get:
>
> IOError: [Errno 13] Permission denied: '/usr/local/share/GeoIP'
> 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.
>
> And then when I run the paver sync or the paver start (as in the
> instructions), I get:
> "...
> django.db.utils.OperationalError: could not connect to server: Connection
> refused
>     Is the server running on host "localhost" (127.0.0.1) and accepting
>     TCP/IP connections on port 5432?
>
> GeoNode is now available. "
>
> 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:
>
>   config.vm.network :forwarded_port, guest: 5432, host: 5432
>
> 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.
>
> Have you faced this issue before?
> On a different note, the installation comes with jetty server right?
>
> On Wed, Jan 2, 2019 at 1:27 PM Toni Schönbuchner <
> toni.schoenbuchner at csgis.de> wrote:
>
>> Hi Dimitris,
>>
>> have you run
>>
>> DJANGO_SETTINGS_MODULE=wfp_geonode.local_settings paver setup
>>
>> this should download and create geoserver dependencies.
>>
>> Cheers,
>>
>> Toni
>>
>> -----------------------------------------------
>> CSGIS
>>
>> -----------------------------------------------
>> Kolonnadenstraße 1
>> 04109 Leipzig
>> -----------------------------------------------
>> Mobil +49/ (0) 176 6680 3198
>> Tel  +49/ (0) 341 24 04 738
>> Fax  +49/ (0) 341 24 04 73
>> Web http://csgis.de
>> -----------------------------------------------
>>
>> Hinweis gemäß § 33 BDSG
>> Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist
>> ausschließlich für den
>> Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie
>> diese E-Mail versehentlich
>> erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und
>> löschen Sie diese Nachricht
>> von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung,
>> Vervielfältigung, Veränderung,
>> Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.
>>
>> Am 02.01.2019 um 11:56 schrieb Dimitris Kar <dkarakostis at gmail.com>:
>>
>> Hello Toni,
>>
>> 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.
>>
>> More specifically - after enabling the local_settings -  when I run:
>>
>> DJANGO_SETTINGS_MODULE=wfp_geonode.local_settings paver start
>>
>> I get
>>
>> ---> pavement.start
>> ---> pavement.start_geoserver
>> cd /vagrant/wfp_geonode/geoserver/data
>>
>>
>> Captured Task Output:
>> ---------------------
>>
>> ---> pavement.start
>> ---> pavement.start_geoserver
>> cd /vagrant/wfp_geonode/geoserver/data
>> Traceback (most recent call last):
>>   File
>> "/home/ubuntu/Envs/wfp_geonode/local/lib/python2.7/site-packages/paver/tasks.py",
>> line 196, in _run_task
>>     return do_task()
>>   File
>> "/home/ubuntu/Envs/wfp_geonode/local/lib/python2.7/site-packages/paver/tasks.py",
>> line 192, in do_task
>>     task()
>>   File
>> "/home/ubuntu/Envs/wfp_geonode/local/lib/python2.7/site-packages/paver/tasks.py",
>> line 321, in __call__
>>     retval = environment._run_task(self.name, self.needs, self.func)
>>   File
>> "/home/ubuntu/Envs/wfp_geonode/local/lib/python2.7/site-packages/paver/tasks.py",
>> line 214, in _run_task
>>     return do_task()
>>   File
>> "/home/ubuntu/Envs/wfp_geonode/local/lib/python2.7/site-packages/paver/tasks.py",
>> line 193, in do_task
>>     return func(**kw)
>>   File "pavement.py", line 667, in start_geoserver
>>     with pushd(data_dir):
>>   File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
>>     return self.gen.next()
>>   File
>> "/home/ubuntu/Envs/wfp_geonode/local/lib/python2.7/site-packages/paver/path.py",
>> line 39, in pushd
>>     os.chdir(dir)
>> OSError: [Errno 2] No such file or directory:
>> '/vagrant/wfp_geonode/geoserver/data'
>>
>>
>> It seems like it can not find the geoserver folder. And in fact there is
>> no geoserver folder under the wfp_geonode installation:
>>
>> dev_config.yml               Dockerfile      jetty-runner.xml  *package*/
>>     README.rst        setup.py   wait-for-databases.sh
>> docker-compose.override.yml  *entrypoint.sh**  Makefile          pavement.py
>>   requirements.txt  tasks.py   *wfp_geonode*/
>> docker-compose.yml           *fixtures*/       *manage.py**
>> playbook.yml  *scripts*/          uwsgi.ini  *wfp_geonode.egg-info*/
>>
>> Do you have any clue, what could be the problem?
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Wed, Dec 19, 2018 at 5:27 PM Toni Schönbuchner <
>> toni.schoenbuchner at csgis.de> wrote:
>>
>>> Hi Dimitris,
>>>
>>> it sounds you´re a bit puzzled between 'geonode core‘ and
>>> geonode-project.
>>>
>>> To understand better see whats happening with geonode-project:
>>>
>>> It installs `geonode core` as dependency:
>>>
>>> https://github.com/GeoNode/geonode-project/blob/master/requirements.txt#L2
>>> further loads/overwrites it´s settings:
>>>
>>> https://github.com/GeoNode/geonode-project/blob/master/project_name/settings.py#L30
>>>
>>> Doing so we can overwrite things like templates etc. in Geonode-Project
>>> without touching
>>> core files.
>>>
>>> As a rule of thumb, if you´d like to commit changes to geonode core,
>>> create a fork of the upstream
>>> repository, do your changes and create a PR.
>>>
>>> I think in your case – as you´d like to modify *your* specific version
>>> – start by creating a geonode
>>> project as described here (and ignore the first 'geonode core' dev
>>> setup):
>>> https://github.com/GeoNode/geonode-project#create-a-custom-project
>>>
>>> I hope I did not misunderstood your question.
>>> Happy geonod’ ing.
>>>
>>> – Toni
>>>
>>> -----------------------------------------------
>>> CSGIS
>>>
>>> -----------------------------------------------
>>> Kolonnadenstraße 1
>>> 04109 Leipzig
>>> -----------------------------------------------
>>> Mobil +49/ (0) 176 6680 3198
>>> Tel  +49/ (0) 341 24 04 738
>>> Fax  +49/ (0) 341 24 04 73
>>> Web http://csgis.de
>>> -----------------------------------------------
>>>
>>> Hinweis gemäß § 33 BDSG
>>> Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist
>>> ausschließlich für den
>>> Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie
>>> diese E-Mail versehentlich
>>> erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und
>>> löschen Sie diese Nachricht
>>> von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung,
>>> Vervielfältigung, Veränderung,
>>> Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.
>>>
>>>
>>> ----------------------------------------------------------------------
>>>
>>> Message: 1
>>> Date: Wed, 19 Dec 2018 16:57:16 +0100
>>> From: Dimitris Kar <dkarakostis at gmail.com>
>>> To: geonode-devel <geonode-devel at lists.osgeo.org>
>>> Subject: [GeoNode-devel] Custom geonode project installation
>>> Message-ID:
>>> <CAH4UFc99H4OuAxKUc+FhFZ=13gSJZDdMnH7Lj1=ec49Qg+6sgA at mail.gmail.com>
>>> Content-Type: text/plain; charset="utf-8"
>>>
>>> Hello all,
>>>
>>>
>>> I am trying following the instructions from this workshop (
>>> http://geonode.org/dev-workshop/#/2) in order to install GeoNode and a
>>> GeoNode project. I have installed GeoNode in dev mode using a python
>>> virtualenv + django development server method.
>>>
>>> Then I follow the instructions in order to create a geonode-project as
>>> following:
>>>
>>>
>>>
>>>   1. cd ./geonode
>>>   2. django-admin.py startproject wfp_geonode --template=
>>>   https://github.com/GeoNode/geonode-project/archive/master.zip -e
>>>   py,rst,json,yml,ini,env,sample -n Dockerfile wfp_geonode  (I executed
>>>   this command without includong: -n Dockerfile wfp_geonode)
>>>   3. workon geonode
>>>   4. cd wfp_geonode
>>>   5. pip install -e wfp_geonode
>>>   6. cd ../geonode
>>>   7. DJANGO_SETTINGS_MODULE=wfp_geonode.local_settings paver start
>>>
>>>
>>> But when I actually run the command, I get the below command. If I am not
>>> wrong, I remember, that I can not use geonode-project aside with a
>>> geonode
>>> dev installation but this is not quite clear in the above workshop
>>> presentation (see above link).
>>>
>>>
>>> Did anyone had similar issues? Should I install a geonode for production
>>> and use the geonode-project then?
>>>
>>>
>>>
>> _______________________________________________
> geonode-devel mailing list
> geonode-devel at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20190102/6d179899/attachment-0001.html>


More information about the geonode-devel mailing list