{"action":"created","issue":{"url":"https://api.github.com/repos/anchore/anchore-engine/issues/65","repository_url":"https://api.github.com/repos/anchore/anchore-engine","labels_url":"https://api.github.com/repos/anchore/anchore-engine/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/anchore/anchore-engine/issues/65/comments","events_url":"https://api.github.com/repos/anchore/anchore-engine/issues/65/events","html_url":"https://github.com/anchore/anchore-engine/issues/65","id":331634911,"node_id":"MDU6SXNzdWUzMzE2MzQ5MTE=","number":65,"title":"anchore-engine : no service heartbeat within max allowed time period ","user":{"login":"cello86","id":6987539,"node_id":"MDQ6VXNlcjY5ODc1Mzk=","avatar_url":"https://avatars3.githubusercontent.com/u/6987539?v=4","gravatar_id":"","url":"https://api.github.com/users/cello86","html_url":"https://github.com/cello86","followers_url":"https://api.github.com/users/cello86/followers","following_url":"https://api.github.com/users/cello86/following{/other_user}","gists_url":"https://api.github.com/users/cello86/gists{/gist_id}","starred_url":"https://api.github.com/users/cello86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cello86/subscriptions","organizations_url":"https://api.github.com/users/cello86/orgs","repos_url":"https://api.github.com/users/cello86/repos","events_url":"https://api.github.com/users/cello86/events{/privacy}","received_events_url":"https://api.github.com/users/cello86/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-06-12T15:17:16Z","updated_at":"2018-06-19T10:54:34Z","closed_at":null,"author_association":"NONE","body":"**Is this a request for help?**:\r\n\r\n---\r\n\r\n**Is this a BUG REPORT or a FEATURE REQUEST?** (choose one):\r\nBUG REPORT\r\n\r\n**Version of Anchore Engine and Anchore CLI if applicable**:\r\nAnchore Engine v 0.2.2 (docker release)\r\n \r\n**What happened**:\r\nWe tried to startup the anchore-engine but we noticed a lot of WARN messages from service_catalog \r\n\r\n**What did you expect to happen**:\r\nWe would modify the hardcoded http endpoint configured into the messages.\r\n\r\n**Any relevant log output from /var/log/anchore**:\r\nThe error are:\r\n```\r\n[service:catalog] 2018-06-12 17:12:23+0200 [-] [Thread-13] [anchore_engine.services.catalog/handle_service_watcher()] [WARN] no service heartbeat within max allowed time period ([u'dockerhostid-anchore-engine', u'http://anchore-engine:8082'] - orphaning service\r\n[service:catalog] 2018-06-12 17:12:23+0200 [-] [Thread-13] [anchore_engine.services.catalog/handle_service_watcher()] [WARN] no service heartbeat within max allowed time period ([u'dockerhostid-anchore-engine', u'http://anchore-engine:8083'] - orphaning service\r\n[service:catalog] 2018-06-12 17:12:23+0200 [-] [Thread-13] [anchore_engine.services.catalog/handle_service_watcher()] [WARN] could not get/parse service status record for service: - exception: unsupported operand type(s) for -: 'float' and 'NoneType'\r\n[service:catalog] 2018-06-12 17:12:23+0200 [-] [Thread-13] [anchore_engine.services.catalog/handle_service_watcher()] [WARN] no service heartbeat within max allowed time period ([u'dockerhostid-anchore-engine', u'http://anchore-engine:8338'] - orphaning service\r\n[service:catalog] 2018-06-12 17:12:23+0200 [-] [Thread-13] [anchore_engine.services.catalog/handle_service_watcher()] [WARN] no service heartbeat within max allowed time period ([u'dockerhostid-anchore-engine', u'http://anchore-engine:8084'] - orphaning service\r\n[service:catalog] 2018-06-12 17:12:23+0200 [-] [Thread-13] [anchore_engine.services.catalog/handle_service_watcher()] [WARN] no service heartbeat within max allowed time perio\r\n no service heartbeat within max allowed time period ([u'dockerhostid-anchore-engine', u'http://anchore-engine:8228'] - orphaning service\r\n```\r\n\r\n**What docker images are you using**:\r\nthe latest version taken from dockerhub\r\n\r\n**How to reproduce the issue**:\r\nWe restart the container anchore and after the bootstrap phase for all modules we noticed the errors.\r\n\r\n**Anything else we need to know**:\r\n"},"comment":{"url":"https://api.github.com/repos/anchore/anchore-engine/issues/comments/398358364","html_url":"https://github.com/anchore/anchore-engine/issues/65#issuecomment-398358364","issue_url":"https://api.github.com/repos/anchore/anchore-engine/issues/65","id":398358364,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODM1ODM2NA==","user":{"login":"cello86","id":6987539,"node_id":"MDQ6VXNlcjY5ODc1Mzk=","avatar_url":"https://avatars3.githubusercontent.com/u/6987539?v=4","gravatar_id":"","url":"https://api.github.com/users/cello86","html_url":"https://github.com/cello86","followers_url":"https://api.github.com/users/cello86/followers","following_url":"https://api.github.com/users/cello86/following{/other_user}","gists_url":"https://api.github.com/users/cello86/gists{/gist_id}","starred_url":"https://api.github.com/users/cello86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cello86/subscriptions","organizations_url":"https://api.github.com/users/cello86/orgs","repos_url":"https://api.github.com/users/cello86/repos","events_url":"https://api.github.com/users/cello86/events{/privacy}","received_events_url":"https://api.github.com/users/cello86/received_events","type":"User","site_admin":false},"created_at":"2018-06-19T10:54:34Z","updated_at":"2018-06-19T10:54:34Z","author_association":"NONE","body":"The config.yaml used on our development environment is:\r\n\r\n```\r\nservice_dir: '/config'\r\ntmp_dir: '/tmp'\r\nlog_level: 'INFO'\r\ncleanup_images: True\r\nhost_id: 'dockerhostid-${ANCHORE_HOST_ID}'\r\ninternal_ssl_verify: False\r\nauto_restart_services: False\r\ncatalog_endpoint: 'http://${ANCHORE_HOST_ID}:8082/v1'\r\n\r\ncredentials:\r\n  default_user: 'admin'\r\n  users:\r\n     admin:\r\n      password: '*************'\r\n      email: 'm.lorenzi@test.local’\r\n      external_service_auths:\r\n\r\n  database:\r\n    db_connect: 'postgresql+pg8000://anchore:******@dev-registry01test.local:5432/anchoredb'\r\n    db_connect_args:\r\n      timeout: 120\r\n      ssl: False\r\n    db_pool_size: 30\r\n    db_pool_max_overflow: 100\r\n\r\nservices:\r\n  apiext:\r\n    enabled: True\r\n    require_auth: True\r\n    endpoint_hostname: '${ANCHORE_HOST_ID}'\r\n    listen: '0.0.0.0'\r\n    port: 8228\r\n  kubernetes_webhook:\r\n    enabled: True\r\n    require_auth: False\r\n    endpoint_hostname: '${ANCHORE_HOST_ID}'\r\n    listen: '0.0.0.0'\r\n    port: 8338\r\n  catalog:\r\n    enabled: True\r\n    require_auth: True\r\n    endpoint_hostname: '${ANCHORE_HOST_ID}'\r\n    listen: '0.0.0.0'\r\n    port: 8082\r\n# NOTE: use the below external_* parameters to define the port/tls\r\n# setting that will allow other internal services to access this\r\n# service - if left unset services will use the above,\r\n# e.g. http://<endpoint_hostname>:<port>\r\n#    external_port: 8082\r\n#    external_tls: False\r\n    archive:\r\n      compression:\r\n        enabled: False\r\n        min_size_kbytes: 100\r\n      storage_driver:\r\n        name: db\r\n        config: {}\r\n    cycle_timer_seconds: '1'\r\n    cycle_timers:\r\n      image_watcher: 3600\r\n      policy_eval: 3600\r\n      vulnerability_scan: 14400\r\n      analyzer_queue: 1\r\n      notifications: 30\r\n      service_watcher: 15\r\n      policy_bundle_sync: 300\r\n      repo_watcher: 60\r\n  simplequeue:\r\n    enabled: True\r\n    require_auth: True\r\n    endpoint_hostname: '${ANCHORE_HOST_ID}'\r\n    listen: '0.0.0.0'\r\n    port: 8083\r\n#    external_port: 8083\r\n#    external_tls: False\r\n  analyzer:\r\n    enabled: True\r\n    require_auth: True\r\n    cycle_timer_seconds: 1\r\n    max_threads: 1\r\n    analyzer_driver: 'nodocker'\r\n    endpoint_hostname: '${ANCHORE_HOST_ID}'\r\n    listen: '0.0.0.0'\r\n    port: 8084\r\n#    external_port: 8084\r\n#    external_tls: False\r\n  policy_engine:\r\n    enabled: True\r\n    require_auth: True\r\n    endpoint_hostname: '${ANCHORE_HOST_ID}'\r\n    listen: '0.0.0.0'\r\n    port: 8087\r\n#    external_port: 8087\r\n#    external_tls: False\r\n    cycle_timer_seconds: 1\r\n    cycle_timers:\r\n      feed_sync: 21600 # 6 hours between feed syncs\r\n      feed_sync_checker: 3600 # 1 hour between checks to see if there needs to be a task queued\r\n```\r\n"}}
{"actor":{"display_login":"cello86"}}