{"action":"created","issue":{"url":"https://api.github.com/repos/dokku/dokku-redis/issues/114","repository_url":"https://api.github.com/repos/dokku/dokku-redis","labels_url":"https://api.github.com/repos/dokku/dokku-redis/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/dokku/dokku-redis/issues/114/comments","events_url":"https://api.github.com/repos/dokku/dokku-redis/issues/114/events","html_url":"https://github.com/dokku/dokku-redis/issues/114","id":374785706,"node_id":"MDU6SXNzdWUzNzQ3ODU3MDY=","number":114,"title":"Errno::EADDRNOTAVAIL (Cannot assign requested address - connect(2) for [::1]:6379)","user":{"login":"matissg","id":27437215,"node_id":"MDQ6VXNlcjI3NDM3MjE1","avatar_url":"https://avatars2.githubusercontent.com/u/27437215?v=4","gravatar_id":"","url":"https://api.github.com/users/matissg","html_url":"https://github.com/matissg","followers_url":"https://api.github.com/users/matissg/followers","following_url":"https://api.github.com/users/matissg/following{/other_user}","gists_url":"https://api.github.com/users/matissg/gists{/gist_id}","starred_url":"https://api.github.com/users/matissg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matissg/subscriptions","organizations_url":"https://api.github.com/users/matissg/orgs","repos_url":"https://api.github.com/users/matissg/repos","events_url":"https://api.github.com/users/matissg/events{/privacy}","received_events_url":"https://api.github.com/users/matissg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-28T18:51:54Z","updated_at":"2018-10-28T19:34:39Z","closed_at":null,"author_association":"NONE","body":"I'm stuck with this error. **In production** when I do image upload (Rails Active Storage, direct_upload) I get this fatal error:\r\n`Errno::EADDRNOTAVAIL (Cannot assign requested address - connect(2) for [::1]:6379)`\r\n\r\nI thought it is something related to Puma as [in this issue](https://github.com/puma/puma/issues/1062), but no - I tried to changed as suggested, but no luck.\r\n\r\n`sudo nano /etc/hosts` gives me this:\r\n```\r\n127.0.1.1 dokku-own-apps dokku-own-apps\r\n127.0.0.1 localhost\r\n\r\n# The following lines are desirable for IPv6 capable hosts\r\n::1 ip6-localhost ip6-loopback\r\nfe00::0 ip6-localnet\r\nff00::0 ip6-mcastprefix\r\nff02::1 ip6-allnodes\r\nff02::2 ip6-allrouters\r\nff02::3 ip6-allhosts\r\n```\r\nMy dokku redis info:\r\n```\r\nroot@dokku-own-apps:~# dokku redis:info dokku-own-apps\r\n=====> Container Information\r\n       Config dir:          /var/lib/dokku/services/redis/dokku-own-apps/config\r\n       Data dir:            /var/lib/dokku/services/redis/dokku-own-apps/data\r\n       Dsn:                 redis://dokku-own-apps:[some random id]@dokku-redis-dokku-own-apps:6379\r\n       Exposed ports:       -\r\n       Id:                  [some random id]\r\n       Internal ip:         172.17.0.4\r\n       Links:               myappname\r\n       Service root:        /var/lib/dokku/services/redis/dokku-own-apps\r\n       Status:              running\r\n       Version:             redis:4.0.11\r\n```\r\nMy dokku redis list:\r\n```\r\nroot@dokku-own-apps:~# dokku redis:list\r\nNAME            VERSION       STATUS   EXPOSED PORTS  LINKS\r\ndokku-own-apps  redis:4.0.11  running  -              myappname\r\n```\r\n\r\n**How can I fix this, please?**\r\nEverything works just fine in development on my local machine."},"comment":{"url":"https://api.github.com/repos/dokku/dokku-redis/issues/comments/433734586","html_url":"https://github.com/dokku/dokku-redis/issues/114#issuecomment-433734586","issue_url":"https://api.github.com/repos/dokku/dokku-redis/issues/114","id":433734586,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzczNDU4Ng==","user":{"login":"matissg","id":27437215,"node_id":"MDQ6VXNlcjI3NDM3MjE1","avatar_url":"https://avatars2.githubusercontent.com/u/27437215?v=4","gravatar_id":"","url":"https://api.github.com/users/matissg","html_url":"https://github.com/matissg","followers_url":"https://api.github.com/users/matissg/followers","following_url":"https://api.github.com/users/matissg/following{/other_user}","gists_url":"https://api.github.com/users/matissg/gists{/gist_id}","starred_url":"https://api.github.com/users/matissg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matissg/subscriptions","organizations_url":"https://api.github.com/users/matissg/orgs","repos_url":"https://api.github.com/users/matissg/repos","events_url":"https://api.github.com/users/matissg/events{/privacy}","received_events_url":"https://api.github.com/users/matissg/received_events","type":"User","site_admin":false},"created_at":"2018-10-28T19:34:39Z","updated_at":"2018-10-28T19:34:39Z","author_association":"NONE","body":"@josegonzalez  I'm using Dokku for my DigitalOcean droplet and it looks like this:\r\n```\r\n2018-10-28T19:30:08.620980344Z app[web.1]: D, [2018-10-28T19:30:08.620845 #8] DEBUG -- : [2b0d53ae-33b4-4d20-967b-025fe9ee375d]   ActiveStorage::Attachment Create (0.5ms)  INSERT INTO \"active_storage_attachments\" (\"name\", \"record_type\", \"record_id\", \"blob_id\", \"created_at\") VALUES ($1, $2, $3, $4, $5) RETURNING \"id\"  [[\"name\", \"image\"], [\"record_type\", \"Medium::Medium\"], [\"record_id\", 6], [\"blob_id\", 34], [\"created_at\", \"2018-10-28 19:30:08.619763\"]]\r\n2018-10-28T19:30:08.623729115Z app[web.1]: D, [2018-10-28T19:30:08.623536 #8] DEBUG -- : [2b0d53ae-33b4-4d20-967b-025fe9ee375d]    (0.4ms)  ROLLBACK\r\n2018-10-28T19:30:08.624458248Z app[web.1]: I, [2018-10-28T19:30:08.624358 #8]  INFO -- : [2b0d53ae-33b4-4d20-967b-025fe9ee375d] Completed 500 Internal Server Error in 20ms (ActiveRecord: 4.0ms)\r\n2018-10-28T19:30:08.630157879Z app[web.1]: F, [2018-10-28T19:30:08.629906 #8] FATAL -- : [2b0d53ae-33b4-4d20-967b-025fe9ee375d]\r\n2018-10-28T19:30:08.630369597Z app[web.1]: F, [2018-10-28T19:30:08.630254 #8] FATAL -- : [2b0d53ae-33b4-4d20-967b-025fe9ee375d] Errno::EADDRNOTAVAIL (Cannot assign requested address - connect(2) for [::1]:6379):\r\n```\r\nNo errors when I upload image locally."}}
{"actor":{"display_login":"matissg"}}