Metadata service error in the logs every second

Version ie <v5.10.30>

Environment <Docker/Shared Hosting/Zip/Other>

Self-hosted, VPS, Ubuntu 22

Describe the bug

Every second I’m getting a wall of text generated in my Laravel log file and it’s growing very quickly, it’s about some AWS metadata service that it can’t reach on port 80. I tried adding the IP to my firewall whitelist, but it didn’t fix the issue.

Steps To Reproduce

Just running Invoice Ninja

Expected Behavior

A log file not growing up to several MBs just by looking at it

Additional context

Screenshots

Logs

Log snippet, the same is added every second:

[2024-11-10 15:16:55] production.ERROR: Error retrieving credentials from the instance profile metadata service. (cURL error 7: Failed to connect to 169.254.169.254 port 80 after 1 ms: Network is unreachable (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://169.254.169.254/latest/meta-data/iam/security-credentials/) {"exception":"[object] (Aws\\Exception\\CredentialsException(code: 0): Error retrieving credentials from the instance profile metadata service. (cURL error 7: Failed to connect to 169.254.169.254 port 80 after 1 ms: Network is unreachable (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://169.254.169.254/latest/meta-data/iam/security-credentials/) at /home/charleso/public_html/admin/vendor/aws/aws-sdk-php/src/Credentials/InstanceProfileProvider.php:300)
[stacktrace]
#0 /home/charleso/public_html/admin/vendor/aws/aws-sdk-php/src/Credentials/InstanceProfileProvider.php(171): Aws\\Credentials\\InstanceProfileProvider->handleRetryableException(Object(GuzzleHttp\\Exception\\ConnectException), Array, 'Error retrievin...')
#1 [internal function]: Aws\\Credentials\\InstanceProfileProvider->Aws\\Credentials\\{closure}()
#2 /home/charleso/public_html/admin/vendor/guzzlehttp/promises/src/Coroutine.php(155): Generator->throw(Object(GuzzleHttp\\Exception\\ConnectException))
#3 /home/charleso/public_html/admin/vendor/guzzlehttp/promises/src/Promise.php(209): GuzzleHttp\\Promise\\Coroutine->_handleFailure(Object(GuzzleHttp\\Exception\\ConnectException))
#4 /home/charleso/public_html/admin/vendor/guzzlehttp/promises/src/Promise.php(158): GuzzleHttp\\Promise\\Promise::callHandler(2, Object(GuzzleHttp\\Exception\\ConnectException), NULL)
#5 /home/charleso/public_html/admin/vendor/guzzlehttp/promises/src/TaskQueue.php(52): GuzzleHttp\\Promise\\Promise::GuzzleHttp\\Promise\\{closure}()
#6 /home/charleso/public_html/admin/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php(167): GuzzleHttp\\Promise\\TaskQueue->run()
#7 /home/charleso/public_html/admin/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php(206): GuzzleHttp\\Handler\\CurlMultiHandler->tick()
#8 /home/charleso/public_html/admin/vendor/guzzlehttp/promises/src/Promise.php(251): GuzzleHttp\\Handler\\CurlMultiHandler->execute(true)
#9 /home/charleso/public_html/admin/vendor/guzzlehttp/promises/src/Promise.php(227): GuzzleHttp\\Promise\\Promise->invokeWaitFn()
#10 /home/charleso/public_html/admin/vendor/guzzlehttp/promises/src/Promise.php(272): GuzzleHttp\\Promise\\Promise->waitIfPending()
#11 /home/charleso/public_html/admin/vendor/guzzlehttp/promises/src/Promise.php(229): GuzzleHttp\\Promise\\Promise->invokeWaitList()
#12 /home/charleso/public_html/admin/vendor/guzzlehttp/promises/src/Promise.php(69): GuzzleHttp\\Promise\\Promise->waitIfPending()
#13 /home/charleso/public_html/admin/vendor/guzzlehttp/promises/src/Coroutine.php(68): GuzzleHttp\\Promise\\Promise->wait()
#14 /home/charleso/public_html/admin/vendor/guzzlehttp/promises/src/Promise.php(251): GuzzleHttp\\Promise\\Coroutine->GuzzleHttp\\Promise\\{closure}(true)
#15 /home/charleso/public_html/admin/vendor/guzzlehttp/promises/src/Promise.php(227): GuzzleHttp\\Promise\\Promise->invokeWaitFn()
#16 /home/charleso/public_html/admin/vendor/guzzlehttp/promises/src/Promise.php(69): GuzzleHttp\\Promise\\Promise->waitIfPending()
#17 /home/charleso/public_html/admin/vendor/guzzlehttp/promises/src/Coroutine.php(100): GuzzleHttp\\Promise\\Promise->wait(false)
#18 /home/charleso/public_html/admin/vendor/guzzlehttp/promises/src/Promise.php(277): GuzzleHttp\\Promise\\Coroutine->wait(false)
#19 /home/charleso/public_html/admin/vendor/guzzlehttp/promises/src/Promise.php(229): GuzzleHttp\\Promise\\Promise->invokeWaitList()
#20 /home/charleso/public_html/admin/vendor/guzzlehttp/promises/src/Promise.php(69): GuzzleHttp\\Promise\\Promise->waitIfPending()
#21 /home/charleso/public_html/admin/vendor/aws/aws-sdk-php/src/AwsClientTrait.php(58): GuzzleHttp\\Promise\\Promise->wait()
#22 /home/charleso/public_html/admin/vendor/aws/aws-sdk-php/src/AwsClientTrait.php(86): Aws\\AwsClient->execute(Object(Aws\\Command))
#23 /home/charleso/public_html/admin/vendor/laravel/framework/src/Illuminate/Queue/SqsQueue.php(171): Aws\\AwsClient->__call('receiveMessage', Array)
#24 /home/charleso/public_html/admin/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(350): Illuminate\\Queue\\SqsQueue->pop('https://sqs.us-...', 0)
#25 /home/charleso/public_html/admin/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(364): Illuminate\\Queue\\Worker->Illuminate\\Queue\\{closure}('default', 0)
#26 /home/charleso/public_html/admin/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(163): Illuminate\\Queue\\Worker->getNextJob(Object(Illuminate\\Queue\\SqsQueue), 'default')
#27 /home/charleso/public_html/admin/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(148): Illuminate\\Queue\\Worker->daemon('sqs', 'default', Object(Illuminate\\Queue\\WorkerOptions))
#28 /home/charleso/public_html/admin/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(131): Illuminate\\Queue\\Console\\WorkCommand->runWorker('sqs', 'default')
#29 /home/charleso/public_html/admin/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\\Queue\\Console\\WorkCommand->handle()
#30 /home/charleso/public_html/admin/vendor/laravel/framework/src/Illuminate/Container/Util.php(43): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#31 /home/charleso/public_html/admin/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(95): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#32 /home/charleso/public_html/admin/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#33 /home/charleso/public_html/admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(690): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#34 /home/charleso/public_html/admin/vendor/laravel/framework/src/Illuminate/Console/Command.php(213): Illuminate\\Container\\Container->call(Array)
#35 /home/charleso/public_html/admin/vendor/symfony/console/Command/Command.php(279): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#36 /home/charleso/public_html/admin/vendor/laravel/framework/src/Illuminate/Console/Command.php(182): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#37 /home/charleso/public_html/admin/vendor/symfony/console/Application.php(1047): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#38 /home/charleso/public_html/admin/vendor/symfony/console/Application.php(316): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Queue\\Console\\WorkCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#39 /home/charleso/public_html/admin/vendor/symfony/console/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#40 /home/charleso/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(197): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#41 /home/charleso/public_html/admin/artisan(35): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#42 {main}
"}

Hi,

I suggest asking in a discussion on GitHub.

OK, sure, thanks.

Do we have to do that now for every issue or just bug-like issues?

We use the support forum to provide support for existing features, we use GitHub to track bugs and feature requests.

Ok, thanks for the clarification!