Quantcast
Channel: Mattermost Discussion Forums - Latest topics
Viewing all 6329 articles
Browse latest View live

FileSettings.Directory not respected by bulk export tool

$
0
0

Hello!

I am running Mattermost Team Edition 5.25 and am running into an issue with the bulk export tool:

mattermost@hostname:/var/lib/mattermost$ ./bin/mattermost export bulk out.json
{"level":"info","ts":1595340223.2989829,"caller":"utils/i18n.go:83","msg":"Loaded system translations","for locale":"en","from locale":"/var/lib/mattermost/i18n/en.json"}
{"level":"info","ts":1595340223.2992501,"caller":"app/server_app_adapters.go:58","msg":"Server is initializing..."}
{"level":"info","ts":1595340223.3029568,"caller":"sqlstore/supplier.go:227","msg":"Pinging SQL","database":"master"}
{"level":"info","ts":1595340223.5842798,"caller":"app/license.go:40","msg":"License key from https://mattermost.com required to unlock enterprise features."}
{"level":"info","ts":1595340223.5965817,"caller":"mlog/log.go:167","msg":"Starting up plugins"}
{"level":"info","ts":1595340223.5966902,"caller":"app/plugin.go:202","msg":"Syncing plugins from the file store"}
{"level":"info","ts":1595340224.1485968,"caller":"mlog/sugar.go:19","msg":"Ensuring Surveybot exists","plugin_id":"com.mattermost.nps"}
{"level":"info","ts":1595340224.1664796,"caller":"app/server.go:273","msg":"Current version is 5.25.0 (5.25.0/Wed Jul 15 16:22:44 UTC 2020/0e46bac9fdd8c1140ad0e036104735fb4cbebef3/b544b15ccc487c8b438c786f6f54847071786920)","current_version":"5.25.0","build_number":"5.25.0","build_date":"Wed Jul 15 16:22:44 UTC 2020","build_hash":"0e46bac9fdd8c1140ad0e036104735fb4cbebef3","build_hash_enterprise":"b544b15ccc487c8b438c786f6f54847071786920"}
{"level":"info","ts":1595340224.166563,"caller":"app/server.go:282","msg":"Enterprise Build","enterprise_build":true}
{"level":"info","ts":1595340224.166597,"caller":"app/server.go:288","msg":"Printing current working","directory":"/var/lib/mattermost"}
{"level":"info","ts":1595340224.166621,"caller":"app/server.go:289","msg":"Loaded config","source":"file:///var/lib/mattermost/config/config.json"}
{"level":"info","ts":1595340224.1809533,"caller":"sqlstore/post_store.go:1571","msg":"Post.Message has size restrictions","max_characters":16383,"max_bytes":65535}
{"level":"info","ts":1595340224.2319896,"caller":"bleveengine/bleve.go:267","msg":"UpdateConf Bleve"}
{"level":"info","ts":1595340224.23319,"caller":"app/license.go:40","msg":"License key from https://mattermost.com required to unlock enterprise features."}
{"level":"info","ts":1595340224.2458985,"caller":"app/export.go:57","msg":"Bulk export: exporting version"}
{"level":"info","ts":1595340224.2464123,"caller":"app/export.go:62","msg":"Bulk export: exporting teams"}
{"level":"info","ts":1595340224.249107,"caller":"app/export.go:67","msg":"Bulk export: exporting channels"}
{"level":"info","ts":1595340224.2530622,"caller":"app/export.go:72","msg":"Bulk export: exporting users"}
{"level":"info","ts":1595340224.3575327,"caller":"app/export.go:77","msg":"Bulk export: exporting posts"}
{"level":"info","ts":1595340294.3842757,"caller":"app/export.go:82","msg":"Bulk export: exporting emoji"}
BulkExport: Unable to copy custom emoji images, err=Error reading data/emoji/yneq4mm4ctn5f8e773646fa8za/imagefile
{"level":"info","ts":1595340294.4187405,"caller":"app/server.go:416","msg":"Stopping Server..."}
{"level":"info","ts":1595340294.4188159,"caller":"app/web_hub.go:130","msg":"stopping websocket hub connections"}
{"level":"info","ts":1595340294.4196887,"caller":"app/plugin.go:279","msg":"Shutting down plugins"}
{"level":"info","ts":1595340294.4263282,"caller":"app/server.go:469","msg":"Server stopped"}
Error: BulkExport: Unable to copy custom emoji images, err=Error reading data/emoji/yneq4mm4ctn5f8e773646fa8za/imagefile
Usage:
  mattermost export bulk [file] [flags]

Examples:
export bulk bulk_data.json

Flags:
      --all-teams   Export all teams from the server. (default true)
  -h, --help        help for bulk

Global Flags:
  -c, --config string        Configuration file to use. (default "config.json")
      --disableconfigwatch   When set config.json will not be loaded from disk when the file is changed.

As far as I can tell, this is caused by having my files directory outside of the mattermost installation directory:

mattermost@hostname:/var/lib/mattermost$ ./bin/mattermost config get FileSettings.Directory
FileSettings.Directory: "/srv/files-mattermost/data/"

If I create a symlink at /var/lib/mattermost/data pointing to /srv/files-mattermost/data, it fixes the issue. Is this expected behavior, or should I create an issue on GitHub?

1 post - 1 participant

Read full topic


Mattermost android recommended client

$
0
0

Good afternoon,

What’s the most recommended app for accessing Mattermost from Android?. It seems the one that better works across all versions to be the Mattermost classic app… I have seen for instance the Mattermost beta and the Mattermost (as it’s named) app, not to be able for instance of adding new channels…

What’s the recommended one?. The classic?.

Cheers!

8 posts - 3 participants

Read full topic

Support tls 1.2 in mattermost-docker

$
0
0

Hi,

I am using mattermost-docker latest version. I want to config tls 1.2 for web container. Currently my mattermost instance supports TLS 1.0 and TLS 1.1. Grade limit to B.

…/volumes/web/cert

cert.pem
chain.pem
fullchain.pem
key-no-password.pem

The certifying authority is Let’s encrypt.

How to config to support also tls 1.2 and obtain Grade A?

Thanks

1 post - 1 participant

Read full topic

Can't Start Mattermost

$
0
0

The IP addresses of the Mattermost server were static changed from DHCP and the server was restarted.

There is no response to the command below and it is not possible to access the Mattermost web interface. What could be the problem with this?

sudo systemctl start mattermost

Mattermost version: 5.23 or 5.24 (I’m not sure)

Thank you.

1 post - 1 participant

Read full topic

Upgrading Mattermost on ‪Debian 8.11‬

$
0
0

Hello, Running into an issue when trying to update Mattermost from 5.13.1 to 5.25.0 .

OS: Debian 8.11
CP: Plesk

Fairly new to command line usage but advanced knowledgeable enough to be catching on.

Using https://docs.mattermost.com/administration/upgrade.html as guide: receiving an error at step 5 that says

Failed to stop mattermost.service: Unit mattermost.service not loaded.

Any help and advisement on how to continue with upgrade would be appreciated

1 post - 1 participant

Read full topic

Search Modifiers Not Working [Resolved]

$
0
0

Summary

Search Modifiers Before, After, On, Exclusions do not work

Steps to reproduce

Web Version: 4.2.0, Database: postgres
Client version is 4.5.2 on Windows, Mac.
I don’t know what server version is used. Is that the Web version?

Enter a search like “lunch before:2020-07-20” and no results even though the term “lunch” appears in search before that date.

Expected behavior

Search Modifiers behave as defined in documentation.

Observed behavior

enter before:, after:, or on: and no date picker shows up and will get no results found.

3 posts - 2 participants

Read full topic

Quality release and push notifications

$
0
0

Good morning,

This is a two question in a single thread :slight_smile:

We are running Mattermost 5.24.2 Team edition on some servers. It seems like there’s an issue with the user status detection. For instance, I was not using a computer for more than 30 minutes yesterday and I didn’t receive a push notification (at least the email notifying me I had been contacted by a direct message). The config running in that instance is : https://ramattacknet.storage.saremail.com/index.php/s/Bkr9DiKeoSoFATE and the password for fetching the file is “Foro_maT$” without the double quotes.

This is why I was wondering when the quality release for the features I use (basically the group view of non read messages and Jitsi plugin) would be released. The present 5.25 is a ESR, but not a quality release… so could you know or have some sort of aproximation about when it would become available?.

Best regards,

2 posts - 2 participants

Read full topic

Push notifications work sometimes and other times (when its crucal) they dont

$
0
0

I have been plagued with issues related to notifications on my android phone since the beginning of using this application. I have reinstalled many times, upgrade the software as soon as an update is released. I will have messages sent directly to me and no notification on my phone. This is affecting my availability to my techs because they are messaging me and because I don’t get the notification they think I am busy or not able to assist them. I have resorted to just telling them to call me or text me rather than use the program we should be using for business communication.

I have adjusted the android Battery Optimization to “Not Optimized” and no change.

I have a pixel 4XL but this also happened on my pixel 2XL.

To add to this it seems like if I am active on my phone and periodically using mattermost then I do get the notifications but if I am not like after work they just don’t come in no matter how many times someone messages me or tags me.

3 posts - 2 participants

Read full topic


RECIPE: Set custom theme as the default for all new users [unsupported recipe]

$
0
0

Hi All,
We occasionally get requests from customers to introduce a feature to allow system admins to setup a custom theme as the default for all users on the system. This feature is being looked, but in the near term there is an option to achieve this now.

WARNING: The approach involves using direct database calls, so as a customer facing engineer I’m generally never going to recommend this kind of approach as it is circumventing our API, and could break in the future.

With the warning in place, I’ll still share the recipe for MYSQL in case you’re interested (a similar approach works for Postgres as well). The idea here is we are creating a row-level trigger on the Users table that will automatically create a theme entry in the Preferences table.

