You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Laravel Vapor环境下Scribe文档生成失败求助

Laravel Vapor执行php artisan scribe:generate报错问题

在Laravel Vapor环境中执行php artisan scribe:generate命令时任务报错,但本地Windows 11的Laravel 10环境中该命令可正常运行。以下是Vapor命令窗口的输出信息:

Processing route: [GET] api/info
Processed route: [GET] api/info
Processing route: [POST] api/auth/login
Processed route: [POST] api/auth/login
Processing route: [POST] api/auth/hash
Processed route: [POST] api/auth/hash
Processing route: [POST] api/auth/logout
Processed route: [POST] api/auth/logout
Processing route: [GET] api/auth/role
Processed route: [GET] api/auth/role
Processing route: [GET] api/auth/permission
Processed route: [GET] api/auth/permission
Processing route: [GET] api/project
Processed route: [GET] api/project
Processing route: [GET] api/esolver/project/{project}
Processed route: [GET] api/esolver/project/{project}
Processing route: [GET] api/esolver/update/{project}
Processed route: [GET] api/esolver/update/{project}
Processing route: [GET] api/esolver/sync/{project}
Processed route: [GET] api/esolver/sync/{project}
Processing route: [POST] api/in_hook/new
Processed route: [POST] api/in_hook/new
Processing route: [POST] api/in_hook/start
Processed route: [POST] api/in_hook/start
Processing route: [POST] api/in_hook/stop
Processed route: [POST] api/in_hook/stop
Processing route: [POST] api/in_hook/delete
Processed route: [POST] api/in_hook/delete
Processing route: [POST] api/recipients/upload
Processed route: [POST] api/recipients/upload
Processing route: [POST] api/recipients/normalize
Processed route: [POST] api/recipients/normalize
Processing route: [POST] api/recipients/deduplicate
Processed route: [POST] api/recipients/deduplicate
Processing route: [GET] api/maps/show/{mapid?}
Processed route: [GET] api/maps/show/{mapid?}
Processing route: [POST] api/maps/set
Processed route: [POST] api/maps/set
Processing route: [PUT] api/maps/update
Processed route: [PUT] api/maps/update
Processing route: [DELETE] api/maps/remove/{mapid}
Processed route: [DELETE] api/maps/remove/{mapid}
Processing route: [POST] api/external/address
Processed route: [POST] api/external/address

League\Flysystem\UnableToDeleteFile

Unable to delete file located at: /var/task/.scribe/endpoints/00.yaml.

at vendor/league/flysystem/src/UnableToDeleteFile.php:24
20▕     private $reason;
21▕
22▕     public static function atLocation(string $location, string $reason = '', Throwable $previous = null): UnableToDeleteFile
23▕     {
24▕         $e = new static(rtrim("Unable to delete file located at: {$location}. {$reason}"), 0, $previous);
25▕         $e->location = $location;
26▕         $e->reason = $reason;
27▕
28▕         return $e;

1   vendor/league/flysystem-local/LocalFilesystemAdapter.php:143
League\Flysystem\UnableToDeleteFile::atLocation("/var/task/.scribe/endpoints/00.yaml", "")

2   vendor/league/flysystem/src/Filesystem.php:85
League\Flysystem\Local\LocalFilesystemAdapter::delete(".scribe/endpoints/00.yaml")

3   vendor/knuckleswtf/scribe/src/Tools/Utils.php:212
League\Flysystem\Filesystem::delete(".scribe/endpoints/00.yaml")

4   vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php:191
Knuckles\Scribe\Tools\Utils::deleteFilesMatching(".scribe/endpoints", Object(Closure))

5   vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php:84
Knuckles\Scribe\GroupedEndpoints\GroupedEndpointsFromApp::writeEndpointsToDisk([])

6   vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php:49
Knuckles\Scribe\GroupedEndpoints\GroupedEndpointsFromApp::extractEndpointsInfoAndWriteToDisk(Object(Knuckles\Scribe\Matching\RouteMatcher))

7   vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php:51
Knuckles\Scribe\GroupedEndpoints\GroupedEndpointsFromApp::get()

8   vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36
Knuckles\Scribe\Commands\GenerateDocumentation::handle(Object(Knuckles\Scribe\Matching\RouteMatcher), Object(Knuckles\Scribe\GroupedEndpoints\GroupedEndpointsFactory))

9   vendor/laravel/framework/src/Illuminate/Container/Util.php:41
Illuminate\Container\BoundMethod::Illuminate\Container{closure}()

10  vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:93
Illuminate\Container\Util::unwrapIfClosure(Object(Closure))

11  vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:35
Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Foundation\Application), Object(Closure))

12  vendor/laravel/framework/src/Illuminate/Container/Container.php:662
Illuminate\Container\BoundMethod::call(Object(Illuminate\Foundation\Application), [])

13  vendor/laravel/framework/src/Illuminate/Console/Command.php:208
Illuminate\Container\Container::call()

14  vendor/symfony/console/Command/Command.php:326
Illuminate\Console\Command::execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))

15  vendor/laravel/framework/src/Illuminate/Console/Command.php:177
Symfony\Component\Console\Command\Command::run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))

16  vendor/symfony/console/Application.php:1081
Illuminate\Console\Command::run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

17  vendor/symfony/console/Application.php:320
Symfony\Component\Console\Application::doRunCommand(Object(Knuckles\Scribe\Commands\GenerateDocumentation), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

18  vendor/symfony/console/Application.php:174
Symfony\Component\Console\Application::doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

19  vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:201
Symfony\Component\Console\Application::run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

20  artisan:41
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

有没有人遇到过相同的问题?


内容的提问来源于stack exchange,提问作者Pierluigi NOVATAG

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.12 07:57:04