Quantcast
Channel: GitLab Mattermost - Mattermost Discussion Forums
Viewing all 168 articles
Browse latest View live

[solved] How do you restore the mattermost database?

$
0
0

@edomingox wrote:

I was looking at the migration documents https://docs.mattermost.com/administration/migrating.html#migrating-the-mattermost-server.

In particular, step 4. And step 4 says:
Backup the database from the SOURCE Mattermost server and restore it in place of the database to which the DESTINATION server is connected.

And I’m like, duh. But what are the commands to do it?

I searched around and found the commands to export the database, but trying to restore it, not so lucky. There is this command:
sudo -u mattermost /opt/gitlab/embedded/bin/psql -U gitlab_mattermost -h /var/opt/gitlab/postgresql -d mattermost_production -f ./mattermost_production
But all I get is a bunch of relation exists errors. Is that normal?

Posts: 2

Participants: 1

Read full topic


OAuth single instance?

$
0
0

@jlvaleriano wrote:

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.

Posts: 1

Participants: 1

Read full topic

How to start the server without pinging the DB

$
0
0

@Miguel wrote:

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.

Posts: 5

Participants: 2

Read full topic

List All Teams On Select Teams Page

$
0
0

@mrprice wrote:

Version number: 5.6.2

Summary

I’d like to know how to list all Teams on the select_team page.

Steps to reproduce

Once logged into Mattermost click the hamburger menu option ‘Join Another Team’.

I have determined that this only applies to System Admin users.

Posts: 3

Participants: 2

Read full topic

Gitlab 7.8.1 webhook to Mattermost 5.5.1: No text specified

$
0
0

@perriert wrote:

Summary

Our partner has an old gitlab 7.8.1 server. Webhooks coming from this server throws an error into the logfile of Mattermost. If we try the same on gitlab.com it works without an error as expected. Is there anything I can try but upgrade the old gitlab?

Steps to reproduce

  • Generate a webhook url in Mattermost 5.5.1
  • Setup a new webhook in Gitlab 7.8.1
  • Test the webhook

Gitlab says that the webhook has been successfully requested but Mattermost log contains the following messages:

{"level":"error","ts":1559652194.857403,"caller":"web/context.go:60","msg":"No text specified","path":"/hooks/whp8gofrgpfgbbjqgozzpgf1tw","request_id":"fap3tc4ye7yq98wdcjrge6uqqo","
ip_addr":"*************","user_id":"","method":"POST","err_where":"HandleIncomingWebhook","http_code":400,"err_details":""}

Posts: 1

Participants: 1

Read full topic

Imports from slack set all emails to domain "example.com"

$
0
0

@MrBryan wrote:

Hello there, I have the latest version from github and just did a migration from the CLI. All of the users created have emails at domain “example.com” instead of their real email addresses

Any way to fix this? Happy to redo the import

Posts: 1

Participants: 1

Read full topic

Image / file attachments all fail - Slack import

$
0
0

@MrBryan wrote:

I have mattermost 5.9.0

I get a million messages like this when importing from Slack – and no image attachments in the channels:

{“level”:“warn”,“ts”:1560283469.4840775,“caller”:“app/slackimport.go:404”,“msg”:“Slack Import: Unable to attach the file to the post as the latter has no file section present in Slack export.”}

Posts: 1

Participants: 1

Read full topic

Mattermost Gitlab oauth problem

$
0
0

@rfreund wrote:

Hey there,

our Gitlab Omnibus setup started having problems with the Mattermost OAuth workflow a few days ago. I’m including some info below. I’d appreciate any pointers, am happy to add any more info you might need.

Summary

Users logged in to Mattermost can use the application.

However, the OAuth workflow doesn’t work any more. After re-direction from the Mattermost to the Gitlab login page, logging in with correct credentials, users receive the message:
Error
Bad Response from token request.

Well, this would be the English version - actually, since our setup is localized, the message is in German: “Fehlerhafte Rückmeldung bei Tokenanfrage”.

Steps to reproduce

  1. Version number
    Gitlab omnibus 11.8.10

  2. Steps to reproduce your issue
    Docker install of Gitlab omnibus. Setup Mattermost OAuth workflow.

Trying to log in to Mattermost correctly redirects to the Gitlab login page. Login with correct credentials yields the message “Bad Response from token request.” Login with wrong credentials yields "Could not authenticate you from Ldapmain because "Invalid credentials for “.”, so contacting our LDAP is not the problem.

  1. Link to the documentation you’re using, noting the step where you encounter the issue.
    n/a

  2. The relevant portion of the Mattermost log file at /var/log/gitlab/mattermost/mattermost.log
    tail -f /var/log/gitlab/mattermost/mattermost.log
    […]
    {“level”:“error”,“ts”:1561383629.897077,“caller”:“api4/oauth.go:492”,“msg”:“AuthorizeOAuthUser: Fehlerhafte Rückmeldung bei Tokenanfrage, response_body={“error”:“invalid_grant”,“error_description”:“The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.”}”}
    […]

Thank you.

Posts: 2

Participants: 2

Read full topic


Configure stand-alone mattermost with gitlab sign-on

$
0
0

@vinci wrote:

Hello,
I have installed mattermost as a separate server on its own virtual machine on docker on Ubuntu 18.04. I’m running nginx 1.17 alpine, mattermost database (postgresql) and the mattermost application itself.
On another virtual machine I have gitlab installed. The point is the configure SSO with gitlab, so that I can use LDAP with mattermost Team Edition. I haven’t been able to do so, though, because I keep getting this error:

{"level":"error","ts":1564185931.9620516,"caller":"api4/oauth.go:493","msg":"AuthorizeOAuthUser: Token request failed, Post https://gitlab.example.com/oauth/token: dial tcp: i/o timeout"}

I’m configured gitlab with https, I’ve added a new application in gitlab, copied all the necessary information in the Gitlab section under System Control in mattermost, but I still get this.
Under special circumstances which I haven’t really been able to determine, it sometimes does work after refreshing the mattermost page, despite the “Token request failed” error.
I think it might have worked when I configured gitlab with http only. But the error was still there nonetheless, so the problem sticks, so I doubt it’s actually related to TLS.

Any ideas what is happening? The gitlab server is reachable, I can ping, curl etc., but the POST request seems problematic.
This is my gitlab configuration:

external_url 'https://repos.example.com'
gitlab_rails['ldap_enabled'] = true
gitlab_rails['ldap_servers'] = YAML.load <<-EOS
main: # 'main' is the GitLab 'provider ID' of this LDAP server
     label: 'LDAP'
     host: 'atene-dc01.atene.local'
     port: 636
     uid: 'sAMAccountName'
     bind_dn: 'cn=gitlab-user,ou=Company-Dienstkonten,dc=domaincontroller,dc=local'
     password: '5}#HSZ,7kq-DQI4Ms23?'
     encryption: 'simple_tls' # "start_tls" or "simple_tls" or "plain"
     verify_certificates: true
     active_directory: true
     lowercase_usernames: true
     base: 'ou=Aktive User,ou=atene,dc=domaincontroller,dc=local'
     user_filter: ''
EOS
unicorn['enable'] = true
unicorn['worker_timeout'] = 60
unicorn['worker_processes'] = 2
nginx['redirect_http_to_https'] = true
nginx['ssl_certificate'] = "/etc/gitlab/ssl/#{node['fqdn']}.crt"
nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/#{node['fqdn']}.key"
nginx['ssl_ciphers'] = "ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256"
nginx['ssl_prefer_server_ciphers'] = "on"
nginx['ssl_protocols'] = "TLSv1.2"
nginx['gzip_enabled'] = false
letsencrypt['enable'] = false

As you can see, I haven’t configured anything related to mattermost here, because, as I understand, this is related only to the omnibus gitlab mattermost that comes preinstalled with gitlab, as far as I understand.

Posts: 2

Participants: 2

Read full topic

Not redirected to gitlab SSO on IIS reverse proxy

$
0
0

@krhyshi wrote:

hi.

using iis as a reverse proxy

using gitlab SSO (not omnibus)
mattermost domain : mm2.XX.co.kr
gitlab domain : gittest.XX.co.kr

Reverse rewrite host in response headers “check config”

image

not redirected to gitlab login page

packet capture on iis server

No connection attempt from GitLab server packet capture

What is the problem?

Posts: 1

Participants: 1

Read full topic

Whitelist accounts when using Gitlab SSO

$
0
0

@dissar wrote:

Hi,

I set up GitLab SSO on my self hosted mattermost running in docker.
I have it working, but I am wondering how to choose who gets to access the server.
There is no inviting to the server, and it seems that anyone with a GitLab account can log on and create a team. I only intended for it to be used by a small hobby project group. Is there any way I to whitelist gitlab accounts?

Posts: 1

Participants: 1

Read full topic

Sending Notication Emails

$
0
0

@rdominato wrote:

Hi,
I’m trying to configure Mattermost to send out notification emails via SMTP. The notifications are triggered when a Gitlab pipeline is triggered - this is working correctly. The SMTP connection is set up correcly - test email went through. I’d like to be able to send any notification message that gets posted to the channel out via email as well - is there a way to do that?

Posts: 2

Participants: 2

Read full topic

IDN POKER Online Terpercaya

$
0
0

DAFTAR POKER ONLINE TERPERCAYA DAN TERLENGKAP

Mc88poker adalah situs Daftar Poker Online Terpercaya, Situs Judi Online, IDN Poker Indonesia yang menyediakan permainan judi kartu Terbaik dan Teraman. Mendaftar dan bergabung untuk bermain judi kartu online bersama kami sangatlah muda, cepat dan pastinya aman.

MC88Poker merupakan situs judi yang menyediakan banyak pilihan permainan judi Kartu yang dapat anda nikmati secara online di Indonesia.

Beberapa jenis permainan yang dapat anda mainkan di MC88poker adalah Poker Online, Domino QQ, Ceme, Ceme Keliling, Capsa dan Omaha. Pilihan permainan ini dapat anda akses dengan sangat mudah. Cukup dengan lakukan daftar poker dan gunakan User ID yang akan anda dapatkan untuk bermain di banyak pilihan permainan judi kartu online yang kami sediakan.

SITUS JUDI ONLINE RESMI TERAMAN DAN BERKUALITAS

MC88Poker adalah salah satu Situs Judi Online Resmi Teraman dan Berkualitas. Dimana kerahasiaan semua data yang digunakan saat mendaftar dan bergabung bersama kami akan kami jaga dengan sebaik-baiknya.

Kualitas permainan yang tersedia tentunya sudah tidak perlu anda ragukan lagi. Dengan pelayanan terbaik yang selalu siap melayani anda 24 jam setiap harinya. Itu semua kami berikan untuk anda para pemain judi online agar mendapatkan pengalaman bermain yang nyaman.

Kualitas apakah yang menjadi alasan para member kami hingga terus bermain di situs judi online Mc88poker? Tentu saja kami memberikan kualitas permainan judi kartu online, server dan juga pelayanan terbaik. Permainan Judi Poker Online, Domino QQ, Capsa Susun dan ceme yang kami sediakan sangat fair play. Win Rate semua permainan judi online yang kami sediakan mencapai 100%. Dan tentunya permainan judi Domino QQ online yang tersedia tidak diatur atau disentuh oleh admin kami.

AGEN IDN POKER ONLINE INDONESIA TERBAIK

Mc88poker merupakan Agen IDN Poker Online Indonesia Terbaik dengan Live Dealer dan player vs player tanpa menggunakan Bot atau ROBOT. Dengan dukungan sistem keamanan yang paling canggih sehingga keamanan data anda pastinya akan sangat terjamin.

Selain itu ada juga bonus menarik yang sudah kami siapkan untuk anda. Seperti: Promo bonus member baru 10% + 100%, Bonus turnover mingguan, Bonus cashback mingguan, dan juga bonus referral sebesar 15%. Selain menyediakan permainan poker.

Jadi, Ayo buruan Daftar Poker Online , gabung dan bermain di Mc88poker!! Raihlah Bonus Promo menarik yang sudah kami sediakan untuk anda hanya di Agen IDN Poker Online Terpercaya Mc88poker!!!

1 post - 1 participant

Read full topic

Change GitLab instance used for authentication

$
0
0

Hello everyone,

We are currently using the Mattermost Team edition and are using our own Enterprise GitLab instance as authentication.
We want to set up a Community GitLab instance to use as authentication instead, since otherwise everyone who wants to use Mattermost has to have a Enterprise GitLab Account.

Is it possible to just switch the authentication on Mattermost to a different GitLab instance while maintaining user history and teams for already registered users?

Would be glad if anyone knew anything before we tried it for nothing.

Thanks!
~ onno_ole ~

1 post - 1 participant

Read full topic

Selectively delete chat

$
0
0

Hi everyone,

Is there any way to delete log chats between users, possibly only messages sent between selected dates? I have some users who have exchanged critical / confidential information at some point in past and would like it to be removed.

2 posts - 2 participants

Read full topic


Disk space utilization

$
0
0

Hello,

I am using Gitlab Mattermost Team Edition and have around 20 users.

Mattermost Version: 5.13.2
Database Schema Version: 5.13.0
Database: postgres

Since few months i experience Mattermost is taking lots of disk space, in last 20 days it consumed around 1.3 GB space. Below directory is taking lots of space which has many files inside.
/var/opt/gitlab/postgresql/data/base/16401

I am not sure what to do to make it consume less space or how to delete old chat from channels. Kindly suggest to resolve this issue.

Thank You,
Ravi K.

8 posts - 2 participants

Read full topic

[SOLVED] Unable to turn off GitLab SSO

$
0
0

GitLab Omnibus 13.6.1-ee with GitLab Mattermost
Mattermost Version: 5.28.1
Database Schema Version: 5.28.0
Database: postgres

After enabling GitLab Mattermost, SSO was automatically configured and enabled. I’m trying to turn GitLab SSO off.

What I did:

  1. Edited /etc/gitlab/gitlab.rb and uncommented the line mattermost['gitlab_enable'] = false
  2. Ran sudo gitlab-ctl reconfigure
  3. Verified that /var/opt/gitlab/mattermost/config.json had been updated correctly ("Enable": false under GitLabSettings)
  4. Restarted Mattermost with sudo gitlab-ctl restart mattermost

The GitLab sign-in option is still being shown on the login screen. In the System Console, under Authentication > GitLab, “Enable authentication with GitLab” is set to true and greyed out, with the message “This setting has been set through an environment variable. It cannot be changed through the System Console.” underneath (this is expected, but it should not be enabled anymore).

I thought I’d ask here before opening an issue. Any ideas?

2 posts - 1 participant

Read full topic

Hidden data / context in dialogues

$
0
0

HI

Does anyone know if it is possible to include hidden context data in dialogues just like it is possible in interactives messages?

Kind regards
Mattias

1 post - 1 participant

Read full topic

User cannot connect to mattermost with gitlab

$
0
0

User cannot connect to mattermost with gitlab

I am contacting you for a problem that one of our users is currently encountering precisely he cannot connect to mattermot on the other hand he connects well to gitlab and normally each user (ldap account) who manages to connect to gitlab he must have the same for mattermost

just for information I have made requests and I found that the user does exist in the database gitlab (gitlabha-production) and this is normal

but it is not present in the mattermost database

so when he wants to authenticate himself through gitlab he has the following error message

there is already an account associated with this email address using a login method other than gitlab, please login using emailisn’t normal)

Mattermost Version: 5.31.1

Database Schema Version: 5.30.0

Database: postgres

Gitlab-ee 13.9.7

Thank you in advance

3 posts - 2 participants

Read full topic

Cannot "Log in with GitLab"

$
0
0

Please include with your troubleshooting request:

Summary

I want to log into mattermost..com on a GItLab Omnibus install. I can’t log in with gitlab

Steps to reproduce

Install. Navigate to mattermost..com. Click “Log in with Gitlab”

You are taken to gitlab..com and there you see this error:

An error has occurred

The redirect URI included is not valid.

9 posts - 4 participants

Read full topic

Viewing all 168 articles
Browse latest View live