You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Runbook is failing after what appears to be two 504 errors, there was also another issue with another run where bash failed on a temp file with too many arguments. Wanted to report these in case they were fixable or there was a way to reduce the likelihood of them occurring (504 errors are probably just MS Graph acting up) but I'd like to improve the reliability of the runs where possible.
To Reproduce
Steps to reproduce the behavior:
Unable to reproduce reliably currently but has happened on and off previously in roughly one in every 7 runs.
Expected behavior
Runbook completes without error or recovers after multiple failures.
Screenshots
If applicable, add screenshots to help explain your problem.
Run type (please complete the following information):
Mode: [e.g. 0 or 1] - 1
Client [e.g. Pipeline, local machine] - Pipeline
Version [e.g. 1.0.2] - 2.2.0
Additional context
First run fails on Backup creation
Traceback (most recent call last):
File "/home/vsts/.local/bin/IntuneCD-startbackup", line 8, in <module>
sys.exit(start())
File "/home/vsts/.local/lib/python3.10/site-packages/IntuneCD/run_backup.py", line 313, in start
run_backup(
File "/home/vsts/.local/lib/python3.10/site-packages/IntuneCD/run_backup.py", line 260, in run_backup
backup_intune(results, path, output, exclude, token, prefix, append_id, args)
File "/home/vsts/.local/lib/python3.10/site-packages/IntuneCD/backup_intune.py", line 55, in backup_intune
savebackup(path, output, exclude, token, append_id, args.audit, scope_tags)
File "/home/vsts/.local/lib/python3.10/site-packages/IntuneCD/backup/Intune/backup_applications.py", line 58, in savebackup
data = makeapirequest(ENDPOINT, token, q_param)
File "/home/vsts/.local/lib/python3.10/site-packages/IntuneCD/intunecdlib/graph_request.py", line 89, in makeapirequest
raise requests.exceptions.HTTPError(
requests.exceptions.HTTPError: Request failed with 504 - {"error":{"code":"UnknownError","message":"{\"Message\":\"{\\r\\n \\\"_version\\\": 3,\\r\\n \\\"Message\\\": \\\"An error has occurred - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: 571adc8b-1c23-4b22-8602-87cde5f2a4e6 - Url: [https://fef.msua02.manage.microsoft.com/TrafficGateway/TrafficRoutingService/AppLifecycle/StatelessAppMetadataFEService/deviceAppManagement/mobileApps?api-version=5024-01-23\\\",\\r\\n](https://fef.msua02.manage.microsoft.com/TrafficGateway/TrafficRoutingService/AppLifecycle/StatelessAppMetadataFEService/deviceAppManagement/mobileApps?api-version=5024-01-23\\\%22,\\r\\n) \\\"CustomApiErrorPhrase\\\": \\\"\\\",\\r\\n \\\"RetryAfter\\\": null,\\r\\n \\\"ErrorSourceService\\\": \\\"\\\",\\r\\n \\\"HttpHeaders\\\": \\\"{}\\\"\\r\\n}\"}","innerError":{"date":"2024-03-13T00:06:57","request-id":"571adc8b-1c23-4b22-8602-87cde5f2a4e6","client-request-id":"571adc8b-1c23-4b22-8602-87cde5f2a4e6"}}}
##[error]Bash exited with code '1'.
##[error]Bash wrote one or more lines to the standard error stream.
##[error]Traceback (most recent call last):
File "/home/vsts/.local/bin/IntuneCD-startbackup", line 8, in <module>
sys.exit(start())
File "/home/vsts/.local/lib/python3.10/site-packages/IntuneCD/run_backup.py", line 313, in start
##[error] run_backup(
File "/home/vsts/.local/lib/python3.10/site-packages/IntuneCD/run_backup.py", line 260, in run_backup
backup_intune(results, path, output, exclude, token, prefix, append_id, args)
File "/home/vsts/.local/lib/python3.10/site-packages/IntuneCD/backup_intune.py", line 55, in backup_intune
savebackup(path, output, exclude, token, append_id, args.audit, scope_tags)
File "/home/vsts/.local/lib/python3.10/site-packages/IntuneCD/backup/Intune/backup_applications.py", line 58, in savebackup
data = makeapirequest(ENDPOINT, token, q_param)
File "/home/vsts/.local/lib/python3.10/site-packages/IntuneCD/intunecdlib/graph_request.py", line 89, in makeapirequest
raise requests.exceptions.HTTPError(
requests.exceptions.HTTPError: Request failed with 504 - {"error":{"code":"UnknownError","message":"{\"Message\":\"{\\r\\n \\\"_version\\\": 3,\\r\\n \\\"Message\\\": \\\"An error has occurred - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: 571adc8b-1c23-4b22-8602-87cde5f2a4e6 - Url: [https://fef.msua02.manage.microsoft.com/TrafficGateway/TrafficRoutingService/AppLifecycle/StatelessAppMetadataFEService/deviceAppManagement/mobileApps?api-version=5024-01-23\\\",\\r\\n](https://fef.msua02.manage.microsoft.com/TrafficGateway/TrafficRoutingService/AppLifecycle/StatelessAppMetadataFEService/deviceAppManagement/mobileApps?api-version=5024-01-23\\\%22,\\r\\n) \\\"CustomApiErrorPhrase\\\": \\\"\\\",\\r\\n \\\"RetryAfter\\\": null,\\r\\n \\\"ErrorSourceService\\\": \\\"\\\",\\r\\n \\\"HttpHeaders\\\": \\\"{}\\\"\\r\\n}\"}","innerError":{"date":"2024-03-13T00:06:57","request-id":"571adc8b-1c23-4b22-8602-87cde5f2a4e6","client-request-id":"571adc8b-1c23-4b22-8602-87cde5f2a4e6"}}}
Second run fails on Markdown documentation creation
Starting: Generate markdown document
==============================================================================
Task : Bash
Description : Run a Bash script on macOS, Linux, or Windows
Version : 3.236.1
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/bash
==============================================================================
Generating script.
========================== Starting Command Output ===========================
/usr/bin/bash /home/vsts/work/_temp/153698cd-ffd4-499d-946a-deafbfd109cc.sh
no configuration backup change detected in the last commit, documentation will not be created
/home/vsts/work/_temp/153698cd-ffd4-499d-946a-deafbfd109cc.sh: line 1: [: too many arguments
##[error]Bash wrote one or more lines to the standard error stream.
##[error]/home/vsts/work/_temp/153698cd-ffd4-499d-946a-deafbfd109cc.sh: line 1: [: too many arguments
Finishing: Generate markdown document
Describe the bug
Runbook is failing after what appears to be two 504 errors, there was also another issue with another run where bash failed on a temp file with too many arguments. Wanted to report these in case they were fixable or there was a way to reduce the likelihood of them occurring (504 errors are probably just MS Graph acting up) but I'd like to improve the reliability of the runs where possible.
To Reproduce
Steps to reproduce the behavior:
Unable to reproduce reliably currently but has happened on and off previously in roughly one in every 7 runs.
Expected behavior
Runbook completes without error or recovers after multiple failures.
Screenshots
If applicable, add screenshots to help explain your problem.
Run type (please complete the following information):
Additional context
First run fails on Backup creation
Second run fails on Markdown documentation creation
Below is our YML file for the runbook
The text was updated successfully, but these errors were encountered: