# What does manifest\_usage.toml file do?

**URL:** https://discourse.julialang.org/t/what-does-manifest-usage-toml-file-do/105633
**Category:** General Usage
**Tags:** question, manifest
**Created:** [October 31, 2023, 10:29pm UTC](https://discourse.julialang.org/t/what-does-manifest-usage-toml-file-do/105633 "2023-10-31T22:29:35Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![math\_opt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/math_opt/32/25317_2.png) [@math\_opt](https://discourse.julialang.org/u/math_opt)
#### Post date: [October 31, 2023, 10:29pm UTC](https://discourse.julialang.org/t/what-does-manifest-usage-toml-file-do/105633/1 "2023-10-31T22:29:35Z")

</div>

As the title says, what’s the purpose of manifest\_usage.toml?

I have a Julia project that has its own project.toml and manifest.toml. When I try to test this project, I sometimes encounter an error that says:

```julia
Activating project at `/user/project`
â”Œ Warning: failed to remove pidfile on close
â”‚ path = "/user/.julia/logs/manifest_usage.toml.pid"
â”‚ removed = false
â”” @ FileWatching.Pidfile /user/software/julia-1.9.3/share/julia/stdlib/v1.9/FileWatching/src/pidfile.jl:313
ERROR: LoadError: ArgumentError: number of bytes to checksum must be â‰¥ 0, got -4

```

A rerun of the test sometimes works, so it’s not reproducible. However, I do see it quite often. How do I resolve it? Is it safe to just delete `manifest_usage.toml`? Thanks for any help!

---

<div class="post-metadata">

### Author: ![ericphanson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ericphanson/32/215186_2.png) [@ericphanson](https://discourse.julialang.org/u/ericphanson)
#### Post date: [November 1, 2023, 1:10am UTC](https://discourse.julialang.org/t/what-does-manifest-usage-toml-file-do/105633/2 "2023-11-01T01:10:32Z")

</div>

I think it is used for the Pkg GC system, to know which package versions are being used, and so it can clean up the unused ones after enough time has passed.

---

<div class="post-metadata">

### Author: ![math\_opt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/math_opt/32/25317_2.png) [@math\_opt](https://discourse.julialang.org/u/math_opt)
#### Post date: [November 1, 2023, 3:03am UTC](https://discourse.julialang.org/t/what-does-manifest-usage-toml-file-do/105633/3 "2023-11-01T03:03:27Z")

</div>

I see. I did suspect this and ran the `Pkg.resolve()` and `Pkg.gc` commands; however, I still see the error every now and then.

---

<div class="post-metadata">

### Author: ![ericphanson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ericphanson/32/215186_2.png) [@ericphanson](https://discourse.julialang.org/u/ericphanson)
#### Post date: [November 1, 2023, 11:29am UTC](https://discourse.julialang.org/t/what-does-manifest-usage-toml-file-do/105633/4 "2023-11-01T11:29:36Z")

</div>

I haven’t seen this issue with pidfiles for `manifest_usage` before. Might be worth filing an issue, or maybe @ianshmean has an idea

---

<div class="post-metadata">

### Author: ![ianshmean](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ianshmean/32/216042_2.png) [@ianshmean](https://discourse.julialang.org/u/ianshmean)
#### Post date: [November 1, 2023, 2:16pm UTC](https://discourse.julialang.org/t/what-does-manifest-usage-toml-file-do/105633/5 "2023-11-01T14:16:50Z")

</div>

Yeah please file an issue with more info. Also your terminal printing seems off?

---

<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 1, 2023, 2:22pm UTC](https://discourse.julialang.org/t/what-does-manifest-usage-toml-file-do/105633/6 "2023-11-01T14:22:30Z")

</div>

I have had similar issues before on a cluster system where home is on network mounted drive…

---

<div class="post-metadata">

### Author: ![math\_opt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/math_opt/32/25317_2.png) [@math\_opt](https://discourse.julialang.org/u/math_opt)
#### Post date: [November 1, 2023, 7:39pm UTC](https://discourse.julialang.org/t/what-does-manifest-usage-toml-file-do/105633/7 "2023-11-01T19:39:12Z")

</div>

@ianshmean @jling  
I am running my script on an HPC cluster too. So that might have something to do with it. Regarding terminal printing, I am not sure why it outputs weird characters randomly. I am using non-interactive nodes on the cluster and they automatically write the output to a text file, which might have something to do with the printing issue. I filed a GitHub issue [here](https://github.com/JuliaLang/julia/issues/51983).
