Log spam when starting sourcegraph/server
Created by: sqs
When you start a new sourcegraph/server container from https://docs.sourcegraph.com/#quickstart, there are a lot of log messages that make it seem like there is an error (or that add noise):
-
#1890 (closed) (already filed separately) nginx: [alert] could not open error log file: open() "./logs/error.log" failed (2: No such file or directory)
-
@keegancsmith zoekt-indexserver | 2019/01/15 13:51:55 Post http://127.0.0.1:3090/.internal/repos/list: dial tcp 127.0.0.1:3090: connect: connection refused
-
@tsenart repo-updater | t=2019-01-15T13:52:00+0000 lvl=eror msg="unable to fetch Gitlab configs" err="Post http://127.0.0.1:3090/.internal/external-services/configs: dial tcp 127.0.0.1:3090: connect: connection refused"
-
@tsenart repo-updater | t=2019-01-15T13:52:02+0000 lvl=eror msg="failed to run repository clone purge" worker=repo-purge error="Get http://127.0.0.1:3178/list?cloned: dial tcp 127.0.0.1:3178: connect: connection refused"
-
@tsenart @keegancsmith (not sure who) postgres | 2019-01-15 13:51:55.505 UTC [64] LOG: listening on IPv4 address "127.0.0.1", port 5432
The problem with these log messages is that users will get confused, think they are errors, and either report them as errors OR be unable to file useful bug reports for other things because they think that these are the cause.
I've listed the people who own each one. I fixed this for general config #1828, but that did not fix it for these because they are separate.
Full logs below.
✱ Sourcegraph is initializing the internal database... (may take 15-20 seconds)
13:51:55 nginx | nginx: [alert] could not open error log file: open() "./logs/error.log" failed (2: No such file or directory)
13:51:55 zoekt-indexserver | 2019/01/15 13:51:55 Post http://127.0.0.1:3090/.internal/repos/list: dial tcp 127.0.0.1:3090: connect: connection refused
13:51:55 postgres | 2019-01-15 13:51:55.505 UTC [64] LOG: listening on IPv4 address "127.0.0.1", port 5432
13:51:57 management-console | t=2019-01-15T13:51:57+0000 lvl=info msg="management-console: listening" addr=:2633
13:52:00 repo-updater | t=2019-01-15T13:52:00+0000 lvl=eror msg="unable to fetch AWS CodeCommit configs" err="Post http://127.0.0.1:3090/.internal/external-services/configs: dial tcp 127.0.0.1:3090: connect: connection refused"
13:52:00 repo-updater | t=2019-01-15T13:52:00+0000 lvl=eror msg="unable to fetch Gitlab configs" err="Post http://127.0.0.1:3090/.internal/external-services/configs: dial tcp 127.0.0.1:3090: connect: connection refused"
13:52:00 repo-updater | t=2019-01-15T13:52:00+0000 lvl=eror msg="unable to fetch GitHub configs" err="Post http://127.0.0.1:3090/.internal/external-services/configs: dial tcp 127.0.0.1:3090: connect: connection refused"
13:52:00 repo-updater | t=2019-01-15T13:52:00+0000 lvl=eror msg="unable to fetch Bitbucket Server configs" err="Post http://127.0.0.1:3090/.internal/external-services/configs: dial tcp 127.0.0.1:3090: connect: connection refused"
13:52:01 frontend |
13:52:01 frontend | ╓╦╬╬╬╦╖
13:52:01 frontend | ╬╬╬╬╬╬╬╬╬
13:52:01 frontend | ╞╬╬╬╬╬╬╬╬╬╬ ╓╦╦╦╦┐
13:52:01 frontend | ╬╬╬╬╬╬╬╬╬╬╕ ╔╪╪╪╪╪╪╪╪╕
13:52:01 frontend | ╘╬╬╬╬╬╬╬╬╬╬ ╔╪╪╪╪╪╪╪╪╪╪╪
13:52:01 frontend | ╬╬╬╬╬╬╬╬╬╬╗ ╔╪╪╪╪╪╪╪╪╪╪╪╪┘
13:52:01 frontend | ╓╦╦╖┐ ╬╬╬╬╬╬╬╬╬╬ ╔╝╪╪╪╪╪╪╪╪╪╪╪╜
13:52:01 frontend | ╬╪╪╪╪╪╪╪╪╬╗╦╖ ╠╬╬╬╬╬╬╬╬╝╪╪╪╪╪╪╪╪╪╪╪╪╜
13:52:01 frontend | ╠╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╝╝╬╬╬╬╝╪╪╪╪╪╪╪╪╪╪╪╪╜
13:52:01 frontend | └╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╩
13:52:01 frontend | ╙╩╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╖
13:52:01 frontend | └╙╩╬╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╬╦╗┐
13:52:01 frontend | ╙╜╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╗╦╖
13:52:01 frontend | ┌╬╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╬
13:52:01 frontend | ┌╗╪╪╪╪╪╪╪╪╪╪╪╪╬╬╬╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪╪
13:52:01 frontend | ┌╗╪╪╪╪╪╪╪╪╪╪╪╪╬╬╬╬╬╬╬╬╬ ╙╜╩╪╪╪╪╪╪╪╪╪╪╪╪╜
13:52:01 frontend | ┌╦╪╪╪╪╪╪╪╪╪╪╪╝╙╬╬╬╬╬╬╬╬╬╬ └╙╩╬╪╪╝╜
13:52:01 frontend | ╦╪╪╪╪╪╪╪╪╪╪╪╪┘ ╠╬╬╬╬╬╬╬╬╬╬
13:52:01 frontend | ╬╪╪╪╪╪╪╪╪╪╪╪┘ ╬╬╬╬╬╬╬╬╬╬┐
13:52:01 frontend | ╙╪╪╪╪╪╪╪╪╪╜ ╘╬╬╬╬╬╬╬╬╬╬
13:52:01 frontend | └╩╪╪╪╪╝╙ ╬╬╬╬╬╬╬╬╬╬╕
13:52:01 frontend | └╬╬╬╬╬╬╬╬╬╛
13:52:01 frontend | ╩╬╬╬╬╬╬┘
13:52:01 frontend |
13:52:01 frontend | ✱ Sourcegraph is ready at: http://127.0.0.1:7080
13:52:02 repo-updater | t=2019-01-15T13:52:02+0000 lvl=eror msg="failed to run repository clone purge" worker=repo-purge error="Get http://127.0.0.1:3178/list?cloned: dial tcp 127.0.0.1:3178: connect: connection refused"