Mattermost invites doesn't work

Hi,

New to mattermost, I try to use invite links or invite users by mail but all my tries are failing miserably : the links are said to be invalid : The signup link does not appear to be valid. or when the account is created by following the invite link it says that No teams are available to join. Please create a new team or ask your administrator for an invite.

Other users have had that problem, and some of them mention issues regarding the proxy configuration. Would it be possible that there is something wrong with NS configuration ?

Thanks for sharing your thoughts

Logs :

{"level":"info","ts":1599564892.6837978,"caller":"app/server.go:273","msg":"Current version is 5.25.0 (5.25.4/Tue Aug 25 23:22:29 UTC 2020/edcd28e18ed91302733b71638324c813505a3081/daebddb7484887027595cb588492871743814095)","current_version":"5.25.0","build_number":"5.25.4","build_date":"Tue Aug 25 23:22:29 UTC 2020","build_hash":"edcd28e18ed91302733b71638324c813505a3081","build_hash_enterprise":"daebddb7484887027595cb588492871743814095"}
{"level":"info","ts":1599564892.6838324,"caller":"app/server.go:282","msg":"Enterprise Build","enterprise_build":true}
{"level":"info","ts":1599564892.683865,"caller":"app/server.go:288","msg":"Printing current working","directory":"/root/macos-server-apns-certs"}
{"level":"info","ts":1599564892.68388,"caller":"app/server.go:289","msg":"Loaded config","source":"file:///opt/mattermost/config/config.json"}
{"level":"info","ts":1599564892.7642844,"caller":"sqlstore/post_store.go:1595","msg":"Post.Message has size restrictions","max_characters":16383,"max_bytes":65535}
{"level":"info","ts":1599564892.7803016,"caller":"mlog/log.go:167","msg":"Starting up plugins"}
{"level":"error","ts":1599564892.7803628,"caller":"app/plugin.go:161","msg":"Failed to start up plugins","error":"mkdir ./client/plugins: no such file or directory"}
{"level":"info","ts":1599564892.838574,"caller":"mlog/log.go:167","msg":"Starting up plugins"}
{"level":"error","ts":1599564892.8386352,"caller":"app/plugin.go:161","msg":"Failed to start up plugins","error":"mkdir ./client/plugins: no such file or directory"}
{"level":"info","ts":1599564892.8422158,"caller":"bleveengine/bleve.go:267","msg":"UpdateConf Bleve"}
{"level":"info","ts":1599564892.8430943,"caller":"app/license.go:40","msg":"License key from https://mattermost.com required to unlock enterprise features."}
{"level":"info","ts":1599564892.8433578,"caller":"mlog/log.go:167","msg":"Starting up plugins"}
{"level":"error","ts":1599564892.843381,"caller":"app/plugin.go:161","msg":"Failed to start up plugins","error":"mkdir ./client/plugins: no such file or directory"}
{"level":"warn","ts":1599564897.3926215,"caller":"app/user.go:1428","msg":"Attempting to permanently delete account","user_id":"8aqd1pngypyztn5ij9h31obn3y","user_email":"webmail@gaillet.be"}
{"level":"warn","ts":1599564897.4336793,"caller":"app/user.go:1535","msg":"Permanently deleted account","user_email":"webmail@gaillet.be","user_id":"8aqd1pngypyztn5ij9h31obn3y"}
{"level":"info","ts":1599564897.4339147,"caller":"app/server.go:416","msg":"Stopping Server..."}
{"level":"info","ts":1599564897.4339461,"caller":"app/web_hub.go:130","msg":"stopping websocket hub connections"}
{"level":"info","ts":1599564897.4362352,"caller":"app/server.go:469","msg":"Server stopped"}
{"level":"info","ts":1599565146.2721057,"caller":"utils/i18n.go:83","msg":"Loaded system translations","for locale":"en","from locale":"/opt/mattermost/i18n/en.json"}
{"level":"info","ts":1599565146.2723181,"caller":"app/server_app_adapters.go:58","msg":"Server is initializing..."}
{"level":"info","ts":1599565146.2748866,"caller":"sqlstore/supplier.go:227","msg":"Pinging SQL","database":"master"}
{"level":"info","ts":1599565146.5309477,"caller":"app/license.go:40","msg":"License key from https://mattermost.com required to unlock enterprise features."}
{"level":"info","ts":1599565146.5489902,"caller":"mlog/log.go:167","msg":"Starting up plugins"}
{"level":"info","ts":1599565146.5491147,"caller":"app/plugin.go:202","msg":"Syncing plugins from the file store"}
{"level":"info","ts":1599565151.196251,"caller":"mlog/sugar.go:19","msg":"Ensuring Surveybot exists","plugin_id":"com.mattermost.nps"}
{"level":"info","ts":1599565151.231371,"caller":"app/server.go:273","msg":"Current version is 5.25.0 (5.25.4/Tue Aug 25 23:22:29 UTC 2020/edcd28e18ed91302733b71638324c813505a3081/daebddb7484887027595cb588492871743814095)","current_version":"5.25.0","build_number":"5.25.4","build_date":"Tue Aug 25 23:22:29 UTC 2020","build_hash":"edcd28e18ed91302733b71638324c813505a3081","build_hash_enterprise":"daebddb7484887027595cb588492871743814095"}
{"level":"info","ts":1599565151.23146,"caller":"app/server.go:282","msg":"Enterprise Build","enterprise_build":true}
{"level":"info","ts":1599565151.231498,"caller":"app/server.go:288","msg":"Printing current working","directory":"/opt/mattermost"}
{"level":"info","ts":1599565151.2315178,"caller":"app/server.go:289","msg":"Loaded config","source":"file:///opt/mattermost/config/config.json"}
{"level":"info","ts":1599565151.3119655,"caller":"sqlstore/post_store.go:1595","msg":"Post.Message has size restrictions","max_characters":16383,"max_bytes":65535}
{"level":"info","ts":1599565151.5164902,"caller":"jobs/workers.go:73","msg":"Starting workers"}
{"level":"info","ts":1599565151.5166562,"caller":"bleveengine/bleve.go:267","msg":"UpdateConf Bleve"}
{"level":"info","ts":1599565151.5304663,"caller":"app/web_hub.go:83","msg":"Starting websocket hubs","number_of_hubs":2}
{"level":"info","ts":1599565151.5372972,"caller":"jobs/schedulers.go:74","msg":"Starting schedulers."}
{"level":"info","ts":1599565151.6136906,"caller":"app/license.go:40","msg":"License key from https://mattermost.com required to unlock enterprise features."}
{"level":"info","ts":1599565151.6921482,"caller":"app/server.go:525","msg":"Starting Server..."}
{"level":"info","ts":1599565151.6923223,"caller":"app/server.go:594","msg":"Server is listening on 127.0.0.1:8065","address":"127.0.0.1:8065"}
{"level":"error","ts":1599565163.6305218,"caller":"mlog/log.go:175","msg":"The signup link does not appear to be valid.","path":"/api/v4/teams/members/invite","request_id":"zodfazg58tdjzbkdtofsh6jz3h","ip_addr":"127.0.0.1","user_id":"jrf7ith6rpnabcnudkz98yaima","method":"POST","err_where":"AddUserToTeamByToken","http_code":400,"err_details":"SqlTokenStore.GetByToken: Unable to get a token with this code., sql: no rows in result set"}
{"level":"error","ts":1599565173.374257,"caller":"mlog/log.go:175","msg":"The signup link does not appear to be valid.","path":"/api/v4/teams/members/invite","request_id":"6s8i7auwhpfwpmrs3cropub66h","ip_addr":"127.0.0.1","user_id":"jrf7ith6rpnabcnudkz98yaima","method":"POST","err_where":"AddUserToTeamByToken","http_code":400,"err_details":"SqlTokenStore.GetByToken: Unable to get a token with this code., sql: no rows in result set"}
{"level":"error","ts":1599565236.6038048,"caller":"mlog/log.go:175","msg":"The signup link does not appear to be valid.","path":"/api/v4/users","request_id":"qrib4qd4itd7icysb4wht8gu5w","ip_addr":"127.0.0.1","user_id":"","method":"POST","err_where":"CreateUserWithToken","http_code":400,"err_details":"SqlTokenStore.GetByToken: Unable to get a token with this code., sql: no rows in result set"}
{"level":"error","ts":1599565569.6254423,"caller":"mlog/log.go:175","msg":"The signup link does not appear to be valid.","path":"/api/v4/users","request_id":"639bb8dji3fa88bbosfx3wq66c","ip_addr":"127.0.0.1","user_id":"","method":"POST","err_where":"CreateUserWithToken","http_code":400,"err_details":"SqlTokenStore.GetByToken: Unable to get a token with this code., sql: no rows in result set"}
{"level":"error","ts":1599565653.63676,"caller":"app/team.go:660","msg":"Encountered an issue joining default channels.","user_id":"z6nkgk7fx38kmn9kncnhm3ci5h","team_id":"6m6majnhdpybxyhipx4jbgs6wa","error":"SqlChannelStore.GetByName: Channel does not exist., teamId=6m6majnhdpybxyhipx4jbgs6wa, name=off-topic"}
{"level":"error","ts":1599565654.6332872,"caller":"mlog/log.go:175","msg":"No channels were found.","path":"/api/v4/users/me/teams/6m6majnhdpybxyhipx4jbgs6wa/channels","request_id":"x4rkwkcmfjrmjqorpwpjwogrwy","ip_addr":"127.0.0.1","user_id":"z6nkgk7fx38kmn9kncnhm3ci5h","method":"GET","err_where":"SqlChannelStore.GetChannels","http_code":400,"err_details":"teamId=6m6majnhdpybxyhipx4jbgs6wa, userId=z6nkgk7fx38kmn9kncnhm3ci5h"}

@pagaille

Salut Matthieu!

Not sure about the proxy you mentionned, but I do see a few log entries like this:

"License key from https://mattermost.com required to unlock enterprise features."

Any Modules (Like mailing invitations?) you might be using that might need Enterprise features?

My 2 cents
Andy

Thanks @Andy_Wismer. I don’t use any particular module, that’s an out of the box install so maybe that’s maybe a warning that we are in community mode.

Additionally the documentation doesn’t state that email invites are limited to enterprise edition. And as a matter of a fact invite links doesn’t work either.

Did you delete default channels like off-topic?

2 Likes

Yes ! Bad idea ?

I think so. Rename is ok but delete is not.

Grrrrrr. Thanks @mrmarkus ! One more solved case for you :blush: :beer:

2 Likes
1 Like

I simply re-created off-topic and the town thing. It’s working now.

1 Like

3 posts were split to a new topic: Mattermost SMTP settings are wrong after first run