Update from Geonode 3.0 to 3.1, using commandos Backup/Restored. Keep same functionality, styles, layers and Maps.
Actual Behavior
Everything looks good in the Web interface, however, trying a WFS request to geoserver has the following error:
java.io.IOException
java.lang.RuntimeException: java.io.IOException
java.io.IOExceptionCannot do natural order without a primary key, please add it or specify a manual sort over existing
Looking at the tables in the database (geonode_data) none of the tables have a defined primary key field, causing the error.
To fix the problem I had perform pg_dump on old database, delete all tables created after the Restore commando, and dump the old database into the new one. So it maybe something from the Backup/Restore commando that doesn't get carried over.
Steps to Reproduce the Problem
Run python manage.py backup command on old version.
Additional details: The layers looks good inside the Geonode, with the right amount of features in each layers, however, establishing a WFS connection from QGIS generates duplicate features and no modification to the layer can be perform from QGIS.
Expected Behavior
Update from Geonode 3.0 to 3.1, using commandos Backup/Restored. Keep same functionality, styles, layers and Maps.
Actual Behavior
Everything looks good in the Web interface, however, trying a WFS request to geoserver has the following error:
java.io.IOException java.lang.RuntimeException: java.io.IOException java.io.IOExceptionCannot do natural order without a primary key, please add it or specify a manual sort over existing
Looking at the tables in the database (geonode_data) none of the tables have a defined primary key field, causing the error.
To fix the problem I had perform pg_dump on old database, delete all tables created after the Restore commando, and dump the old database into the new one. So it maybe something from the Backup/Restore commando that doesn't get carried over.
Steps to Reproduce the Problem
Specifications