Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no logging of the mattermost container #15

Closed
funkyfuture opened this issue Jan 9, 2017 · 3 comments
Closed

no logging of the mattermost container #15

funkyfuture opened this issue Jan 9, 2017 · 3 comments

Comments

@funkyfuture
Copy link

i'm currently trying to troubleshoot why a mattermost container doesn't send mails. but i'm kinda blindfolded here as it doesn't log anything. this is the output i get with docker-compose logs:

mattermost_1  | Initializing mattermost...
mattermost_1  | Initializing datadir...
mattermost_1  | Initializing logdir...
mattermost_1  | Installing configuration templates...
mattermost_1  | Configuring mattermost...
mattermost_1  | Configuring mattermost database...
mattermost_1  | Configuring SMTP...
mattermost_1  | Configuring GitLab..
mattermost_1  | Configuring new Mattermost installation...

this is only followed by a series of postgres messages like this:

postgres_1    | ERROR:  relation "systems" does not exist at character 19
postgres_1    | STATEMENT:  SELECT Value FROM Systems WHERE Name='Version'
postgres_1    | ERROR:  relation "idx_teams_name" does not exist
postgres_1    | STATEMENT:  SELECT $1::regclass

i can interact with the webinterface so far that i can create the initial user, but i don't receive an email and there is nothing logged by the mattermost container.

is there a way to raise the logging verbosity?

@funkyfuture
Copy link
Author

i looked into it and it's of course pretty simple. i would contribute the needed changes.

but i would actually propose to change the default behaviour so the logs go to the console and not to a log file as this is the usual way afaik how containers should log. as there are different logging handlers / plugins available that take it from there.

@jostyee
Copy link

jostyee commented Jan 21, 2017

@funkyfuture Mattermost support console logging https://github.com/mattermost/platform/blob/master/config/config.json#L75
you can add a property setting if you want it.

@funkyfuture
Copy link
Author

yes, but i'm proposing to change the default logging target to the console as this is the standard that will be handled by the different available logging drivers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants