<div dir="ltr">Alessandro I just released the b24 which fixes the error. I apologize for it :)</div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-07 10:34 GMT+02:00 Alessandro Burastero <span dir="ltr"><<a href="mailto:alessandro@acrotec.it" target="_blank">alessandro@acrotec.it</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">mmm i tried the geonode-updateip but i didn't worked... maybe i made something wrong...<br>
...now i'm testing again the procedure, but i can't install the new geonode beta 23 in a new ubuntu 14-04 intallation... the following error appear during the geonode postinstall step:<br>
<br>
Running GeoNode postinstall ...<br>
Traceback (most recent call last):<br>
  File "<string>", line 1, in <module><br>
ImportError: No module named geonode<br>
Traceback (most recent call last):<br>
  File "/usr/bin/django-admin", line 5, in <module><br>
    management.execute_from_<u></u>command_line()<br>
  File "/usr/lib/python2.7/dist-<u></u>packages/django/core/<u></u>management/__init__.py", line 399, in execute_from_command_line<br>
    utility.execute()<br>
  File "/usr/lib/python2.7/dist-<u></u>packages/django/core/<u></u>management/__init__.py", line 392, in execute<br>
    self.fetch_command(subcommand)<u></u>.run_from_argv(self.argv)<br>
  File "/usr/lib/python2.7/dist-<u></u>packages/django/core/<u></u>management/__init__.py", line 261, in fetch_command<br>
    commands = get_commands()<br>
  File "/usr/lib/python2.7/dist-<u></u>packages/django/core/<u></u>management/__init__.py", line 107, in get_commands<br>
    apps = settings.INSTALLED_APPS<br>
  File "/usr/lib/python2.7/dist-<u></u>packages/django/conf/__init__.<u></u>py", line 54, in __getattr__<br>
    self._setup(name)<br>
  File "/usr/lib/python2.7/dist-<u></u>packages/django/conf/__init__.<u></u>py", line 49, in _setup<br>
    self._wrapped = Settings(settings_module)<br>
  File "/usr/lib/python2.7/dist-<u></u>packages/django/conf/__init__.<u></u>py", line 132, in __init__<br>
    % (self.SETTINGS_MODULE, e)<br>
ImportError: Could not import settings 'geonode.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named geonode.settings<br>
Traceback (most recent call last):<br>
  File "/usr/bin/django-admin", line 5, in <module><br>
    management.execute_from_<u></u>command_line()<br>
  File "/usr/lib/python2.7/dist-<u></u>packages/django/core/<u></u>management/__init__.py", line 399, in execute_from_command_line<br>
    utility.execute()<br>
  File "/usr/lib/python2.7/dist-<u></u>packages/django/core/<u></u>management/__init__.py", line 392, in execute<br>
    self.fetch_command(subcommand)<u></u>.run_from_argv(self.argv)<br>
  File "/usr/lib/python2.7/dist-<u></u>packages/django/core/<u></u>management/__init__.py", line 261, in fetch_command<br>
    commands = get_commands()<br>
  File "/usr/lib/python2.7/dist-<u></u>packages/django/core/<u></u>management/__init__.py", line 107, in get_commands<br>
    apps = settings.INSTALLED_APPS<br>
  File "/usr/lib/python2.7/dist-<u></u>packages/django/conf/__init__.<u></u>py", line 54, in __getattr__<br>
    self._setup(name)<br>
  File "/usr/lib/python2.7/dist-<u></u>packages/django/conf/__init__.<u></u>py", line 49, in _setup<br>
    self._wrapped = Settings(settings_module)<br>
  File "/usr/lib/python2.7/dist-<u></u>packages/django/conf/__init__.<u></u>py", line 132, in __init__<br>
    % (self.SETTINGS_MODULE, e)<br>
ImportError: Could not import settings 'geonode.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named geonode.settings<br>
<br>
<br>
<br>
...while the update from the beta22 goes well<br>
<br>
thanks again<br>
<br>
Alessandro<br>
<br>
On 07/04/15 10:11, Paolo Corti wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Uh forget my comment about documentation, I have just realized that<br>
geonode-updateip is a bash script and not a django command.<br>
cheers<br>
p<br>
<br>
On Tue, Apr 7, 2015 at 10:04 AM, Paolo Corti <<a href="mailto:pcorti@gmail.com" target="_blank">pcorti@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Definitely that is the best way, totally forgot about that command :)<br>
we need to add it to the documentation<br>
(<a href="http://docs.geonode.org/en/master/tutorials/admin/commands.html#commands" target="_blank">http://docs.geonode.org/en/<u></u>master/tutorials/admin/<u></u>commands.html#commands</a>)<br>
by the way<br>
cheers<br>
p<br>
<br>
On Fri, Apr 3, 2015 at 5:38 PM, Simone Dalmasso<br>
<<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Shouldn't the geonode-updateip command do this?<br>
<br>
2015-03-31 13:54 GMT+02:00 Paolo Corti <<a href="mailto:pcorti@gmail.com" target="_blank">pcorti@gmail.com</a>>:<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>
<br>
p<br>
<br>
On Tue, Mar 31, 2015 at 1:16 PM, Alessandro Burastero<br>
<<a href="mailto:alessandro@acrotec.it" target="_blank">alessandro@acrotec.it</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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" target="_blank">alessandro@acrotec.it</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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<br>
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>
______________________________<u></u>_________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">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-<u></u>bin/mailman/listinfo/geonode-<u></u>users</a><br>
</blockquote>
<br>
<br>
</blockquote></blockquote>
<br>
<br>
--<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>
______________________________<u></u>_________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">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-<u></u>bin/mailman/listinfo/geonode-<u></u>users</a><br>
</blockquote>
<br>
<br><span class="HOEnZb"><font color="#888888">
<br>
--<br>
Simone<br>
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<br>
--<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>
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<br>
</font></span></blockquote>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Simone </div>
</div>