Comments (11)
If you're using Homestead per project or have homestead in a global composer.json You'll want to make sure you have it set to "^4.0"
from homestead.
from homestead.
Hi @mtpultz
You'll need to lock the version of the box down to a previous version by adding
version: 0.6.0
To your Homestead.yaml
This will use the older .box file.
For example:
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
hostname: homestead
name: homestead
provider: virtualbox
version: 0.6.0
~snip~
from homestead.
Man, I must have lost almost 5 hours to get this running again... this post was the last one which helped me... thank god, it's finally working. Bullshit, I've updated every single fucking thing! Homestead, box, VirtualBox, composer, composer dependencies, Vagrantfile, Homestead.yaml. Seriously, I hate this all!! Perdon! I'm just fucking angry with all this. But thanks, it got worked now. Thank you guys...
from homestead.
Ok, i tough it was updated because i ran a composer update, homestead was upgraded to 3.1.0, when i tried to up my vagrant box it failed because "a newer version of the box is available" -> box update and it finished with this error.
I forced the homestead update to 4.0.0 it worked, thank you.
from homestead.
Box 1.0.0 & 1.0.1 are both PHP 7.1. 0.6.0 Was the last version with PHP 7.0.
from homestead.
@svpernova09 apparently if we aren't quite ready to adopt PHP 7.1 we can use v3.1.0 of laravel/homestead, but this seems to cause the same kind of error:
app: Running: script: Restarting Nginx
==> app: Failed to restart php7.0-fpm.service: Unit php7.0-fpm.service not found.
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
Do you have any suggestions? I've followed that post's instructions for a per project installation.
from homestead.
Thanks @svpernova09, not sure I understand bumping down to 0.6.0 since I've been running homestead box 1.0.0 with laravel/homestead v3.0.0 since v1.0.0 was released. Does that mean I didn't do something after running vagrant update box
, and I've really been running 0.6.0 since the release and download of 1.0.0?
from homestead.
I tried above and nothing worked and was getting error:
homestead-7: Failed to restart php7.2-fpm.service: Unit php7.2-fpm.service not found.
After a little digging..
There is an issue in the [homestead-install]/scripts/homestead.rb script that does not validate if the script exists prior to adding it to the execution stack. It blindly adds it.
If you edit that file and remove for the version of php that does not exist for you.
Verfiy in linux if not installed by:
ls /usr/bin/php*
and you don't see that version installed it is complaining about (i.e. php7.2-fpm)
Then if you edit the file scripts/homestead.rb and remove the references, it will proceed and complete the data creation scripts, which is where it fails before running them.
You see the blind assignment for example ~line 231:
s.inline = "sudo service nginx restart; sudo service php5.6-fpm restart; sudo service php7.0-fpm restart; sudo service php7.1-fpm restart; sudo service php7.2-fpm restart;"
In my case it is 7.2, so I removed it to look like:
s.inline = "sudo service nginx restart; sudo service php5.6-fpm restart; sudo service php7.0-fpm restart; sudo service php7.1-fpm restart"
and again at ~line 330:
s.inline = "service php5.6-fpm restart; service php7.0-fpm restart; service php7.1-fpm restart;service php7.2-fpm restart;"
to look like:
s.inline = "service php5.6-fpm restart; service php7.0-fpm restart; service php7.1-fpm restart;"
It will not die for the false reference and you should be able to continue your work, without wasting hours/days trying to look for a solution, when perhaps in a work panic.
from homestead.
Don't edit those files. Either your repo is newer than your base box, or vice versa. Update both, destroy the box, and the problems will go away.
from homestead.
Yeah, I know the deal...
The real deal is, that one should never make blind inclusions like that without verifying the files exists.
The source needs to be fixed.
from homestead.
Related Issues (20)
- vagrant nginx site config can not create
- npm / node not working on latest Homestead with Virtualbox HOT 1
- WSL Rework Discussion HOT 12
- 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 9
- 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 5
- Can't get past blank white screen in simplest Laravel Vue Hello app.
- Xdebug not enabled for PHP 5.6 HOT 1
- amd64 libvirt box missing after settler v13 HOT 1
- Homestead not able to run simple command: npm install vue@next vue-loader@next HOT 1
- Stepping down as maintainer. HOT 11
- Homestead 14.0.2 on Mac M2 with parallels failed getting IP Address HOT 1
- I got sudo: /usr/bin/php8.3: command not found when use vagrant up --provision HOT 1
- NPM issue
- laravel/homestead could not be found
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.