Comments (19)
Can you try this command to add a box...
vagrant box add laravel/homestead https://app.vagrantup.com/laravel/boxes/homestead
from homestead.
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.
@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.
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.
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.
@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.
@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.
@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.
@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 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.
@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 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 toVagrant v2.4.0
right? andVagrant 3.x
isVagrant 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.
@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.
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.
@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.
@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.
@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.
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.
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)
- Uninstalled packages in php8.3.sh file HOT 1
- Vagrant up hangs HOT 17
- Version constraint error HOT 10
- Incompatible configuration requested HOT 1
- Problem installing using composer due to symfony/yaml dependency HOT 3
- vagrant provision crashes in the middle of many Sites (vhosts) because Apache can't bind to port 80 HOT 2
- PHP 8.2 FPM not starting at boot in Homestead v15 HOT 2
- I got this bug while executing MAKE command: HOT 1
- vagrant nginx site config can not create
- npm / node not working on latest Homestead with Virtualbox HOT 1
- WSL Rework Discussion HOT 8
- Provision of new box fails to fetch and install ngrok HOT 2
- VMware Desktop Support HOT 1
- per project install, make command not working HOT 4
- running vagrant up generates the message "cannot access 'home/vagrant/.composer' ". How do I correct this?
- npm ERR! ENOTSUP: operation not supported on socket, write HOT 1
- Issue with NFS on Windows HOT 6
- Adding type: "nfs" in homestead.yaml causes Internal Server Error 500 on website HOT 2
- No support for amd64 parallels vagrant boxes as of 14.x HOT 4
- Can't get past blank white screen in simplest Laravel Vue Hello app.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homestead.