You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've loaded a backup of my EarthChem ODM2 database into the Postgres running in the ODM2-Admin docker container. To do that I did a pg_dump (to a directory, with -E for SQL_ASCII encoding and -O), and put the dump in a directory attached to my docker container when I run it. I'm not genereating all the ODM2 tables in my EC database, just the ones that are used or I think we'll need.
I dropped the ODM2 schema from the container postgres db, and then used pg_restore to bring in the backup. No errors reported. I have to configure my container to map container port 5432 to a different port (I'm using 5437) to connect to the db using pgAdmin on my host machine. (there's some other tweaks necessary, but that's a differnent topic) All the tables appear to be OK.
I can connect to ODM2-Admin with browser on my host machine (e.g. http://127.0.0.1:8010/odm2admin/samplingfeatures/) but for some entities (action, method) when I click on a link to drill into the entity I get an error with a heading like "TypeError at /odm2admin/methods/22/change/
'NoneType' object has no attribute 'getitem' ".
@smrgeoinfo From the error message, it seems like maybe one of the attribute within Method or Action is blank, giving a None and one of the code is trying to get the value of that attribute... From the error message maybe actiondescription.
I've loaded a backup of my EarthChem ODM2 database into the Postgres running in the ODM2-Admin docker container. To do that I did a pg_dump (to a directory, with -E for SQL_ASCII encoding and -O), and put the dump in a directory attached to my docker container when I run it. I'm not genereating all the ODM2 tables in my EC database, just the ones that are used or I think we'll need.
I dropped the ODM2 schema from the container postgres db, and then used pg_restore to bring in the backup. No errors reported. I have to configure my container to map container port 5432 to a different port (I'm using 5437) to connect to the db using pgAdmin on my host machine. (there's some other tweaks necessary, but that's a differnent topic) All the tables appear to be OK.
I can connect to ODM2-Admin with browser on my host machine (e.g. http://127.0.0.1:8010/odm2admin/samplingfeatures/) but for some entities (action, method) when I click on a link to drill into the entity I get an error with a heading like "TypeError at /odm2admin/methods/22/change/
'NoneType' object has no attribute 'getitem' ".
Any ideas what might be causing this? I'm attaching and example of the whole error report (ends up being several pages): TypeError-at_odm2admin_methods_22_change_.pdf
The text was updated successfully, but these errors were encountered: