# 'Cache file appears to be corrupt', How can I determine which file?

**URL:** https://discourse.julialang.org/t/cache-file-appears-to-be-corrupt-how-can-i-determine-which-file/89826
**Category:** General Usage
**Tags:** revise
**Created:** [November 5, 2022, 9:39pm UTC](https://discourse.julialang.org/t/cache-file-appears-to-be-corrupt-how-can-i-determine-which-file/89826 "2022-11-05T21:39:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![contradict](https://avatars.discourse-cdn.com/v4/letter/c/ac91a4/32.png) [@contradict](https://discourse.julialang.org/u/contradict)
#### Post date: [November 5, 2022, 9:39pm UTC](https://discourse.julialang.org/t/cache-file-appears-to-be-corrupt-how-can-i-determine-which-file/89826/1 "2022-11-05T21:39:52Z")

</div>

This happens when I import Revise, but I suspect Revise is the victim here. How can I track down the culprit?

```julia
$ julia --startup-file=no
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.8.2 (2022-09-29)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

(@v1.8) pkg> st Revise
Status `~/.julia/environments/v1.8/Project.toml`
⌃ [295af30f] Revise v1.1.1
Info Packages marked with ⌃ have new versions available and may be upgradable.

julia> try
       using Revise
       catch
       for (exc, bt) in current_exceptions()
       showerror(stdout, exc, bt)
       println(stdout)
       end
       end
InitError: AssertionError: header of cache file appears to be corrupt
Stacktrace:
  [1] parse_cache_header(f::IOStream)
    @ Revise ~/.julia/packages/Revise/AFtTt/src/pkgs.jl:43
  [2] parse_cache_header(cachefile::String)
    @ Revise ~/.julia/packages/Revise/AFtTt/src/pkgs.jl:51
  [3] parse_pkg_files(id::Base.PkgId)
    @ Revise ~/.julia/packages/Revise/AFtTt/src/pkgs.jl:78
  [4] __init__ ()
    @ Revise ~/.julia/packages/Revise/AFtTt/src/Revise.jl:865
  [5] _include_from_serialized(pkg::Base.PkgId, path::String, depmods::Vector{Any})
    @ Base ./loading.jl:831
  [6] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt64)
    @ Base ./loading.jl:1039
  [7] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1315
  [8] _require_prelocked(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1200
  [9] macro expansion
    @ ./loading.jl:1180 [inlined]
 [10] macro expansion
    @ ./lock.jl:223 [inlined]
 [11] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1144
 [12] top-level scope
    @ REPL[2]:2
 [13] eval
    @ ./boot.jl:368 [inlined]
 [14] eval_user_input(ast::Any, backend::REPL.REPLBackend)
    @ REPL /usr/local/stow/julia-1.8.2/share/julia/stdlib/v1.8/REPL/src/REPL.jl:151
 [15] repl_backend_loop(backend::REPL.REPLBackend)
    @ REPL /usr/local/stow/julia-1.8.2/share/julia/stdlib/v1.8/REPL/src/REPL.jl:247
 [16] start_repl_backend(backend::REPL.REPLBackend, consumer::Any)
    @ REPL /usr/local/stow/julia-1.8.2/share/julia/stdlib/v1.8/REPL/src/REPL.jl:232
 [17] run_repl(repl::REPL.AbstractREPL, consumer::Any; backend_on_current_task::Bool)
    @ REPL /usr/local/stow/julia-1.8.2/share/julia/stdlib/v1.8/REPL/src/REPL.jl:369
 [18] run_repl(repl::REPL.AbstractREPL, consumer::Any)
    @ REPL /usr/local/stow/julia-1.8.2/share/julia/stdlib/v1.8/REPL/src/REPL.jl:355
 [19] (::Base.var"#967#969"{Bool, Bool, Bool})(REPL::Module)
    @ Base ./client.jl:419
 [20] #invokelatest#2
    @ ./essentials.jl:729 [inlined]
 [21] invokelatest
    @ ./essentials.jl:726 [inlined]
 [22] run_main_repl(interactive::Bool, quiet::Bool, banner::Bool, history_file::Bool, color_set::Bool)
    @ Base ./client.jl:404
 [23] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:318
 [24] _start()
    @ Base ./client.jl:522
during initialization of module Revise

```

---

<div class="post-metadata">

### Author: ![contradict](https://avatars.discourse-cdn.com/v4/letter/c/ac91a4/32.png) [@contradict](https://discourse.julialang.org/u/contradict)
#### Post date: [November 5, 2022, 11:17pm UTC](https://discourse.julialang.org/t/cache-file-appears-to-be-corrupt-how-can-i-determine-which-file/89826/2 "2022-11-05T23:17:42Z")

</div>

Hmm, I removed the whole `~/.julia/compiled/v1.8` directory and the error is still present.

---

<div class="post-metadata">

### Author: ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)
#### Post date: [November 6, 2022, 12:09am UTC](https://discourse.julialang.org/t/cache-file-appears-to-be-corrupt-how-can-i-determine-which-file/89826/3 "2022-11-06T00:09:58Z")

</div>

> **[Release v3.4.0 · timholy/Revise.jl](https://github.com/timholy/Revise.jl/releases/tag/v3.4.0)**
>
> Revise v3.4.0
> Diff since v3.3.4
> Closed issues:
> 
> ordering of using Revise in startup.jl (#663)
> Test suite fails with Base\_Docs\_4352b6d8 error (again) (#695)
> 
> Merged pull requests:
> 
> Tracking non-.jl ...

please update your Revise

---

<div class="post-metadata">

### Author: ![contradict](https://avatars.discourse-cdn.com/v4/letter/c/ac91a4/32.png) [@contradict](https://discourse.julialang.org/u/contradict)
#### Post date: [November 6, 2022, 12:21am UTC](https://discourse.julialang.org/t/cache-file-appears-to-be-corrupt-how-can-i-determine-which-file/89826/4 "2022-11-06T00:21:50Z")

</div>

Ah, `WebIO` was holding it back via `Requires`, thank you!
