Quantcast
Channel: Mattermost Discussion Forums - Latest posts
Viewing all 25788 articles
Browse latest View live

Android not attaching gallery images (Mobile Iron)

$
0
0

Hello there!

We use Mattermost with Mobile Iron (Android Enterprise). When attempting to attach photo from gallery the following situation happens: Personal-zone gallery is opened, all the photos are seen. After selecting one we are dropped back to messages screen, where nothing happens. Expected behavior: after selecting photo it is being uploaded like a regular attachment and then can be sent. Works fine for iOS version. Any ideas how to fix this?

Using version 1.18.1.


Cannot open interactive dialog

$
0
0

Anyone can help me with this? I can’t open a dialog

`{
  "trigger_id": "a2k0eGhveDN3M2dtN2I0Y3c3b3BobXBoZW86bXlubmk3eGg4M2Y3eDhoMThucjE0c3dvb3I6MTU1NTk1MTg3NjAxNjpNRVFDSUU4VDFqYmNSVGswdDZRQVVFU3haZk5URTg3MUhMT1ozK003aWdsQ01nckhBaUFac290SncwMmFSSkRWNEQyTFN0eXpGY0QySFREeVI2SVg3clY3ejVlMjFnPT0=",
  "url": "https://myapi.com/values/opendialog",
  "dialog": {
    "callback_id": "123",
    "title": "Form Test",
    "icon_url": "http://www.mattermost.org/wp-content/uploads/2016/04/icon.png",
    "elements": [
      {
        "display_name": "Display Name",
        "name": "Name",
        "type": "text",
        "subtype": "",
        "default": "default text",
        "placeholder": "Placeholder",
        "help_text": "This is a test regular input",
        "optional": false,
        "min_length": 0,
        "max_length": 0,
        "data_source": "",
        "options": null
      },
      {
        "display_name": "Email",
        "name": "youremail@email.com",
        "type": "text",
        "subtype": "",
        "default": "default text",
        "placeholder": "placeholder@bladekick.com",
        "help_text": "This is a test regular input",
        "optional": false,
        "min_length": 0,
        "max_length": 0,
        "data_source": "",
        "options": null
      },
      {
        "display_name": "Number",
        "name": "Number",
        "type": "text",
        "subtype": "number",
        "default": "",
        "placeholder": "",
        "help_text": "",
        "optional": false,
        "min_length": 0,
        "max_length": 0,
        "data_source": "",
        "options": null
      }
    ],
    "submit_label": "Enviar",
    "notify_on_cancel": false,
    "state": "Default state"
  }
}`

Cannot open interactive dialog

$
0
0

Anyone can help me with this? I can’t open a dialog.
this is my JSON but i get a 400 error code in my response. I send this JSON to the mattermost api

   `{
      "trigger_id": "a2k0eGhveDN3M2dtN2I0Y3c3b3BobXBoZW86bXlubmk3eGg4M2Y3eDhoMThucjE0c3dvb3I6MTU1NTk1MTg3NjAxNjpNRVFDSUU4VDFqYmNSVGswdDZRQVVFU3haZk5URTg3MUhMT1ozK003aWdsQ01nckhBaUFac290SncwMmFSSkRWNEQyTFN0eXpGY0QySFREeVI2SVg3clY3ejVlMjFnPT0=",
      "url": "https://myapi.com/api/values/service",
      "dialog": {
        "callback_id": "123",
        "title": "Form Test",
        "icon_url": "http://www.mattermost.org/wp-content/uploads/2016/04/icon.png",
        "elements": [
          {
            "display_name": "Display Name",
            "name": "Name",
            "type": "text",
            "subtype": "",
            "default": "default text",
            "placeholder": "Placeholder",
            "help_text": "This is a test regular input",
            "optional": false,
            "min_length": 0,
            "max_length": 0,
            "data_source": "",
            "options": null
          },
          {
            "display_name": "Email",
            "name": "youremail@email.com",
            "type": "text",
            "subtype": "",
            "default": "default text",
            "placeholder": "placeholder@bladekick.com",
            "help_text": "This is a test regular input",
            "optional": false,
            "min_length": 0,
            "max_length": 0,
            "data_source": "",
            "options": null
          },
          {
            "display_name": "Number",
            "name": "Number",
            "type": "text",
            "subtype": "number",
            "default": "",
            "placeholder": "",
            "help_text": "",
            "optional": false,
            "min_length": 0,
            "max_length": 0,
            "data_source": "",
            "options": null
          }
        ],
        "submit_label": "Enviar",
        "notify_on_cancel": false,
        "state": "Default state"
      }
    }`

