cancel
Showing results for 
Search instead for 
Did you mean: 

Could not install packages due to an EnvironmentError: [Errno 28] No space left on device

lijie_quan
Explorer

Hi,

I failed to deploy a python application in SAP Cloud Foundry and it says "Could not install packages due to an EnvironmentError: [Errno 28] No space left on device". I tried to increase the disk_quota and memory to be max as 4G from 2G, however, this does not solve the issue.

Highly appreciate if anyone can help. Thanks.

The application has following requirements.

requirements.txt

torch==1.1.0
flair==0.4.2
flask==0.12.4
flanker==0.9.0
numpy==1.17.0
nltk==3.4
requests==2.20.1
python-dateutil==2.7.3
psutil==5.6.2
num2words==0.5.10
pandas==0.23.4
regex==2018.1.10

runtime.txt

python-3.6.8

manifest.yml

---
applications:
- name: test-space-error
  memory: 4G
  disk_quota: 4G
  command: python server.py

Part of the cf logs:

         Installing collected packages: numpy, torch, setuptools, kiwisolver, six, python-dateutil, pyparsing, cycler, matplotlib, tabulate, tqdm, more-itertools, attrs, zipp, importlib-metadata, packaging, pluggy, atomicwrites, wcwidth, py, pytest, wrapt, deprecated, scipy, joblib, scikit-learn, sklearn, idna, chardet, certifi, urllib3, requests, boto, jmespath, docutils, botocore, s3transfer, boto3, smart-open, gensim, sentencepiece, bpemb, regex, segtok, pytorch-pretrained-bert, sqlitedict, decorator, networkx, future, pymongo, hyperopt, mpld3, flair, Werkzeug, MarkupSafe, Jinja2, itsdangerous, click, flask, pycparser, cffi, asn1crypto, cryptography, ply, tld, WebOb, flanker, singledispatch, nltk, psutil, docopt, num2words, pytz, pandas
            The scripts f2py, f2py3 and f2py3.6 are installed in '/tmp/contents860496989/deps/0/python/bin' which is not on PATH.
            Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
            The scripts convert-caffe2-to-onnx and convert-onnx-to-caffe2 are installed in '/tmp/contents860496989/deps/0/python/bin' which is not on PATH.
            Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
            Running setup.py install for tabulate: started
              Running setup.py install for tabulate: finished with status 'done'
            The script tqdm is installed in '/tmp/contents860496989/deps/0/python/bin' which is not on PATH.
            Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
            The scripts py.test and pytest are installed in '/tmp/contents860496989/deps/0/python/bin' which is not on PATH.
            Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
            Running setup.py install for wrapt: started
              Running setup.py install for wrapt: finished with status 'done'
          Could not install packages due to an EnvironmentError: [Errno 28] No space left on device


          You are using pip version 18.1, however version 19.2.3 is available.
          You should consider upgrading via the 'pip install --upgrade pip' command.
          **ERROR** Could not install pip packages: could not run pip: exit status 1
   Failed to compile droplet: Failed to run all supply scripts: exit status 14
   Exit status 223
   Cell a17e1ddc-d07e-48ad-998a-8fc7f3bd8ce2 stopping instance c65d9d97-170f-4478-ba0a-4b2e8dad7eec
   Cell a17e1ddc-d07e-48ad-998a-8fc7f3bd8ce2 destroying container for instance c65d9d97-170f-4478-ba0a-4b2e8dad7eec
   Cell a17e1ddc-d07e-48ad-998a-8fc7f3bd8ce2 successfully destroyed container for instance c65d9d97-170f-4478-ba0a-4b2e8dad7eec
Error staging application: App staging failed in the buildpack compile phase
FAILED

View Entire Topic
yasuyukiuno
Active Participant
0 Kudos

Is there any other deployed application in your space? There is a limit to the total memory and number of apps that can be used in your CF space.

The solution is stop or delete some of your other apps to free up space.
(or buy more quota.)

lijie_quan
Explorer
0 Kudos

thanks for answering. But the issue still exist after deleting other apps. I also tried on my free-trial account, which is a free new space with 4G.