Skip to content

Updating search indexes after installing a starter kit can lead to an InvalidArgumentException #11972

Description

@robdekort

Bug description

When you install Peak, it installs new filesystems as well. If you answer this prompt: #11924 with yes, this leads to an issue:

Disk [favicons] does not have a configured driver.

Perhaps those disks aren't properly loaded yet when the search update command runs.

How to reproduce

Install Peak using statamic new site studio1902/statamic-peak.
Answer the search update prompt with yes.

Logs

InvalidArgumentException

  Disk [favicons] does not have a configured driver.

  at vendor/laravel/framework/src/Illuminate/Filesystem/FilesystemManager.php:136
    132▕     {
    133▕         $config ??= $this->getConfig($name);
    134▕
    135▕         if (empty($config['driver'])) {
  ➜ 136▕             throw new InvalidArgumentException("Disk [{$name}] does not have a configured driver.");
    137▕         }
    138▕
    139▕         $driver = $config['driver'];
    140▕

      +18 vendor frames

  19  [internal]:0
      Statamic\Assets\QueryBuilder::{closure:Statamic\Assets\QueryBuilder::getKeysFromContainers():27}("favicons")
      +13 vendor frames

  33  [internal]:0
      Statamic\Assets\AssetRepository::{closure:Statamic\Assets\AssetRepository::all():22}(Object(Statamic\Assets\AssetContainer))



    There was a problem installing Statamic with the chosen starter kit!

Environment

Environment
Application Name: Statamic Peak Development
Laravel Version: 12.20.0
PHP Version: 8.4.10
Composer Version: 2.8.9
Environment: local
Debug Mode: ENABLED
URL: statamic-peak.test/
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: smtp
Queue: sync
Session: file

Storage
public/storage: NOT LINKED

Statamic
Addons: 4
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 5.60.0 PRO

Statamic Addons
studio1902/statamic-peak-browser-appearance: 3.6.1
studio1902/statamic-peak-commands: 9.6.2
studio1902/statamic-peak-seo: 8.23.0
studio1902/statamic-peak-tools: 7.3.2

Installation

Starter Kit using via CLI

Additional details

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions