<div dir="ltr">Thanks Alessandro, we need to add such feature to the geonode-updateip command.</div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-07 14:25 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">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <br>
    Thanks Simone... now i can install the b24 release<br>
    <br>
    ...but i confirm that the command geonode-updateid doesn't update
    the base_link table... here is the steps made to migrate the datas<br>
    <br>
    - install geonode <br>
    - run geonode createsuperuser<br>
    - run geonode-updateip<br>
    - copy (and replace) from old server:<br>
        - /usr/share/geoserver/data/data/geonode<br>
        - /usr/share/geoserver/data/workspaces<br>
        - /usr/share/geoserver/data/styles<br>
        - /var/www/geonode/uploaded/thumbs<br>
    - backup the old geonode store db and restore it in the new server<br>
    - modify the connection settings in the geoserver datastore (change
    the password)<br>
    <br>
    now i have all the layers defined correctly in the geoserver and
    also in geonode... but all the links (also the WMS) pointing to the
    old geoserver, even if i run a geonode-updateip.<br>
    <br>
    the only way to se the link to the new geoserver is to manually
    update the base_link table as Paolo sudjest (update base_link set
    url = replace(url, 'old_ip', 'new_ip') ).<br>
    <br>
    Alessandro<br>
    <span><span></span></span><br>
    <br>
    <div>On 07/04/15 11:33, Simone Dalmasso
      wrote:<br>
    </div>
    <blockquote type="cite">
      <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_command_line()<br>
              File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py",
            line 399, in execute_from_command_line<br>
                utility.execute()<br>
              File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py",
            line 392, in execute<br>
                self.fetch_command(subcommand).run_from_argv(self.argv)<br>
              File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py",
            line 261, in fetch_command<br>
                commands = get_commands()<br>
              File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py",
            line 107, in get_commands<br>
                apps = settings.INSTALLED_APPS<br>
              File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py",
            line 54, in __getattr__<br>
                self._setup(name)<br>
              File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py",
            line 49, in _setup<br>
                self._wrapped = Settings(settings_module)<br>
              File "/usr/lib/python2.7/dist-packages/django/conf/__init__.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_command_line()<br>
              File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py",
            line 399, in execute_from_command_line<br>
                utility.execute()<br>
              File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py",
            line 392, in execute<br>
                self.fetch_command(subcommand).run_from_argv(self.argv)<br>
              File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py",
            line 261, in fetch_command<br>
                commands = get_commands()<br>
              File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py",
            line 107, in get_commands<br>
                apps = settings.INSTALLED_APPS<br>
              File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py",
            line 54, in __getattr__<br>
                self._setup(name)<br>
              File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py",
            line 49, in _setup<br>
                self._wrapped = Settings(settings_module)<br>
              File "/usr/lib/python2.7/dist-packages/django/conf/__init__.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/master/tutorials/admin/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>
                          _______________________________________________<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-bin/mailman/listinfo/geonode-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>
                    _______________________________________________<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-bin/mailman/listinfo/geonode-users</a><br>
                  </blockquote>
                  <br>
                  <br>
                  <span><font color="#888888">
                      <br>
                      --<br>
                      Simone<br>
                    </font></span></blockquote>
                <span><font color="#888888">
                    <br><span class="HOEnZb"><font color="#888888">
                    <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></font></span></blockquote><span class="HOEnZb"><font color="#888888">
              <span><font color="#888888">
                  <br>
                  <br>
                </font></span></font></span></blockquote><span class="HOEnZb"><font color="#888888">
            <br>
          </font></span></blockquote><span class="HOEnZb"><font color="#888888">
        </font></span></div><span class="HOEnZb"><font color="#888888">
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div>Simone </div>
      </font></span></div>
    </blockquote>
    <br>
  </div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Simone </div>
</div>