[GeoNode-users] Running Geonode development build on another ip (!= localhost)
Daniel Victoria
daniel.victoria at gmail.com
Thu Jan 12 08:45:14 PST 2017
same error as before (attached). I'm also attaching the geoserver oauth2
screen
On Thu, Jan 12, 2017 at 2:21 PM, Alessio Fabiani <
alessio.fabiani at geo-solutions.it> wrote:
> Can you please try to run the following command?
>
> `python manage.py imporlayers -v 3 --user=admin some_shape_file`
>
> Best Regards,
> Alessio Fabiani.
>
> ==
> GeoServer Professional Services from the experts!
> Visit http://goo.gl/it488V for more information.
> ==
>
> Ing. Alessio Fabiani
> @alfa7691
> Founder/Technical Lead
>
> GeoSolutions S.A.S.
> Via di Montramito 3/A
> 55054 Massarosa (LU)
> Italy
> phone: +39 0584 962313 <+39%200584%20962313>
> fax: +39 0584 1660272 <+39%200584%20166%200272>
> mob: +39 331 6233686 <+39%20331%20623%203686>
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
> *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
>
> Le informazioni contenute in questo messaggio di posta elettronica e/o
> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
> darcene notizia via e-mail e di procedere alla distruzione del messaggio
> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
> principi dettati dal D.Lgs. 196/2003.
>
>
>
> The information in this message and/or attachments, is intended solely for
> the attention and use of the named addressee(s) and may be confidential or
> proprietary in nature or covered by the provisions of privacy act
> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
> Code).Any use not in accord with its purpose, any disclosure, reproduction,
> copying, distribution, or either dissemination, either whole or partial, is
> strictly forbidden except previous formal approval of the named
> addressee(s). If you are not the intended recipient, please contact
> immediately the sender by telephone, fax or e-mail and delete the
> information in this message that has been received in error. The sender
> does not give any warranty or accept liability as the content, accuracy or
> completeness of sent messages and accepts no responsibility for changes
> made after they were sent or for other risks which arise as a result of
> e-mail transmission, viruses, etc.
>
> ---------------------------------------------------------------------
>
> On Thu, Jan 12, 2017 at 5:10 PM, Daniel Victoria <
> daniel.victoria at gmail.com> wrote:
>
>> I installed GeoNode following the development installation instructions
>> for Ubuntu, found on GitHub.
>> That gives me GeoNode *versão 2.5.7.dev20170111233058 and GeoServer *
>> 2.9-SNAPSHOT
>>
>>
>> I also changed the scope to 'write' in the OAuth2 geonode-oauth2 filter,
>> following the email you sent today to the list
>>
>> Cheers
>> Daniel
>>
>> On Thu, Jan 12, 2017 at 11:59 AM, Alessio Fabiani <
>> alessio.fabiani at geo-solutions.it> wrote:
>>
>>> It might depend on a geoserver configuration that needs authentication
>>> to access REST APIs.
>>>
>>> Which version of GeoNode / GeoServer you installed exactly?
>>>
>>> Best Regards,
>>> Alessio Fabiani.
>>>
>>> ==
>>> GeoServer Professional Services from the experts!
>>> Visit http://goo.gl/it488V for more information.
>>> ==
>>>
>>> Ing. Alessio Fabiani
>>> @alfa7691
>>> Founder/Technical Lead
>>>
>>> GeoSolutions S.A.S.
>>> Via di Montramito 3/A
>>> 55054 Massarosa (LU)
>>> Italy
>>> phone: +39 0584 962313 <+39%200584%20962313>
>>> fax: +39 0584 1660272 <+39%200584%20166%200272>
>>> mob: +39 331 6233686 <+39%20331%20623%203686>
>>>
>>> http://www.geo-solutions.it
>>> http://twitter.com/geosolutions_it
>>>
>>> -------------------------------------------------------
>>>
>>> *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
>>>
>>> Le informazioni contenute in questo messaggio di posta elettronica e/o
>>> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
>>> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
>>> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
>>> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
>>> darcene notizia via e-mail e di procedere alla distruzione del messaggio
>>> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
>>> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
>>> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
>>> principi dettati dal D.Lgs. 196/2003.
>>>
>>>
>>>
>>> The information in this message and/or attachments, is intended solely
>>> for the attention and use of the named addressee(s) and may be confidential
>>> or proprietary in nature or covered by the provisions of privacy act
>>> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
>>> Code).Any use not in accord with its purpose, any disclosure, reproduction,
>>> copying, distribution, or either dissemination, either whole or partial, is
>>> strictly forbidden except previous formal approval of the named
>>> addressee(s). If you are not the intended recipient, please contact
>>> immediately the sender by telephone, fax or e-mail and delete the
>>> information in this message that has been received in error. The sender
>>> does not give any warranty or accept liability as the content, accuracy or
>>> completeness of sent messages and accepts no responsibility for changes
>>> made after they were sent or for other risks which arise as a result of
>>> e-mail transmission, viruses, etc.
>>>
>>> ---------------------------------------------------------------------
>>>
>>> On Thu, Jan 12, 2017 at 1:59 PM, Daniel Victoria <
>>> daniel.victoria at gmail.com> wrote:
>>>
>>>> Well, sort off. Spoke too soon.
>>>>
>>>> I can load geonode. I can get from geonode to geoserver and it
>>>> recognizes my user. I can upload data to GeoServer using the geoserver Data
>>>> importer. I can upload documents to Geonode. But, when I try to load a
>>>> shapefile using geonode I get a 403-forbiden
>>>>
>>>> attached is the output from the command:
>>>> `python manage.py imporlayers -v 3 some_shape_file`
>>>>
>>>> Cheers
>>>> Daniel
>>>>
>>>>
>>>> On Thu, Jan 12, 2017 at 10:14 AM, Daniel Victoria <
>>>> daniel.victoria at gmail.com> wrote:
>>>>
>>>>> Thanks all for the help. I believe I've got it working now!
>>>>>
>>>>> Cheers
>>>>> Daniel
>>>>>
>>>>> On Wed, Jan 11, 2017 at 12:03 PM, Simone Dalmasso <
>>>>> simone.dalmasso at gmail.com> wrote:
>>>>>
>>>>>> Ah yes, don't use paver otherwise will be only in localhost. And yes,
>>>>>> adapt the geoserver PUBLIC_LOCATION to your needs in settings and will be
>>>>>> fine.
>>>>>>
>>>>>> 2017-01-11 14:03 GMT+01:00 Daniel Victoria <daniel.victoria at gmail.com
>>>>>> >:
>>>>>>
>>>>>>> I get an error that it's not possible to connect to the address
>>>>>>> http://192.168.67.103/ or http://192.168.67.103:8000/
>>>>>>>
>>>>>>> But if I go to geoserver page on http://192.168.67.103:8080/geo
>>>>>>> server and click on the geonode Icon, I get redirected to
>>>>>>> localhost:8000 (which does not work).
>>>>>>> I tryed both `paver start` and `paver start -b 192.168.67.103:8000`
>>>>>>>
>>>>>>> What did work was to issue `python manage.py runserver
>>>>>>> 192.168.67.103:8000`. With that I can get to GeoNode at the address
>>>>>>> but the link to Geoserver does not work because it looks for geoserver
>>>>>>> under localhost:8080
>>>>>>>
>>>>>>> Will changing the geoserver address in settings.py fix this?
>>>>>>>
>>>>>>> My setup is a bit strange because my virtualbox connects to the
>>>>>>> internet via a NAT interface and connetcs to my host computer using a
>>>>>>> host-only net interface
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> On Wed, Jan 11, 2017 at 10:29 AM, Simone Dalmasso <
>>>>>>> simone.dalmasso at gmail.com> wrote:
>>>>>>>
>>>>>>>> Sure you can, what error do you get, 404 or something else? You may
>>>>>>>> need to add the forward rule in virtualbox to port 8000.
>>>>>>>>
>>>>>>>> 2017-01-11 12:45 GMT+01:00 Daniel Victoria <
>>>>>>>> daniel.victoria at gmail.com>:
>>>>>>>>
>>>>>>>>> I'm trying to setup the GeoNode development build following the
>>>>>>>>> instructions in https://github.com/GeoNode/geonode (using the
>>>>>>>>> ubuntu instructions - virtualevn; pip; paver). The catch is that I have a
>>>>>>>>> windows machine so I installed a Ubuntu server on a Virtualbox (just the
>>>>>>>>> server, no GUI).
>>>>>>>>>
>>>>>>>>> I can access the server running on the virtualbox through the IP
>>>>>>>>> 192.168.67.103
>>>>>>>>>
>>>>>>>>> After doing paver stat, I can get to geoserver through the IP
>>>>>>>>> 192.168.67.103:8080/geoserver
>>>>>>>>> However, I cannot get to geonode through the IP
>>>>>>>>> 192.168.67.103:8000
>>>>>>>>>
>>>>>>>>> Is it possible to run the GeoNode development build this way? With
>>>>>>>>> just a Ubuntu server install and access through an IP other than localhost?
>>>>>>>>>
>>>>>>>>> Cheers
>>>>>>>>> Daniel
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> geonode-users mailing list
>>>>>>>>> geonode-users at lists.osgeo.org
>>>>>>>>> http://lists.osgeo.org/mailman/listinfo/geonode-users
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Simone
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Simone
>>>>>>
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> geonode-users mailing list
>>>> geonode-users at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/geonode-users
>>>>
>>>>
>>>
>>
>> _______________________________________________
>> geonode-users mailing list
>> geonode-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/geonode-users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170112/c60dfe65/attachment-0001.html>
-------------- next part --------------
Traceback (most recent call last):
File "/home/daniel/geonode/geonode/layers/utils.py", line 625, in upload
metadata_uploaded_preserve=metadata_uploaded_preserve
File "/home/daniel/geonode/geonode/layers/utils.py", line 499, in file_upload
defaults=defaults
File "/home/daniel/env/local/lib/python2.7/site-packages/django/db/models/manager.py", line 127, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/home/daniel/env/local/lib/python2.7/site-packages/modeltranslation/manager.py", line 389, in get_or_create
return super(MultilingualQuerySet, self).get_or_create(**kwargs)
File "/home/daniel/env/local/lib/python2.7/site-packages/django/db/models/query.py", line 407, in get_or_create
return self._create_object_from_params(lookup, params)
File "/home/daniel/env/local/lib/python2.7/site-packages/django/db/models/query.py", line 439, in _create_object_from_params
obj = self.create(**params)
File "/home/daniel/env/local/lib/python2.7/site-packages/modeltranslation/manager.py", line 381, in create
return super(MultilingualQuerySet, self).create(**kwargs)
File "/home/daniel/env/local/lib/python2.7/site-packages/django/db/models/query.py", line 348, in create
obj.save(force_insert=True, using=self.db)
File "/home/daniel/env/local/lib/python2.7/site-packages/polymorphic/models.py", line 90, in save
return super(PolymorphicModel, self).save(*args, **kwargs)
File "/home/daniel/env/local/lib/python2.7/site-packages/django/db/models/base.py", line 734, in save
force_update=force_update, update_fields=update_fields)
File "/home/daniel/env/local/lib/python2.7/site-packages/django/db/models/base.py", line 758, in save_base
update_fields=update_fields)
File "/home/daniel/env/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 189, in send
response = receiver(signal=self, sender=sender, **named)
File "/home/daniel/geonode/geonode/geoserver/signals.py", line 97, in geoserver_pre_save
charset=instance.charset)
File "/home/daniel/geonode/geonode/geoserver/helpers.py", line 1027, in geoserver_upload
workspace = cat.get_default_workspace()
File "/home/daniel/env/local/lib/python2.7/site-packages/geoserver/catalog.py", line 875, in get_default_workspace
ws.fetch()
File "/home/daniel/env/local/lib/python2.7/site-packages/geoserver/support.py", line 176, in fetch
self.dom = self.catalog.get_xml(self.href)
File "/home/daniel/env/local/lib/python2.7/site-packages/geoserver/catalog.py", line 211, in get_xml
response, content = self.http.request(rest_url)
File "/home/daniel/env/local/lib/python2.7/site-packages/httplib2/__init__.py", line 1609, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/home/daniel/env/local/lib/python2.7/site-packages/httplib2/__init__.py", line 1351, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/home/daniel/env/local/lib/python2.7/site-packages/httplib2/__init__.py", line 1272, in _conn_request
conn.connect()
File "/home/daniel/env/local/lib/python2.7/site-packages/httplib2/__init__.py", line 916, in connect
self.sock.connect((self.host, self.port) + sa[2:])
File "/home/daniel/env/local/lib/python2.7/site-packages/httplib2/socks.py", line 424, in connect
self.__negotiatehttp(destpair[0], destpair[1])
File "/home/daniel/env/local/lib/python2.7/site-packages/httplib2/socks.py", line 390, in __negotiatehttp
raise HTTPError((statuscode, statusline[2]))
HTTPError: (403, 'Forbidden')
Verifying that GeoNode is running ...
Found 1 potential layers.
[failed] Layer for '../shape/estados_wgs84_utf8.shp' (1/1)
Detailed report of failures:
../shape/estados_wgs84_utf8.shp
================
Finished processing 1 layers in 0.0 seconds.
0 Created layers
0 Updated layers
0 Skipped layers
1 Failed layers
0.000000 seconds per layer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capturar.PNG
Type: image/png
Size: 32068 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170112/c60dfe65/attachment-0001.png>
More information about the geonode-users
mailing list