Aiohttp.server error: FileNotFoundError: [Errno 2] No such file or directory

Getting an error that I’ve only noticed since being on 0.118:



Logger: aiohttp.server
Source: components/image/__init__.py:208
First occurred: 2:47:09 PM (24 occurrences)
Last logged: 3:18:15 PM
Error handling request

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
    resp = await self._request_handler(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 118, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 172, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 72, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/image/__init__.py", line 192, in get
    await hass.async_add_executor_job(
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/image/__init__.py", line 208, in _generate_thumbnail
    image = ImageOps.exif_transpose(Image.open(original_path))
  File "/usr/local/lib/python3.8/site-packages/PIL/Image.py", line 2878, in open
    fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: '/config/image/2d75cd9e3fa12cf1beab2444796337a5/original'

Not sure what the cause is or how to fix, anyone have suggestions?

I also have the same error and not sure why and how to get rid of it. Did you figure out?

Nope, it just went away on it’s own.

These keep popping up in my log as well. Anyone ever found the cause?

is this issue resolved ? i have the same error.

For anyone else this may help, I found that the profile pictures of my users were ‘broken’. After I uploaded new profile pictures, the error seems to have gone away.

1 Like

I uploaded new profile pictures and now the errors stopped for me 2!

Thanks @SamJam :pray: