GithubHelp home page GithubHelp logo

SSH task hangs then fails about selfhost HOT 12 CLOSED

forem avatar forem commented on July 26, 2024
SSH task hangs then fails

from selfhost.

Comments (12)

jdoss avatar jdoss commented on July 26, 2024

Can you manually SSH into the server? https://github.com/forem/selfhost#ssh-examples

If this fails then it sounds like the EC2 never launched correctly. If you can SSH into it, try rerunning the playbook.

from selfhost.

0bserver07 avatar 0bserver07 commented on July 26, 2024

thanks for getting back to me @jdoss , I can't SSH into the machine manually, since I'm not certain where the ".pem" file go while deploying the instance?

from selfhost.

jdoss avatar jdoss commented on July 26, 2024

See Step 7 of the Quickstart https://github.com/forem/selfhost#quick-start. If you followed this guide it is located ${HOME}/.ssh/forem.pub

from selfhost.

0bserver07 avatar 0bserver07 commented on July 26, 2024

Thanks, I think the github link doesn't explain what needs to happen for this use-case:

Here is an outline of steps I'm taking:

cd ~/.ssh/
  1. Generate the key with $ ssh-keygen -t rsa -b 2048 -v
ssh-keygen -t rsa -b 2048 -v
  1. when asked to enter file in which to save the key, type forem, confirm by Enter.

  2. then wee will get two files generated, one will be forem and one will be forem.pub.

  3. Then rename the forem to forem.pem, so you will have two files, forem.pub and forem.pem

  • I check the port for 22 is open.
  • Still hangs and connection refused.

I terminate the server and redo every to avoid config overlaps as well.

from selfhost.

cmgorton avatar cmgorton commented on July 26, 2024

Hey @0bserver07 if you are using AWS as your cloud provider you can try using this Forem AWS Setup guide. There is a section that goes in to more detail on how to ssh into your server.

If you have any more questions regarding getting set up or errors you are seeing please feel free to post on forem.dev with the #help and #selfhost tags. Someone on the team will be able to help you over there! Thanks 😄

from selfhost.

maslof avatar maslof commented on July 26, 2024

How were you able to solve this problem?

from selfhost.

maslof avatar maslof commented on July 26, 2024

I have same problem if I change region us-east-1 -> eu-west-1

from selfhost.

cmgorton avatar cmgorton commented on July 26, 2024

I have same problem if I change region us-east-1 -> eu-west-1

Hey @MaslovAnton just to confirm are you having trouble with SSH (step 11 in the quick start) and the problem is occurring only when you change your region to us-east-1 -> eu-west-1?

from selfhost.

maslof avatar maslof commented on July 26, 2024

I have problem in this if i change fcos_aws_region: us-east-1 -> eu-west-1.
Error on task
TASK [Wait 300 seconds for port 22 to become open]

And i can't connect by ssh and generated rsa key

In default region (us-east-1) it was OK.

from selfhost.

0bserver07 avatar 0bserver07 commented on July 26, 2024

@MaslovAnton for now it worked when I switched to us-east-1, there might be something hard-coded, but to make it work you can just do that change.

I tried, -west-, but that's what led to the ssh error.

from selfhost.

maslof avatar maslof commented on July 26, 2024

Thanks. Same error in -west- region

from selfhost.

cmgorton avatar cmgorton commented on July 26, 2024

I am going to walk through setting up my Forem on AWS again today and I will change the region. I'll let you know what steps I take and if I get the same errors you all are seeing @0bserver07 and @MaslovAnton . If I do I'll ping our systems team to get more info on why the error is occurring.

from selfhost.

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.