Queue is not working when launching
Opened this issue · 0 comments
Hi,
I used that SQS Local queue to consume locally my messages.
But I still get a recurrent error :
xx_api | [2022-10-04T11:40:35.657809+00:00][e31f6be][API] app.INFO: Try #1 after 917ms: Idle timeout reached for "http://169.254.169.254/latest/meta-data/iam/security-credentials". {"count":1,"delay":917} {"env":"dev","url":"/event/zelty","ip":"172.18.0.1","http_method":"POST","server":"localhost","referrer":null,"process_id":65,"memory_usage":"4 MB","memory_peak_usage":"4 MB"} xx_api | [2022-10-04T11:40:36.659672+00:00][e31f6be][CISAPI app.INFO: Try #2 after 2197ms: Idle timeout reached for "http://169.254.169.254/latest/meta-data/iam/security-credentials". {"count":2,"delay":2197} {"env":"dev","url":"/event/zelty","ip":"172.18.0.1","http_method":"POST","server":"localhost","referrer":null,"process_id":65,"memory_usage":"4 MB","memory_peak_usage":"4 MB"} xx_api | [2022-10-04T11:40:37.663658+00:00][e31f6be][API] app.INFO: Try #3 after 3872ms: Idle timeout reached for "http://169.254.169.254/latest/meta-data/iam/security-credentials". {"count":3,"delay":3872} {"env":"dev","url":"/event/zelty","ip":"172.18.0.1","http_method":"POST","server":"localhost","referrer":null,"process_id":65,"memory_usage":"4 MB","memory_peak_usage":"4 MB"} xx_api | [2022-10-04T11:40:38.669569+00:00][e31f6be][API] app.INFO: Failed to fetch Profile from Instance Metadata. {"exception":{"message":"Idle timeout reached for \"http://169.254.169.254/latest/meta-data/iam/security-credentials\".","file":"/usr/share/cis/vendor/symfony/http-client/Chunk/ErrorChunk.php","line":62,"code":0}} {"env":"dev","url":"/event/zelty","ip":"172.18.0.1","http_method":"POST","server":"localhost","referrer":null,"process_id":65,"memory_usage":"4 MB","memory_peak_usage":"4 MB"} xx_api | [2022-10-04T11:40:38.748923+00:00][e31f6be][API] app.DEBUG: EventPayloadMessage dispatched {"payload_id":"01GEHCRCAYNZDGCJXTW17G86T4","provider_id":"4491","provider":"zelty","event_type":"product_updated"} {"env":"dev","url":"/event/zelty","ip":"172.18.0.1","http_method":"POST","server":"localhost","referrer":null,"process_id":65,"memory_usage":"4 MB","memory_peak_usage":"4 MB"}
Plus, when I try to consume the messages in the queue :
[2022-10-04T11:42:06.158620+00:00][628219c][CIS] app.INFO: Try #1 after 1038ms: Idle timeout reached for "http://169.254.169.254/latest/meta-data/iam/security-credentials". {"count":1,"delay":1038} {"env":"dev","process_id":128,"memory_usage":"20 MB","memory_peak_usage":"20 MB"} [2022-10-04T11:42:07.162062+00:00][628219c][CIS] app.INFO: Try #2 after 1957ms: Idle timeout reached for "http://169.254.169.254/latest/meta-data/iam/security-credentials". {"count":2,"delay":1957} {"env":"dev","process_id":128,"memory_usage":"20 MB","memory_peak_usage":"20 MB"} [2022-10-04T11:42:08.164022+00:00][628219c][CIS] app.INFO: Try #3 after 3927ms: Idle timeout reached for "http://169.254.169.254/latest/meta-data/iam/security-credentials". {"count":3,"delay":3927} {"env":"dev","process_id":128,"memory_usage":"20 MB","memory_peak_usage":"20 MB"} [2022-10-04T11:42:09.167994+00:00][628219c][CIS] app.INFO: Failed to fetch Profile from Instance Metadata. {"exception":{"message":"Idle timeout reached for \"http://169.254.169.254/latest/meta-data/iam/security-credentials\".","file":"/usr/share/cis/vendor/symfony/http-client/Chunk/ErrorChunk.php","line":62,"code":0}} {"env":"dev","process_id":128,"memory_usage":"20 MB","memory_peak_usage":"20 MB"}
That's my service docker-compose.yml :
alpine-sqs:
image: roribio16/alpine-sqs:latest
container_name: alpine_sqs
hostname: sqs
ports:
- "9324:9324"
- "9325:9325"
stdin_open: true
tty: true
Anyone can help me to resolve that issue ?