I’m basing these notes off what I reviewed here.

The trigger you’d create in MYSQL would be something like the following (adapting the block of theme colour value in single quotes to the theme values you want):

CREATE TRIGGER set_default_theme
AFTER INSERT ON users
FOR EACH ROW
INSERT INTO preferences(userid, category, name, value) VALUES (NEW.id, 'theme', '', '{"sidebarBg":"#2f3136","sidebarText":"#8f9297","sidebarUnreadText":"#dcddde","sidebarTextHoverBg":"#35363c","sidebarTextActiveBorder":"#35363c","sidebarTextActiveColor":"#dcddde","sidebarHeaderBg":"#282b30","sidebarHeaderTextColor":"#818386","onlineIndicator":"#64b285","awayIndicator":"#eea941","dndIndicator":"#b74b47","mentionBj":"#ffffff","mentionColor":"#dcddde","centerChannelBg":"#36393e","centerChannelColor":"#dcddde","newMessageSeparator":"#eea941","linkColor":"#7289da","buttonBg":"#43b581","buttonColor":"#ffffff","errorTextColor":"#fd5960","mentionHighlightBg":"#36393e","mentionHighlightLink":"#7289da","codeTheme":"monokai","mentionBg":"#7289da"}');

Once this is complete, you can list the trigger using:

SHOW TRIGGERS;

Try creating a new user and see if their theme is automatically set. You can also query the Preferences table for that new user to see if you see the inserted theme value:

SELECT * FROM preferences;

If you want some ideas for interesting Mattermost Themes please have a look at this link.

One last thing I’ll add. The above recipe will set the theme for brand new users in the system, but if you want to update the theme for existing users you’ll need to do something different. One option would be ot use our Preferences API Endpoint or you can use a similar DB call as you see in the trigger above. Something like:

UPDATE preferences SET value = '{"sidebarBg":"#2f3136","sidebarText":"#8f9297","sidebarUnreadText":"#dcddde","sidebarTextHoverBg":"#35363c","sidebarTextActiveBorder":"#35363c","sidebarTextActiveColor":"#dcddde","sidebarHeaderBg":"#282b30","sidebarHeaderTextColor":"#818386","onlineIndicator":"#64b285","awayIndicator":"#eea941","dndIndicator":"#b74b47","mentionBj":"#ffffff","mentionColor":"#dcddde","centerChannelBg":"#36393e","centerChannelColor":"#dcddde","newMessageSeparator":"#eea941","linkColor":"#7289da","buttonBg":"#43b581","buttonColor":"#ffffff","errorTextColor":"#fd5960","mentionHighlightBg":"#36393e","mentionHighlightLink":"#7289da","codeTheme":"monokai","mentionBg":"#7289da"}' where category = 'theme'

As always, I’d recommend you test this with specific users, and in staging or development environments, prior to rolling out into production.

Please let me know if you have any questions.

1 post - 1 participant

Read full topic

Can you widen the channel column to read long channel names

$
0
0

We have long channel names that show the department, then purpose. It is a lovely structure, but the channel names are long, and the channel column is too narrow to read them all.

1 post - 1 participant

Read full topic

Mattermost recipe: Client notifications on macOS

$
0
0

Some of our users had problems regarding the notification settings in macOS’ system preferences and the desktop app. The main confusion is about the absence of the Mattermost entry in this settings menu and the reason is quite simple. If one haven’t got any notifications from the desktop app (this is true for every other app as well) nothing is registered in the settings menu because macOS simply doesn’t know anything about the notifications from this specific app at this point. After receiving the first notification macOS should ask if these notifications are allowed or not. If ‘Don’t allow’ was clicked or no dialog shows up like below

the notification settings can be removed with a rather complicated method. To reset this the /Users/$USER/Library/Preferences/com.apple.ncprefs.plist file needs to be altered; this can be done with preinstalled macOS tools or GUI programs from the Internet.
On my macOS this plist file was in binary format (plist files can be in json, xml or binary format) and therefore this needs to be converted first. With plutil -convert xml1 /Users/$USER/Library/Preferences/com.apple.ncprefs.plist this file can be made readable and afterwards i edited this with a text editor. There is also a tool called defaults which can write keys but because the notification settings are stored as dictionaries in an one key array this will be not easy to alter.
After the file was converted one can search in the text editor for an entry similar (with the same bundle-id but different data) to mine

and delete this dictionary altogether; from the first <dict> to the last </dict> as seen in the screenshot.
Now i converted the file back to binary format with plutil -convert binary1 /Users/$USER/Library/Preferences/com.apple.ncprefs.plist and logged out. After logging in back to my user the previous setting is gone and at the first notification received i was asked again.

1 post - 1 participant

Read full topic

Cannot make the attachment disappear after hitting updated button

Latest stable/mattermost-team-edition failing with "validation error"

$
0
0

Summary

Running helm install stable/mattermost-team-edition fails with "Error: validation failed: unable to recognize “”: no matches for kind “Deployment” in version “extensions/v1beta1"”

Steps to reproduce

Run helm install stable/mattermost-team-edition with latest chart available

Expected behavior

Successfully run and deploy a mattermost instance

Observed behavior

ubuntu@proxy-k8s:~ kubectl version Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.7", GitCommit:"b4455102ef392bf7d594ef96b97a4caa79d729d9", GitTreeState:"clean", BuildDate:"2020-06-17T11:39:47Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.9+IKS", GitCommit:"dbe4e8a5c169e0a6a8a9b7b183561fa61e161985", GitTreeState:"clean", BuildDate:"2020-07-16T01:30:57Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"} ubuntu@proxy-k8s:~ helm version
Client: &version.Version{SemVer:“v2.16.9”, GitCommit:“8ad7037828e5a0fca1009dabe290130da6368e39”, GitTreeState:“clean”}
Server: &version.Version{SemVer:“v2.16.9”, GitCommit:“8ad7037828e5a0fca1009dabe290130da6368e39”, GitTreeState:“clean”}

2 posts - 2 participants

Read full topic

[feature] purge or store uploaded media in another service

$
0
0

Hello,

Like Mattermost clients made very easy to upload media (image, document, …) in a message, after years, messages database can get very very large.

2 plugin ideas come to me :

  • a plugin that add a time to live on media, like after that TTL it will be purged, and only the message’s text stay in database
  • a plugin that store media in an external Image Sharing Service (like Lutim or others)

Thanks for your comments :slight_smile:
Cyrille

3 posts - 2 participants

Read full topic

Cypress Test Automation Hackfest Kickoff

$
0
0

Cypress Test Automation Hackfest :rocket:

Win an exclusive Mattermost swag bag by making five contributions to the Cypress Test Automation campaign between July 27 and August 31, 2020. Plus top-3 contributors receive a special prize!

The Mattermost team is working on automating feature testing of the webapp to

  1. Decrease time to ship a bug fix release
  2. Raise the quality of the software by reducing number of manual tests

We’re excited to work with our community to significantly increase automated test coverage by August 31! In addition to making a huge impact on the project, you’ll get experience working with Cypress, one of the most popular open source test automation frameworks.

If it’s your first time contributing to Mattermost, you’ll also receive a custom-printed Mattermost Mug!

How to get involved?

Participate in three simple steps:

  1. Join our Hackfest: Test Automation channel in Mattermost.
  2. Review test cases ready for automation. Find one you’re interested in and either post in the Hackfest: Test Automation channel, or comment in the spreadsheet. This will let others know you’re working on it.
  3. Create a pull request to add a Cypress test automation using this guide: https://developers.mattermost.com/contribute/webapp/end-to-end-tests/#guide-for-writing-e2e-testing
Event details
  1. Event runs from July 27 to August 31, 2020. Any submitted PRs must be merged by September 14th 4:00 PM San Francisco time to qualify. Those closed by maintainers as incomplete, invalid or spam are not counted.
  2. Five merged pull requests wins you a swag bag!
  3. Top-3 contributors, evaluated by # of contributions to this hackfest, win a special prize.
  4. If it’s your first time contributing to Mattermost, you’ll receive a custom-printed Mattermost Mug.
Resources

1 post - 1 participant

Read full topic


Desktop notifications not working - Not Sent due to preferences

$
0
0

Hi guys,

I’m trying to get my Mattermost server working and seem to be unable to get Desktop notifications working. I do get sound, but not a pop-up telling someone sent a message and allowing to click on it.

I found the following message in my logs:

server mattermost: {"level":"warn","ts":1595930324.7633326,"caller":"app/notification.go:315","msg":"Notification not sent","logSource":"notifications","ackId":"","type":"message","userId":"jbbz4jmugbrtdm6yon6h5two6c","postId":"54bgi6qrabn37gzdz6xf9n8c5y","status":"Not Sent due to preferences"}

Unfortunately it didn’t tell me which of the preferences it is that’s blocking this, and looking at their names I am yet unable to find the correct one. My config file looks as follows:

