{"action":"created","issue":{"url":"https://api.github.com/repos/feedbin/feedbin/issues/136","labels_url":"https://api.github.com/repos/feedbin/feedbin/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/feedbin/feedbin/issues/136/comments","events_url":"https://api.github.com/repos/feedbin/feedbin/issues/136/events","html_url":"https://github.com/feedbin/feedbin/issues/136","id":60161004,"number":136,"title":"\"No feed found.\"","user":{"login":"fnkr","id":616991,"avatar_url":"https://avatars.githubusercontent.com/u/616991?v=3","gravatar_id":"","url":"https://api.github.com/users/fnkr","html_url":"https://github.com/fnkr","followers_url":"https://api.github.com/users/fnkr/followers","following_url":"https://api.github.com/users/fnkr/following{/other_user}","gists_url":"https://api.github.com/users/fnkr/gists{/gist_id}","starred_url":"https://api.github.com/users/fnkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fnkr/subscriptions","organizations_url":"https://api.github.com/users/fnkr/orgs","repos_url":"https://api.github.com/users/fnkr/repos","events_url":"https://api.github.com/users/fnkr/events{/privacy}","received_events_url":"https://api.github.com/users/fnkr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-06T21:25:59Z","updated_at":"2015-03-06T23:25:41Z","closed_at":null,"body":"# The problem\r\nI got feedbin working so far but I cannot subscribe to feeds.\r\nIf I try to subscribe to a feed I get\r\n```\r\nNo feed found.\r\n```\r\n\r\n# The start script\r\n## Feedbin\r\n```\r\n# Mail\r\nexport SMTP_ADDRESS=...\r\nexport SMTP_USERNAME=...\r\nexport SMTP_PASSWORD=...\r\n\r\n# Postgres\r\nexport POSTGRES_HOST=localhost\r\nexport POSTGRES_USERNAME=feedbin\r\nexport POSTGRES_PASSWORD=...\r\nexport POSTGRES_DATABASE=feedbin\r\nexport POSTGRES_PORT=5432\r\nexport DATABASE_URL=postgres://$POSTGRES_USERNAME:$POSTGRES_PASSWORD@$POSTGRES_HOST:$POSTGRES_PORT/$POSTGRES_DATABASE\r\n\r\n# Redis\r\nexport REDIS_HOST=localhost\r\nexport REDIS_PORT=6379\r\nexport REDIS_URL=redis://$REDIS_HOST:$REDIS_PORT\r\n\r\n# Rails\r\n#export RAILS_ENV=production\r\nexport RAILS_ENV=development\r\nexport SECRET_KEY_BASE=...\r\n\r\n# Path\r\nsource /usr/local/rvm/scripts/rvm\r\nrvm use 2.1.4\r\n\r\n# Start\r\nif [ \"$1\" = \"foreman\" ]; then\r\n    exec bundle exec foreman start\r\nelif [ \"$1\" = \"rackup\" ]; then\r\n    exec bundle exec rackup\r\nfi\r\n```\r\n## Feedbin refresher\r\n```\r\n# Redis\r\nexport REDIS_HOST=localhost\r\nexport REDIS_PORT=6379\r\nexport REDIS_URL=redis://$REDIS_HOST:$REDIS_PORT\r\n\r\n# Path\r\nsource /usr/local/rvm/scripts/rvm\r\nrvm use 2.2.0\r\n\r\n# Start\r\nexec bundle exec foreman start\r\n```\r\n\r\n# The logs - after 2 minutes and 1 subscribe request\r\n## Foreman\r\n```\r\nfeedbin@h7:~/feedbin$ ./run foreman\r\nUsing /usr/local/rvm/gems/ruby-2.1.4\r\n21:54:11 worker.1      | started with pid 8877\r\n21:54:11 worker_slow.1 | started with pid 8879\r\n21:54:11 clock.1       | started with pid 8880\r\n21:54:15 clock.1       | I, [2015-03-06T21:54:15.579952 #8885]  INFO -- : Starting clock for 2 events: [ clockwork.frequent clockwork.daily ]\r\n21:54:15 clock.1       | I, [2015-03-06T21:54:15.592437 #8885]  INFO -- : Triggering 'clockwork.frequent'\r\n21:54:16 worker_slow.1 | 2015-03-06T20:54:16.023Z 8881 TID-3dynw INFO: Running in ruby 2.1.4p265 (2014-10-27 revision 48166) [x86_64-linux]\r\n21:54:16 worker_slow.1 | 2015-03-06T20:54:16.024Z 8881 TID-3dynw INFO: See LICENSE and the LGPL-3.0 for licensing details.\r\n21:54:16 worker_slow.1 | 2015-03-06T20:54:16.024Z 8881 TID-3dynw INFO: Upgrade to Sidekiq Pro for more features and support: http://sidekiq.org/pro\r\n21:54:16 worker_slow.1 | 2015-03-06T20:54:16.024Z 8881 TID-3dynw INFO: Starting processing, hit Ctrl-C to stop\r\n21:54:16 worker_slow.1 | 2015-03-06T20:54:16.027Z 8881 TID-141zt0 INFO: Booting Sidekiq 3.3.0 with redis options {:url=>\"redis://localhost:6379\"}\r\n21:54:16 worker.1      | 2015-03-06T20:54:16.480Z 8878 TID-buf8g INFO: Running in ruby 2.1.4p265 (2014-10-27 revision 48166) [x86_64-linux]\r\n21:54:16 worker.1      | 2015-03-06T20:54:16.481Z 8878 TID-buf8g INFO: See LICENSE and the LGPL-3.0 for licensing details.\r\n21:54:16 worker.1      | 2015-03-06T20:54:16.481Z 8878 TID-buf8g INFO: Upgrade to Sidekiq Pro for more features and support: http://sidekiq.org/pro\r\n21:54:16 worker.1      | 2015-03-06T20:54:16.481Z 8878 TID-buf8g INFO: Starting processing, hit Ctrl-C to stop\r\n21:54:16 worker.1      | 2015-03-06T20:54:16.568Z 8878 TID-bsuzg INFO: Booting Sidekiq 3.3.0 with redis options {:url=>\"redis://localhost:6379\"}\r\n21:54:16 worker.1      | 2015-03-06T20:54:16.572Z 8878 TID-gs15k FeedRefresherScheduler JID-16b32ebd33529e103295d467 INFO: start\r\n21:54:16 worker.1      | 2015-03-06T20:54:16.574Z 8878 TID-flmh0 SendStats JID-9b46736abe4d03d580d360ae INFO: start\r\n21:54:16 worker.1      | 2015-03-06T20:54:16.575Z 8878 TID-flmh0 SendStats JID-9b46736abe4d03d580d360ae INFO: done: 0.0 sec\r\n21:54:16 worker.1      | 2015-03-06T20:54:16.605Z 8878 TID-gs15k FeedRefresherScheduler JID-16b32ebd33529e103295d467 INFO: done: 0.033 sec\r\n21:55:15 clock.1       | I, [2015-03-06T21:55:15.621254 #8885]  INFO -- : Triggering 'clockwork.frequent'\r\n21:55:15 worker.1      | 2015-03-06T20:55:15.624Z 8878 TID-flmh0 SendStats JID-6cd5a83b4c9189796df30359 INFO: start\r\n21:55:15 worker.1      | 2015-03-06T20:55:15.624Z 8878 TID-flmh0 SendStats JID-6cd5a83b4c9189796df30359 INFO: done: 0.0 sec\r\n21:55:15 worker.1      | 2015-03-06T20:55:15.625Z 8878 TID-gs15k FeedRefresherScheduler JID-0dd2dfeb960b99073c55c622 INFO: start\r\n21:55:15 worker.1      | 2015-03-06T20:55:15.628Z 8878 TID-gs15k FeedRefresherScheduler JID-0dd2dfeb960b99073c55c622 INFO: done: 0.003 sec\r\n21:56:15 clock.1       | I, [2015-03-06T21:56:15.645883 #8885]  INFO -- : Triggering 'clockwork.frequent'\r\n21:56:15 worker.1      | 2015-03-06T20:56:15.650Z 8878 TID-gs15k FeedRefresherScheduler JID-5f71e0f3f7854841eb854ee2 INFO: start\r\n21:56:15 worker.1      | 2015-03-06T20:56:15.651Z 8878 TID-flmh0 SendStats JID-715fa8fc88d84f6f586b60dd INFO: start\r\n21:56:15 worker.1      | 2015-03-06T20:56:15.651Z 8878 TID-flmh0 SendStats JID-715fa8fc88d84f6f586b60dd INFO: done: 0.0 sec\r\n21:56:15 worker.1      | 2015-03-06T20:56:15.656Z 8878 TID-gs15k FeedRefresherScheduler JID-5f71e0f3f7854841eb854ee2 INFO: done: 0.006 sec\r\n```\r\n## Rackup\r\n```\r\nfeedbin@h7:~/feedbin$ ./run rackup\r\nUsing /usr/local/rvm/gems/ruby-2.1.4\r\n[2015-03-06 21:54:26] INFO  WEBrick 1.3.1\r\n[2015-03-06 21:54:26] INFO  ruby 2.1.4 (2014-10-27) [x86_64-linux]\r\n[2015-03-06 21:54:26] INFO  WEBrick::HTTPServer#start: pid=8925 port=9292\r\n46.165.246.199 - - [06/Mar/2015 21:56:07] \"POST /subscriptions HTTP/1.1\" 200 - 0.2454\r\n```\r\n## Refresher\r\n```\r\nfeedbin@h7:~/refresher$ ./run\r\nUsing /usr/local/rvm/gems/ruby-2.2.0\r\n21:54:44 worker.1 | started with pid 9428\r\n21:54:45 worker.1 | 2015-03-06T20:54:45.152Z 9429 TID-9grto INFO: Running in ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]\r\n21:54:45 worker.1 | 2015-03-06T20:54:45.153Z 9429 TID-9grto INFO: See LICENSE and the LGPL-3.0 for licensing details.\r\n21:54:45 worker.1 | 2015-03-06T20:54:45.153Z 9429 TID-9grto INFO: Upgrade to Sidekiq Pro for more features and support: http://sidekiq.org/pro\r\n21:54:45 worker.1 | 2015-03-06T20:54:45.153Z 9429 TID-9grto INFO: Starting processing, hit Ctrl-C to stop\r\n21:54:45 worker.1 | 2015-03-06T20:54:45.170Z 9429 TID-dejzo INFO: Booting Sidekiq 3.3.2 with redis options {:url=>\"redis://localhost:6379\"}\r\n```\r\n\r\n# The environment\r\n- [config/database.yaml](https://gist.github.com/fnkr/bfd79c4b32c55ed76643)\r\n- Postgresql 9.4 [installed, `db:setup` ran successfully, started, and it looks like feedbin is connected to it, I also tried recreating the database (`db:drop` followed by `db:setup`)](https://gist.github.com/fnkr/e6534b4ba2bb3e13b39b)\r\n- Redis 2.8 [installed, running, and it looks like feedbin is connected to it](https://gist.github.com/fnkr/da14c9428b2df6859e32)\r\n- Elasticsearch 1.4.4: [installed, running](https://gist.github.com/fnkr/f12300122e514e520d5a)\r\n\r\n# The code\r\n[app/views/subscriptions/create.js.erb#L22](https://github.com/feedbin/feedbin/blob/0eb9c3dc669af584771bfe01133bbba89aee322c/app/views/subscriptions/create.js.erb#L22)\r\n[app/controllers/subscriptions_controller.rb#L25](https://github.com/feedbin/feedbin/blob/0eb9c3dc669af584771bfe01133bbba89aee322c/app/controllers/subscriptions_controller.rb#L25)\r\n[app/models/feed_fetcher.rb#L14](https://github.com/feedbin/feedbin/blob/0eb9c3dc669af584771bfe01133bbba89aee322c/app/models/feed_fetcher.rb#L14)\r\n\r\n---\r\n\r\nI have no idea what to do, please help!"},"comment":{"url":"https://api.github.com/repos/feedbin/feedbin/issues/comments/77655034","html_url":"https://github.com/feedbin/feedbin/issues/136#issuecomment-77655034","issue_url":"https://api.github.com/repos/feedbin/feedbin/issues/136","id":77655034,"user":{"login":"fnkr","id":616991,"avatar_url":"https://avatars.githubusercontent.com/u/616991?v=3","gravatar_id":"","url":"https://api.github.com/users/fnkr","html_url":"https://github.com/fnkr","followers_url":"https://api.github.com/users/fnkr/followers","following_url":"https://api.github.com/users/fnkr/following{/other_user}","gists_url":"https://api.github.com/users/fnkr/gists{/gist_id}","starred_url":"https://api.github.com/users/fnkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fnkr/subscriptions","organizations_url":"https://api.github.com/users/fnkr/orgs","repos_url":"https://api.github.com/users/fnkr/repos","events_url":"https://api.github.com/users/fnkr/events{/privacy}","received_events_url":"https://api.github.com/users/fnkr/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T23:25:41Z","updated_at":"2015-03-06T23:25:41Z","body":"Thanks for your reply!\r\n\r\nI purged Elasticsearch and [installed the latest Elasticsearch 0.90 (0.90.13)](https://gist.github.com/fnkr/06f393cfe950025b32a8).\r\n\r\nI updated the `feedbin/app/controllers/subscriptions_controller.rb` and now the background request to `/subscriptions` returns a HTTP Error 422 and this stack trace: https://cdn.rawgit.com/fnkr/9e75186aeb98e685ca4f/raw/4aa55085475232e5d5b1f92afe3e618ca300f233/gistfile1.html"}}