Answered
ERR Failed to compress droplet filesystem: signal: broken pipe

測試的 app 是一個 python3 的 flask application 原本的 app 直接 push 可以成功運行 然而當我加了 vendor 這個資料夾,讓他從我預先抓取的 whl package 安裝時卻不能運行

可以看到 log 中 pip 是有成功安裝我提供的 package 的 2019-01-15T18:02:34.55+0800 [STG/0] OUT Successfully installed Flask-1.0.2 Flask-Compress-1.4.0 Flask-Cors-3.0.7 Jinja2-2.10 MarkupSafe-1.1.0 Six-1.12.0 WTForms-2.2.1 Werkzeug-0.14.1 click-7.0 gunicorn-19.9.0 itsdangerous-1.1.0 numpy-1.15.4 pandas-0.23.4 psycopg2-binary-2.7.6.1 python-dateutil-2.7.5 pytz-2018.9 scikit-learn-0.20.2 scipy-1.2.0 setuptools-40.6.3 torch-1.0.0

然而下一行馬上就發生 borken pipe 2019-01-15T18:04:07.25+0800 [STG/0] ERR Failed to compress droplet filesystem: signal: broken pipe

想請問如何解決這個問題呢?

以下是我的完整 cf log --recent 2019-01-15T18:02:20.97+0800 [STG/0] OUT Collecting python-dateutil>=2.5.0 (from pandas->-r /tmp/contents818382224/deps/0/requirements.txt (line 8)) 2019-01-15T18:02:20.99+0800 [STG/0] OUT Collecting pytz>=2011k (from pandas->-r /tmp/contents818382224/deps/0/requirements.txt (line 8)) 2019-01-15T18:02:21.10+0800 [STG/0] OUT Collecting Six (from Flask_Cors->-r /tmp/contents818382224/deps/0/requirements.txt (line 11)) 2019-01-15T18:02:21.11+0800 [STG/0] OUT Collecting scipy>=0.13.3 (from scikit_learn->-r /tmp/contents818382224/deps/0/requirements.txt (line 12)) 2019-01-15T18:02:21.71+0800 [STG/0] OUT Collecting MarkupSafe>=0.23 (from Jinja2>=2.10->Flask->-r /tmp/contents818382224/deps/0/requirements.txt (line 4)) 2019-01-15T18:02:21.72+0800 [STG/0] OUT Installing collected packages: gunicorn, click, itsdangerous, MarkupSafe, Jinja2, Werkzeug, Flask, Flask-Compress, setuptools, WTForms, torch, Six, python-dateutil, numpy, pytz, pandas, psycopg2-binary, Flask-Cors, scipy, scikit-learn 2019-01-15T18:02:22.15+0800 [STG/0] OUT Running setup.py install for Flask-Compress: started 2019-01-15T18:02:22.63+0800 [STG/0] OUT Running setup.py install for Flask-Compress: finished with status 'done' 2019-01-15T18:02:34.55+0800 [STG/0] OUT Successfully installed Flask-1.0.2 Flask-Compress-1.4.0 Flask-Cors-3.0.7 Jinja2-2.10 MarkupSafe-1.1.0 Six-1.12.0 WTForms-2.2.1 Werkzeug-0.14.1 click-7.0 gunicorn-19.9.0 itsdangerous-1.1.0 numpy-1.15.4 pandas-0.23.4 psycopg2-binary-2.7.6.1 python-dateutil-2.7.5 pytz-2018.9 scikit-learn-0.20.2 scipy-1.2.0 setuptools-40.6.3 torch-1.0.0 2019-01-15T18:04:07.25+0800 [STG/0] ERR Failed to compress droplet filesystem: signal: broken pipe 2019-01-15T18:04:07.25+0800 [STG/0] OUT Exit status 1 2019-01-15T18:04:07.32+0800 [STG/0] OUT Stopping instance 71a2d9b4-5743-46f0-a256-e16580a796bc 2019-01-15T18:04:07.32+0800 [STG/0] OUT Destroying container 2019-01-15T18:04:08.53+0800 [STG/0] OUT Successfully destroyed container

  
Posted 5 months ago
Votes Newest

Answers 2


目前猜測是disk空間限制不足導致,不過無法從log確認

  
Posted 5 months ago

通常這個問題是由disk空間不足導致,default的disk space限制是1G。 有source code可提供的話我可幫你測試

  
Posted 5 months ago
477 Views
2 Answers
5 months ago
8 hours ago
Tags