【问题标题】:The disk hosting is full this may be the cause of the following Exception磁盘托管已满,这可能是以下异常的原因
【发布时间】:2017-11-24 04:36:33
【问题描述】:

我正在使用 Laravel 框架版本 5.3.31 登录页面不再工作,出现错误 VerifyCsrfToken.php 第 68 行中的 TokenMismatchException:

使用 laravel api 路由链接到 Web 服务的移动应用程序无法正常工作。 我试图找出问题所在 当我运行 composer dump-autoload 时显示以下错误:

Cannot create cache directory /var/www/tdsteam/.cache/composer/repo/https---packagist.org/, or directory is not writable. Proceeding without cache
Cannot create cache directory /var/www/tdsteam/.cache/composer/files/, or directory is not writable. Proceeding without cache
PHP temp directory (/tmp) does not exist or is not writable to Composer. Set sys_temp_dir in your php.ini
Generating autoload files
The disk hosting /var/www/tdsteam/nfb/vendor is full, this may be the cause of the following exception


  [ErrorException]
  file_put_contents(): Only 0 of 1153 bytes written, possibly out of free disk space

我还在 laravel.log 文件中发现了如下错误:

#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'file_put_conten...', '/var/www/tdstea...', 111, Array)
#1 /var/www/tdsteam/nfb/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(111): file_put_contents('/var/www/tdstea...', '1511464592i:1;', 2)
#2 /var/www/tdsteam/nfb/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php(107): Illuminate\Filesystem\Filesystem->put('/var/www/tdstea...', '1511464592i:1;', true)
#3 /var/www/tdsteam/nfb/vendor/laravel/framework/src/Illuminate/Cache/Repository.php(206): Illuminate\Cache\FileStore->put('b478d193a7a9f6f...', '1511464592i:1;', '1')
#4 /var/www/tdsteam/nfb/vendor/laravel/framework/src/Illuminate/Cache/Repository.php(253): Illuminate\Cache\Repository->put('b478d193a7a9f6f...', 1, '1')
#5 /var/www/tdsteam/nfb/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php(62): Illuminate\Cache\Repository->add('b478d193a7a9f6f...', 1, '1')
#6 /var/www/tdsteam/nfb/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(47): Illuminate\root@server3:/var/www/tdsteam/nfb/storage/logs#

如何解决这个问题,为什么会出现这个问题?

我做的最后一件事,但不确定这是否导致了问题 然后我更改了FTP密码, 在 PhpStorm > New Project From Existing Files > Web 服务器在远程主机上,文件可以通过 FTP/SFTP 访问 > 我输入了 FTP 信息 > 然后它开始下载项目文件。

我还观察到,当 Phpstorm 开始下载它们时,公共和某些文件夹的权限发生了变化: 默认 /public 文件夹权限为:drwxr-xr-x Phpstorm 将 /public 权限更改为:drwxrwxrwx

【问题讨论】:

    标签: laravel laravel-5.3


    【解决方案1】:

    问题是因为系统盘已满

    /dev/root        20G   19G     0 100% /
    

    【讨论】:

    • 行了...(而 Composer 确实试图告诉你这个...)
    猜你喜欢
    • 1970-01-01
    • 2017-01-05
    • 1970-01-01
    • 2018-01-15
    • 1970-01-01
    • 1970-01-01
    • 2011-01-20
    • 2022-08-22
    • 1970-01-01
    相关资源
    最近更新 更多