i’m new to mattermost and want to set it up for my company. I already follow the installing guid for Debian jessie, but at the last step of “setting up the nginx server” i got a 502 Error instead of page titles "Mattermost - Signup"
as i say i have follow exactly the guid with one exception: the ip-address.
sry for the long break, over the weekend i didnt have the access to the server.
if i try to access via curl http://192.168.40.26:8065
i got the following error:
curl: (7) Failed to connect to 192.168.40.26 port 8065: Verbindungsaufbau abgelehnt
can it be a problem if the database-server got the same ip as the mattermost-server? both are on the same maschine.
i’m 100% sure that mattermost is running while i executing curl.
to prove that i will show you the last comands and the prompt root@mattermost:~# service mattermost status ● mattermost.service - Mattermost is an open source, self-hosted Slack-alternative Loaded: loaded (/etc/systemd/system/mattermost.service; enabled) Active: activating (auto-restart) since Mo 2016-08-15 15:08:23 CEST; 6s ago Process: 10675 ExecStart=/opt/mattermost/bin/platform (code=exited, status=0/SUCCESS) Main PID: 10675 (code=exited, status=0/SUCCESS) root@mattermost:~# cd /opt/mattermost/bin/ root@mattermost:/opt/mattermost/bin# ls platform root@mattermost:/opt/mattermost/bin# ./platform [2016/08/15 15:09:14 CEST] [INFO] Loaded system translations for 'en' from '/opt/mattermost/i18n/en.json' [2016/08/15 15:09:14 CEST] [INFO] Current version is 3.2.0 (3.2.0/Thu Jul 14 16:27:27 UTC 2016/ab52700aaa76a5623de23cd0156f5dbd9a24e264/none) [2016/08/15 15:09:14 CEST] [INFO] Enterprise Enabled: false [2016/08/15 15:09:14 CEST] [INFO] Current working directory is /opt/mattermost/bin [2016/08/15 15:09:14 CEST] [INFO] Loaded config file from /opt/mattermost/config/config.json [2016/08/15 15:09:14 CEST] [INFO] Server is initializing... [2016/08/15 15:09:14 CEST] [INFO] Pinging sql master database [2016/08/15 15:09:14 CEST] [INFO] Pinging sql replica-0 database [2016/08/15 15:09:14 CEST] [DEBG] Deleting any unused pre-release features [2016/08/15 15:09:14 CEST] [DEBG] Initializing user api routes [2016/08/15 15:09:14 CEST] [DEBG] Initializing team api routes [2016/08/15 15:09:14 CEST] [DEBG] Initializing channel api routes [2016/08/15 15:09:14 CEST] [DEBG] Initializing post api routes [2016/08/15 15:09:14 CEST] [DEBG] Initializing web socket api routes [2016/08/15 15:09:14 CEST] [DEBG] Initializing file api routes [2016/08/15 15:09:14 CEST] [DEBG] Initializing command api routes [2016/08/15 15:09:14 CEST] [DEBG] Initializing admin api routes [2016/08/15 15:09:14 CEST] [DEBG] Initializing general api routes [2016/08/15 15:09:14 CEST] [DEBG] Initializing oauth api routes [2016/08/15 15:09:14 CEST] [DEBG] Initializing webhook api routes [2016/08/15 15:09:14 CEST] [DEBG] Initializing preference api routes [2016/08/15 15:09:14 CEST] [DEBG] Initializing license api routes [2016/08/15 15:09:14 CEST] [DEBG] Initializing emoji api routes [2016/08/15 15:09:14 CEST] [DEBG] Parsing server templates at /opt/mattermost/templates/ [2016/08/15 15:09:14 CEST] [DEBG] Initializing web routes [2016/08/15 15:09:14 CEST] [DEBG] Using client directory at /opt/mattermost/webapp/dist/ [2016/08/15 15:09:14 CEST] [INFO] Starting Server... [2016/08/15 15:09:14 CEST] [INFO] Server is listening on :8065 [2016/08/15 15:09:14 CEST] [INFO] RateLimiter is enabled [2016/08/15 15:09:14 CEST] [DEBG] Checking for security update from Mattermost ^X^Croot@mattermost:/opt/mattermost/bin# service mattermost start root@mattermost:/opt/mattermost/bin# curl http://192.168.40.26:8065 curl: (7) Failed to connect to 192.168.40.26 port 8065: Verbindungsaufbau abgelehnt
i also already try to reinstall it and got the same issue
would it be helpful if i share all my config that i made during the installation of mattermost?
Well I think I could have figured this one out. I’m not using the script but the systemd unit and i set up everything on the same machine, so I’m using localhost or 127.0.0.1 instead of the IPs mentioned in the tutorial.
Assuming you have an additional user (if not create one, add him to the sudo group and add him to the mattermost group) in your sudo group and you are not running as root:
Make sure you run the /.platform (for the first testing) as user mattermost and not as root.
If you did run the platform as root, stop the service and delete the log file. sudo systemctl stop mattermost sudo rm /opt/mattermost/logs/mattermost.log
(see GitHub)
Give the mattermostuser and group their permissions back. sudo chown -R mattermost:mattermost /opt/mattermost sudo chmod -R g+w /opt/mattermost
If you were using the script, just disable/delete it.
If not already done, setup the systemd unit as described in the docs. sudo touch /etc/systemd/system/mattermost.service sudo vi /etc/systemd/system/mattermost.service
Copy the following lines into /etc/systemd/system/mattermost.service
[Unit]
Description=Mattermost is an open source, self-hosted Slack-alternative
After=syslog.target network.target
thank for your post. i didn´t find any solution for this problem thats why i switch to ubuntu an setup mattermost on there.
So i can not try this out, but maybe your post ost can help someone else with the same problem in the future.