Giter Club home page Giter Club logo

Comments (19)

JustinRR avatar JustinRR commented on May 24, 2024 8

Can you try this command to add a box...

vagrant box add laravel/homestead https://app.vagrantup.com/laravel/boxes/homestead

from homestead.

ducconit avatar ducconit commented on May 24, 2024 1

I've figured out the reason for being prompted for a password when using vagrant ssh. Starting from version 2.3.8, Vagrant will use a different private_key, so what we need to do is replace the private_key of Homestead in the path/to/homestead/.vagrant\machines\homestead\virtualbox directory. Please replace it with the private_key here and reload Homestead. I've tried it, and it works on vagrant 2.4.0 @skeeith

from homestead.

skeeith avatar skeeith commented on May 24, 2024 1

@ducconit I don't know what keys to copy, I'm assuming it's all with the Add ed25519 insecure private key tags on the commit.
I noticed this ed25519 keys somewhere, but didn't bother with it lol.

how about the PHP Bad Gateway issue, did you found anything about it? the stack (nginx, php8.2, mysql, etc) seems to be running normally last time I checked before I destroyed the box

from homestead.

svpernova09 avatar svpernova09 commented on May 24, 2024 1

Vagrant changing the private key will be fixed with a new base box release. I've been preparing for a new base box to be released later this month once PHP 8.3 has been released to the PPA.

from homestead.

svpernova09 avatar svpernova09 commented on May 24, 2024 1

A way around the vagrant key being incorrect in the base box would be to point this configuration in your Homestead.yaml to valid SSH keys and Vagrant will add them to the user.

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

from homestead.

skeeith avatar skeeith commented on May 24, 2024

@JustinRR the command works, any idea how we can fix this when running vagrant up or vagrant box update or vagrant box add laravel/homestead?

from homestead.

skeeith avatar skeeith commented on May 24, 2024

@JustinRR FYI, after running vagrant up for the first time, when I ssh into the server it's asking me for password

$ homestead ssh
[email protected]'s password:

too weird, well the password is still the same but still

from homestead.

ducconit avatar ducconit commented on May 24, 2024

@skeeith I think it's due to the version of Vagrant you are using. If you use vagrant 2.3.7 or an earlier version, I believe the version not found error should not occur.
The solution has already been suggested by @JustinRR , so I have nothing more to say :v

from homestead.

skeeith avatar skeeith commented on May 24, 2024

@ducconit apparently, it's still the same with vagrant version 2.3.7 though. any other ideas as to why that's the issue?

from homestead.

ducconit avatar ducconit commented on May 24, 2024

@ducconit apparently, it's still the same with vagrant version 2.3.7 though. any other ideas as to why that's the issue?

You're talking about which error? Homestead not found? Well, I noticed the error was due to Vagrant's API v2 not finding information about the box. I encountered this issue when using Vagrant version 2.4.x. I reinstalled Vagrant 2.3.x, and the error disappeared. The approach JustinRR mentioned is to specify the exact path to retrieve Homestead information.

Still an issue with entering the password. I believe the SSH key hasn't been added to the Vagrant box, so you're required to enter a password to log in. By adding the public key to the authorized_keys, you may not need to enter a password anymore.

from homestead.

skeeith avatar skeeith commented on May 24, 2024

@ducconit already done it, double checked the keys and everything else. even setup openssh manually like any other ubuntu servers on the cloud, it's having issue I can't seem to figure it out, I even checked the firewalls and ports too.

also when you said Vagrant 4.x you're referring to Vagrant v2.4.0 right? and Vagrant 3.x is Vagrant v2.3.X right? just clarifying it cause I'm confused on the versions you mentioned

from homestead.

ducconit avatar ducconit commented on May 24, 2024

@ducconit already done it, double checked the keys and everything else. even setup openssh manually like any other ubuntu servers on the cloud, it's having issue I can't seem to figure it out, I even checked the firewalls and ports too.

also when you said Vagrant 4.x you're referring to Vagrant v2.4.0 right? and Vagrant 3.x is Vagrant v2.3.X right? just clarifying it cause I'm confused on the versions you mentioned

Sorry, a typing error. It's 2.4.x and 2.3.x. I fixed it.
Can you show me its content: cat /etc/sudoers.d/vagrant

from homestead.

skeeith avatar skeeith commented on May 24, 2024

@ducconit sorry I just destroyed the box, will try again with a clean slate maybe that would fix things, but there's something I noticed when I tried to ssh into the vm

when I tried to run this ssh -i "~/.ssh/id_rsa" [email protected] it worked perfectly fine and I'm able to ssh normally, but when I tried just the vagrant ssh it's asking me for password saying [email protected]'s password.

maybe you would encounter this issue also if you would try v2.4.0

if I still get the same errors, I'll downgrade to v2.3.7 for the mean time, until someone can figure things out

from homestead.

andrewvink avatar andrewvink commented on May 24, 2024

Also encountered this, installed Vagrant v2.4.0 - had the password prompt when trying ssh in. Plus had PHP Bad Gateway issues.

What worked for me:

  • Delete all vagrant boxes
  • Uninstall Vagrant v2.4.0
  • Downgrade to Vagrant v2.3.7
  • Trashed my /Homestead/ folder
  • Cloned Homestead Repo and Init
  • $ vagrant box add laravel/homestead https://app.vagrantup.com/laravel/boxes/homestead
  • $ vagrant up --provision

Everything is working normally, no PHP Gateway issues and no password prompts with ssh

from homestead.

skeeith avatar skeeith commented on May 24, 2024

@andrewvink I forgot to mention, I had the same issue with PHP Bad Gateway too, it's like Vagrant v2.4.0 completely breaks Homestead.

  • SSH not working, even with manually settings up everything to work correctly
  • PHP Bad Gateway issue
  • Laravel/Homestead box not found

pretty sure there's more issue we haven't found with v2.4.0

I also did what you did just a few hours ago, everything is back to normal with v2.3.7.

from homestead.

skeeith avatar skeeith commented on May 24, 2024

@svpernova09 hey Joe, maybe you can give me a hint or a guide on where to look for these issues? I would be willing to patch it up for others, but I don't know where to look regarding this issues

from homestead.

skeeith avatar skeeith commented on May 24, 2024

@svpernova09 oh man, thank you for this good news. do let me know if you need any help on upgrading certain packages, or things or testing. I would be happy to help in any way. cheers

from homestead.

svpernova09 avatar svpernova09 commented on May 24, 2024

I've confirmed Vagrant 2.4.0 vagrant ssh will work if you point the Homestead SSH keys to paths that exist. If you're unable to do this I would suggest downgrading to Vagrant 2.3.7 until the next base box is released.

from homestead.

lihe6666 avatar lihe6666 commented on May 24, 2024

Can you try this command to add a box...

vagrant box add laravel/homestead https://app.vagrantup.com/laravel/boxes/homestead

You are right.

from homestead.

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.