Automatic updates
Database update
That is normal as 5.7.1 was just a hotfix and had no changes in the database.
SOLVED: No Custom Emoji Button
Hi @adanial,
thank you for your answer and your suggestions. As requested, I checked if I can access the custom emoji page directly. And yes, I can. But the blue “Add Custom Emoji” Button is also missing. I created a screenshot for you:
I retrieved the information you asked for from the database:
SELECT * FROM Roles\G
*************************** 1. row ***************************
Id: 3smjtfy6zt8gtdwhibe9m1kfwh
Name: team_admin
DisplayName: authentication.roles.team_admin.name
Description: authentication.roles.team_admin.description
CreateAt: 1547759566735
UpdateAt: 1547759566735
DeleteAt: 0
Permissions: remove_user_from_team manage_team import_team manage_team_roles manage_channel_roles manage_others_webhooks manage_slash_commands manage_others_slash_commands manage_webhooks delete_post delete_others_posts
SchemeManaged: 1
BuiltIn: 1
*************************** 2. row ***************************
Id: 44zcxgrwwind5giiydireacyxh
Name: system_user
DisplayName: authentication.roles.global_user.name
Description: authentication.roles.global_user.description
CreateAt: 1547759566712
UpdateAt: 1547759566712
DeleteAt: 0
Permissions: create_direct_channel create_group_channel permanent_delete_user create_team
SchemeManaged: 1
BuiltIn: 1
*************************** 3. row ***************************
Id: 9e8ruogt47r4ib1j5jdy98hthy
Name: channel_user
DisplayName: authentication.roles.channel_user.name
Description: authentication.roles.channel_user.description
CreateAt: 1547759566755
UpdateAt: 1547759566755
DeleteAt: 0
Permissions: read_channel add_reaction remove_reaction manage_public_channel_members upload_file get_public_link create_post use_slash_commands manage_private_channel_members delete_post edit_post
SchemeManaged: 1
BuiltIn: 1
*************************** 4. row ***************************
Id: cf5aggq4qjfdxnn3d8i4iu7sxe
Name: system_admin
DisplayName: authentication.roles.global_admin.name
Description: authentication.roles.global_admin.description
CreateAt: 1547759566696
UpdateAt: 1547759566696
DeleteAt: 0
Permissions: assign_system_admin_role manage_system manage_roles manage_public_channel_properties manage_public_channel_members manage_private_channel_members delete_public_channel create_public_channel manage_private_channel_properties delete_private_channel create_private_channel manage_system_wide_oauth manage_others_webhooks edit_other_users edit_others_posts manage_oauth invite_user delete_post delete_others_posts create_team add_user_to_team list_users_without_team manage_jobs create_post_public create_post_ephemeral create_user_access_token read_user_access_token revoke_user_access_token remove_others_reactions list_team_channels join_public_channels read_public_channel view_team read_channel add_reaction remove_reaction upload_file get_public_link create_post use_slash_commands remove_user_from_team manage_team import_team manage_team_roles manage_channel_roles manage_slash_commands manage_others_slash_commands manage_webhooks edit_post
SchemeManaged: 1
BuiltIn: 1
*************************** 5. row ***************************
Id: i8aunfkm9j8iddt8ux79gk1j3c
Name: channel_admin
DisplayName: authentication.roles.channel_admin.name
Description: authentication.roles.channel_admin.description
CreateAt: 1547759566762
UpdateAt: 1547759566762
DeleteAt: 0
Permissions: manage_channel_roles
SchemeManaged: 1
BuiltIn: 1
*************************** 6. row ***************************
Id: jt7njsekcfdodkoijc8nsyppzc
Name: team_post_all_public
DisplayName: authentication.roles.team_post_all_public.name
Description: authentication.roles.team_post_all_public.description
CreateAt: 1547759566727
UpdateAt: 1547759566727
DeleteAt: 0
Permissions: create_post_public
SchemeManaged: 0
BuiltIn: 1
*************************** 7. row ***************************
Id: m8reegx4rby4imnciibf1u84go
Name: team_post_all
DisplayName: authentication.roles.team_post_all.name
Description: authentication.roles.team_post_all.description
CreateAt: 1547759566720
UpdateAt: 1547759566720
DeleteAt: 0
Permissions: create_post
SchemeManaged: 0
BuiltIn: 1
*************************** 8. row ***************************
Id: nhjbtrpiw78fp8rwkke9b3qcdw
Name: system_post_all
DisplayName: authentication.roles.system_post_all.name
Description: authentication.roles.system_post_all.description
CreateAt: 1547759566742
UpdateAt: 1547759566742
DeleteAt: 0
Permissions: create_post
SchemeManaged: 0
BuiltIn: 1
*************************** 9. row ***************************
Id: roqhauqozi83fxna9ryfbi8f4w
Name: system_post_all_public
DisplayName: authentication.roles.system_post_all_public.name
Description: authentication.roles.system_post_all_public.description
CreateAt: 1547759566748
UpdateAt: 1547759566748
DeleteAt: 0
Permissions: create_post_public
SchemeManaged: 0
BuiltIn: 1
*************************** 10. row ***************************
Id: waka463j1bg58po6zoffkqg4yy
Name: team_user
DisplayName: authentication.roles.team_user.name
Description: authentication.roles.team_user.description
CreateAt: 1547759566703
UpdateAt: 1547759566703
DeleteAt: 0
Permissions: list_team_channels join_public_channels read_public_channel view_team create_public_channel manage_public_channel_properties delete_public_channel create_private_channel manage_private_channel_properties delete_private_channel invite_user add_user_to_team
SchemeManaged: 1
BuiltIn: 1
*************************** 11. row ***************************
Id: xnrose16sf83dp6nxj4sqo713a
Name: system_user_access_token
DisplayName: authentication.roles.system_user_access_token.name
Description: authentication.roles.system_user_access_token.description
CreateAt: 1547759566688
UpdateAt: 1547759566688
DeleteAt: 0
Permissions: create_user_access_token read_user_access_token revoke_user_access_token
SchemeManaged: 0
BuiltIn: 1
11 rows in set (0,00 sec)
mysql> SELECT * FROM Systems WHERE Name = “EmojisPermissionsMigrationComplete”\G
*************************** 1. row ***************************
Name: EmojisPermissionsMigrationComplete
Value: true
1 row in set (0,00 sec)
mysql> SELECT * FROM Users WHERE Email="my_email@myprovider.de"\G
*************************** 1. row ***************************
Id: qjoc4j5p7pbtur34sym4ifz1yc
CreateAt: 1508298203222
UpdateAt: 1548970014364
DeleteAt: 0
Username: myUserName
Password: $2a$10$6Zlu5c3DBDcqER/Hc2byMegfRgPyBoIRwG.pd61sd6WRChXINpo2m
AuthData: NULL
AuthService:
Email: my_email@myprovider.de
EmailVerified: 1
Nickname:
FirstName:
LastName:
Position:
Roles: system_user system_admin
AllowMarketing: 0
Props: {}
NotifyProps: {“channel”:“true”,“desktop”:“all”,“desktop_sound”:“true”,“email”:“true”,“first_name”:“false”,“mention_keys”:“myUserName,@myUserName”,“push”:“mention”}
LastPasswordUpdate: 1523883374207
LastPictureUpdate: 0
FailedAttempts: 0
Locale: de
MfaActive: 0
MfaSecret:
Timezone: {“automaticTimezone”:"",“manualTimezone”:"",“useAutomaticTimezone”:“true”}
1 row in set (0,00 sec)
SOLVED: No Custom Emoji Button
And to provide you with the complete picture, I took a screenshot of the missing “Custom Emoji Button” and the corresponding page in the System Console.
SOLVED: No Custom Emoji Button
SOLVED: No Custom Emoji Button
Hi @adanial,
thank you very much for your post. I took a look at the output of
SELECT * FROM Roles\G
and compared it to the other Mattermost Instance running on my server. I saw that in the system_user’s list of permissions the “manage_emojis” permission was missing and in the system_admin’s list of permission “manage_emojis manage_others_emojis” was also missing.
I fixed this with the following SQL Statements:
UPDATE Roles SET Permissions = CONCAT(Permissions, ' manage_emojis') WHERE Name="system_user";
UPDATE Roles SET Permissions = CONCAT(Permissions, ' manage_emojis manage_others_emojis') WHERE Name="system_admin";
Reconsidering this problem, I think that it occured because of updating directly from Mattermost Version 4.0.0 to 5.7.0. As @Adanial pointed out the permissions are (since Version 4.9.0) set inside the Database and not in the config.json anymore. And during my update the permissions were not put in the database. And withouth the permisisons, no one was allowed to create Custom Emojis, hence no “Custom Emoji Button”.
Thank you guys very much for your help.
Nils
SOLVED: No Custom Emoji Button
Hello, @nils-schween
You are most welcome! I am glad that the SQL command helped to provide a hint to us to look into the specific manage_emojis and the manage_emojis manage_others_emojis. It is a good troubleshooting to compare something which is broken with something that is working to see the difference and work our way from there. Nevertheless, I am happy that the functionality is back on your system. Feel free to let us know if you bump into any other issues along the way. Thanks!
Unrecognised volume spec running preview docker image on Windows
Hey @pichouk, this seems to be an issue on Docker, or let me know if it’s not specifically docker related and I’ll post this for our devs to look at.
Unrecognised volume spec running preview docker image on Windows
@amy.blais It seems to be Docker related, but it’s related to the mattermost/mattermost-preview
Docker image, not the Production ready image (mattermost/mattermost-docker
) I maintained.
My guess is that ./mattermost-data
is not a valid path on Windows and it is the default volume path in the mattermost-preview
image. But @sparkplug seems to follow the documentation and the documentation says that it should works on Windows.
We need help from someone that know the mattermost-preview
image, if possible someone that used it on Windows.
OAuth single instance?
hi all, i am a GitLab employee and have a customer who may need multiple instances of GitLab. however, they feel their Mattermost integration prevents multiple GitLab instances due to Mattermost only supporting OAuth through a single instance. first, is this true? second, is this something that can be “fixed” or worked around? thanks in advance.
[SOLVED] Cannot access Mattermost v5.8.0-rc2 under subpath
After updating to rc4, I can access Mattermost with subpath settings!
Thanks @amy.blais!
Unread messages badge in taskbar icon in linux
I am wondering why one cannot have the red badge indicating unread messages on the taskbar icon in linux? many other apps seems to handle this fine
[SOLVED] Slash Command Issue: Address Forbidden after v4.2 Update
(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)
Address is forbidden, how do I allow access
Summary
I’m running mattermost server(5.4) locally.
url: developers.mattermost. com/contribute/server/developer-setup/.
im trying to get interactive messages working.
docs.mattermost.com/developer/interactive-messages.html
ive added “AllowedUntrustedInternalConnections” address to it.
I see the buttons i.stack.imgur.com/YGeFf.png
and when i click on the buttons, in the mattermost server logs i get the following:
“http_code”:400,“err_details”:“err=Post http://127.0.0.1:7357: address forbidden, you may need to set AllowedUntrustedInternalConnections to allow an integration access to your internal network”}
in the mattermost-server/config/config.json, ive tried updating below to various addresses
“AllowedUntrustedInternalConnections”: “0.0.0.0”
or
“localhost” , “127.0.0.1/8” “127.0.0.1”
for “127.0.0.1” i get 400 connection refused.
“http_code”:400,“err_details”:“err=Post http://127.0.0.1:7357: dial tcp 127.0.0.1:7357: connect: connection refused”}
i dont think ive overridden any with env variables(not sure how to check)
any ideas to get past the forbidden access?
Steps to reproduce
run mattermost server 5.4 locally (nothing special, standard local run with docker.
add interactive message buttons and press it
read the logs that address is forbidden
Expected behavior
expected to not have 400 error since i updated the config.json file
Observed behavior
got the error you see above.
ive tried what was shown here [SOLVED] Slash Command Issue: Address Forbidden after v4.2 Update
Email notifications for mentions not working
If email notification is not getting properly then you can check your registered email id. For instant support related to the Roadrunner Email please visit Roadrunner Email Error 0x800ccc90 for the best solution.
Broadcast channel?
Is there a way to setup a broadcast channel sending messages to Town Squares of any team?
Broadcast channel?
Hi there, @olon
Can you explain a little bit better on what you actually mean by broadcast channel sending messages? As you may know, every member of the Mattermost team is part of the Town Square by default. In this case, you can use @channel (for every users) or @here (for online users) depending on your preference to send messages to them. This was explained in an earlier post here:
Notification to ALL users on Mattermost
Since I am not entirely clear on your objective, I would prefer to get more information from your end first. Keep me posted.
Unable to send websocket requests through WAF
Just found out from the solution team that we are using Imperva Web Application Firewall. Anyone familiar with this product and how to allow secure websocket traffic?
Thanks.
What exactly is the activity icon based on?
There is already a User Suggestion marked as planned to implement this: https://mattermost.uservoice.com/forums/306457-general/suggestions/33241657-detect-if-user-is-realy-idle-away-not-just-if-w
Broadcast channel?
Sorry for being not clear. I’m trying to find a way for our Product Owner to broadcast information to all teams at once. Maybe I’m just not getting it but I wasn’t able to find a way to achieve this without inviting the PO to every team (which makes not that much sense because she isn’t a team member but the PO).
Thanks