Skip to content

[Bug]: Running herd init cannot install minio #1479

@nicekiwi

Description

@nicekiwi

Platform

macOS

Operating system version

macOS 15.5 24F74

System architecture

ARM64 (M1, M2, etc)

Herd Version

1.21.2 (Build 51)

PHP Version

PHP 8.3.24 (cli) (built: Aug 1 2025 00:17:19) (NTS)

Bug description

I have created a herd.yml file with herd init:fresh. If I remove all the services and sites from the app and run herd init I get the following:

$ herd init

   INFO  Setting up your project…

   INFO  PHP 8.3 is installed.

   INFO  Site is secured.

   INFO  Redis is running on port 6379

   INFO  Installing service Minio
   ERROR  Unable to install minio.

If I run it while the Herd app is not running, I get:

herd init

   INFO  Setting up your project…


Warning: Undefined array key 1 in phar:///Users/ezra/Library/Application Support/Herd/bin/herd.phar/cli/Valet/Herd.php on line 185

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in phar:///Users/ezra/Library/Application Support/Herd/bin/herd.phar/cli/Valet/Herd.php on line 187
   ERROR  Invalid herd.yml file…
   ERROR  Invalid service found. The allowed services are: .

But the Herd app starts.

Adding any permutation of -v/-vvv/--verbose does not increase the output.

The herd.yml file:

name: app
php: '8.3'
secured: true
aliases: {  }
services:
    redis:
        version: 7.0.0
        port: '${REDIS_PORT}'
    minio:
        version: RELEASE.2024-06-29
        port: '${AWS_ENDPOINT}'
    mysql:
        version: 8.0.36
        port: '${DB_PORT}'
    reverb:
        version: 1.x
        port: '${REVERB_PORT}'
integrations:
    forge: {  }

I am able to setup the site exclusively via the Herd GUI app without issue (Minio installs and runs fine), but I want to share the config with my team, so this would ideally work. 🤞

if I remove minio from the yml file, MySQL installs, then it fails to install Reverb with the same output.

if I remove reverb, it works.

Steps to reproduce

Following a fresh install of Herd Pro, run herd init in a laravel app root with the above herd.yml file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions