{"action":"created","issue":{"url":"https://api.github.com/repos/certbot/certbot/issues/3798","repository_url":"https://api.github.com/repos/certbot/certbot","labels_url":"https://api.github.com/repos/certbot/certbot/issues/3798/labels{/name}","comments_url":"https://api.github.com/repos/certbot/certbot/issues/3798/comments","events_url":"https://api.github.com/repos/certbot/certbot/issues/3798/events","html_url":"https://github.com/certbot/certbot/issues/3798","id":189350767,"number":3798,"title":"certbot-nginx does not (always?) find server block for given domain","user":{"login":"joystein","id":2102029,"avatar_url":"https://avatars.githubusercontent.com/u/2102029?v=3","gravatar_id":"","url":"https://api.github.com/users/joystein","html_url":"https://github.com/joystein","followers_url":"https://api.github.com/users/joystein/followers","following_url":"https://api.github.com/users/joystein/following{/other_user}","gists_url":"https://api.github.com/users/joystein/gists{/gist_id}","starred_url":"https://api.github.com/users/joystein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joystein/subscriptions","organizations_url":"https://api.github.com/users/joystein/orgs","repos_url":"https://api.github.com/users/joystein/repos","events_url":"https://api.github.com/users/joystein/events{/privacy}","received_events_url":"https://api.github.com/users/joystein/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-15T10:13:48Z","updated_at":"2016-11-15T17:29:56Z","closed_at":null,"body":"Versoin of certbot (installed as root with `pip install --user certbot-nginx`):\r\n\r\n```bash\r\n# pip list --user | grep certbot\r\ncertbot (0.9.3)\r\ncertbot-nginx (0.9.3)\r\n```\r\n\r\nOs: debian wheezy (7.11)\r\n\r\nCommand (run through fabric from workstation to remote server):\r\n```\r\n~/.local/bin/certbot certonly --nginx --email username@domain.no -d sub.domain.no # (real domain redacted)\r\n```\r\n\r\nActual output:\r\n```\r\nCannot find a VirtualHost matching domain player.fabelapp.no.\r\n```\r\n\r\nExpected: that certbot would have found the server block in the nginx config files.\r\n\r\nI should note that i have a possibly unusual structure for nginx config files:\r\n```\r\n|-> nginx \r\n|        |-> sites-{available,enabled}\r\n|        |        |-> domain1.no\r\n|        |        |       |-> www.conf\r\n|        |        |       |-> api.conf\r\n|        |        |-> domain2.no\r\n|        |        |       |-> www.conf\r\n|        |        |       |-> api.conf\r\n|        |        |-> domain3.no\r\n|        |        |       |-> www.conf\r\n|        |        |       |-> api.conf\r\n```\r\n\r\nThis is matched with the following include statements in the main nginx config:\r\n```\r\n    include /etc/nginx/conf.d/*.conf;\r\n    include /etc/nginx/sites-enabled/*.conf;\r\n    include /etc/nginx/sites-enabled/*/*.conf;\r\n```\r\n\r\nI have however tried moving the config files i have been testing to directly under `sites-{available,enabled}` and i still get the same error.\r\n\r\nIn the end, i downgraded to `pip install ---user 'certbot-nginx < 0.9.0'` and finally the command ran, and i could go on with the installation step."},"comment":{"url":"https://api.github.com/repos/certbot/certbot/issues/comments/260708866","html_url":"https://github.com/certbot/certbot/issues/3798#issuecomment-260708866","issue_url":"https://api.github.com/repos/certbot/certbot/issues/3798","id":260708866,"user":{"login":"bmw","id":6504915,"avatar_url":"https://avatars.githubusercontent.com/u/6504915?v=3","gravatar_id":"","url":"https://api.github.com/users/bmw","html_url":"https://github.com/bmw","followers_url":"https://api.github.com/users/bmw/followers","following_url":"https://api.github.com/users/bmw/following{/other_user}","gists_url":"https://api.github.com/users/bmw/gists{/gist_id}","starred_url":"https://api.github.com/users/bmw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmw/subscriptions","organizations_url":"https://api.github.com/users/bmw/orgs","repos_url":"https://api.github.com/users/bmw/repos","events_url":"https://api.github.com/users/bmw/events{/privacy}","received_events_url":"https://api.github.com/users/bmw/received_events","type":"User","site_admin":false},"created_at":"2016-11-15T17:29:56Z","updated_at":"2016-11-15T17:29:56Z","body":"@ohemorange, any ideas here?"}}
{"actor":{"display_login":"bmw"}}