{"action":"opened","issue":{"url":"https://api.github.com/repos/roribio/alpine-sqs/issues/15","repository_url":"https://api.github.com/repos/roribio/alpine-sqs","labels_url":"https://api.github.com/repos/roribio/alpine-sqs/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/roribio/alpine-sqs/issues/15/comments","events_url":"https://api.github.com/repos/roribio/alpine-sqs/issues/15/events","html_url":"https://github.com/roribio/alpine-sqs/issues/15","id":334552514,"node_id":"MDU6SXNzdWUzMzQ1NTI1MTQ=","number":15,"title":"Custom configs doesn't work","user":{"login":"moleksyuk","id":793472,"node_id":"MDQ6VXNlcjc5MzQ3Mg==","avatar_url":"https://avatars1.githubusercontent.com/u/793472?v=4","gravatar_id":"","url":"https://api.github.com/users/moleksyuk","html_url":"https://github.com/moleksyuk","followers_url":"https://api.github.com/users/moleksyuk/followers","following_url":"https://api.github.com/users/moleksyuk/following{/other_user}","gists_url":"https://api.github.com/users/moleksyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/moleksyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moleksyuk/subscriptions","organizations_url":"https://api.github.com/users/moleksyuk/orgs","repos_url":"https://api.github.com/users/moleksyuk/repos","events_url":"https://api.github.com/users/moleksyuk/events{/privacy}","received_events_url":"https://api.github.com/users/moleksyuk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-21T15:46:11Z","updated_at":"2018-06-21T15:46:11Z","closed_at":null,"author_association":"NONE","body":"Hi @roribio,\r\n\r\nYesterday you closed #11 but unfortunately it doesn't work for me.\r\n\r\nSteps to reproduce:\r\n1. git clone https://github.com/roribio/alpine-sqs.git\r\n2. Edit file **alpine-sqs/opt/elasticmq.conf** to such content:\r\n```\r\ninclude classpath(\"application.conf\")\r\n\r\nnode-address {\r\n    protocol = http\r\n    host = \"*\"\r\n    port = 9324\r\n    context-path = \"\"\r\n}\r\n\r\nrest-sqs {\r\n    enabled = true\r\n    bind-port = 9324\r\n    bind-hostname = \"0.0.0.0\"\r\n    // Possible values: relaxed, strict\r\n    sqs-limits = strict\r\n}\r\n\r\nqueues {\r\n    default {\r\n        defaultVisibilityTimeout = 10 seconds\r\n        delay = 5 seconds\r\n        receiveMessageWait = 0 seconds\r\n    },\r\n    test {\r\n        defaultVisibilityTimeout = 10 seconds\r\n        delay = 5 seconds\r\n        receiveMessageWait = 0 seconds\r\n    }\r\n}\r\n```\r\n\r\n3. Edit file **alpine-sqs/opt/elasticmq.conf** to such content:\r\n```json\r\n{\r\n    \"port\": 9325,\r\n    \"rememberMessages\": 100,\r\n\r\n    \"endpoints\": [\r\n        {\r\n           \"key\": \"notValidKey\",\r\n           \"secretKey\": \"notValidSecret\",\r\n           \"region\": \"eu-central-1\",\r\n           \"url\": \"http://localhost:9324/queue/default\",\r\n           \"visibility\": 0\r\n        },\r\n        {\r\n           \"key\": \"notValidKey\",\r\n           \"secretKey\": \"notValidSecret\",\r\n           \"region\": \"eu-central-1\",\r\n           \"url\": \"http://localhost:9324/queue/test\",\r\n           \"visibility\": 0\r\n        }\r\n    ]\r\n}\r\n```\r\n\r\n4. Run docker: `docker run -p 9324:9324 -p 9325:9325 -v /Users/moleksyuk/tmp/alpine-sqs/opt:/opt/custom roribio16/alpine-sqs:latest`\r\n\r\nIn logs I see it says only one queue is available:\r\n```\r\n~/tmp/alpine-sqs/opt   master ●  docker run -p 9324:9324 -p 9325:9325 -v /Users/moleksyuk/tmp/alpine-sqs/opt:/opt/custom roribio16/alpine-sqs:latest\r\n2018-06-21 15:24:25,324 CRIT Set uid to user 0\r\n2018-06-21 15:24:25,324 INFO Included extra file \"/etc/supervisor/conf.d/elasticmq.conf\" during parsing\r\n2018-06-21 15:24:25,324 INFO Included extra file \"/etc/supervisor/conf.d/insight.conf\" during parsing\r\n2018-06-21 15:24:25,324 INFO Included extra file \"/etc/supervisor/conf.d/sqs-init.conf\" during parsing\r\n2018-06-21 15:24:25,330 INFO RPC interface 'supervisor' initialized\r\n2018-06-21 15:24:25,331 CRIT Server 'unix_http_server' running without any HTTP authentication checking\r\n2018-06-21 15:24:25,331 INFO supervisord started with pid 1\r\n2018-06-21 15:24:26,337 INFO spawned: 'sqs-init' with pid 9\r\n2018-06-21 15:24:26,340 INFO spawned: 'elasticmq' with pid 10\r\n2018-06-21 15:24:26,343 INFO spawned: 'insight' with pid 11\r\n\r\n> sqs-insight@0.2.1 start /opt/sqs-insight\r\n> node index.js\r\n\r\n15:24:27.187 [main] INFO  org.elasticmq.server.Main$ - Starting ElasticMQ server (0.13.8) ...\r\nLoading config file from \"/opt/sqs-insight/lib/../config/config_local.json\"\r\nConfig contains 1 queues.\r\nAdding consumer for default\r\n2018-06-21 15:24:27,364 INFO success: sqs-init entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)\r\n2018-06-21 15:24:27,364 INFO success: elasticmq entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)\r\n2018-06-21 15:24:27,365 INFO success: insight entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)\r\n2018-06-21 15:24:27,365 INFO exited: sqs-init (exit status 0; expected)\r\nlistening on port 9325\r\n15:24:28.235 [elasticmq-akka.actor.default-dispatcher-3] INFO  akka.event.slf4j.Slf4jLogger - Slf4jLogger started\r\nError on queue \"default\": SQS receive message failed: connect ECONNREFUSED 127.0.0.1:9324\r\nError on queue \"default\": SQS receive message failed: connect ECONNREFUSED 127.0.0.1:9324\r\n15:24:29.685 [elasticmq-akka.actor.default-dispatcher-2] INFO  o.e.rest.sqs.TheSQSRestServerBuilder - Started SQS rest server, bind address 0.0.0.0:9324, visible server address * (depends on incoming request path)\r\n15:24:29.755 [elasticmq-akka.actor.default-dispatcher-2] INFO  o.elasticmq.actor.QueueManagerActor - Creating queue QueueData(test,MillisVisibilityTimeout(10000),PT5S,PT0S,2018-06-21T15:24:29.685Z,2018-06-21T15:24:29.685Z,None,None)\r\n15:24:29.761 [elasticmq-akka.actor.default-dispatcher-2] INFO  o.elasticmq.actor.QueueManagerActor - Creating queue QueueData(default,MillisVisibilityTimeout(10000),PT5S,PT0S,2018-06-21T15:24:29.761Z,2018-06-21T15:24:29.761Z,None,None)\r\n15:24:29.763 [main] INFO  org.elasticmq.server.Main$ - === ElasticMQ server (0.13.8) started in 3241 ms ===\r\n```\r\nAnd SQS-Insight also shows only **default** queue.\r\n<img width=\"746\" alt=\"screen shot 2018-06-21 at 18 45 22\" src=\"https://user-images.githubusercontent.com/793472/41729999-53f32132-7583-11e8-9e20-15564eb31d2e.png\">\r\n\r\nIs it bug or my config is wrong?"}}
{"actor":{"display_login":"moleksyuk"}}