Git Product home page Git Product logo

Comments (8)

virtlima avatar virtlima commented on July 21, 2024

Can you specify what region you are running this in? Can you set the CloudFormation to prevent rollback on failure. Once you so that can you check the errors within the Auto-Scaling Group, and also RDP to the instance if you can and take a look at C:\cfn\logs and to see if any of the scripts executed, if they didnt it will also have an error as to why they didnt.

from quickstart-microsoft-rdgateway.

yashah306 avatar yashah306 commented on July 21, 2024

I am running this template in us-east-1. I RDP to the instance and checked the logs. I am getting this error.
2019-06-07 19:02:19,525 [ERROR] ConnectionError
Traceback (most recent call last):
File "cfnbootstrap\util.pyc", line 162, in _retry
File "cfnbootstrap\util.pyc", line 234, in _timeout
ConnectionError: ('Connection aborted.', error(10060, 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))
I checked instance settings, it is in public subnet and has internet connection.

from quickstart-microsoft-rdgateway.

RandyBT avatar RandyBT commented on July 21, 2024

Has anyone been able to resolve this? I am having the same issues and cannot figure it out =/

from quickstart-microsoft-rdgateway.

nicolasd85 avatar nicolasd85 commented on July 21, 2024

I'm having the same issue:

image

I also don't see errors on Auto-Scaling Groups:
image

Here is the log:

2019-09-02 13:00:22,032 [DEBUG] Restarting cfn-hup due to change detected in dependency
2019-09-02 13:00:22,313 [INFO] Running config join
2019-09-02 13:00:22,313 [DEBUG] No packages specified
2019-09-02 13:00:22,313 [DEBUG] No groups specified
2019-09-02 13:00:22,313 [DEBUG] No users specified
2019-09-02 13:00:22,313 [DEBUG] No sources specified
2019-09-02 13:00:22,313 [DEBUG] No files specified
2019-09-02 13:00:22,361 [DEBUG] No services specified
2019-09-02 13:00:22,375 [DEBUG] Running command a-join-domain
2019-09-02 13:00:22,375 [DEBUG] No test for command a-join-domain
2019-09-02 13:00:26,875 [DEBUG] CloudFormation client initialized with endpoint https://cloudformation.us-east-1.amazonaws.com
2019-09-02 13:00:26,875 [DEBUG] Signaling resource RDGWAutoScalingGroup in stack RD-DOMAINGATEWAY with unique ID i-033f1c81dfd604b1b and status FAILURE
2019-09-02 13:00:27,438 [ERROR] Command a-join-domain (powershell.exe -Command "C:\cfn\scripts\Join-Domain.ps1 -DomainName '***' -UserName 'DC\Admin' -Password '") failed
2019-09-02 13:00:27,438 [DEBUG] Command a-join-domain output: Command failure in Add-Computer C:\cfn\scripts\Join-Domain.ps1 on line 19
Exception: System.InvalidOperationException: Computer EC2AMAZ-FKAP2RT failed to join domain ************** from its
current workgroup WORKGROUP with following error message: T...
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\AWSQuickStart\AWSQuickStart.psm1:314 char:13

  •         throw $CmdSafeErrorMessage
    
  •         ~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (Command failure...r message: T...:String) [], RuntimeException
    • FullyQualifiedErrorId : Command failure in Add-Computer C:\cfn\scripts\Join-Domain.ps1 on line 19
      Exception: System.InvalidOperationException: Computer EC2AMAZ-FKAP2RT failed to join domain *********** from
      its current workgroup WORKGROUP with following error message: T...

2019-09-02 13:00:27,438 [ERROR] Error encountered during build of join: Command a-join-domain failed
Traceback (most recent call last):
File "cfnbootstrap\construction.pyc", line 544, in run_config
File "cfnbootstrap\construction.pyc", line 138, in run_commands
File "cfnbootstrap\command_tool.pyc", line 117, in apply
ToolError: Command a-join-domain failed
2019-09-02 13:00:27,438 [ERROR] -----------------------BUILD FAILED!------------------------
2019-09-02 13:00:27,438 [ERROR] Unhandled exception during build: Command a-join-domain failed
Traceback (most recent call last):
File "cfn-init", line 171, in
File "cfnbootstrap\construction.pyc", line 129, in build
File "cfnbootstrap\construction.pyc", line 530, in build
File "cfnbootstrap\construction.pyc", line 544, in run_config
File "cfnbootstrap\construction.pyc", line 138, in run_commands
File "cfnbootstrap\command_tool.pyc", line 117, in apply
ToolError: Command a-join-domain failed

from quickstart-microsoft-rdgateway.

nicolasd85 avatar nicolasd85 commented on July 21, 2024

I can ping the domain
image

from quickstart-microsoft-rdgateway.

nicolasd85 avatar nicolasd85 commented on July 21, 2024

Sorry i realize how to solve it.
It seems that when you create the Domain with the scenario 1 template it ask for two passwords for the admin account.
The remote destkop gateway template doesn't work with the first password. You need to use the secondary password.

from quickstart-microsoft-rdgateway.

virtlima avatar virtlima commented on July 21, 2024

@yashah306 and @RandyBT, Where you able to figure out the issue? Or are you still having this issue. I apologize for the delayed response on this issue

from quickstart-microsoft-rdgateway.

carrollh avatar carrollh commented on July 21, 2024

I'm having the same problem, and have just been ignoring it for months. It's how the submodule urls are defined. Since I'm launching from a different quickstart I'm passing my rdgateway submodule path (test/submodules/quickstart-microsoft-rdgateway/) in for QSS3KeyPrefix. I have rdgateway as a submodule, but running 'git submodule update --init' does not recursively update submodules of submodules so that folder is empty when rdgw-domain.template tries to download AWSQuickStart.zip. If I instead just pass my base s3 folder (test/) for QSS3KeyPrefix it can find AWSQuickStart.zip (because I also have quickstart-microsoft-utilities as a submodule), but then it fails a few lines later when trying to download the Initialize-RDGW.ps1 file (because it's looking for it in my project's scripts folder instead of the quickstart-microsoft-rdgateway/scripts folder). It seems the only way to get it to work is to go into my test/submodules/quickstart-microsoft-rdgateway folder and run 'git submodule update --init' there and test/submodules/quickstart-microsoft-rdgateway/ in for QSS3KeyPrefix in my master template. I'm not sure if that is the intended way that is supposed to work, but I can't think of a better way at the moment.

from quickstart-microsoft-rdgateway.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.