gpt4 book ai didi

python - 推送到 Diego : Cannot write: No space left on device

转载 作者:太空宇宙 更新时间:2023-11-04 10:07:43 26 4
gpt4 key购买 nike

我们的应用程序是为数不多的在 DEA 上运行的应用程序之一。在 DEA 上,我们能够使用特定的自定义 buildbpack:

https://github.com/ihuston/python-conda-buildpack

现在我们必须继续 Diego 运行时,我们在推送应用程序时用完了空间。我相信磁盘空间仅在暂存期间才需要,因为相当多的库随 buildpack 一起提供并且必须构建(我们需要整个科学 python 堆栈,它们都包含在上面的 buildpack 中)。

构建脚本输出一切正常,除了应用程序无法启动。然后日志显示:

2016-10-13T19:10:42.29+0200 [CELL/0]     ERR Copying into the container failed: stream-in: nstar: error streaming in: exit status 2. Output: tar: ./app/.conda/pkgs/cache/db552c1e.json: Wrote only 8704 of 10240 bytes

还有很多文件:

2016-10-13T19:10:42.29+0200 [CELL/0]     ERR tar: ./app/.conda/pkgs/cache/9779607c273dc0786bd972b4cb308b58.png: Cannot write: No space left on device

然后

2016-10-13T20:16:48.30+0200 [API/0]      OUT App instance exited with guid b2f4a1be-aeda-44fa-87bc-9871f432062d payload: {"instance"=>"", "index"=>0, "reason"=>"CRASHED", "exit_description"=>"Copying into the container failed", "crash_count"=>14, "crash_timestamp"=>1476382608296511944, "version"=>"ca10412e-717a-413b-875a-535f8c3f7be4"}

尝试添加更多磁盘配额(1G 以上)时出现错误:

Server error, status code: 400, error code: 100001, message: The app is invalid: disk_quota too much disk requested (must be less than 1024)

有没有办法多给一点空间?至少对于构建过程?

最佳答案

您可以像使用 .gitignore 文件一样使用 .cfignore 文件来排除任何不需要的文件,避免被 cf pushed。也许如果您真的只推送必要的内容,磁盘空间可能就足够了。

https://docs.developer.swisscom.com/devguide/deploy-apps/prepare-to-deploy.html#exclude

关于python - 推送到 Diego : Cannot write: No space left on device,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40028883/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com