itsjeffro / deploy

Laravel package for zero-downtime deployments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Server connection status not confirming

paulycloud opened this issue Β· comments

Hey @itsjeffro
Got a another for you! πŸ˜„ I really wanna get this working.

For the added server, i took the public key given and added it to my .ssh/authorized_key. The connection status still shows as "connecting" and after refreshing the page, "failed".

What should the Connect As option be? I set it as "forge" because its what I have on envoyer.

image

Thanks.

Hi @paulycloud
So close :). There should be something in the logs regarding the ssh connection attempt.

Can you try again and post that?

Sure. So here's the request load:

image

Status code shows as a 204. There isnt a response to that request

When i try to tail the logs on "/storage/logs/laravel-2020-06-15.log" file, I don't see the requests going out including the failed connection request.

I only see previous exceptions (like failed queue:restart commands). i'm using the Queue table for my jobs.

What could i do to generate a useful error log?

Hi @paulycloud

Given that the connection is showing up as "Failed" Indicates that the job was processed which is good.

As for why it's not connecting, you should be get something like the following...

The command "ssh -p 22 -i /var/www/html/storage/app/keys/5 -o StrictHostKeyChecking=no j<user>@<ip address> " failed.

But as you mentioned, you haven't received any logs. So we might have to try troubleshooting somethings here.

  • Can you provide some information on the server you're running deploy on?
  • Is there a private key generated in your /app/keys directory?
  • Do you have openssh-clients installed on your server that is running deploy?

In cases like this I would suggest running xdebug and placing a break point in deploy\src\Processors\ServerConnectionProcessor.php

Let me know how you go :)

Hey @itsjeffro

Sorry for the delay on my part. Work had me swamped the last 2 days.
- Can you provide some information on the server you're running deploy on?
I provisioned the server using Laravel forge. I have SSH access into the box.
- Is there a private key generated in your /app/keys directory?
No. I do not. I added the public key in the deploy dashboard to my /authorized_keys file. Thats it. Should i add it somewhere else?
- Do you have openssh-clients installed on your server that is running deploy?
I don't have openssh-clients installed.

Let me know if you'd like to jump on a quick screen-share. I definitely wanna get this working. I won't give up on it. πŸ˜„

Heya @paulycloud thats ok. Work has been pretty busy for me as well.

Sure, a screen share sounds good. I'll be free in 3 hours (5.30 pm sydney time)

Let me know what program you want to use and screen name. As well as a good time for you :)

Hey @itsjeffro

I'm in Atlanta, EST time zone. πŸ˜‹

I am flexible to work with your schedule. We could plan for a Friday night EST or Early Saturday? I can stay up pretty late or wake up early.

We can use Teams or Google Video. We can set up the details that way so that I don't clog up your issues list here on GitHub πŸ˜„

Heya @paulycloud

Early saturday sounds good. Ill try and hit you up on google video.

Ill be up at 8 am in sydney time. So that should be around 6pm your time i think :)

Oi Mate. πŸ˜„

Cool. So 8am AEST Saturday is 6pm Friday EST. I will be ready!!

Send me an email i'll create the invite!! I'm excited to get this working.

Thanks for everything!

Thanks @itsjeffro !!! I successfully did my first deployment! :)