HashNuke / heroku-buildpack-elixir

Heroku Buildpack for Elixir with nitro boost
MIT License
810 stars 304 forks source link

Too many levels of symbolic links #183

Closed philipbrown closed 3 years ago

philipbrown commented 3 years ago

Hi,

I'm getting the following error when compiling the buildpack:

-----> Checking Erlang and Elixir versions
       Will use the following versions:
       * Stack heroku-18
       * Erlang 23.1.2
       * Elixir v1.11.2 
-----> Using cached Erlang 23.1.2
-----> Installing Erlang 23.1.2 
/tmp/buildpacks/f4df38e3253cd41bc07092e4796127c7776a7e7f/lib/erlang_funcs.sh: line 39: /app/.platform_tools/erlang/Install: Too many levels of symbolic links
-----> Using cached Elixir v1.11.2
-----> Installing Elixir v1.11.2 
-----> Installing Hex
/app/.platform_tools/elixir/bin/elixir: 230: exec: erl: Too many levels of symbolic links
-----> Installing rebar
/app/.platform_tools/elixir/bin/elixir: 230: exec: erl: Too many levels of symbolic links
-----> Fetching app dependencies with mix
/app/.platform_tools/elixir/bin/elixir: 230: exec: erl: Too many levels of symbolic links
jesseshieh commented 3 years ago

I haven't investigated yet, but my guess is this was caused by a recent pull request which I just reverted. https://github.com/HashNuke/heroku-buildpack-elixir/pull/184

Is it still happening now after the revert?

philipbrown commented 3 years ago

That still didn't seem to work for me. I'm currently using https://github.com/HashNuke/heroku-buildpack-elixir.git#028423beaf0e9d9419a9ff4cfbedd58a2452953c

jesseshieh commented 3 years ago

Oh hm, can you try clearing your cache and see if that helps? Are you on Heroku or Gigalixir?

jesseshieh commented 3 years ago

I just tried to reproduce this by using the same elixir, erlang, and stack versions, but had no success. Were you able to get around this by clearing the cache? I'm going to revert the revert from earlier. Let me know if this happens again.

philipbrown commented 3 years ago

I'm using Heroku. I've just tried the following, all without cache:

Let me know if you need me to test anything!

jackcarlisle commented 3 years ago

Hi there, we're experiencing the same issue on Heroku using the following versions:

  * Stack heroku-18
  * Erlang 23.1.2
  * Elixir v1.11.2 
jesseshieh commented 3 years ago

@philipbrown thanks for investigating. I've rolled back the code to match 7ee1d78 with https://github.com/HashNuke/heroku-buildpack-elixir/pull/187

@jackcarlisle thanks for the bug report. Does it still happen now with a clean cache now that I've reverted the change I merged last night?

jesseshieh commented 3 years ago

@philipbrown @jackcarlisle are either of your apps open source by chance? I can't seem to reproduce this with any of my repos.

jackcarlisle commented 3 years ago

@jesseshieh that's working for us now, thank you! Unfortunately our app isn't open source but I'm more than happy to share any config that you think might help in solving this

jesseshieh commented 3 years ago

Thanks @jackcarlisle! That would be really helpful.