So, I have tried to precompile assets on a different machine with a snapshot of my server: same error-less problem.
I have tried to do a git checkout at both v2.9.2 and master branch (obviously updated gems etc.) and that did not solve the issue.
Is everyone else able to precompile assets?
Since no error is ever returned I did whatever popped up in my mind as a potential issue to try to troubleshoot this, but now I am really out of ideas. Can anyone think of what could be causing this? I’m willing to try anything at this point…
My instance is running fine, but I am afraid I will never be able to update my instance if an update requires asset precompilation.
And I am sure it’s not an out-of-memory issue at this point (unless precompiling assets requires more than 30GB memory, which I doubt it’s the case).
In v2.9.2 (master branch doesn’t do this) I also encounter this problem:
I also noticed that if I do not run yarn
before running RAILS_ENV=production bundle exec rails assets:precompile
the output would look like this.
~/live$ RAILS_ENV=production bundle exec rails assets:precompile
yarn install v1.17.3
[1/6] Validating package.json...
[2/6] Resolving packages...
Done in 2.91s.
Compiling…
Compilation failed:
For some reason, it skips 4 steps.
However, if I first run yarn
and then (try to) precompile the assets, then the output is:
~/live$ RAILS_ENV=production bundle exec rails assets:precompile
yarn install v1.17.3
[1/6] Validating package.json...
[2/6] Resolving packages...
[3/6] Fetching packages...
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/6] Linking dependencies...
warning " > react-redux-loading-bar@4.0.8" has incorrect peer dependency "react-redux@^3.0.0 || ^4.0.0 || ^5.0.0".
[5/6] Building fresh packages...
[6/6] Cleaning modules...
Done in 47.91s.
Compiling…
Compilation failed:
~/live$
In both cases, the compilation fails without error.