The problem was the jar file built by maven couldn't run successfully. After fixing this issue, the deployment worked fine.
Spring Apps Deployment Failed related with base_polling failed operation
I tried to to deploy my Spring Boot 3.1.0 application on Azure Spring Apps but failed. I've also tried downgrading the project to spring boot 3.0.0 but same result. Here's the error log when deploying with Azure CLI with --debug option.
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/polling/base_polling.py", line 517, in run
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/polling/base_polling.py", line 557, in _poll
azure.core.polling.base_polling.OperationFailed: Operation failed or canceled
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 697, in _run_job
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 333, in __call__
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
File "C:\Users\Admin\.azure\cliextensions\spring\azext_spring\app.py", line 415, in app_deploy
_log_application(cmd, client, no_wait, poller, resource_group, service, name, deployment.name)
File "C:\Users\Admin\.azure\cliextensions\spring\azext_spring\app.py", line 451, in _log_application
raise deployment_error
File "C:\Users\Admin\.azure\cliextensions\spring\azext_spring\app.py", line 426, in _log_application
poller.result()
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/polling/_poller.py", line 255, in result
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/tracing/decorator.py", line 78, in wrapper_use_tracer
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/polling/_poller.py", line 275, in wait
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/polling/_poller.py", line 192, in _start
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/polling/base_polling.py", line 535, in run
azure.core.exceptions.HttpResponseError: (10000) Your application failed to start, please check the logs of your application.
Code: 10000
Message: Your application failed to start, please check the logs of your application.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Admin\.azure\cliextensions\spring\azext_spring\_utils.py", line 300, in handle_asc_exception
raise CLIError(ex.inner_exception.error.message)
AttributeError: 'OperationFailed' object has no attribute 'error'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 663, in execute
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 718, in _run_job
File "C:\Users\Admin\.azure\cliextensions\spring\azext_spring\_utils.py", line 304, in handle_asc_exception
raise CLIError(response_dict["error"]["message"])
knack.util.CLIError: Your application failed to start, please check the logs of your application.
cli.azure.cli.core.azclierror: Your application failed to start, please check the logs of your application.
2 answers
Sort by: Most helpful
-
-
MayankBargali-MSFT 70,426 Reputation points
2023-06-29T07:53:22.18+00:00 Hi @An Vu
I'm glad to see you were able to resolve your issue. Thanks for posting your solution so that others experiencing the same thing can easily reference this.
Since the Microsoft Q&A community has a policy that the question author cannot accept their own answer, they can only accept answers by others, I'll repost your solution in case you'd like to Accept the answer.
Issue: You're using Terraform to create Azure Function instance which then pulls your app code from a container registry. After image pull, the function app failed to load.
Copy cli.azure.cli.core.azclierror: Traceback (most recent call last): File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/polling/base_polling.py", line 517, in run File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/polling/base_polling.py", line 557, in _poll azure.core.polling.base_polling.OperationFailed: Operation failed or canceled During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 697, in _run_job File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 333, in __call__ File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler File "C:\Users\Admin\.azure\cliextensions\spring\azext_spring\app.py", line 415, in app_deploy _log_application(cmd, client, no_wait, poller, resource_group, service, name, deployment.name) File "C:\Users\Admin\.azure\cliextensions\spring\azext_spring\app.py", line 451, in _log_application raise deployment_error File "C:\Users\Admin\.azure\cliextensions\spring\azext_spring\app.py", line 426, in _log_application poller.result() File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/polling/_poller.py", line 255, in result File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/tracing/decorator.py", line 78, in wrapper_use_tracer File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/polling/_poller.py", line 275, in wait File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/polling/_poller.py", line 192, in _start File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/polling/base_polling.py", line 535, in run azure.core.exceptions.HttpResponseError: (10000) Your application failed to start, please check the logs of your application. Code: 10000 Message: Your application failed to start, please check the logs of your application.
Resolve: You found the issue with the jar file built by maven couldn't run successfully. After fixing this issue, the deployment worked fine.