"FATAL: role "mastodon" does not exist" eror on upgrade to 2.0.0



I’m trying to upgrade to v2.0.0 (Docker) and the process including the DB upgrade completes without errors. When starting Docker the live_db_1 instance shows the following logs:

LOG:  MultiXact member wraparound protections are now enabled
LOG:  database system is ready to accept connections
LOG:  autovacuum launcher started
FATAL:  role "mastodon" does not exist
FATAL:  role "mastodon" does not exist

Any idea what’s going on here? It was suggested in some bugreport this might be due to memory errors, but it doesn’t really look like that’s the problem:

mastodon@mammoth:~/live$ free -h
              total        used        free      shared  buff/cache   available
Mem:           6.8G        1.3G        302M         90M        5.2G        5.1G
Swap:            0B          0B          0B

Any ideas?


can you connect to your PostgreSQL and see what’s there?

\l will list databases (that’s ell)
\du will list users <- mastodon should be there