Skip to content

/storage/statamic/tmp/nocache directory does not exist #15504

Closed

Description

@martyf

Bug description

Following 6.34.0's release, updating a site locally is fine.

When deploying to a Forge server (have had this happen on multiple sites), during the php artisan optimize command, get this error

In Finder.php line 667:
The "/home/forge/SITE_NAME/storage/statamic/tmp/nocache" directory does not exist.

Manually creating the tmp/nocache directory resolves the issue.

How to reproduce

Update a site from Statamic 6.33 that has successfully been deployed on Laravel Forge (all I have to test with).

Run your deployment script (i.e. composer install) and then php artisan optimize

Logs

[2026-09-23 04:37:53] production.ERROR: The "/home/forge/SITE_NAME/storage/statamic/tmp/nocache" directory does not exist. {"exception":"[object] (Symfony\\Component\\Finder\\Exception\\DirectoryNotFoundException(code: 0): The \"/home/forge/SITE_NAME/storage/statamic/tmp/nocache\" directory does not exist. at /home/forge/SITE_NAME/vendor/symfony/finder/Finder.php:667)
[stacktrace]
#0 /home/forge/SITE_NAME/vendor/laravel/framework/src/Illuminate/Foundation/Console/ViewCacheCommand.php(88): Symfony\\Component\\Finder\\Finder->in()
#1 /home/forge/SITE_NAME/vendor/laravel/framework/src/Illuminate/Foundation/Console/ViewCacheCommand.php(43): Illuminate\\Foundation\\Console\\ViewCacheCommand->bladeFilesIn()
#2 /home/forge/SITE_NAME/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(277): Illuminate\\Foundation\\Console\\ViewCacheCommand->{closure:Illuminate\\Foundation\\Console\\ViewCacheCommand::handle():38}()
#3 /home/forge/SITE_NAME/vendor/laravel/framework/src/Illuminate/Foundation/Console/ViewCacheCommand.php(38): Illuminate\\Support\\Collection->each()
#4 /home/forge/SITE_NAME/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\\Foundation\\Console\\ViewCacheCommand->handle()
#5 /home/forge/SITE_NAME/vendor/laravel/framework/src/Illuminate/Container/Util.php(43): Illuminate\\Container\\BoundMethod::{closure:Illuminate\\Container\\BoundMethod::call():35}()
#6 /home/forge/SITE_NAME/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(96): Illuminate\\Container\\Util::unwrapIfClosure()
#7 /home/forge/SITE_NAME/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod()
#8 /home/forge/SITE_NAME/vendor/laravel/framework/src/Illuminate/Container/Container.php(803): Illuminate\\Container\\BoundMethod::call()
#9 /home/forge/SITE_NAME/vendor/laravel/framework/src/Illuminate/Console/Command.php(292): Illuminate\\Container\\Container->call()
#10 /home/forge/SITE_NAME/vendor/symfony/console/Command/Command.php(285): Illuminate\\Console\\Command->execute()
#11 /home/forge/SITE_NAME/vendor/laravel/framework/src/Illuminate/Console/Command.php(261): Symfony\\Component\\Console\\Command\\Command->run()
#12 /home/forge/SITE_NAME/vendor/laravel/framework/src/Illuminate/Console/Concerns/CallsCommands.php(68): Illuminate\\Console\\Command->run()
#13 /home/forge/SITE_NAME/vendor/laravel/framework/src/Illuminate/Console/Concerns/CallsCommands.php(41): Illuminate\\Console\\Command->runCommand()
#14 /home/forge/SITE_NAME/vendor/laravel/framework/src/Illuminate/Console/Concerns/CallsCommands.php(53): Illuminate\\Console\\Command->callSilent()
#15 /home/forge/SITE_NAME/vendor/laravel/framework/src/Illuminate/Foundation/Console/OptimizeCommand.php(48): Illuminate\\Console\\Command->callSilently()
#16 /home/forge/SITE_NAME/vendor/laravel/framework/src/Illuminate/Console/View/Components/Task.php(43): Illuminate\\Foundation\\Console\\OptimizeCommand->{closure:Illuminate\\Foundation\\Console\\OptimizeCommand::handle():48}()
#17 /home/forge/SITE_NAME/vendor/laravel/framework/src/Illuminate/Console/View/Components/Factory.php(61): Illuminate\\Console\\View\\Components\\Task->render()
#18 /home/forge/SITE_NAME/vendor/laravel/framework/src/Illuminate/Foundation/Console/OptimizeCommand.php(48): Illuminate\\Console\\View\\Components\\Factory->__call()
#19 /home/forge/SITE_NAME/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\\Foundation\\Console\\OptimizeCommand->handle()
#20 /home/forge/SITE_NAME/vendor/laravel/framework/src/Illuminate/Container/Util.php(43): Illuminate\\Container\\BoundMethod::{closure:Illuminate\\Container\\BoundMethod::call():35}()
#21 /home/forge/SITE_NAME/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(96): Illuminate\\Container\\Util::unwrapIfClosure()
#22 /home/forge/SITE_NAME/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod()
#23 /home/forge/SITE_NAME/vendor/laravel/framework/src/Illuminate/Container/Container.php(803): Illuminate\\Container\\BoundMethod::call()
#24 /home/forge/SITE_NAME/vendor/laravel/framework/src/Illuminate/Console/Command.php(292): Illuminate\\Container\\Container->call()
#25 /home/forge/SITE_NAME/vendor/symfony/console/Command/Command.php(285): Illuminate\\Console\\Command->execute()
#26 /home/forge/SITE_NAME/vendor/laravel/framework/src/Illuminate/Console/Command.php(261): Symfony\\Component\\Console\\Command\\Command->run()
#27 /home/forge/SITE_NAME/vendor/symfony/console/Application.php(1144): Illuminate\\Console\\Command->run()
#28 /home/forge/SITE_NAME/vendor/symfony/console/Application.php(379): Symfony\\Component\\Console\\Application->doRunCommand()
#29 /home/forge/SITE_NAME/vendor/symfony/console/Application.php(218): Symfony\\Component\\Console\\Application->doRun()
#30 /home/forge/SITE_NAME/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(198): Symfony\\Component\\Console\\Application->run()
#31 /home/forge/SITE_NAME/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1242): Illuminate\\Foundation\\Console\\Kernel->handle()
#32 /home/forge/SITE_NAME/artisan(16): Illuminate\\Foundation\\Application->handleCommand()
#33 {main}
"}

Environment

Site 1:

Environment
Laravel Version: 13.33.0
PHP Version: 8.4.12
Composer Version: 2.10.3
Environment: production
Debug Mode: OFF
Maintenance Mode: OFF
Timezone: UTC
Locale: en

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

Drivers
Broadcasting: log
Cache: file
Database: mysql
Logs: stack / single
Mail: postmark
Queue: sync
Session: file

Storage
public/storage: LINKED

Statamic
Addons: 12
License Key: Set
Sites: 1
Stache Watcher: Disabled (auto)
Static Caching: full
Version: 6.34.0 PRO

Statamic Addons
aryehraber/statamic-captcha: 1.18.0
mitydigital/feedamic: 3.0.13
mitydigital/fuse-utilities: 2.6.3
mitydigital/iconamic: 3.0.0
mitydigital/sitemapamic: 3.5.1
mitydigital/statamic-form-submission-cleaner: 1.1.1
mitydigital/statamic-google-fonts: 2.1.3
mitydigital/statamic-scheduled-cache-invalidator: 2.2.1
mitydigital/statamic-sticky-notes: 2.0.0
mitydigital/statamic-stripe-checkout-fieldtype: 3.0.0
mitydigital/supportamic: 6.0.2
statamic-rad-pack/mailchimp: 6.2.5

Site 2:

Environment
Laravel Version: 12.69.2
PHP Version: 8.5.10
Composer Version: 2.10.3
Environment: production
Debug Mode: OFF
Maintenance Mode: OFF
Timezone: UTC
Locale: en

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

Drivers
Broadcasting: log
Cache: redis
Database: mysql
Logs: stack / single
Mail: postmark
Queue: redis
Session: redis

Storage
public/storage: LINKED

Livewire
Livewire: v4.4.6

Statamic
Addons: 17
License Key: Set
Sites: 1
Stache Watcher: Disabled
Static Caching: full
Version: 6.34.0 PRO

Statamic Addons
aryehraber/statamic-captcha: 1.18.0
jacksleight/statamic-bard-mutator: 3.0.5
jacksleight/statamic-distill: 1.3.0
marcorieser/statamic-livewire: 5.3.4
mitydigital/feedamic: 3.0.13
mitydigital/fuse-utilities: 2.6.3
mitydigital/iconamic: 3.0.0
mitydigital/sitemapamic: 3.5.1
mitydigital/statamic-form-submission-cleaner: 1.1.1
mitydigital/statamic-llms-txt: 1.1.1
mitydigital/statamic-logger: 3.0.3
mitydigital/statamic-scheduled-cache-invalidator: 2.2.1
mitydigital/statamic-sticky-notes: 2.0.0
mitydigital/supportamic: 1.3.3
statamic-rad-pack/campaign-monitor: 3.0.1
statamic-rad-pack/runway: 9.7.0
statamic/eloquent-driver: 5.12.0

Statamic Eloquent Driver
Addon Settings: file
Asset Containers: eloquent
Assets: eloquent
Blueprints: file
Collection Trees: eloquent
Collections: eloquent
Entries: eloquent
Fieldsets: file
Form Submissions: file
Forms: file
Global Sets: file
Global Variables: file
Navigation Trees: eloquent
Navigations: eloquent
Revisions: file
Sites: file
Taxonomies: eloquent
Terms: eloquent
Tokens: file

Activity

  1. jezzdk commented on Sep 23, 2026

    @jezzdk

    Just had this problem as well. Solved it by adding mkdir -p storage/statamic/tmp/nocache to my deployment script until a downstream fix is released.

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

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