{
    "ServiceSettings": {
        "SiteURL": "mydomain.com/mattermost",
        "WebsocketURL": "",
        "LicenseFileLocation": "",
        "ListenAddress": "127.0.0.1:18000",
        "ConnectionSecurity": "",
        "TLSCertFile": "",
        "TLSKeyFile": "",
        "TLSMinVer": "1.2",
        "TLSStrictTransport": false,
        "TLSStrictTransportMaxAge": 63072000,
        "TLSOverwriteCiphers": [],
        "UseLetsEncrypt": false,
        "LetsEncryptCertificateCacheFile": "./config/letsencrypt.cache",
        "Forward80To443": false,
        "TrustedProxyIPHeader": [
            "X-Forwarded-For",
            "X-Real-IP"
        ],
        "ReadTimeout": 300,
        "WriteTimeout": 300,
        "MaximumLoginAttempts": 10,
        "GoroutineHealthThreshold": -1,
        "GoogleDeveloperKey": "",
        "EnableOAuthServiceProvider": false,
        "EnableIncomingWebhooks": true,
        "EnableOutgoingWebhooks": true,
        "EnableCommands": true,
        "EnableOnlyAdminIntegrations": true,
        "EnablePostUsernameOverride": false,
        "EnablePostIconOverride": false,
        "EnableLinkPreviews": false,
        "EnableTesting": false,
        "EnableDeveloper": false,
        "EnableSecurityFixAlert": true,
        "EnableInsecureOutgoingConnections": false,
        "AllowedUntrustedInternalConnections": "",
        "EnableMultifactorAuthentication": true,
        "EnforceMultifactorAuthentication": true,
        "EnableUserAccessTokens": false,
        "AllowCorsFrom": "*",
        "CorsExposedHeaders": "",
        "CorsAllowCredentials": false,
        "CorsDebug": false,
        "AllowCookiesForSubdomains": false,
        "SessionLengthWebInDays": 180,
        "SessionLengthMobileInDays": 180,
        "SessionLengthSSOInDays": 30,
        "SessionCacheInMinutes": 10,
        "SessionIdleTimeoutInMinutes": 43200,
        "WebsocketSecurePort": 443,
        "WebsocketPort": 80,
        "WebserverMode": "gzip",
        "EnableCustomEmoji": false,
        "EnableEmojiPicker": true,
        "EnableGifPicker": false,
        "GfycatApiKey": "2_KtH_W5",
        "GfycatApiSecret": "3wLVZPiswc3DnaiaFoLkDvB4X0IV6CpMkj4tf2inJRsBY6-FnkT08zGmppWFgeof",
        "RestrictCustomEmojiCreation": "all",
        "RestrictPostDelete": "all",
        "AllowEditPost": "always",
        "PostEditTimeLimit": -1,
        "TimeBetweenUserTypingUpdatesMilliseconds": 5000,
        "EnablePostSearch": true,
        "MinimumHashtagLength": 3,
        "EnableUserTypingMessages": true,
        "EnableChannelViewedMessages": true,
        "EnableUserStatuses": true,
        "ExperimentalEnableAuthenticationTransfer": true,
        "ClusterLogTimeoutMilliseconds": 2000,
        "CloseUnusedDirectMessages": false,
        "EnablePreviewFeatures": false,
        "EnableTutorial": true,
        "ExperimentalEnableDefaultChannelLeaveJoinMessages": true,
        "ExperimentalGroupUnreadChannels": "disabled",
        "ExperimentalChannelOrganization": false,
        "ImageProxyType": "",
        "ImageProxyURL": "",
        "ImageProxyOptions": "",
        "EnableAPITeamDeletion": false,
        "ExperimentalEnableHardenedMode": false,
        "DisableLegacyMFA": true,
        "ExperimentalStrictCSRFEnforcement": false,
        "EnableEmailInvitations": false,
        "ExperimentalLdapGroupSync": false,
        "DisableBotsWhenOwnerIsDeactivated": true,
        "EnableBotAccountCreation": false
    },
    "TeamSettings": {
        "SiteName": "Mattermost",
        "MaxUsersPerTeam": 50,
        "EnableTeamCreation": true,
        "EnableUserCreation": false,
        "EnableOpenServer": false,
        "EnableUserDeactivation": false,
        "RestrictCreationToDomains": "",
        "EnableCustomBrand": false,
        "CustomBrandText": "",
        "CustomDescriptionText": "",
        "RestrictDirectMessage": "any",
        "RestrictTeamInvite": "all",
        "RestrictPublicChannelManagement": "all",
        "RestrictPrivateChannelManagement": "all",
        "RestrictPublicChannelCreation": "all",
        "RestrictPrivateChannelCreation": "all",
        "RestrictPublicChannelDeletion": "all",
        "RestrictPrivateChannelDeletion": "all",
        "RestrictPrivateChannelManageMembers": "all",
        "EnableXToLeaveChannelsFromLHS": false,
        "UserStatusAwayTimeout": 300,
        "MaxChannelsPerTeam": 2000,
        "MaxNotificationsPerChannel": 1000000,
        "EnableConfirmNotificationsToChannel": true,
        "TeammateNameDisplay": "username",
        "ExperimentalViewArchivedChannels": false,
        "ExperimentalEnableAutomaticReplies": false,
        "ExperimentalHideTownSquareinLHS": false,
        "ExperimentalTownSquareIsReadOnly": false,
        "ExperimentalPrimaryTeam": "",
        "ExperimentalDefaultChannels": []
    },
    "ClientRequirements": {
        "AndroidLatestVersion": "",
        "AndroidMinVersion": "",
        "DesktopLatestVersion": "",
        "DesktopMinVersion": "",
        "IosLatestVersion": "",
        "IosMinVersion": ""
    },
    "SqlSettings": {
        "DriverName": "postgres",
        "DataSource": "postgres://mmost_383bef00:10siab1ybaakq2in99cegwhq@127.0.0.1:5432/mattermost_383bef00?sslmode=disable\u0026connect_timeout=10",
        "DataSourceReplicas": [],
        "DataSourceSearchReplicas": [],
        "MaxIdleConns": 20,
        "ConnMaxLifetimeMilliseconds": 3600000,
        "MaxOpenConns": 300,
        "Trace": false,
        "AtRestEncryptKey": "i8qgdje7qkf1rup7napjwcx5s7dtfzk7",
        "QueryTimeout": 30
    },
    "LogSettings": {
        "EnableConsole": true,
        "ConsoleLevel": "INFO",
        "ConsoleJson": true,
        "EnableFile": true,
        "FileLevel": "INFO",
        "FileJson": true,
        "FileLocation": "",
        "EnableWebhookDebugging": true,
        "EnableDiagnostics": true
    },
    "NotificationLogSettings": {
        "EnableConsole": true,
        "ConsoleLevel": "INFO",
        "ConsoleJson": true,
        "EnableFile": true,
        "FileLevel": "INFO",
        "FileJson": true,
        "FileLocation": ""
    },
    "PasswordSettings": {
        "MinimumLength": 5,
        "Lowercase": false,
        "Number": false,
        "Uppercase": false,
        "Symbol": false
    },
    "FileSettings": {
        "EnableFileAttachments": true,
        "EnableMobileUpload": true,
        "EnableMobileDownload": true,
        "MaxFileSize": 52428800,
        "DriverName": "local",
        "Directory": "./data/",
        "EnablePublicLink": false,
        "PublicLinkSalt": "h3mwstizubbhc9bgt5scm8r1gxu4ywxt",
        "InitialFont": "nunito-bold.ttf",
        "AmazonS3AccessKeyId": "",
        "AmazonS3SecretAccessKey": "",
        "AmazonS3Bucket": "",
        "AmazonS3Region": "",
        "AmazonS3Endpoint": "s3.amazonaws.com",
        "AmazonS3SSL": true,
        "AmazonS3SignV2": false,
        "AmazonS3SSE": false,
        "AmazonS3Trace": false
    },
    "EmailSettings": {
        "EnableSignUpWithEmail": true,
        "EnableSignInWithEmail": true,
        "EnableSignInWithUsername": true,
        "SendEmailNotifications": true,
        "UseChannelInEmailNotifications": false,
        "RequireEmailVerification": false,
        "FeedbackName": "",
        "FeedbackEmail": "transip@cptest.supporttest.nl",
        "ReplyToAddress": "transip@cptest.supporttest.nl",
        "FeedbackOrganization": "",
        "EnableSMTPAuth": false,
        "SMTPUsername": "",
        "SMTPPassword": "",
        "SMTPServer": "127.0.0.1",
        "SMTPPort": "25",
        "ConnectionSecurity": "",
        "SendPushNotifications": true,
        "PushNotificationServer": "https://push-test.mattermost.com",
        "PushNotificationContents": "generic",
        "EnableEmailBatching": false,
        "EmailBatchingBufferSize": 256,
        "EmailBatchingInterval": 30,
        "EnablePreviewModeBanner": false,
        "SkipServerCertificateVerification": false,
        "EmailNotificationContentsType": "full",
        "LoginButtonColor": "#0000",
        "LoginButtonBorderColor": "#2389D7",
        "LoginButtonTextColor": "#2389D7"
    },
    "RateLimitSettings": {
        "Enable": false,
        "PerSec": 10,
        "MaxBurst": 100,
        "MemoryStoreSize": 10000,
        "VaryByRemoteAddr": true,
        "VaryByUser": false,
        "VaryByHeader": ""
    },
    "PrivacySettings": {
        "ShowEmailAddress": true,
        "ShowFullName": true
    },
    "SupportSettings": {
        "TermsOfServiceLink": "https://about.mattermost.com/default-terms/",
        "PrivacyPolicyLink": "https://about.mattermost.com/default-privacy-policy/",
        "AboutLink": "https://about.mattermost.com/default-about/",
        "HelpLink": "https://about.mattermost.com/default-help/",
        "ReportAProblemLink": "https://about.mattermost.com/default-report-a-problem/",
        "SupportEmail": "feedback@mattermost.com",
        "CustomTermsOfServiceEnabled": false,
        "CustomTermsOfServiceReAcceptancePeriod": 365
    },
    "AnnouncementSettings": {
        "EnableBanner": false,
        "BannerText": "",
        "BannerColor": "#f2a93b",
        "BannerTextColor": "#333333",
        "AllowBannerDismissal": true
    },
    "ThemeSettings": {
        "EnableThemeSelection": true,
        "DefaultTheme": "default",
        "AllowCustomThemes": true,
        "AllowedThemes": []
    },
    "GitLabSettings": {
        "Enable": false,
        "Secret": "",
        "Id": "",
        "Scope": "",
        "AuthEndpoint": "",
        "TokenEndpoint": "",
        "UserApiEndpoint": ""
    },
    "GoogleSettings": {
        "Enable": false,
        "Secret": "",
        "Id": "",
        "Scope": "profile email",
        "AuthEndpoint": "https://accounts.google.com/o/oauth2/v2/auth",
        "TokenEndpoint": "https://www.googleapis.com/oauth2/v4/token",
        "UserApiEndpoint": "https://www.googleapis.com/plus/v1/people/me"
    },
    "Office365Settings": {
        "Enable": false,
        "Secret": "",
        "Id": "",
        "Scope": "User.Read",
        "AuthEndpoint": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize",
        "TokenEndpoint": "https://login.microsoftonline.com/common/oauth2/v2.0/token",
        "UserApiEndpoint": "https://graph.microsoft.com/v1.0/me"
    },
    "LdapSettings": {
        "Enable": false,
        "EnableSync": false,
        "LdapServer": "",
        "LdapPort": 389,
        "ConnectionSecurity": "",
        "BaseDN": "",
        "BindUsername": "",
        "BindPassword": "",
        "UserFilter": "",
        "GroupFilter": "",
        "GroupDisplayNameAttribute": "",
        "GroupIdAttribute": "",
        "FirstNameAttribute": "",
        "LastNameAttribute": "",
        "EmailAttribute": "",
        "UsernameAttribute": "",
        "NicknameAttribute": "",
        "IdAttribute": "",
        "PositionAttribute": "",
        "LoginIdAttribute": "",
        "SyncIntervalMinutes": 60,
        "SkipCertificateVerification": false,
        "QueryTimeout": 60,
        "MaxPageSize": 0,
        "LoginFieldName": "",
        "LoginButtonColor": "",
        "LoginButtonBorderColor": "",
        "LoginButtonTextColor": ""
    },
    "ComplianceSettings": {
        "Enable": false,
        "Directory": "./data/",
        "EnableDaily": false
    },
    "LocalizationSettings": {
        "DefaultServerLocale": "en",
        "DefaultClientLocale": "en",
        "AvailableLocales": ""
    },
    "SamlSettings": {
        "Enable": false,
        "EnableSyncWithLdap": false,
        "EnableSyncWithLdapIncludeAuth": false,
        "Verify": true,
        "Encrypt": true,
        "IdpUrl": "",
        "IdpDescriptorUrl": "",
        "AssertionConsumerServiceURL": "",
        "ScopingIDPProviderId": "",
        "ScopingIDPName": "",
        "IdpCertificateFile": "",
        "PublicCertificateFile": "",
        "PrivateKeyFile": "",
        "IdAttribute": "",
        "FirstNameAttribute": "",
        "LastNameAttribute": "",
        "EmailAttribute": "",
        "UsernameAttribute": "",
        "NicknameAttribute": "",
        "LocaleAttribute": "",
        "PositionAttribute": "",
        "LoginButtonText": "SAML",
        "LoginButtonColor": "",
        "LoginButtonBorderColor": "",
        "LoginButtonTextColor": ""
    },
    "NativeAppSettings": {
        "AppDownloadLink": "https://about.mattermost.com/downloads/",
        "AndroidAppDownloadLink": "https://about.mattermost.com/mattermost-android-app/",
        "IosAppDownloadLink": "https://about.mattermost.com/mattermost-ios-app/"
    },
    "ClusterSettings": {
        "Enable": false,
        "ClusterName": "",
        "OverrideHostname": "",
        "UseIpAddress": true,
        "UseExperimentalGossip": false,
        "ReadOnlyConfig": true,
        "GossipPort": 8074,
        "StreamingPort": 8075,
        "MaxIdleConns": 100,
        "MaxIdleConnsPerHost": 128,
        "IdleConnTimeoutMilliseconds": 90000
    },
    "MetricsSettings": {
        "Enable": false,
        "BlockProfileRate": 0,
        "ListenAddress": ":8067"
    },
    "ExperimentalSettings": {
        "ClientSideCertEnable": false,
        "ClientSideCertCheck": "secondary",
        "EnableClickToReply": false,
        "LinkMetadataTimeoutMilliseconds": 5000,
        "RestrictSystemAdmin": false
    },
    "AnalyticsSettings": {
        "MaxUsersForStatistics": 2500
    },
    "ElasticsearchSettings": {
        "ConnectionUrl": "http://dockerhost:9200",
        "Username": "elastic",
        "Password": "changeme",
        "EnableIndexing": false,
        "EnableSearching": false,
        "EnableAutocomplete": false,
        "Sniff": true,
        "PostIndexReplicas": 1,
        "PostIndexShards": 1,
        "ChannelIndexReplicas": 1,
        "ChannelIndexShards": 1,
        "UserIndexReplicas": 1,
        "UserIndexShards": 1,
        "AggregatePostsAfterDays": 365,
        "PostsAggregatorJobStartTime": "03:00",
        "IndexPrefix": "",
        "LiveIndexingBatchSize": 1,
        "BulkIndexingTimeWindowSeconds": 3600,
        "RequestTimeoutSeconds": 30,
        "SkipTLSVerification": false
    },
    "DataRetentionSettings": {
        "EnableMessageDeletion": false,
        "EnableFileDeletion": false,
        "MessageRetentionDays": 365,
        "FileRetentionDays": 365,
        "DeletionJobStartTime": "02:00"
    },
    "MessageExportSettings": {
        "EnableExport": false,
        "ExportFormat": "actiance",
        "DailyRunTime": "01:00",
        "ExportFromTimestamp": 0,
        "BatchSize": 10000,
        "GlobalRelaySettings": {
            "CustomerType": "A9",
            "SmtpUsername": "",
            "SmtpPassword": "",
            "EmailAddress": ""
        }
    },
    "JobSettings": {
        "RunJobs": true,
        "RunScheduler": true
    },
    "PluginSettings": {
        "Enable": false,
        "EnableUploads": false,
        "EnableHealthCheck": true,
        "Directory": "./plugins",
        "ClientDirectory": "./client/plugins",
        "Plugins": {},
        "PluginStates": {
            "com.mattermost.nps": {
                "Enable": true
            }
        }
    },
    "DisplaySettings": {
        "CustomUrlSchemes": [],
        "ExperimentalTimezone": false
    },
    "ImageProxySettings": {
        "Enable": false,
        "ImageProxyType": "local",
        "RemoteImageProxyURL": "",
        "RemoteImageProxyOptions": ""
    }
}

