No space left

#3
by hshr - opened

Hugging Face server seems to run out of space:

2023-11-14 19:20:14 | INFO     | DF | saved audios: /tmp/tmp3uzgxpysnoisy.wav, /tmp/tmpa9xj2ksxenhanced.wav
Traceback (most recent call last):
  File "/home/user/.local/lib/python3.8/site-packages/gradio/routes.py", line 344, in run_predict
    output = await app.get_blocks().process_api(
  File "/home/user/.local/lib/python3.8/site-packages/gradio/blocks.py", line 1010, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "/home/user/.local/lib/python3.8/site-packages/gradio/blocks.py", line 908, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "/home/user/.local/lib/python3.8/site-packages/gradio/components.py", line 2038, in preprocess
    temp_file_obj = processing_utils.decode_base64_to_file(
  File "/home/user/.local/lib/python3.8/site-packages/gradio/processing_utils.py", line 295, in decode_base64_to_file
    file_obj = tempfile.NamedTemporaryFile(
  File "/usr/local/lib/python3.8/tempfile.py", line 540, in NamedTemporaryFile
    (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags, output_type)
  File "/usr/local/lib/python3.8/tempfile.py", line 250, in _mkstemp_inner
    fd = _os.open(file, flags, 0o600)
OSError: [Errno 28] No space left on device: '/tmp/_tmp_gradio_f2ca54417e1c3bbef9e65bd47cec81dc5e10640c_tmpha8i3m3kcebaxxqk.wav'
Traceback (most recent call last):
  File "/home/user/.local/lib/python3.8/site-packages/gradio/routes.py", line 344, in run_predict
    output = await app.get_blocks().process_api(
  File "/home/user/.local/lib/python3.8/site-packages/gradio/blocks.py", line 1010, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "/home/user/.local/lib/python3.8/site-packages/gradio/blocks.py", line 908, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "/home/user/.local/lib/python3.8/site-packages/gradio/components.py", line 2038, in preprocess
    temp_file_obj = processing_utils.decode_base64_to_file(
  File "/home/user/.local/lib/python3.8/site-packages/gradio/processing_utils.py", line 295, in decode_base64_to_file
    file_obj = tempfile.NamedTemporaryFile(

@radames as you contributed before, could you have a look? Am I doing something wrong here?

hi @hshr , please reboot to cleanup temporary files, since the disk is ephemeral

I rebooted, but it still does not seem to run. I also tried to clean up tmp files here: https://huggingface.co/spaces/hshr/DeepFilterNet2/blob/main/app.py#L254

do you know how much does your app take space as it runs, download assets, etc? also one idea for the public demo is to limit the size/length for input files, You could set a env var and encourage folks using the app to duplicate and use it on their own resources, without the time limitation. wdyt?

Thanks for your tips. It seems to be working now. I made sure now, that nothing is downloaded and old wav files are deleted.

hshr changed discussion status to closed

Sign up or log in to comment