{"action":"closed","issue":{"url":"https://api.github.com/repos/aalto-trafficsense/regular-routes-devops/issues/2","labels_url":"https://api.github.com/repos/aalto-trafficsense/regular-routes-devops/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/aalto-trafficsense/regular-routes-devops/issues/2/comments","events_url":"https://api.github.com/repos/aalto-trafficsense/regular-routes-devops/issues/2/events","html_url":"https://github.com/aalto-trafficsense/regular-routes-devops/issues/2","id":114966484,"number":2,"title":"Chef-configured duplicate removal and snapping fail","user":{"login":"MJRinne","id":1104150,"avatar_url":"https://avatars.githubusercontent.com/u/1104150?v=3","gravatar_id":"","url":"https://api.github.com/users/MJRinne","html_url":"https://github.com/MJRinne","followers_url":"https://api.github.com/users/MJRinne/followers","following_url":"https://api.github.com/users/MJRinne/following{/other_user}","gists_url":"https://api.github.com/users/MJRinne/gists{/gist_id}","starred_url":"https://api.github.com/users/MJRinne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MJRinne/subscriptions","organizations_url":"https://api.github.com/users/MJRinne/orgs","repos_url":"https://api.github.com/users/MJRinne/repos","events_url":"https://api.github.com/users/MJRinne/events{/privacy}","received_events_url":"https://api.github.com/users/MJRinne/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aalto-trafficsense/regular-routes-devops/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-04T04:23:14Z","updated_at":"2015-11-05T06:20:42Z","closed_at":"2015-11-05T06:20:42Z","body":"The current devops configuration for duplicate removal and snapping results in the following entries in `nginx/error.log`:\r\n\r\n    2015/11/04 01:00:01 [error] 8095#0: *601 open() \"/usr/share/nginx/html/api/maintenance/duplicates\" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: \"GET /api/maintenance/duplicates HTTP/1.1\", host: \"localhost\"\r\n    2015/11/04 02:00:01 [error] 8095#0: *602 open() \"/usr/share/nginx/html/api/maintenance/snapping\" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: \"GET /api/maintenance/snapping HTTP/1.1\", host: \"localhost\"\r\n\r\nI.e. the request is not going to the correct place. In `access.log` the automated requests look like this:\r\n\r\n    127.0.0.1 - - [04/Nov/2015:01:00:01 +0200] \"GET /api/maintenance/duplicates HTTP/1.1\" 404 168 \"-\" \"curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3\"\r\n    127.0.0.1 - - [04/Nov/2015:02:00:01 +0200] \"GET /api/maintenance/snapping HTTP/1.1\" 404 168 \"-\" \"curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3\"\r\n\r\nThe accepted ones (coming from a browser) look like this:\r\n\r\n    91.154.97.149 - - [04/Nov/2015:06:16:55 +0200] \"GET /api/maintenance/duplicates HTTP/1.1\" 200 36 \"-\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36\"\r\n    91.154.97.149 - - [04/Nov/2015:06:17:02 +0200] \"GET /api/maintenance/snapping HTTP/1.1\" 200 34 \"-\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36\"\r\n\r\n\r\n"}}