Mattermost Peer-to-Peer Forum

Server Started, unable to connect

#1

Hi Guys,

I am hoping someone can help me with figuring what is broken or what i messed up in setting up the MatterMost server.

I’ve tried to setup the server following the install guide here.
https://docs.mattermost.com/install/install-rhel-7.html#install-and-configure-the-components-in-the-following-order-note-that-you-need-only-one-database-either-mysql-or-postgresql

with MySQL and running on Centos 7.

by the looks of things the service does start however not fully as i am unable to browes to it remotely and curl locally give and error.
The error is similar to the case here. [SOLVED] Server started but app not connecting and no logs
Unfortunetly my knowldge is now where near deap enough so i was not able to enable the loging or the DB loging.

Log

[root@QCSDEVPOLAPP01 mattermost]# tail -n20  /opt/mattermost/logs/mattermost.log
{"level":"info","ts":1554700311.1365652,"caller":"jobs/schedulers.go:140","msg":"Stopping schedulers."}
{"level":"info","ts":1554700311.1365798,"caller":"jobs/schedulers.go:75","msg":"Schedulers stopped."}
{"level":"info","ts":1554700311.1365917,"caller":"app/server.go:336","msg":"Server stopped"}
{"level":"info","ts":1554701009.7608232,"caller":"utils/i18n.go:83","msg":"Loaded system translations for 'en' from '/opt/mattermost/i18n/en.json'"}
{"level":"info","ts":1554701009.7610474,"caller":"app/server_app_adapters.go:58","msg":"Server is initializing..."}
{"level":"info","ts":1554701009.7686296,"caller":"sqlstore/supplier.go:215","msg":"Pinging SQL master database"}
{"level":"error","ts":1554701010.0195894,"caller":"app/server_app_adapters.go:119","msg":"SiteURL must be set. Some features will operate incorrectly if the SiteURL is not set. See documentation for details: http://about.mattermost.com/default-site-url"}
{"level":"info","ts":1554701010.0202277,"caller":"filesstore/localstore.go:33","msg":"Able to write files to local storage."}
{"level":"info","ts":1554701010.0222783,"caller":"app/plugin.go:130","msg":"Starting up plugins"}
{"level":"info","ts":1554701012.238218,"caller":"app/server.go:192","msg":"Current version is 5.9.0 (5.9.0/Fri Mar 15 22:02:32 UTC 2019/5ef499caae2bb751438b19151a9fcb4b27830bca/none)"}
{"level":"info","ts":1554701012.2382772,"caller":"app/server.go:193","msg":"Enterprise Enabled: false"}
{"level":"info","ts":1554701012.2382958,"caller":"app/server.go:195","msg":"Current working directory is /opt/mattermost"}
{"level":"info","ts":1554701012.2383645,"caller":"app/server.go:196","msg":"Loaded config file from /opt/mattermost/config/config.json"}
{"level":"info","ts":1554701012.243341,"caller":"sqlstore/post_store.go:1287","msg":"Post.Message supports at most 16383 characters (65535 bytes)"}
{"level":"info","ts":1554701012.291516,"caller":"jobs/workers.go:68","msg":"Starting workers"}
{"level":"info","ts":1554701012.2916234,"caller":"app/server.go:400","msg":"Starting Server..."}
{"level":"info","ts":1554701012.2921586,"caller":"app/server.go:460","msg":"Server is listening on [::]:8065"}
{"level":"info","ts":1554701012.301582,"caller":"app/web_hub.go:75","msg":"Starting 2 websocket hubs"}
{"level":"info","ts":1554701012.3043194,"caller":"jobs/schedulers.go:72","msg":"Starting schedulers."}
{"level":"info","ts":1554701012.3442574,"caller":"commands/server.go:105","msg":"Sending systemd READY notification."}

Curl http://localhost:8065

 <div id='root'>
        <div class='error-screen'>
            <h2>Cannot connect to Mattermost</h2>
            <hr/>
            <p>We're having trouble connecting to Mattermost. If refreshing this page (Ctrl+R or Command+R) does not work, please verify that your computer is connected to the internet.</p>

Any help on this would be highly a[appreciated.

#2

Hi @Iconically_Lost,

As a first step, please take a look at this troubleshooting doc for tips: https://docs.mattermost.com/install/troubleshooting.html#cannot-connect-to-the-server-please-check-your-server-url-and-internet-connection.

#3

@amy.blais

Thank you for the link, I’ve had a read through and it looks like most of this covers topics where you are at least able to get some connection to the site. From the client side we get zero connectivity. I’ve tried going through the logs, but unfortunately nothing jump out.

As per my linked thread, how do i enable the general loging and DB loging?

#4

Hi @Iconically_Lost,

You can set your file log level (in System Console > General > Logging) to DEBUG , which will print high detail logging to debug issues.

https://docs.mattermost.com/administration/config-settings.html#file-log-level