Sidebar is empty, can't see channels and Mobile app doesn't work

For troubleshooting questions, please post in the following format:

Summary
After upgrading from 5v to 6v content on the side where you can see channels is empty.

Server log shows this error

{"timestamp":"2022-05-02 07:30:56.985 Z","level":"error","msg":"Unable to get the channel members.","caller":"web/context.go:105","path":"/api/v4/users/me/teams/dioty4195py1bfw6z9rawgkgqa/channels/members","request_id":"5yj9i6kzejn37kasibua6xd3fh","ip_addr":"180.188.236.94","user_id":"uo9sccsudpdf9d1n7nfgsba1te","method":"GET","err_where":"GetChannelMembersForUser","http_code":500,"err_details":"failed to find ChannelMembers data with teamId=dioty4195py1bfw6z9rawgkgqa and userId=uo9sccsudpdf9d1n7nfgsba1te: sql: Scan error on column index 12, name \"msgcountroot\": converting NULL to int64 is unsupported"}
{"timestamp":"2022-05-02 07:30:57.260 Z","level":"error","msg":"Unable to get the channels.","caller":"web/context.go:105","path":"/api/v4/users/me/channels","request_id":"3ic9ys96hj83f8g4tnqrounh9e","ip_addr":"180.188.236.94","user_id":"uo9sccsudpdf9d1n7nfgsba1te","method":"GET","err_where":"GetChannelsForUser","http_code":500,"err_details":"failed to get channels with UserId=uo9sccsudpdf9d1n7nfgsba1te: sql: Scan error on column index 17, name \"totalmsgcountroot\": converting NULL to int64 is unsupported"}
{"timestamp":"2022-05-02 07:31:27.135 Z","level":"error","msg":"Unable to get the channels.","caller":"web/context.go:105","path":"/api/v4/users/me/teams/dioty4195py1bfw6z9rawgkgqa/channels","request_id":"1tshwno1ntfwzxi6pra4hoibqa","ip_addr":"180.188.236.94","user_id":"uo9sccsudpdf9d1n7nfgsba1te","method":"GET","err_where":"GetChannelsForUser","http_code":500,"err_details":"failed to get channels with TeamId=dioty4195py1bfw6z9rawgkgqa and UserId=uo9sccsudpdf9d1n7nfgsba1te: sql: Scan error on column index 17, name \"totalmsgcountroot\": converting NULL to int64 is unsupported"}
{"timestamp":"2022-05-02 07:31:27.141 Z","level":"error","msg":"Unable to get the channel members.","caller":"web/context.go:105","path":"/api/v4/users/me/teams/dioty4195py1bfw6z9rawgkgqa/channels/members","request_id":"ri8rb5ub1bnr5n5utm16n3379w","ip_addr":"180.188.236.94","user_id":"uo9sccsudpdf9d1n7nfgsba1te","method":"GET","err_where":"GetChannelMembersForUser","http_code":500,"err_details":"failed to find ChannelMembers data with teamId=dioty4195py1bfw6z9rawgkgqa and userId=uo9sccsudpdf9d1n7nfgsba1te: sql: Scan error on column index 12, name \"msgcountroot\": converting NULL to int64 is unsupported"}
{"timestamp":"2022-05-02 07:31:27.145 Z","level":"error","msg":"Unable to get the teams unread messages.","caller":"web/context.go:105","path":"/api/v4/users/me/teams/unread","request_id":"gt8ufksbm7ns3dtq448j4p8c8y","ip_addr":"180.188.236.94","user_id":"uo9sccsudpdf9d1n7nfgsba1te","method":"GET","err_where":"GetTeamsUnreadForUser","http_code":500,"err_details":"failed to find Channels with userId=uo9sccsudpdf9d1n7nfgsba1te and teamId!=: sql: Scan error on column index 3, name \"msgcountroot\": converting NULL to int64 is unsupported"}
{"timestamp":"2022-05-02 07:31:27.780 Z","level":"error","msg":"Unable to get the channels.","caller":"web/context.go:105","path":"/api/v4/users/me/teams/dioty4195py1bfw6z9rawgkgqa/channels","request_id":"1j9s496rti8u7yguwhs98e7ixo","ip_addr":"180.188.236.94","user_id":"uo9sccsudpdf9d1n7nfgsba1te","method":"GET","err_where":"GetChannelsForUser","http_code":500,"err_details":"failed to get channels with TeamId=dioty4195py1bfw6z9rawgkgqa and UserId=uo9sccsudpdf9d1n7nfgsba1te: sql: Scan error on column index 17, name \"totalmsgcountroot\": converting NULL to int64 is unsupported"}
{"timestamp":"2022-05-02 07:31:27.784 Z","level":"error","msg":"Unable to get the channel members.","caller":"web/context.go:105","path":"/api/v4/users/me/teams/dioty4195py1bfw6z9rawgkgqa/channels/members","request_id":"d4st1rzy8ifj781u4hnmqqt3xr","ip_addr":"180.188.236.94","user_id":"uo9sccsudpdf9d1n7nfgsba1te","method":"GET","err_where":"GetChannelMembersForUser","http_code":500,"err_details":"failed to find ChannelMembers data with teamId=dioty4195py1bfw6z9rawgkgqa and userId=uo9sccsudpdf9d1n7nfgsba1te: sql: Scan error on column index 12, name \"msgcountroot\": converting NULL to int64 is unsupported"}
{"timestamp":"2022-05-02 07:35:01.000 Z","level":"error","msg":"Unable to get the channels.","caller":"web/context.go:105","path":"/api/v4/users/me/teams/dioty4195py1bfw6z9rawgkgqa/channels","request_id":"wkzca1j1r7nqbdg8dj9aqxbnow","ip_addr":"180.188.236.94","user_id":"uo9sccsudpdf9d1n7nfgsba1te","method":"GET","err_where":"GetChannelsForUser","http_code":500,"err_details":"failed to get channels with TeamId=dioty4195py1bfw6z9rawgkgqa and UserId=uo9sccsudpdf9d1n7nfgsba1te: sql: Scan error on column index 17, name \"totalmsgcountroot\": converting NULL to int64 is unsupported"}
{"timestamp":"2022-05-02 07:35:01.086 Z","level":"error","msg":"Unable to get the channel members.","caller":"web/context.go:105","path":"/api/v4/users/me/teams/dioty4195py1bfw6z9rawgkgqa/channels/members","request_id":"r9py6ct8cjrrxbryu5mxuzcwyy","ip_addr":"180.188.236.94","user_id":"uo9sccsudpdf9d1n7nfgsba1te","method":"GET","err_where":"GetChannelMembersForUser","http_code":500,"err_details":"failed to find ChannelMembers data with teamId=dioty4195py1bfw6z9rawgkgqa and userId=uo9sccsudpdf9d1n7nfgsba1te: sql: Scan error on column index 12, name \"msgcountroot\": converting NULL to int64 is unsupported"}

Mobile app is not even able to open.