{"action":"created","issue":{"url":"https://api.github.com/repos/Mashape/kong/issues/1537","repository_url":"https://api.github.com/repos/Mashape/kong","labels_url":"https://api.github.com/repos/Mashape/kong/issues/1537/labels{/name}","comments_url":"https://api.github.com/repos/Mashape/kong/issues/1537/comments","events_url":"https://api.github.com/repos/Mashape/kong/issues/1537/events","html_url":"https://github.com/Mashape/kong/issues/1537","id":172874681,"number":1537,"title":"SSL cert config isn't working","user":{"login":"rsoletob","id":16651478,"avatar_url":"https://avatars.githubusercontent.com/u/16651478?v=3","gravatar_id":"","url":"https://api.github.com/users/rsoletob","html_url":"https://github.com/rsoletob","followers_url":"https://api.github.com/users/rsoletob/followers","following_url":"https://api.github.com/users/rsoletob/following{/other_user}","gists_url":"https://api.github.com/users/rsoletob/gists{/gist_id}","starred_url":"https://api.github.com/users/rsoletob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsoletob/subscriptions","organizations_url":"https://api.github.com/users/rsoletob/orgs","repos_url":"https://api.github.com/users/rsoletob/repos","events_url":"https://api.github.com/users/rsoletob/events{/privacy}","received_events_url":"https://api.github.com/users/rsoletob/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-24T06:31:49Z","updated_at":"2016-08-24T19:14:56Z","closed_at":null,"body":"### Summary\r\n\r\nWhen I start Kong with ssl_cert and ss_cert_key paths configured it fails with error:\r\n\r\n```\r\nError: \r\n/usr/local/share/lua/5.1/kong/cmd/start.lua:10: ssl_cert_key is not a string: 'table: 0x404aae80'\r\n```\r\n\r\n### Steps To Reproduce\r\n\r\n1. Configure Dockerfile to use our custom kong.conf\r\n2. Build and run docker image.\r\n```\r\ndocker build . -t kong\r\ndocker run -d -p 8000:8000 -p 8001:8001 -p 8443:8443 -p 7946:7946 --name kong kong\r\n```\r\n\r\n### Additional Details & Logs\r\n\r\n- Kong version 0.9.0\r\n- Kong configuration\r\n\r\n```\r\nlog_level = debug\r\nanonymous_reports = off\r\nproxy_listen = 0.0.0.0:8000\r\nproxy_listen_ssl = 0.0.0.0:8443\r\nadmin_listen = 0.0.0.0:8001 \r\nnginx_worker_processes = auto\r\nnginx_daemon = on \r\nmem_cache_size = 128m \r\nssl = on\r\nssl_cert = /etc/secrets/public.pem\r\nssl_cert_key = /etc/secrets/private.pem\r\ndatabase = postgres\r\npg_host = localhost        \r\npg_port = 5432                 \r\npg_user = kong              \r\npg_password = password                   \r\npg_database = kongdb          \r\npg_ssl = off                   \r\npg_ssl_verify = off \r\n\r\n```\r\n\r\n- Kong error logs\r\n\r\n```\r\nError: \r\n/usr/local/share/lua/5.1/kong/cmd/start.lua:10: ssl_cert_key is not a string: 'table: 0x403d8820'\r\nstack traceback:\r\n\t[C]: in function 'assert'\r\n\t/usr/local/share/lua/5.1/kong/cmd/start.lua:10: in function 'cmd_exec'\r\n\t/usr/local/share/lua/5.1/kong/cmd/init.lua:81: in function </usr/local/share/lua/5.1/kong/cmd/init.lua:81>\r\n\t[C]: in function 'xpcall'\r\n\t/usr/local/share/lua/5.1/kong/cmd/init.lua:81: in function </usr/local/share/lua/5.1/kong/cmd/init.lua:42>\r\n\t/usr/local/bin/kong:11: in function 'file_gen'\r\n\tinit_worker_by_lua:40: in function <init_worker_by_lua:38>\r\n\t[C]: in function 'pcall'\r\n\tinit_worker_by_lua:47: in function <init_worker_by_lua:45>\r\n2016/08/24 06:15:00 [verbose] reading config file at /etc/kong.conf\r\n``` \r\n\r\n- Operating system: Docker version 1.12.0 in Ubuntu 16.04. Centos 7 in Dockerfile.\r\n- Docker file:\r\n```\r\nFROM centos:7\r\nMAINTAINER Ruben Soleto, ruben.soleto.buenvaron@tecsisa.com\r\n\r\nENV KONG_VERSION 0.9.0\r\n\r\nRUN yum install -y https://github.com/Mashape/kong/releases/download/$KONG_VERSION/kong-$KONG_VERSION.el7.noarch.rpm && \\\r\n    yum clean all\r\n\r\nCOPY kong.conf /etc/\r\nCOPY private.pem /etc/secrets/\r\nRUN chmod 644 /etc/secrets/private.pem\r\nCOPY public.pem /etc/secrets/\r\nRUN chmod 644 /etc/secrets/public.pem\r\n\r\nEXPOSE 8000 8443 8001 7946\r\n\r\nCMD [\"kong\", \"start\", \"-c\", \"/etc/kong.conf\", \"--vv\"]\r\n```\r\n\r\n- Possible error place [CONF_INFERENCES](https://github.com/Mashape/kong/blob/master/kong/conf_loader.lua#L49) and [check_and_infer method](https://github.com/Mashape/kong/blob/master/kong/conf_loader.lua#L149)."},"comment":{"url":"https://api.github.com/repos/Mashape/kong/issues/comments/242177117","html_url":"https://github.com/Mashape/kong/issues/1537#issuecomment-242177117","issue_url":"https://api.github.com/repos/Mashape/kong/issues/1537","id":242177117,"user":{"login":"thibaultcha","id":1125431,"avatar_url":"https://avatars.githubusercontent.com/u/1125431?v=3","gravatar_id":"","url":"https://api.github.com/users/thibaultcha","html_url":"https://github.com/thibaultcha","followers_url":"https://api.github.com/users/thibaultcha/followers","following_url":"https://api.github.com/users/thibaultcha/following{/other_user}","gists_url":"https://api.github.com/users/thibaultcha/gists{/gist_id}","starred_url":"https://api.github.com/users/thibaultcha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thibaultcha/subscriptions","organizations_url":"https://api.github.com/users/thibaultcha/orgs","repos_url":"https://api.github.com/users/thibaultcha/repos","events_url":"https://api.github.com/users/thibaultcha/events{/privacy}","received_events_url":"https://api.github.com/users/thibaultcha/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T19:14:56Z","updated_at":"2016-08-24T19:14:56Z","body":"Could you provide a more complete output from kong start? I see this error happens before the `[verbose] reading config file at /etc/kong.conf` and I would like to see what happens before that, and also how you are able to see this error and still have this verbose log output.\r\n\r\nSo far I was not able to reproduce this error."}}
{"actor":{"display_login":"thibaultcha"}}