{"action":"created","issue":{"url":"https://api.github.com/repos/csirtgadgets/massive-octo-spice/issues/191","labels_url":"https://api.github.com/repos/csirtgadgets/massive-octo-spice/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/csirtgadgets/massive-octo-spice/issues/191/comments","events_url":"https://api.github.com/repos/csirtgadgets/massive-octo-spice/issues/191/events","html_url":"https://github.com/csirtgadgets/massive-octo-spice/issues/191","id":69123704,"number":191,"title":"cif-smrt proxy issues","user":{"login":"wesyoung","id":474878,"avatar_url":"https://avatars.githubusercontent.com/u/474878?v=3","gravatar_id":"","url":"https://api.github.com/users/wesyoung","html_url":"https://github.com/wesyoung","followers_url":"https://api.github.com/users/wesyoung/followers","following_url":"https://api.github.com/users/wesyoung/following{/other_user}","gists_url":"https://api.github.com/users/wesyoung/gists{/gist_id}","starred_url":"https://api.github.com/users/wesyoung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesyoung/subscriptions","organizations_url":"https://api.github.com/users/wesyoung/orgs","repos_url":"https://api.github.com/users/wesyoung/repos","events_url":"https://api.github.com/users/wesyoung/events{/privacy}","received_events_url":"https://api.github.com/users/wesyoung/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/csirtgadgets/massive-octo-spice/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"wesyoung","id":474878,"avatar_url":"https://avatars.githubusercontent.com/u/474878?v=3","gravatar_id":"","url":"https://api.github.com/users/wesyoung","html_url":"https://github.com/wesyoung","followers_url":"https://api.github.com/users/wesyoung/followers","following_url":"https://api.github.com/users/wesyoung/following{/other_user}","gists_url":"https://api.github.com/users/wesyoung/gists{/gist_id}","starred_url":"https://api.github.com/users/wesyoung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesyoung/subscriptions","organizations_url":"https://api.github.com/users/wesyoung/orgs","repos_url":"https://api.github.com/users/wesyoung/repos","events_url":"https://api.github.com/users/wesyoung/events{/privacy}","received_events_url":"https://api.github.com/users/wesyoung/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-04-17T11:46:59Z","updated_at":"2015-04-17T13:10:50Z","closed_at":null,"body":"Hey guys ;) Testing 2.00.00-beta.2cif on Ubuntu 14.04 LTS 64-bit behind an http_proxy (which also un-easys the easy-button, but I'll leave that aside).\r\n\r\n\"sudo -u cif /opt/cif/bin/cif-smrt --testmode -d\" works, other than 500 SSL upgrade failed errors even with --no-verify-ssl appended. Feeds are pulled.\r\n\r\nWhen the cif-smrt service is started back up (--test-mode appended to run immediately), I get timeouts for the feeds. My theory is that start-stop-daemon in Ubuntu is ignoring http_proxy environment variables, and of course the Ubuntu version of start-stop-daemon doesn't use the -e or --env flags to set them within the init.d script. I have yet to find a way to get the environment variables to be respected when run as a daemon from init.d. I had the problem as well on previous alpha releases.\r\n\r\nHere is an example from cif-smrt.log:\r\n>[2015-04-08T15:14:23,022Z][DEBUG][main:308]: spamhaus.org - drop\r\n>[2015-04-08T15:14:23,022Z][INFO][main:310]: processing: -r /etc/cif/rules/default/spamhaus.yml -f drop\r\n>[2015-04-08T15:14:23,023Z][DEBUG][CIF::Smrt:93]: starting at: 2015-04-08T00:00:00Z\r\n>[2015-04-08T15:14:23,023Z][DEBUG][CIF::Smrt:98]: fetching...\r\n>[2015-04-08T15:14:23,024Z][DEBUG][CIF::Smrt::Fetcher:81]: pulling: http://www.spamhaus.org/drop/drop.lasso\r\n>[2015-04-08T15:14:51,438Z][DEBUG][CIF::Smrt::Fetcher:97]: status: 500 Can't connect to s3.amazonaws.com:80 (Connection timed out)\r\n>[2015-04-08T15:14:51,438Z][ERROR][CIF::Smrt::Fetcher:99]: 500 Can't connect to s3.amazonaws.com:80 (Connection timed out)\r\n>[2015-04-08T15:14:51,439Z][DEBUG][CIF::Smrt:101]: no data.. skipping..\r\n>[2015-04-08T15:14:51,439Z][INFO][main:342]: nothing new to send...\r\n\r\nWhen I run the command (with sudo) setup by start-stop-daemon, it pulls feeds.\r\n>$ sudo /usr/bin/perl /opt/cif/bin/cif-smrt -d --logging --logfile /var/log/cif-smrt.log -p /var/run/cif-smrt.pid -C /etc/cif/cif-smrt.yml -D start --testmode\r\n"},"comment":{"url":"https://api.github.com/repos/csirtgadgets/massive-octo-spice/issues/comments/93982835","html_url":"https://github.com/csirtgadgets/massive-octo-spice/issues/191#issuecomment-93982835","issue_url":"https://api.github.com/repos/csirtgadgets/massive-octo-spice/issues/191","id":93982835,"user":{"login":"wesyoung","id":474878,"avatar_url":"https://avatars.githubusercontent.com/u/474878?v=3","gravatar_id":"","url":"https://api.github.com/users/wesyoung","html_url":"https://github.com/wesyoung","followers_url":"https://api.github.com/users/wesyoung/followers","following_url":"https://api.github.com/users/wesyoung/following{/other_user}","gists_url":"https://api.github.com/users/wesyoung/gists{/gist_id}","starred_url":"https://api.github.com/users/wesyoung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesyoung/subscriptions","organizations_url":"https://api.github.com/users/wesyoung/orgs","repos_url":"https://api.github.com/users/wesyoung/repos","events_url":"https://api.github.com/users/wesyoung/events{/privacy}","received_events_url":"https://api.github.com/users/wesyoung/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T13:10:50Z","updated_at":"2015-04-17T13:10:50Z","body":"i'm gonna release beta.3, in /etc/cif/cif-smrt.yml try adding something like:\r\n\r\n```\r\n---\r\nclient:\r\n  remote: http://localhost:5000\r\n  token: aaaa\r\n  proxy: http://127.0.0.1:8080\r\n```"}}