Cannot connect to the server. Please check your server URL and Internet connection

$
0
0

Hi!

Mattermost is going ok in Desktop. But I can not connect by Android APP.

The error message is: “Cannot connect to the server. Please check your server URL and Internet connection”

I check the ssl certificate on sslabs web site:

Chain issue incomplete

How can i fix it? I used letsencrypt.

My directory has 4 files /mattermost-docker/volumes/web/cert:

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

Docker-compose config is:

web:
build: web
ports:
- “80:80”
- “443:443”
read_only: true
restart: unless-stopped
volumes:
# This directory must have cert files if you want to enable SSL
- ./volumes/web/cert:/cert:ro
- /etc/localtime:/etc/localtime:ro
# Uncomment for SSL
environment:
- MATTERMOST_ENABLE_SSL=true

Android not attaching gallery images (Mobile Iron)

$
0
0

Hi @neposo,

What Mattermost server version are you on? Do you see any errors in Android logs?

Removing Font Setting

$
0
0

Yeah. Please bring this back or at least enable a “dev” mode that allows users to be able to build their own styles.

I know that minutia of creating “settings” for each piece is tedious, so I’d just say give them access to it all if they want.

Cannot open interactive dialog

$
0
0

We have the same problem, is this a bug?

Cannot connect to the server. Please check your server URL and Internet connection


Cannot connect to the server. Please check your server URL and Internet connection

$
0
0

Thanks @amy.blais

I understand it is a Missing intermediate certificates. How can i fix it?

Cannot open interactive dialog

$
0
0

Well, I solved it. My error was the way I made the HTTP request.

What I was doing delayed the request and the “trigger_id” expired. Remember that the “trigger_id” has a useful life of 3 seconds.

My recommendation is to try to use different ways to send the request because the JSON that I publish is correct.
Another observation from me was that it apparently did not send it properly as an “application / json”

Bad response from token request, response_body=""

$
0
0

Hi @mrprice,

Could you describe your setup in more detail (And maybe also illustrate what you changed when moving GitLab and Mattermost to the same server.)?

Websoket "posted" event not contains "file_ids"

Apache reverse proxy to foreign server wss issue

$
0
0

Hi @qmor,

It should be possible to proxy websockets (even with Apache - as described in the documentation). One of our community members suggests you to investigate which service returned the 503 . Mattermost or their Apache proxy? Log files might provide additional insights.

Tuning mattermost for client performance

$
0
0

My server (mattermost 5.9, E10 licence) has about 500 users and runs on a single 8-core server. The CPU and memory usage of the server have always been pretty low. However, in recent weeks, users have noticed some operations have become slower, with delays of maybe 2-10 seconds on the following:

  • loading a saved file / image
  • loading messages on channel switching
  • uploading an image (can now take 30s where previously it would be just a few seconds)
  • loading the list of users in the direct-channel switcher

Just to be specific about this last point, the operations are:

  • Shift-Cmd-K for direct message switcher
  • Start typing a username
  • It takes 3-10 seconds before the list of possible completions appears; late last year I remember this being instantaneous

I know that some of these issues began when I switched from local disk storage to S3 storage. This might actually explain all the slowdowns: for example I guess that the list of users in the direct channel switcher will require loading the users’ icons from storage. I am investigating the S3 configuration and network routing to see if we can improve that. I recently configured the S3 region and endpoint explicitly rather than the default (“Mattermost attempts to get the appropriate region from AWS”) which may help.

