[GeoNode-users] Issue on updateip in migration to 2.6

Simone Dalmasso simone.dalmasso at gmail.com
Mon Jul 3 04:38:42 PDT 2017


Annalisa, thanks a lot for debugging and reporting, it could definitely be
a bug, we'll investigate.

Best!

2017-07-03 13:17 GMT+02:00 Annalisa Schiavon <annalisa.schiavon at gmail.com>:

> I fixed the error on deleting orphan layers: the upload_upload table
> hasn't 4 attribute: mosaic_time_regex, mosaic_time_value, mosaic_elev_regex
> and mosaic_elev_value. Adding those columns, I can delete my orphan layers.
>
> It may be an issue of geonode migrate command?
>
> Cheers,
> Annalisa
>
> 2017-07-03 12:14 GMT+02:00 Annalisa Schiavon <annalisa.schiavon at gmail.com>
> :
>
>> Thanks!  Yes, if I replace it, it works.
>>
>> For the stale layers, I can't remove them from the admin panel, It gives
>> error! I try to remove from DB, checking dependencies, ok?
>>
>> Thanks again
>>
>>
>> 2017-07-03 11:31 GMT+02:00 Simone Dalmasso <simone.dalmasso at gmail.com>:
>>
>>> Annalisa, layer preview from geoserver seems to have a bug in the url of
>>> the preview itself
>>> if you right click and copy the url you'll notice it has two "?". if you
>>> replace the second one with "&" then should work. This will probably be
>>> fixed in next gs releases
>>>
>>> 2017-07-03 11:21 GMT+02:00 Annalisa Schiavon <
>>> annalisa.schiavon at gmail.com>:
>>>
>>>> Hi Toni,
>>>>
>>>> 2017-07-03 10:07 GMT+02:00 Toni Schönbuchner <
>>>> toni.schoenbuchner at csgis.de>:
>>>>
>>>>> Hi Annalisa,
>>>>>
>>>>> I setted the ip address in geonode-oauth2 in a couple of lines they
>>>>> still
>>>>> point to "localhost“.
>>>>>
>>>>>
>>>>> You could grep your files to see if somewhere localhost is still
>>>>> mentioned:
>>>>>
>>>>> grep -rn --include="*.py“ „192.68.31.80" 2>/dev/null
>>>>>
>>>>
>>>> Ok, but now it seems that localhost should remain in some settings,
>>>> maybe?
>>>>
>>>>
>>>>>
>>>>>
>>>>> Here it is an example of a wrong preview link:
>>>>> http://192.168.31.80/geoserver/geonode/wms?access_token=SFtO
>>>>> 1m1uwzKVWzOmJmsQi72nMQyEfi?service=WMS&version=1.1.0&request
>>>>> =GetMap&layers=geonode:v_staz_aria_attive&styles=&bbox=16472
>>>>> 77.811,4991070.397,1798213.0,5117620.0&width=768&height=643&
>>>>> srs=EPSG:3003&format=application/openlayers
>>>>>
>>>>>
>>>>> You want the local IP to be a public, right?
>>>>> Stupid question. Have you restarted your web servers?
>>>>>
>>>>
>>>> After checking all, I'll have to change it to a domain ... Yes, I've
>>>> restarted apache and tomcat
>>>>
>>>>
>>>>>
>>>>> Then, I've some old layers in geonode that doesn't more exists in
>>>>> geoserver. If I try to remove from geonode ui It fails. Also the
>>>>> "geonode
>>>>> updatelayers --remove-deleted" fails on those layers
>>>>>
>>>>>
>>>>> updatelayers has a verbose option.
>>>>> http://docs.geonode.org/en/master/tutorials/admin/admin_mgmt
>>>>> _commands/#updatelayers
>>>>> can you provide a detailed error output?
>>>>>
>>>>> There are geonode commands for clean or syncronize databases? Some
>>>>> docs?
>>>>> syncdb is now deprecated, right?
>>>>>
>>>>>
>>>>> I think to remember that from Django 1.9 synchdb is depreceated.
>>>>> Instead migrate
>>>>> should work. F.e.:
>>>>>
>>>>> python manage.py migrate auth# performs migrations for auth and contenttypes contrib apps
>>>>>
>>>>> python manage.py migrate --run-syncdb# creates the rest of the database
>>>>>
>>>>> I couldn´t find any updated documentation either.
>>>>> When searching for things like that I often have a look in pavement.py
>>>>>  ;)
>>>>> https://github.com/GeoNode/geonode/blob/master/pavement.py#L213
>>>>>
>>>>>
>>>>> Thanks
>>>>
>>>> Annalisa
>>>>
>>>>
>>>>>
>>>>>
>>>>> Cheers,
>>>>>
>>>>> Toni
>>>>>
>>>>>
>>>>> -----------------------------------------------
>>>>> CSGIS
>>>>>
>>>>> -----------------------------------------------
>>>>> Kolonnadenstraße 1
>>>>> 04109 Leipzig
>>>>> -----------------------------------------------
>>>>> Mobil +49/ (0) 176 6680 3198 <+49%20176%2066803198>
>>>>> Tel  +49/ (0) 341 24 04 738 <+49%20341%202404738>
>>>>> Fax  +49/ (0) 341 24 04 73 <+49%20341%20240473>
>>>>> 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.
>>>>>
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> geonode-users mailing list
>>>> geonode-users at lists.osgeo.org
>>>> https://lists.osgeo.org/mailman/listinfo/geonode-users
>>>>
>>>>
>>>
>>>
>>> --
>>> Simone
>>>
>>
>>
>


-- 
Simone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170703/8efe5b69/attachment.html>


More information about the geonode-users mailing list