Issue with cache.ets file

Hello,

I am trying to use livebook starting with Mix.install but it is failing with below errors :

Blockquote

15:35:19.612 [error] Writer crashed (:"The pipe is being closed.\r\n")

15:35:19.647 [info] init got unexpected: {:io_request, #PID<0.92.0>, #Reference<0.2149659281.4052221953.78909>,
 {:put_chars, :unicode,
  "Failed to write log message to stdout, trying stderr\n"}}
** (exit) exited in: GenServer.call(Hex.Registry.Server, {:open, []}, 60000)
    ** (EXIT) time out
    (elixir 1.18.2) lib/gen_server.ex:1128: GenServer.call/3
    (hex 2.1.1) lib/hex/remote_converger.ex:28: Hex.RemoteConverger.converge/2
    (mix 1.18.2) lib/mix/dep/converger.ex:133: Mix.Dep.Converger.all/4
    (mix 1.18.2) lib/mix/dep/converger.ex:89: Mix.Dep.Converger.converge/4
    (mix 1.18.2) lib/mix/dep/fetcher.ex:16: Mix.Dep.Fetcher.all/3
    (mix 1.18.2) lib/mix/tasks/deps.get.ex:40: Mix.Tasks.Deps.Get.do_run/1
    (mix 1.18.2) lib/mix/sync/lock.ex:112: Mix.Sync.Lock.with_lock/3
    #cell:setup:1: (file)

I have checked the forum and found some subject that included some steps for debugging something similar which instructed running the command mix hex.info which as below shows some file is bad

C:\Users\foo>mix hex.info
Hex:    2.1.1
Elixir: 1.18.1
OTP:    27.0

Built with: Elixir 1.16.3 and OTP 24.3.4.17
Error opening ETS file c:/Users/foo/.hex/cache.ets: :badfile

So my question ,how I can regenerate this file ?

I think you can remove it, it will be regenerated. Try renaming it first though…

2 Likes

Thanks , both worked. File got regenerated on running the same command again and the mix.install in livebook too

1 Like