Skip to content

Troubleshooting docker setup issues

Dan Kerchner edited this page Nov 1, 2023 · 3 revisions
Symptom Log contains an error that looks similar to:
scholarspace-hyrax-pg-hyrax-1 | ERROR: relation "sipity_roles" does not exist at character 566
scholarspace-hyrax-pg-hyrax-1 | STATEMENT: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
scholarspace-hyrax-pg-hyrax-1 | pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
scholarspace-hyrax-pg-hyrax-1 | c.collname, col_description(a.attrelid, a.attnum) AS comment
scholarspace-hyrax-pg-hyrax-1 | FROM pg_attribute a
scholarspace-hyrax-pg-hyrax-1 | LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
scholarspace-hyrax-pg-hyrax-1 | LEFT JOIN pg_type t ON a.atttypid = t.oid
scholarspace-hyrax-pg-hyrax-1 | LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
scholarspace-hyrax-pg-hyrax-1 | WHERE a.attrelid = '"sipity_roles"'::regclass
scholarspace-hyrax-pg-hyrax-1 | AND a.attnum > 0 AND NOT a.attisdropped
scholarspace-hyrax-pg-hyrax-1 | ORDER BY a.attnum
Probable root cause Database migrations have not yet been run.
Recommended solution Run database migrations (see README)