The -T thing was just for your own info, there’s all sorts of useful stuff in there.
So I note that the first line of your stacktrace is this:
which is looping over plugins, so I’m assuming one of the plugins is broken. Since we can’t even list plugins while rake tasks are broken, I’m going to take a stab at default hostgroup since that’s (a) one of mine and (b) definitely not updated for 1.16 yet. Try uninstalling it and see if db:migrate gets any better.