laravel / homestead

MIT License
3.87k stars 1.44k forks source link

New install results in MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017 #1886

Closed rbruhn closed 1 year ago

rbruhn commented 1 year ago

Versions

Host operating system

Windows 11

Homestead.yaml

ip: "192.168.10.10"
memory: 6144
cpus: 4
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    -   map: C:\Sites\biospex
        to: /home/vagrant/sites/biospex
        type: "nfs"
        mount_opts: ["nolock", "vers=3", "tcp", "noatime", "rsize=65536", "wsize=65536"]

sites:
    -   map: biospex.test
        to: /home/vagrant/sites/biospex/public
        type: laravel
        php: "8.1"

features:
    - mongodb: true
    - python: true
    - mysql: true
    - mariadb: false
    - postgresql: false
    - ohmyzsh: false
    - webdriver: false

Vagrant destroy & up output

https://gist.github.com/rbruhn/1ac076a032c731ac6d90c728da780c96

Expected behavior

Expectations were Homestead creating the server.

Actual behavior

Getting error trying to connect to mongo MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017

I turned off the Windows firewall while performing this. Made no difference. Any ideas?

Steps to reproduce

  1. New Install
rbruhn commented 1 year ago

I read some topics about MongoDB not working with KVM. In checking the Virtualbox cpu, I see that listed. Even though my cpu, AMD Ryzen 9 7945HX, says it has avx capability. Anyway, I saw some topics about running MongoDB 4 so I simply dropped back to that. It matches my production server anyway. After installing it, I provisioned the box again and it worked.