My Emacs crashed, and now it seems like my url
cache is poisoned:
error in process filter: Opening input file: No such file or directory, c:/Users/zeta/.emacs.d/url/cache/zeta/http/localhost/ffa50f273d94812bd23dff56a1ca0757 [2 times]
error in process filter: Opening input file: No such file or directory, c:/Users/zeta/.emacs.d/url/cache/zeta/http/localhost/dc0cdf4984e3f18ede59d4de6a263e14 [2 times]
error in process filter: Opening input file: No such file or directory, c:/Users/zeta/.emacs.d/url/cache/zeta/http/localhost/ffa50f273d94812bd23dff56a1ca0757 [2 times]
How can I force url
to forget its cache in order to get rid of those messages?
For completeness, here is the accompanying backtrace (with multiline enables and all ellipsis expanded):
Debugger entered--Lisp error: (file-missing "Opening input file" "No such file or directory" "c:/Users/zeta/.emacs.d/url/cache/zeta/http/localhost/ffa50f273d94812bd23dff56a1ca0757")
insert-file-contents-literally("c:/Users/zeta/.emacs.d/url/cache/zeta/http/localhost/ffa50f273d94812bd23dff56a1ca0757")
url-cache-extract("c:/Users/zeta/.emacs.d/url/cache/zeta/http/localhost/ffa50f273d94812bd23dff56a1ca0757")
url-http-parse-headers()
url-http-wait-for-headers-change-function(1 124 123)
url-http-generic-filter(#<process localhost> "HTTP/1.1 304 NOT MODIFIED\15\nServer: Werkzeug/2.1.2 Python/3.9.13\15\nDate: Fri, 02 Jun 2023 10:38:32 GMT\15\nConnection: close\15\n\15\n")
url
?global-activity-watch-mode
is active. But I'm more interested in a generic solution if possible.~/.emacs.d/url
directory before asking this question but after experiencing the issue :). I have no idea howurl
still thinks there is some cache.request-backend
is set to'url-retrieve
to ensure that Windows' owncurl
does not break stuff. Everything worked fine until the crash today :/url-cache.el
indicates that the test for whether a URL is in the cache or not is simply whether the hashed filename exists, so it makes little sense that an attempt was then made to go ahead and read a file which would have failed that initial test by virtue of not existing (race conditions aside). Maybe changeurl-cache-directory
and check whether or not the errors still refer to the old directory. If so, then the url cache probably isn't the problem. (Something elsewhere may be hanging onto those filenames.)