mohatt / dashbrew

Vagrant build for developing PHP projects on different PHP versions and configurations
490 stars 38 forks source link

Cannot access dashboard. #49

Closed Karklik closed 8 years ago

Karklik commented 8 years ago
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'mdkholy/dashbrew'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'mdkholy/dashbrew' is up to date...
==> default: Setting the name of the VM: dashbrew_default_1455826326109_86637
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Remote connection disconnect. Retrying...
    default:
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default:
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version o       f
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you        see
    default: shared folder errors, please make sure the guest additions within t       he
    default: virtual machine match the version of VirtualBox you have installed        on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 4.3.18
    default: VirtualBox Version: 5.0
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /var/www => F:/work/vagrant/dashbrew/public
    default: /vagrant => F:/work/vagrant/dashbrew
==> default: Running provisioner: shell...
    default: Running: C:/Users/ANPNYM~1/AppData/Local/Temp/vagrant-shell20160218-3276-1f4s7uy.sh
==> default: stdin: is not a tty
==> default: /tmp/vagrant-shell: /vagrant/provision/main/dashbrew: /usr/bin/php^M: bad interpreter: No such file or directory
==> default: Running provisioner: hostsupdate...
==> default: Updating hosts file on the guest machine...
==> default: Unable to find the file '/provision/main/etc/hosts.json'
==> default: '/etc/hosts' file updated successfully
==> default: Updating hosts file on the host machine (password may be required)...
==> default: Unable to find the file '/provision/main/etc/hosts.json'
==> default: 'C:\Windows\System32\drivers\etc\hosts' file updated successfully

Provides also

http://i.imgur.com/gUEtbtc.png

frdmn commented 8 years ago

My guess is Windows line endings (CR LF) messed up the line interpretation:

https://github.com/mdkholy/dashbrew/issues/5#issuecomment-77226140

vagrant$ sed -i 's/\r//' /vagrant/provision/main/dashbew
host$ vagrant reload
Karklik commented 8 years ago

Thank you for answer, clear and it's working!