New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
d0d06c99d : deprecation warning breaks assets recompile #2423
Comments
yeah, I've been getting this for quite some time now. Usually just re-running |
The warning is just a warning and can be ignored. If there is an error return status, I'm not sure what the cause is. |
That's what I thought. The error return status is what always somewhat concerned me ... |
Actually, also: Mine explicitly states
|
“Compilation failed” is most likely because it ran out of memory |
oh. I never considered that, because my machine usually has loads of free memory. Are there any good strategies to reduce memory consumption? |
@nanos Yes it is "fixed" next run, but it's fixed by going "Everything's up-to-date. Nothing to do" after the last one broke. My worry is the possibility of the following scenario, though dunno how likely it is:
|
Ooh that's interesting! The fact that the deprecation warning is the last thing output before the "compilation failed" can be quite misleading I think. I ran again the clobber–recompile sequence while watching the memory usage on htop. My server has 8GiB RAM, usually with 4GiB in use. During the recompile I saw it edge to 7GiB, but didn't go overboard and this time it all compiled. I'm not sure what's the solution here since this is a rails thing, not mastodon or glitch. I guess documentation on the mastodon upgrade manual would be a compromise, or a message on the console somehow. In any case I'm closing this issue as it doesn't seem to be glitch-specific. |
Yeah. Especially with that colon in there as well, suggestion causality... |
It's an all-or-nothing situation, but it's possible to indeed have webpack think it correctly build assets. In such a situation, run |
Steps to reproduce the problem
During upgrade to the current head, I get:
And it stops there with an error status code.
Attempting to continue the upgrade process seems to succeed, but if I do
rake assets:clobber assets:precompile
, it comes up again. So I'm wary if there are assets that end up not compiled.Expected behaviour
all assets compiled without error
Actual behaviour
a deprecation warning seems to stop the process
Detailed description
No response
Mastodon instance
No response
Mastodon version
d0d06c9
Technical details
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]
node v18.13.0
The text was updated successfully, but these errors were encountered: