Skip to content

Error opening form for method #146

Description

@smrgeoinfo

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

Activity

  1. lsetiawan commented on Jul 3, 2017

    @lsetiawan
    Member

    @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.

  2. miguelcleon commented on Jul 10, 2017

    @miguelcleon
    Member

    Hi @smrgeoinfo this got buried in my inbox while I was traveling. Did @lsetiawan's suggestion help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions