Skip to content
Snippets Groups Projects
  1. Mar 15, 2022
  2. Mar 13, 2022
  3. Mar 11, 2022
  4. Mar 10, 2022
  5. Feb 11, 2022
  6. Feb 10, 2022
  7. Jan 09, 2022
  8. Jan 07, 2022
  9. Dec 23, 2021
  10. Dec 22, 2021
  11. Nov 08, 2021
  12. Nov 06, 2021
  13. Oct 20, 2021
    • Gavin Mogan's avatar
      Handle file not existing when trying to delete it · d1990304
      Gavin Mogan authored
      When trying to clean up database after a faulty config deleted the
      existing files, I called /_matrix/media/r0/admin/purge/old but that was
      failing due to the file not existing.
      
      Code jsut swallows the error as deleting a non existing file shouldn't
      be fatal
      
      Logs-ish:
      
      Deleting thumbnail with hash: e8ba5faa6bae71647a3a8e7e6328bf3d93343e96666eda14e5487b5e60760d80" before_ts=1632086268000 contentLength=2 contentType=application/json include_local=true isRepoAdmin=true method=POST queryString="before_ts=1632086268000&include_local=true&keep_profiles=false" resource=/_matrix/media/r0/admin/purge/old usingForwardedHost=true
      Error purging media: remove /var/matrix/media/c3/43/82a1828f3222468497ac8ccc0f490b252c6a: no such file or directory"
      Replying with result: *api.ErrorResponse &{Code:M_UNKNOWN Message:error purging media InternalCode:M_UNKNOWN}" contentLength=2 contentType=application/json method=POST queryString="before_ts=1632086268000&include_local=true&keep_profiles=false"  resource=/_matrix/media/r0/admin/purge/old usingForwardedHost=true
      d1990304
  14. Oct 19, 2021
Loading