You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@datalab.apache.org by "dylangovender (via GitHub)" <gi...@apache.org> on 2023/02/22 23:05:01 UTC

[GitHub] [incubator-datalab] dylangovender opened a new issue, #1813: Connection via SSH fails when running deploy_datalab.py

dylangovender opened a new issue, #1813:
URL: https://github.com/apache/incubator-datalab/issues/1813

   I am running the deploy_datalab.py script with the below command:
   
   `/usr/bin/python3 /home/vboxuser/incubator-datalab/infrastructure-provisioning/scripts/deploy_datalab.py \
   --conf_service_base_name datalab_poc \
   --conf_os_family debian \
   --key_path /home/vboxuser/key \
   --conf_key_name datalabs_key \
   --conf_tag_resource_id datalab \
   --keycloak_auth_server_url XXXXXXXXXXXXXXX \
   --keycloak_realm_name master \
   --keycloak_user XXXXX \
   --keycloak_user_password XXXXX \
   --action create \
   'aws' \
   --aws_access_key XXXXXXXXXXXXXXX \
   --aws_secret_access_key "XXXXXXXXXXXXXXX " \
   --aws_account_id XXXXXXXXXXXXXXX \
   --aws_region XX-XXXX-X \
   --aws_zone XXXX-XXX
   `
   
   When the script gets to the part where it attempts an SSH connection to the EC2 instance that was created, it does the 15 attempts and seems to succeed each time, but overall it fails. Excerpt from the logs are attached. 
   
   [datalabs_log.txt](https://github.com/apache/incubator-datalab/files/10809014/datalabs_log.txt)
   
   Thank you.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@datalab.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@datalab.apache.org
For additional commands, e-mail: dev-help@datalab.apache.org


[GitHub] [incubator-datalab] dylangovender commented on issue #1813: Connection via SSH fails when running deploy_datalab.py

Posted by "dylangovender (via GitHub)" <gi...@apache.org>.
dylangovender commented on issue #1813:
URL: https://github.com/apache/incubator-datalab/issues/1813#issuecomment-1482600029

   Hi,
   
   I was actually deploying from develop branch as that is what is specified in the documentation/README.md.
   
   I managed to get around this error by using another EC2 instance and putting the ssh key into ~/ubuntu/.ssh and specifying this location as a parameter to the deploy_datalab.py script.
   
   Thank you.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@datalab.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@datalab.apache.org
For additional commands, e-mail: dev-help@datalab.apache.org


[GitHub] [incubator-datalab] dylangovender closed issue #1813: Connection via SSH fails when running deploy_datalab.py

Posted by "dylangovender (via GitHub)" <gi...@apache.org>.
dylangovender closed issue #1813: Connection via SSH fails when running deploy_datalab.py
URL: https://github.com/apache/incubator-datalab/issues/1813


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@datalab.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@datalab.apache.org
For additional commands, e-mail: dev-help@datalab.apache.org


[GitHub] [incubator-datalab] leonidfrolov commented on issue #1813: Connection via SSH fails when running deploy_datalab.py

Posted by "leonidfrolov (via GitHub)" <gi...@apache.org>.
leonidfrolov commented on issue #1813:
URL: https://github.com/apache/incubator-datalab/issues/1813#issuecomment-1441804923

   Hello Dylan,
   you tried to deploy from master branch, right?
   Please try to add Termination protection to SSN instance when it is created, and try to establish SSH connection from your VM to said instance with provided key and ubuntu user. 
   You can also try to run deploy_datalab.py from another EC2 instance, as some networking misconfiguration of your VM on Host machine can block connection.
   
   Is there any chance that some policy removes security group rule with allowed inbound traffic from 0.0.0.0/0?
   
   If you already have some existing VPC, subnet, security group that you use to successfully connect to EC2 instances, you can try to use them with additional options
   --aws_vpc_id vpc-xxxxxxxx \
   --aws_subnet_id subnet-xxxxxxxx \
   --aws_security_groups_ids 'sg-xxxxxxxx,sg-xxxxxxxx' 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@datalab.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@datalab.apache.org
For additional commands, e-mail: dev-help@datalab.apache.org