edit: Client side I tested it on 2 Windows 10 devices latest versions of Firefox and Edge, Ubuntu 18.04 with Firefox. I had some other people also test this and I believe they were running various versions of MacOS, a Windows 10 client or 2 and some Linux distros using various different browsers. Considering the amount of people that were having this issue I assumed the problem is not clientside.

Serverside I’m running an up-to-date Plesk server on CentOS 7 with Mattermost 5.13.1-0.

5 posts - 2 participants

Read full topic

A list of all channels with all users in them

$
0
0

Hello.

Over the years, our colleagues have created many private channels where they communicate with specific people. Now my boss wants to know which channels are used by whom and which channels are unused and can be deleted. Since no one is in all groups, this probably has to be done through the CLI. Is there a simple and nice solution for this?
The output should look something like this:

  • Channel1
    User 1
    User 2
    User 3
  • Channel 2
    User 1
    User 5
    User 6
  • Channel 3
  • Channel 4

Regards
Thomas

4 posts - 2 participants

Read full topic

IOS app forces login on app open every time

$
0
0

Once you close the app from the app tray and try to re-open the app it reloads the splashscreen and takes the user to the login page again.

Session length is set for 30 days, but it is not saving the current app user at all if the app is closed. Everything else works as expected and notifications work if the app is minimized and closed/removed from app tray.

