Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

clifford's avatar

Homestead with postgresql@12-main

I have been trying to setup my laravel project with homestead but I'm getting an assertion error from postgres@12-main. I found that you need to enable postgresql from feature and services but no luck here.

I tried the following:

  • Re-provision vagrant
  • Reinstalled the prerequisites (vagrant, virtualbox and homestead)

Here's a portion of my Homestead.yaml

features:
  - postgresql: true
  - mysql: false
  - ohmyzsh: false
  - webdriver: false

services:
    - enabled:
        - "postgresql@12-main"
    - disabled:

Log with an error

homestead: Running provisioner: start postgresql@12-main (shell)...
homestead: Running: inline script
homestead: Assertion failed on job for [email protected].
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.
0 likes
3 replies
hanifeoglu's avatar

you solved this is problem I seen same error like this

1supabadmutha's avatar

Anyone seeing this now, try just enabling postgresql provisioner under services.

services:
    - enabled:
        - "postgresql"

Please or to participate in this conversation.