chaoss / augur

Python library and web service for Open Source Software Health and Sustainability metrics & data collection. You can find our documentation and new contributor information easily here: https://oss-augur.readthedocs.io/en/main/ and learn more about Augur at our website https://augurlabs.io
https://oss-augur.readthedocs.io/en/main/
MIT License
589 stars 845 forks source link

Dev Branch not starting #293

Closed sgoggins closed 5 years ago

sgoggins commented 5 years ago

Describe the bug: I downloaded the latest version of the dev branch, and I get this error in the backend.log

(augur) sean@beastmode:~/github/CHAOSS/augur$ cat logs/backend.log
2019-06-08 12:00:19 beastmode augur[20711] INFO Loading...
2019-06-08 12:00:19 beastmode augur[20711] INFO Starting server...
[2019-06-08 12:00:19 +0000] [20711] [INFO] Starting gunicorn 19.9.0
[2019-06-08 12:00:19 +0000] [20711] [ERROR] Connection in use: ('0.0.0.0', 5000)
[2019-06-08 12:00:19 +0000] [20711] [ERROR] Retrying in 1 second.
[2019-06-08 12:00:20 +0000] [20711] [ERROR] Connection in use: ('0.0.0.0', 5000)
[2019-06-08 12:00:20 +0000] [20711] [ERROR] Retrying in 1 second.
[2019-06-08 12:00:21 +0000] [20711] [ERROR] Connection in use: ('0.0.0.0', 5000)
[2019-06-08 12:00:21 +0000] [20711] [ERROR] Retrying in 1 second.
[2019-06-08 12:00:22 +0000] [20711] [ERROR] Connection in use: ('0.0.0.0', 5000)
[2019-06-08 12:00:22 +0000] [20711] [ERROR] Retrying in 1 second.
[2019-06-08 12:00:23 +0000] [20711] [ERROR] Connection in use: ('0.0.0.0', 5000)
[2019-06-08 12:00:23 +0000] [20711] [ERROR] Retrying in 1 second.
[2019-06-08 12:00:24 +0000] [20711] [ERROR] Can't connect to ('0.0.0.0', 5000)

Here is my augur.config.json: (actual values are correct. Obscured for bug report):

{
    "Cache": {
        "config": {
            "cache.data_dir": "runtime/cache/",
            "cache.lock_dir": "runtime/cache/",
            "cache.type": "file"
        }
    },
    "Database": {
        "connection_string": "sqlite:///:memory:",
        "database": "augur",
        "host": "xx.augurlabs.io",
        "pass": "xx",
        "port": "xx",
        "schema": "xx",
        "user": "augur"
    },
    "Development": {
        "developer": "0",
        "interactive": "0"
    },
    "Facade": {
        "host": "xx.augurlabs.io",
        "name": "xx",
        "pass": "xx",
        "port": "3306",
        "projects": [
            "OTF",
            "Signal App"
        ],
        "user": "facade_otf"
    },
    "GHTorrent": {
        "host": "xx.augurlabs.io",
        "name": "ghtorrent_restore",
        "pass": "xx!",
        "port": "3306",
        "user": "ghdata"
    },
    "GHTorrentPlus": {
        "host": "augurlabs.io",
        "name": "ghtorrentplus",
        "pass": "xx!",
        "port": "3306",
        "user": "ghdata"
    },
    "GitHub": {
        "apikey": "xxxx"
    },
    "LibrariesIO": {
        "apikey": ""
    },
    "Plugins": [],
    "PublicWWW": {
        "apikey": ""
    },
    "Server": {
        "cache_expire": 3600,
        "host": "0.0.0.0",
        "port": "5000",
        "workers": 12
    }
}

To Reproduce: Install and run dev branch

Expected behavior: Not broken build

Screenshots

Desktop (please complete the following information): Ubuntu

sgoggins commented 5 years ago

Live version is on neko----.al.io

parthsharma2 commented 5 years ago

@sgoggins I think port 5000 is already in use. Try changing the port number in augur.config.json in the Server section. Or you can try killing the process running on port 5000. This link might be helpful https://stackoverflow.com/questions/9346211/how-to-kill-a-process-on-a-port-on-ubuntu

parthsharma2 commented 5 years ago

To add to this issue, there is a python exception being caused due to a merge conflict marker in datasources/augur_db/routes.py https://github.com/chaoss/augur/blob/a4d8bf3a403a93c2343f21d47addf993c2c2d855/augur/datasources/augur_db/routes.py#L26

sgoggins commented 5 years ago

@parthsharma2 : That was it ... I fixed the conflict ... I had some other issues going on with my config for the database ... So, i finally got to this actual issue. Thanks!