-
Notifications
You must be signed in to change notification settings - Fork 32
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
Publish to AWS failed to load, shows error: Unable to start a deployment session: A task was canceled #427
Comments
I am one of the other developers @ratemo86 is referring to. We've been unable to set up his account properly. We use SSO authentication, but as you can see in the screen shot, he's got access to the resources in the AWS Explorer... but when he goes to Publish there are problems. We've spent many hours trying to figure this out and some assistance would be most appreciated. Thanks so much! |
Hi @ratemo86 , can you please share your toolkit log from the session where you saw this issue? You can get to your logs by navigating to the Extensions / AWS Toolkit / View Toolkit Logs menu. Also, we can try to rule out whether or not the underlying deploy tool is successfully downloaded:
|
This issue is missing required information and will be closed in 7 days. To keep the issue open, leave a comment. |
Has anyone been able to solve this? I'm having the same issue. Reinstalled VS, AWS Toolkit, rebuilt credentials, deleted toolkit folder... nothing seems to help. The AWS Extension seems to be using the credentials successfully for all other operations. Even the Legacy Publish works, but I can't get the "Publish to AWS" tool to load. Publish to AWS GUI: Output window: Amazon Web Services: AWS Toolkit for Visual Studio Publish to AWS failed to load publish details using the current credentials: Here's my log: 2024-09-16 17:07:45,366 [40] DEBUG Amazon.AWSToolkit.Publish.ViewModels.PublishToAwsDocumentViewModel - Starting a deployment session |
@dtechfish Did you ever figure anything out for this? We are running into this exact same error, exact same exception in the logs. |
No. Still struggling.
From: Nick Miller ***@***.***>
Sent: Friday, November 22, 2024 1:09 PM
To: aws/aws-toolkit-visual-studio ***@***.***>
Cc: David Garcia ***@***.***>; Mention ***@***.***>
Subject: Re: [aws/aws-toolkit-visual-studio] Publish to AWS failed to load publish details using the current credentials: Error (Issue #427)
@dtechfish<https://github.com/dtechfish> Did you ever figure anything out for this? We are running into this exact same error, exact same exception in the logs.
—
Reply to this email directly, view it on GitHub<#427 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEFQYMYFMBJ5GRT6QCR2LZD2B56LNAVCNFSM6AAAAABJFHCTLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJUGU4TSMBXHE>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Ugh! Thanks for responding. |
@dtechfish @nicklmiller we are interested in understanding more about this failure. What is interesting in the logs is there seems to be a gap of about two minutes between the "Starting a deployment session" entry and the "Unable to start a deployment session: A task was canceled" entry. If this isn't consistent in your logs, please let us know. Can you share some details about your development environment:
The Publish to AWS experience is powered by the AWS Deploy Tool for .NET, which is a CLI tool. If you can try to deploy the same project with that tool, it would be helpful for us to know if that deployment succeeds for you, and if it doesn't, what failure output it displays. |
I am also seeing the same problem. The legacy tool works fine. |
This occurred with US West (Oregon) selected, and the computer was in Florida. It was with an access key/secret pair. We are actually able to open AWS Explorer and interact with the Elastic Beanstalk environment there, doing commands like rebuild and restart, but just get this error when trying to publish. You are right that it hangs for a while before the error happens. I'll see if I can get it published via CLI. |
@nicklmiller thank you for the details, looking forward to hearing about your results with the CLI. @cceccles99 , please see #427 (comment) to share useful details that can help us diagnose the problem. |
@nicklmiller how many Beanstalk environments (and applications) do you currently have in the Oregon region? Were all of those deployed through the Toolkit, or were some of them created through other means, for example using CDK, Terraform, or directly in the web console? |
@awschristou We have 2 applications, with 2 environments per application, all in Oregon. They were all created initially through the web console. Additionally, I'm not sure if I mentioned this already, but publishing used to work, it just stopped one day. One thing that did change on our end was that we previously had 2 applications with only 1 environment each. I spun up an additional environment on each application, and shortly after was when the error started occurring. It could just be a coincidence, but thought I should share. |
@nicklmiller Any chance you have the toolkit configured to use a proxy? Toolkit proxies are configured in the Tools -> Options - AWS Toolkit menu. Or are there any proxies setup in your network environment? |
I was using London region with access from the UK (about 250 miles from London). |
@cceccles99 Can you confirm if you have a proxy configured in the toolkit or anywhere else in your networking environment? A timeout seems likely and I'm wondering if we are skipping a proxy when making service requests. |
I am not aware of any proxy in my environment and I am connected directly to the internet. It does look like some kind of timeout though. The legacy tool works with no problems.
…----------------------------
Chris Eccles
CTO, Coeus Software
www.policebox.com<https://www.policebox.com/>
www.quvo365.com<https://www.quvo365.com/>
----------------------------
+44 (0)7814 434369
From: Norm Johanson ***@***.***>
Sent: 23 January 2025 00:39
To: aws/aws-toolkit-visual-studio ***@***.***>
Cc: Chris Eccles ***@***.***>; Mention ***@***.***>
Subject: Re: [aws/aws-toolkit-visual-studio] Publish to AWS failed to load, shows error: Unable to start a deployment session: A task was canceled (Issue #427)
CAUTION: This email originated from outside the organisation. Do not click on links or open attachments unless you recognise the sender and know the content is safe.
@cceccles99<https://github.com/cceccles99> Can you confirm if you have a proxy configured in the toolkit or anywhere else in your networking environment? A timeout seems likely and I'm wondering if we are skipping a proxy when making service requests.
—
Reply to this email directly, view it on GitHub<#427 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BAYIJPZFYDCZBUUL4REZN2L2MA2YZAVCNFSM6AAAAABJFHCTLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBYGU4DQNZWGI>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
The content of this email is confidential and intended only for the recipient(s) specified. It is strictly forbidden to share any part of this message with any third party, without a written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future. The views and opinions included in this email belong to their author and do not necessarily mirror the views and opinions of the company. Our employees are obliged not to make any defamatory clauses, infringe, or authorise infringement of any legal right. Therefore, the company will not take any liability for such statements included in emails. In case of any damages or other liabilities arising, employees are fully responsible for the content of their emails.
|
Same here. Looks like a timeout. No Proxy.
Thank you,
David Garcia
President
DAGTech, Inc. dba CatchStat.com
+1.954.650.8488 – Mobile
+1.888.549.5558 – Toll Free
***@***.******@***.***>
From: cceccles99 ***@***.***>
Sent: Thursday, January 23, 2025 3:29 AM
To: aws/aws-toolkit-visual-studio ***@***.***>
Cc: David Garcia ***@***.***>; Mention ***@***.***>
Subject: Re: [aws/aws-toolkit-visual-studio] Publish to AWS failed to load, shows error: Unable to start a deployment session: A task was canceled (Issue #427)
I am not aware of any proxy in my environment and I am connected directly to the internet. It does look like some kind of timeout though. The legacy tool works with no problems.
…----------------------------
Chris Eccles
CTO, Coeus Software
www.policebox.com<https://www.policebox.com/>
www.quvo365.com<https://www.quvo365.com/>
----------------------------
+44 (0)7814 434369
From: Norm Johanson ***@***.***>
Sent: 23 January 2025 00:39
To: aws/aws-toolkit-visual-studio ***@***.***>
Cc: Chris Eccles ***@***.***>; Mention ***@***.*<mailto:n%20***@***.*>**>
Subject: Re: [aws/aws-toolkit-visual-studio] Publish to AWS failed to lo<mailto:ailed%20to%20lo>ad, shows error: Unable to star<mailto:ble%20to%20star>t a deployment session<mailto:ent%20session>: A task was canceled (Issue #427)
CAUTION: This email originated from outside the organisation. Do not click on links or open attachments unless you recognise the sender and know the content is safe.
@cceccles99<https://github.com/cceccles99> Can you confirm if you have a proxy configured in the toolkit or anywhere else in your networking environment? A timeout seems<%20environment?%20A%20timeout%20seems> likely and I'm wondering if we are skipping a proxy when making service requests.
—
Reply to this email directly, view it on GitHub<#427 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BAYIJPZFYDCZBUUL4REZN2L2MA2YZAVCNFSM6AAAAABJFHCTLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBYGU4DQNZWGI>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
The content of this email is confid<3PNVWWK3TUHMZDMMBYGU4DQNZWGI%3e.%20%0bYou%20are%20receiving%20this%20because%20you%20were%20mentioned.Message%20ID:%20***@***.******@***.***%3e%3e%20%0b%0bThe%20content%20of%20this%20email%20is%20confid>ential and intended only for the recipient(s) specified. It is strictly forbidden to sha<mailto:ictly%20forbidden%20to%20sha>re any part of this message with any third party, without a written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future. The views and opinions included in this email belong to their author and do not necessarily mirror the views and opinions of the company. Our employees are obliged not to make any defamatory clauses, infringe, or authorise infringement of any legal right. Therefore, the company will not take any liability for such statements included in emails. In case of any damages or other liabilities arising, employees are fully responsible for the content of their emails.
—
Reply to this email directly, view it on GitHub<#427 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEFQYM75JQZB2RW4N2HWZFT2MCY67AVCNFSM6AAAAABJFHCTLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBZGMYDGNZVHA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I also noticed that it would occasionally work when I only had one EBS service running but as I added more it stopped working altogether.
…----------------------------
Chris Eccles
CTO, Coeus Software
www.policebox.com<https://www.policebox.com/>
www.quvo365.com<https://www.quvo365.com/>
----------------------------
+44 (0)7814 434369
From: Norm Johanson ***@***.***>
Sent: 23 January 2025 00:39
To: aws/aws-toolkit-visual-studio ***@***.***>
Cc: Chris Eccles ***@***.***>; Mention ***@***.***>
Subject: Re: [aws/aws-toolkit-visual-studio] Publish to AWS failed to load, shows error: Unable to start a deployment session: A task was canceled (Issue #427)
CAUTION: This email originated from outside the organisation. Do not click on links or open attachments unless you recognise the sender and know the content is safe.
@cceccles99<https://github.com/cceccles99> Can you confirm if you have a proxy configured in the toolkit or anywhere else in your networking environment? A timeout seems likely and I'm wondering if we are skipping a proxy when making service requests.
—
Reply to this email directly, view it on GitHub<#427 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BAYIJPZFYDCZBUUL4REZN2L2MA2YZAVCNFSM6AAAAABJFHCTLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBYGU4DQNZWGI>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
The content of this email is confidential and intended only for the recipient(s) specified. It is strictly forbidden to share any part of this message with any third party, without a written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future. The views and opinions included in this email belong to their author and do not necessarily mirror the views and opinions of the company. Our employees are obliged not to make any defamatory clauses, infringe, or authorise infringement of any legal right. Therefore, the company will not take any liability for such statements included in emails. In case of any damages or other liabilities arising, employees are fully responsible for the content of their emails.
|
@cceccles99 That sort of matches my experience. It stopped working around the time I added a second EBS application. |
And these were all Elastic Beanstalk applications deployed with this newer deployment tooling or the legacy wizard? |
My applications and environments were all created through the web console, but all publishing was done with the new tooling. |
While you are waiting for it to timeout can you see if in your task manager you have a |
For me the legacy tool works fine but the new tooling seems to time out.
…----------------------------
Chris Eccles
CTO, Coeus Software
www.policebox.com<https://www.policebox.com/>
www.quvo365.com<https://www.quvo365.com/>
----------------------------
+44 (0)7814 434369
From: Norm Johanson ***@***.***>
Sent: 24 January 2025 22:34
To: aws/aws-toolkit-visual-studio ***@***.***>
Cc: Chris Eccles ***@***.***>; Mention ***@***.***>
Subject: Re: [aws/aws-toolkit-visual-studio] Publish to AWS failed to load, shows error: Unable to start a deployment session: A task was canceled (Issue #427)
CAUTION: This email originated from outside the organisation. Do not click on links or open attachments unless you recognise the sender and know the content is safe.
And these were all Elastic Beanstalk applications deployed with this newer deployment tooling or the legacy wizard?
—
Reply to this email directly, view it on GitHub<#427 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BAYIJPZ2BNU6KPKDZSQDV5T2MK5U7AVCNFSM6AAAAABJFHCTLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMJTGUZDCNJSGM>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
The content of this email is confidential and intended only for the recipient(s) specified. It is strictly forbidden to share any part of this message with any third party, without a written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future. The views and opinions included in this email belong to their author and do not necessarily mirror the views and opinions of the company. Our employees are obliged not to make any defamatory clauses, infringe, or authorise infringement of any legal right. Therefore, the company will not take any liability for such statements included in emails. In case of any damages or other liabilities arising, employees are fully responsible for the content of their emails.
|
@cceccles99 Same question I asked @nicklmiller, do you see the |
I have had this same issue multiple times, I have never got to the bottom of it. I've had to use the "Deploy to Elastic Beanstalk (Legacy)" option. After a few weeks the new version suddenly works again, have no clue why. And the cycle continues. Would love to know what the issue is. |
I have been trying to publish to our staging site. The other 2 developers in my team are able to use the same set of credentials and deploy successfully. Could you advise me on how to resolve this issue?
The text was updated successfully, but these errors were encountered: