mohatt / dashbrew

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

Cannot open Dashbrew Dashboard #24

Open folkevil opened 9 years ago

folkevil commented 9 years ago

Hi, I installed dashbrew and started VM on a Win10 computer. All look like work well but when i open http://dashbrew.dev in browse, it cannot connect. I don't know why, i'm new to Vagrant too.

I've set "git config --global core.autocrlf" to "false", installed required plugins but no luck.

This is boot log

D:\Work\Dashbrew\dashbrew>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_1426650039779_76475
==> 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 => 2222 (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: Connection timeout. 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 its present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /var/www => D:/Work/Dashbrew/dashbrew/public
    default: /vagrant => D:/Work/Dashbrew/dashbrew
==> default: Running provisioner: shell...
    default: Running: C:/Users/ABC/AppData/Local/Temp/vagrant-shell20150318-1768-1nwpwj2.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
ghost commented 9 years ago

I am having the same issue on Win7, and running the command "git config --global core.autocrlf false" did not solve the issue.

I deleted the repo and cloned it again after setting the global config.

Here is the complete output: 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_1426666597615_36070 ==> default: Fixed port collision for 22 => 2222. Now on port 2200. ==> 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 => 2200 (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:2200 default: SSH username: vagrant default: SSH auth method: private key default: Warning: Connection timeout. 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 its present... default: Key inserted! Disconnecting and reconnecting using new SSH key... ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... ==> default: Setting hostname... ==> default: Configuring and enabling network interfaces... ==> default: Mounting shared folders... default: /var/www => C:/dashbrew/public default: /vagrant => C:/dashbrew ==> default: Running provisioner: shell... default: Running: C:/Users/John/AppData/Local/Temp/vagrant-shell20150318-6016-1p0i3ze.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 dire ctory ==> 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

And to verify EOL is false: PS C:\dashbrew> git config --global core.autocrlf false

After changing the line endings to UNIX in Sublime Text it did work. But that is now an open change in Git. So not really a permanent solution.

And it still does not actually work. dashbrew.dev is giving me a "This webpage is not available"

Here is the output of a provision and an up: PS C:\dashbrew> vagrant provision ==> default: Running provisioner: shell... default: Running: C:/Users/John/AppData/Local/Temp/vagrant-shell20150318-12204-su0496.sh ==> default: stdin: is not a tty ==> default: [Info] An update patch is available for your box. Updating... ==> default: [Info] Update patch has been applied successfully ==> default: [Info] Provisioning without environment.yaml config file ==> default: [Info] Writing default config file '/vagrant/config/monit/monitrc' ==> default: [Info] Writing default config file '/vagrant/config/apache/apache.conf' ==> default: [Info] Writing default config file '/vagrant/config/php/fpm/php-fpm.conf' ==> default: [Info] Writing default config file '/vagrant/config/php/fpm/php.ini' ==> default: [Info] Writing default config file '/vagrant/config/mysql/my.cnf' ==> default: [Info] Writing default config file '/vagrant/config/php/cli/php.ini' ==> default: [Info] Writing default config file '/vagrant/config/phpbrew/config.yaml' ==> default: [Info] Writing default config file '/vagrant/config/phpmyadmin/config.inc.php' ==> default: [Info] Writing default config dir '/vagrant/config/home' ==> default: [Info] Writing default config dir '/vagrant/config/monit/conf.d' ==> default: [Info] Writing default config dir '/vagrant/config/php/cli/conf.d' ==> default: [Info] Writing default config dir '/vagrant/config/php/fpm/conf.d' ==> default: [Info] Writing default config dir '/vagrant/config/php/fpm/pool.d' ==> default: [Info] Finding projects ==> default: [Info] Found 5 project(s) ==> default: |--> 5 will be created ==> default: [Info] Writing apache vhost file for 'local.dev' ==> default: [Info] Writing apache ssl vhost file for 'local.dev' ==> default: [Info] Writing apache vhost file for 'monit.dev' ==> default: [Info] Writing apache vhost file for 'phpmyadmin.dev' ==> default: [Info] Writing apache vhost file for 'mailcatcher.dev' ==> default: [Info] Writing apache vhost file for 'dashbrew.dev' ==> default: [Info] Writing apache ssl vhost file for 'dashbrew.dev' ==> default: [Info] Updated projects catalog file ==> default: [Info] Updated projects hosts file ==> default: [Info] Updated projects shortcuts file ==> default: [Info] Restarting services ==> default: [Info] Finished in 5.43s ==> default: Running provisioner: hostsupdate... ==> default: Updating hosts file on the guest machine... ==> default: '/etc/hosts' file updated successfully ==> default: Updating hosts file on the host machine (password may be required)... ==> default: 'C:\Windows\System32\drivers\etc\hosts' file updated successfully

PS C:\dashbrew> vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking if box 'mdkholy/dashbrew' is up to date... ==> default: VirtualBox VM is already running.

crittermike commented 9 years ago

This seems to be a duplicate of https://github.com/mdkholy/dashbrew/issues/5 which contains an answer (see the last comment).

Also a duplicate of https://github.com/mdkholy/dashbrew/issues/10 I believe.