Forked from this commit

2 posts - 2 participants

Read full topic

Websocket socketcluster connect failed

$
0
0

Hi:

Summary

WebSocket connection to ‘ws://localhost:5678/socketcluster/’ failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
I got server and client running on my local machine and able to send and receive message, but browser console keeps showing error WebSocket connection to ‘ws://localhost:5678/socketcluster/’ failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED from file sctransport.js:10, anyone knows how to fix this issue

Steps to reproduce

Run server and web on local machine

Expected behavior

Should be no such error

Observed behavior

Console error

Thanks

1 post - 1 participant

Read full topic

Bug: Invite rate limit applied silently, undocumented

$
0
0

Summary

API invites by email are silently rate-limited, and rate limits are undocumented.

Steps to reproduce

Using 5.25.1, attempt to call the Invite users to the team by email API call with a list of more than 20 email addresses.
http://your-mattermost-url.com/api/v4/teams/{team_id}/invite/email

Expected behavior

If rate limiting is applied, the API call should fail. Rate limiting should be documented in the API reference.

I would expect an HTTP response code in the 400 range. Possibly 413 (request entity too large) with a retry-after header indicating when the next batch could be accepted.

Observed behavior

The API returned a 200 result code, and mattermost wrote the following to its log:

{"level":"error","ts":1596150191.2522833,"caller":"mlog/log.go:175","msg":"Invite emails rate limited.","user_id":"gst7u7g9zbdsbmiesiwkjnuqcw","team_id":"pieu7ohjkibntm6jko86jxrgao","retry_after":"-1ns"}

The only reference I can find to this rate limit is in this other forum post. I can’t find it in the general documentation, and it is definitely not documented in the API reference.

It seems to me that the API call should be updated to include a result code that indicates the list of addresses is too large (e.g. 413). The parameters of the rate limit should also be documented (how many email addresses are allowed … how long one must wait before sending more … etc).

If the rate limit could be made configurable that would also be useful.

In the mean time, can someone clarify for me exactly what limits are placed on this call?

Thanks!

4 posts - 2 participants

Read full topic

Viewing all 6329 articles
Browse latest View live