It looks like you’re using the bitnami install rather than the official install, which is unsupported here. If you can move to using the standard install instead that would be great (and open you up to much more community support on here as well).
Though this stands out from your log:
ActiveRecord::StatementInvalid: PG::DuplicateTable: ERROR: relation "chat_channels" already exists
You may be able to have a search and see how others have handled similar issues. I believe you may need to drop the table, but it’s not something I’m familiar with.