Error: There is no route named adminFlags.list

You’ve definitely got some sleuthing to do.

You might try something like this:

cd /var/discourse
./launcher enter app
find plugins -type f -exec grep -l adminFlags \{\} \;

Or just comment out/in half of the non-discourse ones until you find it.