I suspect some of the issues relate to the speed of database queries. The database is Amazon RDS. The config items “Maximum Idle Connections” and “Maximum Open Connections” have been set to 10 ever since I set up the server. Is there any guidance on a suitable choice for these? I have tried increasing these to 50 as an experiment, and I notice that the number of active connections has immediately jumped to 23.

Any guidance on tuning this would be welcome!

Tuning mattermost for client performance

$
0
0

BTW the logs contain a lot of context deadline exceeded errors like this:

2019-04-25T10:08:10.337+1000    error   web/context.go:52       Unable to get the channels      {"path": "/api/v4/users/me/teams/sty844ch9tbipr4wiu7ezxgdmy/channels", "request_id": "gbxfwjsqkfrjdp7r6dbrm5kqnc", "ip_addr": "10.192.104.100", "user_id": "haf1pjznibycd8z6yun1acjrnc", "method": "GET", "err_where": "SqlChannelStore.GetChannels", "http_code": 500, "err_details": "teamId=sty844ch9tbipr4wiu7ezxgdmy, userId=haf1pjznibycd8z6yun1acjrnc, err=context deadline exceeded"}

I am not really sure what this means. It doesn’t seem to correlate with any specific slow operations. Maybe it’s relevant.


[solved] Bad response from token request, response_body=""

$
0
0

Amy,

Tanks for the reply but I actually “fixed” this by running GitLab on a different port.

Apache reverse proxy to foreign server wss issue

$
0
0

got some apacke2 logs

[Wed Apr 24 16:01:03.723277 2019] [proxy:error] [pid 18975:tid 140161291581184] (111)Connection refused: AH00957: WSS: attempt to connect to 192.168.3.230:8065 (*) failed
[Wed Apr 24 16:01:03.723352 2019] [proxy_wstunnel:error] [pid 18975:tid 140161291581184] [client 192.168.3.17:28317] AH02452: failed to make connection to backend: 192.168.3.230

Uploading file error

$
0
0

Summary

I am sending files to upload, I get return code 400, but I can’t understand why.

Steps to reproduce

Version 5.10.0.
Send request via cUrl
curl -X POST
http://192.168.240.59:8065/api/v4/files?channel_id=165uz8nugfd4uru4bcs615t9za&filename=http://192.168.240.59:8065/uploads/chat/k9ejeffafjfxzdeh1g7hb4wk7o_image.png
-H ‘Authorization: Bearer 1tg1wkq3a3nsjy8cqxinggbanw’
-H ‘Content-Type: multipart/form-data’
-H ‘Postman-Token: 27fc8d02-a2d3-4f6b-8b4e-d18b014e982f’
-H ‘cache-control: no-cache’

Expected behavior

Sending the file path (which has already been saved in host directory) and the channel through cURL, should receive a positive API return, something like the pattern:
{
“file_infos”: [
{
“id”: “string”,
“user_id”: “string”,
“post_id”: “string”,
“create_at”: 0,
“update_at”: 0,
“delete_at”: 0,
“name”: “string”,
“extension”: “string”,
“size”: 0,
“mime_type”: “string”,
“width”: 0,
“height”: 0,
“has_preview_image”: true
}
],
“client_ids”: [
“string”
]
}

Observed behavior

Receiving return with error
{“id”:“api.file.upload_file.read_request.app_error”,“message”:“Não foi possível enviar o(s) arquivo(s). Erro ao ler ou decodificar a requisição.”,“detailed_error”:"",“request_id”:“7jawnwn71pnkdkhh1xyne6xmio”,“status_code”:400}

I’m using portuguese language, but the error message is something like “The file (s) could not be sent. Error reading or decoding request.”

Tuning mattermost for client performance

$
0
0

Hi @gubbins,

I’ll ask our team if they have further recommendations.

Also, since you’re on E10, you can also take a look at what our customer support offers.

Uploading file error

Viewing all 25788 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>