{"action":"closed","issue":{"url":"https://api.github.com/repos/aol/moloch/issues/953","repository_url":"https://api.github.com/repos/aol/moloch","labels_url":"https://api.github.com/repos/aol/moloch/issues/953/labels{/name}","comments_url":"https://api.github.com/repos/aol/moloch/issues/953/comments","events_url":"https://api.github.com/repos/aol/moloch/issues/953/events","html_url":"https://github.com/aol/moloch/issues/953","id":377527163,"node_id":"MDU6SXNzdWUzNzc1MjcxNjM=","number":953,"title":"A failure in moloch_update_geo.sh creates zero sized files and capture will refuse to start.","user":{"login":"srinathman","id":2333250,"node_id":"MDQ6VXNlcjIzMzMyNTA=","avatar_url":"https://avatars1.githubusercontent.com/u/2333250?v=4","gravatar_id":"","url":"https://api.github.com/users/srinathman","html_url":"https://github.com/srinathman","followers_url":"https://api.github.com/users/srinathman/followers","following_url":"https://api.github.com/users/srinathman/following{/other_user}","gists_url":"https://api.github.com/users/srinathman/gists{/gist_id}","starred_url":"https://api.github.com/users/srinathman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srinathman/subscriptions","organizations_url":"https://api.github.com/users/srinathman/orgs","repos_url":"https://api.github.com/users/srinathman/repos","events_url":"https://api.github.com/users/srinathman/events{/privacy}","received_events_url":"https://api.github.com/users/srinathman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-05T18:32:09Z","updated_at":"2018-11-05T22:59:56Z","closed_at":"2018-11-05T22:59:56Z","author_association":"CONTRIBUTOR","body":"We run moloch_update_geo.sh on cronjob and in some situations the script may fail (due to network issues, for example) and will create files with zero size. When this happens, moloch-capture will refuse to start with errors such as:\r\n`\r\n Nov  5 08:39:48 db.c:1748 moloch_db_load_geo_country(): Couldn't initialize Country file /data/moloch/etc/GeoLite2-Country.mmdb error An attempt to read data from the MaxMind DB file failed`\r\n\r\n\r\n<!-- For bugs please provide -->\r\n**OS name and version**: Ubuntu 16.04\r\n\r\n**How was Moloch built/installed:**  DEB\r\n\r\n**Provide logs, stack traces and steps to reproduce**:\r\n```-rw-r--r--  1 root root     0 Nov  5 05:01 GeoLite2-Country.mmdb\r\n-rw-r--r--  1 root root     0 Nov  5 05:01 GeoLite2-ASN.mmdb.gz\r\n-rw-r--r--  1 root root     0 Nov  5 05:02 oui.txt\r\n-rw-r--r--  1 root root     0 Nov  5 05:02 GeoLite2-ASN.mmdb\r\ndrwxr-xr-x  2 root root  4096 Nov  5 05:02 .\r\n-rw-r--r--  1 root root     0 Nov  5 16:33 GeoLite2-Country.mmdb.gz\r\n```\r\n"}}
{"actor":{"display_login":"awick"}}