<div dir="ltr"><div class="gmail_default" style="color:rgb(0,0,0)">As a follow up to this email. </div><div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div class="gmail_default" style="color:rgb(0,0,0)">It appears that for the second error none of the GIS data was actually migrated but just a description of the layers was. We will now try to import the layers that did not migrate using the <b>sudo geonode importalyers <dat_dir></b> to the new geonode and I just hope that the imported layers will link back with the descriptive data that was imported for each layer. </div><div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div class="gmail_default" style="color:rgb(0,0,0)">The first issue remains unresolved..</div><div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div class="gmail_default" style="color:rgb(0,0,0)">Thank you,</div><div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div class="gmail_default" style="color:rgb(0,0,0)">levi </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 19, 2016 at 12:48 PM, Levi Westerveld <span dir="ltr"><<a href="mailto:levi.westerveld@gmail.com" target="_blank">levi.westerveld@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="color:rgb(0,0,0)">​Dear Simone and Paolo,</div><div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div class="gmail_default" style="color:rgb(0,0,0)">​We have reinstalled ubuntu and ran the migration files successfully again from our geonode 2.0 server to our geonode 2.4 instance. </div><div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div class="gmail_default" style="color:rgb(0,0,0)">We have two issues</div><div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div class="gmail_default" style="color:rgb(0,0,0)">1. we are able to access the geonode 2.4 if we are signed in as a user at <a href="http://opengeo.grida.no/" target="_blank">http://opengeo.grida.no/</a> but if not signed in then an internal server issues shows up</div><div class="gmail_default" style="color:rgb(0,0,0)">2. when we are in the layers section and click on a layer it seems that the link is broken, and we are not redirected to that layer, but stay on the same page </div><div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div class="gmail_default" style="color:rgb(0,0,0)">I attached the two log files for the migration.</div><div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div class="gmail_default" style="color:rgb(0,0,0)">Thank you!</div><div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div class="gmail_default" style="color:rgb(0,0,0)">Levi</div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Fri, Apr 15, 2016 at 9:14 AM, Simone Dalmasso <span dir="ltr"><<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Levi,<div><br></div><div>that is definitely not a good error but can be solved. Linux puts the file system in read only mode when there are inconsistencies on the disk.I suggest you to google for that error, you will find tons of suggestions on how to check and fix the disk errors.</div></div><div class="gmail_extra"><div><div><br><div class="gmail_quote">2016-04-14 22:36 GMT+02:00 Levi Westerveld <span dir="ltr"><<a href="mailto:levi.westerveld@gmail.com" target="_blank">levi.westerveld@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="color:rgb(0,0,0)">Hello Paolo and Simone,</div><div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div class="gmail_default" style="color:rgb(0,0,0)">We just ran the script again and we got a new error message in the terminal. Have you seen this before? Is it maybe because we had already ran the scripts at an earlier stage? Thank you for your help!</div><div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div class="gmail_default" style="color:rgb(0,0,0)">Levi </div><div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div class="gmail_default" style="color:rgb(0,0,0)"><div style="font-family:Calibri,sans-serif;font-size:14px;margin:14pt 0px;background-color:rgb(120,127,255)"><font face="Hack" color="#FFFB00">Traceback (most recent call last):</font></div><div style="font-family:Calibri,sans-serif;font-size:14px;margin:14pt 0px;background-color:rgb(120,127,255)"><font face="Hack" color="#FFFB00">  File "/home/administrator/geonode-migration_from20_to_24/migrate_contactroles.py", line 4, in <module></font></div><div style="font-family:Calibri,sans-serif;font-size:14px;margin:14pt 0px;background-color:rgb(120,127,255)"><font face="Hack" color="#FFFB00">    src = utils.get_src()</font></div><div style="font-family:Calibri,sans-serif;font-size:14px;margin:14pt 0px;background-color:rgb(120,127,255)"><font face="Hack" color="#FFFB00">  File "/home/administrator/geonode-migration_from20_to_24/utils.py", line 21, in get_src</font></div><div style="font-family:Calibri,sans-serif;font-size:14px;margin:14pt 0px;background-color:rgb(120,127,255)"><font face="Hack" color="#FFFB00">    "dbname='%s' user='%s' port='5432' host='%s' password='%s'" % (gn20_dbname, gn20_user, gn20_host, gn20_password)</font></div><div style="font-family:Calibri,sans-serif;font-size:14px;margin:14pt 0px;background-color:rgb(120,127,255)"><font face="Hack" color="#FFFB00">  File "/usr/lib/python2.7/dist-packages/psycopg2/__init__.py", line 179, in connect</font></div><div style="font-family:Calibri,sans-serif;font-size:14px;margin:14pt 0px;background-color:rgb(120,127,255)"><font face="Hack" color="#FFFB00">    connection_factory=connection_factory, async=async)</font></div><div style="font-family:Calibri,sans-serif;font-size:14px;margin:14pt 0px;background-color:rgb(120,127,255)"><font face="Hack" color="#FFFB00">psycopg2.OperationalError: FATAL:  could not open file "base/16384/11757": Read-only file system</font></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 11, 2016 at 4:52 PM, Paolo Corti <span dir="ltr"><<a href="mailto:pcorti@gmail.com" target="_blank">pcorti@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Looks like the migrations scripts didn't run successfully.<br>
Levi, could you re-run the process and provide the full log of the<br>
migration scripts?<br>
Also, make sure to read comments here:<br>
<a href="https://github.com/GeoNode/geonode/issues/2067" rel="noreferrer" target="_blank">https://github.com/GeoNode/geonode/issues/2067</a><br>
thanks<br>
p<br>
<div><div><br>
On Mon, Apr 11, 2016 at 8:03 AM, Simone Dalmasso<br>
<<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>> wrote:<br>
> The issue seems to be originating here<br>
> <a href="https://github.com/GeoNode/geonode/blob/master/geonode/base/templatetags/base_tags.py#L54" rel="noreferrer" target="_blank">https://github.com/GeoNode/geonode/blob/master/geonode/base/templatetags/base_tags.py#L54</a>.<br>
> And the final error is: ValueError: invalid literal for int() with base 10:<br>
> 'None'<br>
>  @capooti any hints?<br>
><br>
> 2016-04-11 13:59 GMT+02:00 Levi Westerveld <<a href="mailto:levi.westerveld@gmail.com" target="_blank">levi.westerveld@gmail.com</a>>:<br>
>><br>
>> Hello,<br>
>><br>
>> We recently moved our data from a 2.0 geonode server<br>
>> (<a href="http://geonode.grida.no/" rel="noreferrer" target="_blank">http://geonode.grida.no/</a>) to a new server with geonode 2.4<br>
>> (<a href="http://opengeo.grida.no/" rel="noreferrer" target="_blank">http://opengeo.grida.no/</a>). geonode 2.4 was successfully installed before we<br>
>> ran the migration using the scripts provided here:<br>
>> <a href="https://github.com/capooti/geonode/tree/migration_from20_to_24/scripts/migrations/migrate20to24" rel="noreferrer" target="_blank">https://github.com/capooti/geonode/tree/migration_from20_to_24/scripts/migrations/migrate20to24</a>.<br>
>><br>
>> After running the two migration scripts, users, layers, and maps data were<br>
>> transferred successfully, but each time I clicked on a layer nothing would<br>
>> happen. When we tried to access the geoserver after logging in we also<br>
>> received an error message.<br>
>><br>
>> Now we have an Internal Server Error after we tried to open up to the<br>
>> client side so that the server could be accessed externally from a browser.<br>
>><br>
>> The error log file from /var/logs/apache2/error.log is attached to this<br>
>> email.<br>
>><br>
>> perhaps someone here has an idea on what is the best way forward?<br>
>><br>
>> Many thanks for the help,<br>
>><br>
>> Levi<br>
>><br>
>><br>
>><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/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/geonode-users</a><br>
>><br>
><br>
><br>
><br>
> --<br>
> Simone<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/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/geonode-users</a><br>
><br>
<br>
<br><span><font color="#888888">
<br>
--<br>
</font></span></div></div><span><font color="#888888"><span><font color="#888888">Paolo Corti<br>
Geospatial software developer<br>
web: <a href="http://www.paolocorti.net" rel="noreferrer" target="_blank">http://www.paolocorti.net</a><br>
twitter: @capooti<br>
skype: capooti<br>
</font></span></font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Levi Westerveld</div><div><br></div><div dir="ltr"><div><br></div><div><br></div></div></div></div></div></div></div></div></div></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span><font color="#888888">-- <br><div>Simone </div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Levi Westerveld</div><div><br></div><div dir="ltr"><div><br></div><div><br></div></div></div></div></div></div></div></div></div></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Levi Westerveld</div><div><br></div><div dir="ltr"><div><br></div><div><br></div></div></div></div></div></div></div></div></div></div></div>
</div>