Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployments to environments are behaving strange recently #1056

Open
gntpet opened this issue Apr 26, 2024 · 9 comments
Open

Deployments to environments are behaving strange recently #1056

gntpet opened this issue Apr 26, 2024 · 9 comments

Comments

@gntpet
Copy link

gntpet commented Apr 26, 2024

Hey @freddydk,

We are seeing some strange issues with deployments to our PROD environments.

Firstly, it takes really long time now 1h+ for the minor changes. Normally it runs between 15..30 minutes.

Eventually it errors out.

image

After restarting the job, it tells that my first extension is already in, and quickly deploys the second one.

image

If i check installation status, it shows Failed with timeout error.

image

But, it is actually installed

image

This behavior started this week.

Best Regards,
Gintautas

@freddydk
Copy link
Collaborator

Is this on V24?
I think there has been problems on 24 like this - but they should be fixed yesterday or today

@gntpet
Copy link
Author

gntpet commented Apr 26, 2024

No, it's v23

@gntpet
Copy link
Author

gntpet commented May 7, 2024

Again, issues with deployments. Deployments stopped working to our QA environment since yesterday.

Pipeline fails with useless error:

##[error]Deploying to QA failed. Unable to publish app. Please open the Extension Deployment Status Details page in Business Central to see the detailed error message.

Installation status shows another useless error

image

App insights shows another useless error

image

Just tried to deploy it manually, withouth AL-Go and it succeeded. Previously AL-GO failed multiple times

image

'Operations' shown in Admin portal does not match Extension Installation Status. It shows only two successfully installed apps that i installed manually. Failed entries from yesterday, & today are not to be seen.
image

Is there something you could see on your side, @freddydk. There's must be something wrong with platform or AL-GO, since we are coming back to the deployment issues from time to time.

@freddydk
Copy link
Collaborator

freddydk commented May 8, 2024

What does the log in AL-Go show for the publishing of this app?

@gntpet
Copy link
Author

gntpet commented May 8, 2024

Nothing special:

2024-05-07T06:57:54.3821107Z Downloading BcContainerHelper latest version from Blob Storage
2024-05-07T06:57:56.2054798Z Import from C:\ProgramData\BcContainerHelper\6.0.17\BcContainerHelper\BcContainerHelper.ps1
2024-05-07T06:57:56.4988390Z BcContainerHelper version 6.0.17
2024-05-07T06:57:56.6867654Z Setting useCompilerFolder = True
2024-05-07T06:57:56.8921477Z BC.HelperFunctions emits usage statistics telemetry to Microsoft
2024-05-07T06:57:56.9789664Z Running on Windows, PowerShell 5.1.20348.2400
2024-05-07T06:57:58.7788206Z project 'SRS.nl'
2024-05-07T06:57:58.7827819Z Apps to deploy
2024-05-07T06:57:58.7841440Z C:\a\srs-bc\srs-bc\.artifacts\SRS.nl-main-Apps-1.0.1565.0
2024-05-07T06:57:58.8667865Z Attempting authentication to https://api.businesscentral.dynamics.com/.default using clientCredentials...
2024-05-07T06:57:59.4831614Z Authenticated as app ***
2024-05-07T06:57:59.4971695Z EnvironmentUrl: https://businesscentral.dynamics.com/db1e96a8-a3da-442a-930b-235cac24cd5c/QA
2024-05-07T06:57:59.9489260Z Publishing apps using automation API
2024-05-07T06:57:59.9880900Z https://api.businesscentral.dynamics.com/v2.0/QA/api/microsoft/automation/v2.0/companies
2024-05-07T06:58:00.7722785Z Company 'CRONUS NL' has id 3b1e9576-41bc-ee11-907d-6045bde9cc0e
2024-05-07T06:58:00.7730130Z https://api.businesscentral.dynamics.com/v2.0/QA/api/microsoft/automation/v2.0/companies(3b1e9576-41bc-ee11-907d-6045bde9cc0e)/extensions
2024-05-07T06:58:01.9755659Z Extensions before:
....
....
2024-05-07T06:58:04.1986229Z WARNING: Dependency 6da8dd2f-e698-461f-9147-8e404244dd85:Continia Software_Continia Document Capture_12.0.0.0).app not 
2024-05-07T06:58:04.1987557Z found
2024-05-07T06:58:04.5059508Z SRS_SRS.base_1.0.1565.0.app - Downloading AL Language Extension to C:\ProgramData\BcContainerHelper\alLanguageExtension\13.0.1007491.zip
2024-05-07T06:58:09.8638045Z using 7zip
2024-05-07T07:08:12.8888397Z upgrading..............................................................Failed
2024-05-07T07:08:12.9107797Z ERROR: Unable to publish app. Please open the Extension Deployment Status Details page in Business Central to see the detailed error message. [System.Management.Automation.RuntimeException]
2024-05-07T07:08:13.5983525Z 
2024-05-07T07:08:13.5992372Z Extensions after:
....
....

@freddydk
Copy link
Collaborator

freddydk commented May 8, 2024

The latest succeeding publish - how much time did that take?
This one fails after 10 minutes 6:58:09 -> 7:08:12

@gntpet
Copy link
Author

gntpet commented May 8, 2024

here are screenshot for the last two succesful ones:

Base app takes 6, & 8.5 minutes to deploy

image
image

@freddydk
Copy link
Collaborator

freddydk commented May 8, 2024 via email

@gntpet
Copy link
Author

gntpet commented May 8, 2024

Just happened again

This time it was running <10min

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants