<div dir="ltr">Shouldn't the geonode-updateip command do this?</div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-31 13:54 GMT+02:00 Paolo Corti <span dir="ltr"><<a href="mailto:pcorti@gmail.com" target="_blank">pcorti@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It looks to me to be a bug, could you file a ticket?<br>
Thanks<br>
<br>
Meanwhile what you can do is to manually update the base_links table<br>
with something like (not tested):<br>
<br>
update base_link<br>
set url = replace(url, 'old_ip', 'new_ip')<br>
<span class="HOEnZb"><font color="#888888"><br>
p<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Tue, Mar 31, 2015 at 1:16 PM, Alessandro Burastero<br>
<<a href="mailto:alessandro@acrotec.it">alessandro@acrotec.it</a>> wrote:<br>
> i've truncated the base_link table and then i've run the geonode<br>
> updatelayers command (and also updatelayerid)... but the base_link table<br>
> remains empty<br>
><br>
> Alessandro<br>
><br>
><br>
> On 31/03/15 11:39, Paolo Corti wrote:<br>
>><br>
>> I have no way to test this right now but I believe that truncating the<br>
>> base_links table and running the updatelayers command should fix this.<br>
>> Before doing this action do a backup and try it on just one layer<br>
>> (removing the links related to only that layer from the base_links<br>
>> table)<br>
>> You may also need to run the updatemaplayerip command.<br>
>> p<br>
>><br>
>> On Tue, Mar 31, 2015 at 11:08 AM, Alessandro Burastero<br>
>> <<a href="mailto:alessandro@acrotec.it">alessandro@acrotec.it</a>> wrote:<br>
>>><br>
>>> Hi guys<br>
>>> i need to migrate my geonode 2.4b22 to another server (same os: ubuntu<br>
>>> 14-04<br>
>>> and same geonode version)...<br>
>>><br>
>>> I tried doing it in this way:<br>
>>>   - copy the geoserver data, styles and workspace directory in the new<br>
>>> server<br>
>>>   - domp via pg_dump and restore via psql the geonode database<br>
>>><br>
>>> the result is that geonode recognize all layers but it cannot view them<br>
>>> because all links in the layer metadata contains the old server<br>
>>> address...<br>
>>><br>
>>> haw can i solve it?<br>
>>><br>
>>> thanks in advance<br>
>>>      Alessandro<br>
>>><br>
>>> _______________________________________________<br>
>>> geonode-users mailing list<br>
>>> <a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
>>> <a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users</a><br>
>><br>
>><br>
>><br>
><br>
<br>
<br>
<br>
</div></div><span class="im HOEnZb">--<br>
Paolo Corti<br>
Geospatial software developer<br>
web: <a href="http://www.paolocorti.net" target="_blank">http://www.paolocorti.net</a><br>
twitter: @capooti<br>
skype: capooti<br>
</span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Simone </div>
</div>