Failed to remove pidfile on close

I am trying to run a Julia script on a Linux cluster, and I see the following warning/error. I use Distributed.jl package to addprocs. It would be helpful if someone could point at the exact cause and help resolve it!

 From worker 32:	┌ Warning: failed to remove pidfile on close
      From worker 32:	│   path = "/.julia/logs/manifest_usage.toml.pid"
      From worker 32:	│   removed = IOError: unlink("/.julia/logs/manifest_usage.toml.pid"): no such file or directory (ENOENT)
      From worker 32:	â”” @ FileWatching.Pidfile /software/julia-1.9.3/share/julia/stdlib/v1.9/FileWatching/src/pidfile.jl:313
      From worker 30:	┌ Warning: failed to remove pidfile on close
      From worker 30:	│   path = "/.julia/logs/manifest_usage.toml.pid"
      From worker 30:	│   removed = IOError: unlink("/.julia/logs/manifest_usage.toml.pid"): no such file or directory (ENOENT)
      From worker 30:	â”” @ FileWatching.Pidfile /julia1.9.3/share/julia/stdlib/v1.9/FileWatching/src/pidfile.jl:313
      From worker 58:	┌ Warning: attempting to remove probably stale pidfile
      From worker 58:	│   path = "/.julia/logs/manifest_usage.toml.pid"
      From worker 58:	â”” @ FileWatching.Pidfile /julia-1.9.3/share/julia/stdlib/v1.9/FileWatching/src/pidfile.jl:244
      From worker 3:	┌ Warning: failed to remove pidfile on close
      From worker 3:	│   path = "/.julia/logs/manifest_usage.toml.pid"
      From worker 3:	│   removed = false
      From worker 3:	â”” @ FileWatching.Pidfile /julia-1.9.3/share/julia/stdlib/v1.9/FileWatching/src/pidfile.jl:313

I do not always get this warning but only sometimes; hence, I cannot provide an MWE here. But anything on what might be causing it and a potential solution is appreciated. Thanks!

1 Like