Our mattermost:
Cannot "Log in with GitLab"
API Upload File not uploading
Hi @paulus,
Wondering if this earlier thread might help: [SOLVED] Uploading an image with api v. 4 not working. If not, we’ll continue to troubleshoot.
Invalid or expired session, please login again
We tried to replicate this error but was unsuccessful. When you get the token from the /login
API call, make sure you’re grabbing the MMAUTHTOKEN
value:
Set-Cookie: MMAUTHTOKEN= rx6gfpbf1bgjtfbbstba7mz98r
If you are getting this value, make sure that it exists in the Session table by running this query:
SELECT * FROM sessions WHERE token='<MMAUTHTOKEN Value>';
If it exists there then it might be a bug in that version of Mattermost, so try upgrading. If it doesn’t exist there verify that the login
call is returning the correct value.
Finally, you could also try creating a Personal Access token for that user, which can be used in place of the MMAUTHTOKEN
value and won’t expire.
API Upload File not uploading
Hello, amy
Thanks for the help.
I had seen this topic before, but it did not help me. There is an error situation there. I do not get error (like status code 403 or similar). My request returns successfully, but without the submitted file information.
Difficulty using sidebar scrollbar with mouse
Team selection with combination key
When I try to select a team with the CTRL+K key, even if I enter a character on the appearance search form, the circular dialog keeps going forever and the extraction result is not displayed.
I am Japanese and I use 2-byte characters mainly. I will not extract team registered with 1byte characters even if I search by 1byte character. For example, if a team name is created as “ABC”, I will not be extracted even if I search by “ABC”.
This can not be done by Mac version application, Windows version application, or each Web browser operation.
How can I make a team searchable?
Mattermost 5.8.0, MariaDB 10.2.21, CentOS 7.6, Nginx 1.14.1
Can not search channel by text
Hi @Babbles,
I think the Ctrl + K shortcut is for channel search/selection: https://docs.mattermost.com/help/messaging/keyboard-shortcuts.html.
Were you referring to channel search?
Can not search channel by text
Apparently it was not only there that I can not search.
In addition to the channel switching search form, I can not search even the search form when searching for the channel (name).
In the search form when add members to the team and add members to the channel, I was able to do a search. I’m also searching for posts.
It is a big difference whether I use 2 byte characters or not. The channel name may be 1 byte characters or 2 byte characters.
How can I search for channel names and team names?
*I changed the title of this topic.
Will backend changes automatically reload?
Hi!
When running mattermost with docker, will backend (go) changes perform an automatic live-reload or do you have to manually restart docker?
I believe the frontend react will automatically reload, curious about the backend.
Thanks!
Will backend changes automatically reload?
Hi @pichouk, this seems to be related to Docker, do you know the answer to this one?
Will backend changes automatically reload?
I started mattermost as per the local development installation instructiions.
I just used make run-server I believe (I’m away from my home office so can’t confirm).
No more notifications on my android phone since the update to 5.8
Hello and thank you for your help.
So I disconnected all my accounts as you told me and that didn’t change anything.
However, I can tell you that this affects other Android device users and that the application on Windows and Linux works perfectly.
I hope this is a bug in the server part and that an update will appear soon.
Otherwise, here’s what’s in the logs
{“level”: “error”, “ts”:1564344964.1980994, “caller”: “app/notification_push.go:285”, “msg”: “Device push reported as error for UserId=6jfr4679jgfdgy54g6h997jg468 SessionId=jhfrt788ugfh9dhji877ygg9iir message=Post https://push-test.mattermost.com/api/v1/send_push: dial tcp: i/o timeout”, “user_id”: “6jfr4679jgfdgy54g6h997jg468”}
Hopefully it will guide someone.
Thank you for your help
Will backend changes automatically reload?
Hello, @mrchat
I came across the following documentation that states that the Docker service needs to be restarted, taking into consideration that the backend changes you refer to is related to the Docker configuration - Reloading or Restarting the Docker Engine:
The Docker Engine must reload configuration information if any changes are made to the Docker configuration. To do this, you must restart the
docker
service.
I hope that helps. Thanks.
Can not search channel by text
Hi, @Babbles
Since you are Japanese and mentioned about the usage of 2-byte characters, I was wondering if you initially included the following configuration during the deployment of database that Mattermost is using on your end. The reason why I would like to check on this is due to the caveat in the documentation here - Database Software:
Deployments requiring searching in Chinese, Japanese and Korean languages require MySQL 5.7.6+ and the configuration of ngram Full-Text parser. For searching two characters, you will also need to set
ft_min_word_len
andinnodb_ft_min_token_size
to2
and restart MySQL. See CJK discussion for details.
Since you are using MariaDB instead (we had a discussion to have it officially supported as per here initially), it will be helpful if you can provide screen shot(s) so we can get a clearer picture on the current issue that we are discussing here. Additionally, what charset / collation did you use for the database?
Also, can I also confirm what do you actually mean by searching for team name? As conversations are mainly divided to public / private channels and direct messages, are you referring to channels as teams? Keep us posted.
Can not search channel by text
I introduced Mroonga/Groonga for Japanese search. I am recreating the index below.
MariaDB > ALTER TABLE `Channels` ENGINE = Mroonga;
MariaDB > ALTER TABLE `Posts` ENGINE = Mroonga;
When introducing them, I was specifying “1” as the following values let me specify “1” on the site I referred to them.
ft_min_word_len
and innodb_ft_min_token_size
I have changed them to “2” this time. Then I input the search word and delete the one character from the end of the search term, the result is extracted. Can I make it possible to search without deleting characters?
I can search for postings in Japanese as well. I can not search for only channels.
utf8mb4_general_ci
I’m sorry. It was a channel name, not a team.
Invalid or expired session, please login again
Adding X-Requested-With: XMLHttpRequest as header fixed the issue.
Can not search channel by text
Hi, @Babbles.
No worries and thank you for the clarification. As per your statement here, it seems that the Channel search is working though it requires you to delete the character:
Since it does work for Posts normally (assuming that MariaDB was restarted after all the changes were made), I would like to understand the differences between these 2 tables here. Can you please run the following command on your SQL terminal and provide the outputs?
SHOW TABLE STATUS WHERE Name = "Channels"\G
SHOW TABLE STATUS WHERE Name = "Posts"\G
If they are the same, there might be a potential bug specific to the Channel search though it is yet to be fully confirmed.
Can not search channel by text
It is an execution result.
SHOW TABLE STATUS WHERE Name = “Channels”\G;
*************************** 1. row ***************************
Name: Channels
Engine: Mroonga
Version: 10
Row_format: Dynamic
Rows: 32
Avg_row_length: 0
Data_length: 136761344
Max_data_length: 0
Index_length: 0
Data_free: 0
Auto_increment: NULL
Create_time: NULL
Update_time: NULL
Check_time: NULL
Collation: utf8mb4_general_ci
Checksum: NULL
Create_options:
Comment:
1 row in set (0.00 sec)
ERROR: No query specified
SHOW TABLE STATUS WHERE Name = “Posts”\G;
*************************** 1. row ***************************
Name: Posts
Engine: Mroonga
Version: 10
Row_format: Dynamic
Rows: 376
Avg_row_length: 0
Data_length: 196304896
Max_data_length: 0
Index_length: 0
Data_free: 0
Auto_increment: NULL
Create_time: NULL
Update_time: NULL
Check_time: NULL
Collation: utf8mb4_general_ci
Checksum: NULL
Create_options:
Comment:
1 row in set (0.00 sec)
ERROR: No query specified
How to start the server without pinging the DB
Can I start the mattermost server without pinging the DB first?
I am using the latest version of mattermost server installed in an Amazon Linux EC2 instance and an AWS Aurora (MySQL 5.6) Database.
I start the server using the command:
sudo -u mattermost ./bin/mattermost
Mattermost first pings the IP indicated in the "datasource"section of file /opt/mattermost/config/config.json.
Is there an easy way to configure Mattermost server to NOT ping the DB first (maybe use telnet or something else to check that it is alive), connect to the DB and start the server?
Thank you.
How to start the server without pinging the DB
@Miguel, the “ping” here is not an ICMP echo request, but the invocation of PingContext in the database/sql Go package. It’s just a way to verify connectivity to the database instead of waiting for the first use of the database.
Are you running into a problem as such?