Migrated from one server to another while updating from 3.3.x to 4.x and have been getting a bunch of errors in the logs. Some of the issues are not being able to create new direct message channels via the UI (a workaround is typing /msg @user text which will bring up a new direct message). Also some users failing to upload files. I have gone through and checked permissions which seem mostly correct (match original server). It is running on RHEL 6.6 and Postgresql 9.4. Any help appreciated.
[2017/08/31 18:24:53 PDT] [EROR] /api/v4/channels/direct:Permissions code=403 rid=j6zbhzapeirednn5rbuiq53tew uid=h1n5kx9q9iy7tnrikxds1omhxr ip=2.2.2.2 You do not have the appropriate permissions [details: userId=h1n5kx9q9iy7tnrikxds1omhxr, permission=create_direct_channel]
[2017/08/31 18:24:53 PDT] [EROR] /api/v4/channels/direct:Permissions code=403 rid=pupnc9uc9pb3zbxdgbfbrbkare uid=h1n5kx9q9iy7tnrikxds1omhxr ip=2.2.2.2 You do not have the appropriate permissions [details: userId=h1n5kx9q9iy7tnrikxds1omhxr, permission=create_direct_channel]
[2017/08/31 18:27:13 PDT] [EROR] /api/v4/channels/dhueuf6wujft5gxpefu73pjfwa/members/me:SqlChannelStore.GetMember code=500 rid=rtawokqmwfbcz8awfgp4bdtcmr uid=jbbeh9mc4id5fyz5iac5icc4wh ip=3.3.3.3 We couldn't get the channel member [details: channel_id=dhueuf6wujft5gxpefu73pjfwauser_id=jbbeh9mc4id5fyz5iac5icc4wh,gorp: multiple rows returned for: SELECT * FROM ChannelMembers WHERE ChannelId = :ChannelId AND UserId = :UserId - [map[ChannelId:dhueuf6wujft5gxpefu73pjfwa UserId:jbbeh9mc4id5fyz5iac5icc4wh]]]
[2017/08/31 18:27:13 PDT] [EROR] /api/v4/channels/dhueuf6wujft5gxpefu73pjfwa/members/me:SqlChannelStore.GetMember code=500 rid=s11nh9thofnjxjo3fsh657nysa uid=jbbeh9mc4id5fyz5iac5icc4wh ip=3.3.3.3 We couldn't get the channel member [details: channel_id=dhueuf6wujft5gxpefu73pjfwauser_id=jbbeh9mc4id5fyz5iac5icc4wh,gorp: multiple rows returned for: SELECT * FROM ChannelMembers WHERE ChannelId = :ChannelId AND UserId = :UserId - [map[ChannelId:dhueuf6wujft5gxpefu73pjfwa UserId:jbbeh9mc4id5fyz5iac5icc4wh]]]
[2017/08/31 18:31:05 PDT] [EROR] /api/v4/channels/x9p71x81jifwtmp8ccamxy55sr/members/me:SqlChannelStore.GetMember code=500 rid=pjk41m4c7fb7inwb18pqxcnmic uid=x7kgxoo3h7bsxcrx9jzbn5tb3o ip=1.1.1.1 We couldn't get the channel member [details: channel_id=x9p71x81jifwtmp8ccamxy55sruser_id=x7kgxoo3h7bsxcrx9jzbn5tb3o,gorp: multiple rows returned for: SELECT * FROM ChannelMembers WHERE ChannelId = :ChannelId AND UserId = :UserId - [map[ChannelId:x9p71x81jifwtmp8ccamxy55sr UserId:x7kgxoo3h7bsxcrx9jzbn5tb3o]]]
[2017/08/31 18:31:07 PDT] [EROR] /api/v4/channels/y97hbb43tbnppndfg6nsfce6ya/members/me:SqlChannelStore.GetMember code=500 rid=arxhzpjd6jnsdn967fh9ohfmja uid=x7kgxoo3h7bsxcrx9jzbn5tb3o ip=1.1.1.1 We couldn't get the channel member [details: channel_id=y97hbb43tbnppndfg6nsfce6yauser_id=x7kgxoo3h7bsxcrx9jzbn5tb3o,gorp: multiple rows returned for: SELECT * FROM ChannelMembers WHERE ChannelId = :ChannelId AND UserId = :UserId - [map[ChannelId:y97hbb43tbnppndfg6nsfce6ya UserId:x7kgxoo3h7bsxcrx9jzbn5tb3o]]]
[2017/08/31 18:31:08 PDT] [EROR] /api/v4/channels/y3jaz38reprb7qj3wq89umu3sc/members/me:SqlChannelStore.GetMember code=500 rid=oyqb91uebbgd38khkuq7x3765y uid=x7kgxoo3h7bsxcrx9jzbn5tb3o ip=1.1.1.1 We couldn't get the channel member [details: channel_id=y3jaz38reprb7qj3wq89umu3scuser_id=x7kgxoo3h7bsxcrx9jzbn5tb3o,gorp: multiple rows returned for: SELECT * FROM ChannelMembers WHERE ChannelId = :ChannelId AND UserId = :UserId - [map[ChannelId:y3jaz38reprb7qj3wq89umu3sc UserId:x7kgxoo3h7bsxcrx9jzbn5tb3o]]]
[2017/08/31 18:31:13 PDT] [EROR] /api/v4/channels/dhueuf6wujft5gxpefu73pjfwa/members/me:SqlChannelStore.GetMember code=500 rid=nmap39cdfp8zunwjqksjapna6o uid=x7kgxoo3h7bsxcrx9jzbn5tb3o ip=1.1.1.1 We couldn't get the channel member [details: channel_id=dhueuf6wujft5gxpefu73pjfwauser_id=x7kgxoo3h7bsxcrx9jzbn5tb3o,gorp: multiple rows returned for: SELECT * FROM ChannelMembers WHERE ChannelId = :ChannelId AND UserId = :UserId - [map[ChannelId:dhueuf6wujft5gxpefu73pjfwa UserId:x7kgxoo3h7bsxcrx9jzbn5tb3o]]]
[2017/08/31 18:38:31 PDT] [EROR] /api/v4/channels/direct:Permissions code=403 rid=remj1mpd5br5j8r4f9gjgj375r uid=h1n5kx9q9iy7tnrikxds1omhxr ip=1.1.1.1 You do not have the appropriate permissions [details: userId=h1n5kx9q9iy7tnrikxds1omhxr, permission=create_direct_channel]
[2017/08/31 18:38:32 PDT] [EROR] /api/v4/channels/direct:Permissions code=403 rid=o6i48434ht87fxg4i84kex4tfe uid=h1n5kx9q9iy7tnrikxds1omhxr ip=2.2.2.2 You do not have the appropriate permissions [details: userId=h1n5kx9q9iy7tnrikxds1omhxr, permission=create_direct_channel]
[2017/08/31 18:38:33 PDT] [EROR] /api/v4/channels/direct:Permissions code=403 rid=8g5gjojg1pf1dd7w6ntq4u9r5a uid=h1n5kx9q9iy7tnrikxds1omhxr ip=2.2.2.2 You do not have the appropriate permissions [details: userId=h1n5kx9q9iy7tnrikxds1omhxr, permission=create_direct_channel]
[2017/08/31 18:38:34 PDT] [EROR] /api/v4/channels/direct:Permissions code=403 rid=n9pgw7b7p38kumcamzn6hd966a uid=h1n5kx9q9iy7tnrikxds1omhxr ip=1.1.1.1 You do not have the appropriate permissions [details: userId=h1n5kx9q9iy7tnrikxds1omhxr, permission=create_direct_channel]
[2017/08/31 18:41:31 PDT] [EROR] /api/v4/users/search: code=401 rid=wnufh5nwt3fofr5x14gg9ekgoc uid= ip=1.1.1.1 Invalid or expired session, please login again. [details: UserRequired]
[2017/08/31 18:45:22 PDT] [EROR] /api/v4/channels/dhueuf6wujft5gxpefu73pjfwa/members/me:SqlChannelStore.GetMember code=500 rid=he96ptff7brbbebrxwixpy9xxh uid=x7kgxoo3h7bsxcrx9jzbn5tb3o ip=1.1.1.1 We couldn't get the channel member [details: channel_id=dhueuf6wujft5gxpefu73pjfwauser_id=x7kgxoo3h7bsxcrx9jzbn5tb3o,gorp: multiple rows returned for: SELECT * FROM ChannelMembers WHERE ChannelId = :ChannelId AND UserId = :UserId - [map[ChannelId:dhueuf6wujft5gxpefu73pjfwa UserId:x7kgxoo3h7bsxcrx9jzbn5tb3o]]]
[2017/08/31 18:45:35 PDT] [EROR] /api/v4/channels/dhueuf6wujft5gxpefu73pjfwa/members/me:SqlChannelStore.GetMember code=500 rid=6d5ojifw5ibd5xgzrr3848k6wc uid=x7kgxoo3h7bsxcrx9jzbn5tb3o ip=1.1.1.1 We couldn't get the channel member [details: channel_id=dhueuf6wujft5gxpefu73pjfwauser_id=x7kgxoo3h7bsxcrx9jzbn5tb3o,gorp: multiple rows returned for: SELECT * FROM ChannelMembers WHERE ChannelId = :ChannelId AND UserId = :UserId - [map[ChannelId:dhueuf6wujft5gxpefu73pjfwa UserId:x7kgxoo3h7bsxcrx9jzbn5tb3o]]]