{"action":"created","issue":{"url":"https://api.github.com/repos/TykTechnologies/tyk/issues/1502","repository_url":"https://api.github.com/repos/TykTechnologies/tyk","labels_url":"https://api.github.com/repos/TykTechnologies/tyk/issues/1502/labels{/name}","comments_url":"https://api.github.com/repos/TykTechnologies/tyk/issues/1502/comments","events_url":"https://api.github.com/repos/TykTechnologies/tyk/issues/1502/events","html_url":"https://github.com/TykTechnologies/tyk/issues/1502","id":301118389,"number":1502,"title":"Portal not available","user":{"login":"DaspawnW","id":2182549,"avatar_url":"https://avatars1.githubusercontent.com/u/2182549?v=4","gravatar_id":"","url":"https://api.github.com/users/DaspawnW","html_url":"https://github.com/DaspawnW","followers_url":"https://api.github.com/users/DaspawnW/followers","following_url":"https://api.github.com/users/DaspawnW/following{/other_user}","gists_url":"https://api.github.com/users/DaspawnW/gists{/gist_id}","starred_url":"https://api.github.com/users/DaspawnW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaspawnW/subscriptions","organizations_url":"https://api.github.com/users/DaspawnW/orgs","repos_url":"https://api.github.com/users/DaspawnW/repos","events_url":"https://api.github.com/users/DaspawnW/events{/privacy}","received_events_url":"https://api.github.com/users/DaspawnW/received_events","type":"User","site_admin":false},"labels":[{"id":97816682,"url":"https://api.github.com/repos/TykTechnologies/tyk/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-28T17:43:35Z","updated_at":"2018-03-02T11:51:32Z","closed_at":null,"author_association":"NONE","body":"**Do you want to request a *feature* or report a *bug*?**\r\nbug\r\n\r\n**What is the current behavior?**\r\nDeveloper portal is not available\r\n\r\n**What is the expected behavior?**\r\nA Portal page\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem**\r\nI've running gateway and dashboard, the communication and everything works fine, but the developer portal is not available.\r\nMy setup is as follows, in front of gateway and dashboard there are nginx servers that do ssl termination (I know that this is also possible in tyk, but in the future we are planing to use mod_security for security)\r\nI've three domains: dashboard-dev.<domain>, gateway-dev.<domain> and portal-dev.<domain>\r\nThe dashboard-dev and the portal-dev have A records to one instance and the gateway-dev has it's own instance (we are planing to buy ha)\r\n\r\nIf I try to access portal-dev I only get the information:\r\n`Home page not found`\r\n\r\nIn the logs of dashboard I see the following errors:\r\n```\r\ntime=\"Feb 28 17:34:14\" level=error msg=\"Can't find host! portal-dev.<domain>\"\r\ntime=\"Feb 28 17:34:14\" level=error msg=\"No menus found\"\r\ntime=\"Feb 28 17:34:14\" level=error msg=\"No portal configuration found, please create a new portal configuratin\"\r\ntime=\"Feb 28 17:34:14\" level=error msg=\"Can't find host! portal-dev.<domain>\"\r\ntime=\"Feb 28 17:34:14\" level=error msg=\"No menus found\"\r\n```\r\nI've also looked at the organisations api and see the following informations:\r\n```json\r\n{\r\n    \"organisations\": [\r\n        {\r\n            \"id\": \"5a96a1d6a87835000153402a\",\r\n            \"owner_name\": \"Default Org.\",\r\n            \"owner_slug\": \"default\",\r\n            \"cname_enabled\": true,\r\n            \"cname\": \"portal-dev.<domain>\",\r\n            \"apis\": [\r\n                {\r\n                    \"api_human_name\": \"mock\",\r\n                    \"api_id\": \"0f5b5c8907e6493a4cf7d8dd22f70c10\"\r\n                }\r\n            ],\r\n            \"developer_quota\": 0,\r\n            \"developer_count\": 0,\r\n            \"event_options\": {},\r\n            \"hybrid_enabled\": false,\r\n            \"ui\": {\r\n                \"languages\": {},\r\n                \"hide_help\": false,\r\n                \"default_lang\": \"\",\r\n                \"login_page\": {},\r\n                \"nav\": {},\r\n                \"uptime\": {},\r\n                \"portal_section\": {},\r\n                \"designer\": {},\r\n                \"dont_show_admin_sockets\": false,\r\n                \"dont_allow_license_management\": false,\r\n                \"dont_allow_license_management_view\": false\r\n            },\r\n            \"org_options_meta\": {}\r\n        }\r\n    ],\r\n    \"pages\": 0\r\n}\r\n```\r\n\r\nThere are already some test pages to check if everything works:\r\n\r\n```json\r\n{\r\n  \"Data\": [\r\n    {\r\n      \"_id\": \"5a96da9b5fd9cb00017eb2d2\",\r\n      \"fields\": {\r\n        \"MainBody\": \"This is a short test hopefully we will se a page\"\r\n      },\r\n      \"is_homepage\": true,\r\n      \"org_id\": \"5a96a1d6a87835000153402a\",\r\n      \"page_settings\": {},\r\n      \"slug\": \"\",\r\n      \"template_name\": \"\",\r\n      \"title\": \"Foo\"\r\n    }\r\n  ],\r\n  \"Pages\": 0\r\n}\r\n```\r\n\r\nDo you have any idea why this won't work?\r\n\r\n**Which versions of Tyk affected by this issue? Did this work in previous versions of Tyk?**\r\ntykio/tyk-dashboard:v1.5.2\r\ntykio/tyk-gateway:v2.5.2\r\n"},"comment":{"url":"https://api.github.com/repos/TykTechnologies/tyk/issues/comments/369901477","html_url":"https://github.com/TykTechnologies/tyk/issues/1502#issuecomment-369901477","issue_url":"https://api.github.com/repos/TykTechnologies/tyk/issues/1502","id":369901477,"user":{"login":"asoorm","id":1465130,"avatar_url":"https://avatars1.githubusercontent.com/u/1465130?v=4","gravatar_id":"","url":"https://api.github.com/users/asoorm","html_url":"https://github.com/asoorm","followers_url":"https://api.github.com/users/asoorm/followers","following_url":"https://api.github.com/users/asoorm/following{/other_user}","gists_url":"https://api.github.com/users/asoorm/gists{/gist_id}","starred_url":"https://api.github.com/users/asoorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asoorm/subscriptions","organizations_url":"https://api.github.com/users/asoorm/orgs","repos_url":"https://api.github.com/users/asoorm/repos","events_url":"https://api.github.com/users/asoorm/events{/privacy}","received_events_url":"https://api.github.com/users/asoorm/received_events","type":"User","site_admin":false},"created_at":"2018-03-02T11:51:32Z","updated_at":"2018-03-02T11:51:32Z","author_association":"MEMBER","body":"Just a quick update - A patch has been created, has gone through QA and merged into dashboard.\r\n\r\nWe anticipate a deployment with the fix next week."}}
{"actor":{"display_login":"asoorm"}}