vagrant

Homestead/Vagrant refusing Image manipulation

自古美人都是妖i 提交于 2019-12-25 03:28:10
问题 I am running into a problem with Homestead. I have a piece of code that works well on an online dev server, but fails in the vagrant Homestead one. The piece of code is an ajax executed one, where I upload an image, save it in a temp directory and send it back to the user, who then crops it. For this, I have two functions, tempUpload and tempCrop. It is failing in tempCrop, and most the line that triggers it is the following: $img = getimagesize($imgUrl); $imgUrl is an input with the url to

Vagrant - Rails Not Installed

吃可爱长大的小学妹 提交于 2019-12-24 21:28:46
问题 I recently had to destroy and recreate my Vagrant instance. Now I can't run any rails command as it says Rails is not installed. When I did Vagrant Up I got the following error default: /tmp/vagrant-shell: line 1: /home/vagrant/.rvm/scripts/rvm: No such file or directory The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! My Provision.sh file contains the following: echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg

Laravel + Homestead + Vagrant not working

拜拜、爱过 提交于 2019-12-24 18:06:08
问题 I am new to homestead and vagrant, i installed homestead as in laravel documentation but getting timeout error when visit address : 192,168.10.10. Before this error i was getting error request time out on ip so i uncomment this line : config.vm.network "private_network", ip: "192.168.10.10" Then network start working ping. Also i uncommented this line : config.vm.network "forwarded_port", guest: 80, host: 8080 So it's started showing me port forward. Then i made this line uncommented : config

Vagrant ssh connect to host 127.0.0.1:2222 port 22: Bad file number

假装没事ソ 提交于 2019-12-24 17:44:10
问题 Whenever I try to connect to my local Vagrant, I get this error when I run ssh vagrant@127.0.0.1:2222 from the Windows git bash: ssh: connect to host 127.0.0.1:2222 port 22: Bad file number It was working previously, so I'm not sure what could have caused this. When I try to do an SFTP connection in PHPStorm 8, I get this error: Connection to '127.0.0.1' failed. SSH_MSG_DISCONNECT: 2 Too many authentication failures for vagrant I've tried vagrant destroy with vagrant box remove laravel

NEO4J: Couldn't load the external resource at: file:/var/lib/neo4j/import/

我只是一个虾纸丫 提交于 2019-12-24 17:19:08
问题 I am running Neo4J on Docker within Vagrant. I am attempting to LOAD CSV WITH HEADERS from a file within the /import/ directory (I had to move my file there) via a cURL request. My request looks something like this: "LOAD CSV WITH HEADERS FROM \"file:///insert-neo4j.csv\" AS row ... This provides me with the following error: {"results":[],"errors [{"code":"Neo.ClientError.Statement.ExternalResourceFailed","message":"Couldn't load the external resource at: file:/var/lib/neo4j/import/insert

Gtk-WARNING **: cannot open display:

十年热恋 提交于 2019-12-24 16:26:36
问题 I am using Data science toolbox running ubuntu 14.04 through vagrant in windows. I installed OpenCV and tried a very simple python code. import cv2 import numpy as np import matplotlib.pyplot as plt img = cv2.imread('image1.jpg' , cv2.IMREAD_GRAYSCALE) cv2.imshow('image' , img) cv2.waitKey(0) cv2.destroyAllwindows() When i run this code i get an error - (image:1267): Gtk-WARNING **: cannot open display: I have searched on internet but not able to find a solution working for me. I have tried -

`configure': undefined method `[]' while i vagrant up my vm

情到浓时终转凉″ 提交于 2019-12-24 14:53:08
问题 i am getting the following error when vagrant up my laravel project: $ vagrant up /project/path/vendor/laravel/homestead/scripts/homestead.rb:4:in `configure': undefined method `[]' for false:FalseClass (NoMethodError) from /project/path/Vagrantfile:20:in `block in <top (required)>' from /usr/lib/ruby/vendor_ruby/vagrant/config/v2/loader.rb:37:in `call' from /usr/lib/ruby/vendor_ruby/vagrant/config/v2/loader.rb:37:in `load' from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:103:in `block

Homestead gives 404 Not Found

蹲街弑〆低调 提交于 2019-12-24 14:47:31
问题 I'm trying to get Homestead 2.0 up and running to use for local development with Laravel. I followed the Laracast, but I'm getting a 404 Not Found. Does This is what I get when running homestead up command Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'laravel/homestead'... ==> default: Matching MAC address for NAT networking... ==> default: Checking if box 'laravel/homestead' is up to date... ==> default: Setting the name of the VM: homestead ==>

Vagrant on Ubuntu: can't find any boxes

江枫思渺然 提交于 2019-12-24 12:22:50
问题 I am trying to use vagrant on Ubuntu. I just tried to init vagrant like documented here (https://vagrantcloud.com/ubuntu/boxes/ubuntu-15.04-snappy-core-edge-amd64): vagrant init ubuntu/ubuntu-15.04-snappy-core-edge-amd64 vagrant up --provider virtualbox I always get the error message: * The box 'ubuntu/ubuntu-15.04-snappy-core-edge-amd64' could not be found. Same error with any other boxes. Referring to this question: Getting The box 'hashicorp/precise32' could not be found on firing 'vagrant

Uninstalling vagrant-proxyconf doesn't remove proxy settings

这一生的挚爱 提交于 2019-12-24 11:19:33
问题 I installed vagrant-proxyconf and added to Vagrantfile the following: if Vagrant.has_plugin?("vagrant-proxyconf") config.proxy.http = "http://192.168.33.10:3128/" config.proxy.https = "http://192.168.33.10:3128/" end Later I uninstalled vagrant-proxyconf and removed the above lines from Vagrantfile. Now every time I try to use apt-get or npm i , I get this error message: Failed to connect to 192.168.33.10 port 3128: Connection refused So the proxy settings are still somewhere within the