-
Notifications
You must be signed in to change notification settings - Fork 181
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
on upgrade, ruby 3.3.6 is tossing memory errors, when 3.3.5 didn't. #2908
Comments
I was able to generate output from a working upgrade series as well as a busted one. I'm sorry for the added comment, but I thought this would give you better logs for compareson |
It seems like you may be running jemalloc-less Ruby with jemalloc gems. Try rebuilding Ruby using |
I'm curious if you wouldn't mind explaining (or if you know) @ClearlyClaire why that would happen with 3.3.6 and not an earlier version? It compiles with 3.3.5 without a problem and the same rbenv install command was used for both. |
@ClearlyClaire - That command worked, thanks! Would appreciate an explanation re: my above comment if you have one. |
I also would appreciate an answer to @arinoch's question, if you have one, @ClearlyClaire. |
I do not have an explanation. Is it possible that you correctly set |
We used the same command without your configuration variable for both 3.3.5 and 3.3.6. 3.3.5 results in a stable Mastodon/Glitch, 3.3.6 did not without your config variable. This is only the case on Debian 12. I did not have this problem on an instance running Ubuntu 22. |
Steps to reproduce the problem
I have a script that executes all the necessary commands to upgrade glitch-sock.
I've attached it, note I had to put a .txt extension on it to make it upload.
upgrade-glitch.sh.txt
Expected behaviour
Everything should run just fine, and no errors should be generated.
Actual behaviour
When the bundle command runs from the script, I get a pile of memory errors.
Detailed description
I did attempt to reinstall all the jems forcefully as well as the yarn stuff, corepack and yarn are both up to date. I did force ruby to reinstall as well. This didn't change anything, 3.3.6 still failed to run. See technical details below.
Mastodon instance
http://mastodon.stickbear.me
Mastodon version
4.4.0-alpha.1+glitch
Environment
operating system: Devian 12
ruby version that breaks: ruby 3.3.6 (2024-11-05 revision 75015d4c1f) [x86_64-linux]
ruby version that works just fine: ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [x86_64-linux]
node JS version: 18.19.0
Technical details
Due to being blind, for some reason I couldn't get a complete log output, but here's what I get from the last screen. If you have a better way to get output to spit out, let me know and I'll generate something more complete. Note: these issues don't happen with ruby 3.3.5 as shown above.
'from /home/mastodon/.rbenv/versions/3.3.6/lib/ruby/3.3.0/bundler/setup.rb:32:in
block in <top (required)>' from /home/mastodon/.rbenv/versions/3.3.6/lib/ruby/3.3.0/bundler/ui/shell.rb:173:in
with_level'from /home/mastodon/.rbenv/versions/3.3.6/lib/ruby/3.3.0/bundler/ui/shell.rb:119:in
silence' from /home/mastodon/.rbenv/versions/3.3.6/lib/ruby/3.3.0/bundler/setup.rb:32:in
<top (required)>'from /home/mastodon/.rbenv/versions/3.3.6/lib/ruby/3.3.0/bundler/cli/exec.rb:56:in
require_relative' from /home/mastodon/.rbenv/versions/3.3.6/lib/ruby/3.3.0/bundler/cli/exec.rb:56:in
kernel_load'from /home/mastodon/.rbenv/versions/3.3.6/lib/ruby/3.3.0/bundler/cli/exec.rb:23:in
run' from /home/mastodon/.rbenv/versions/3.3.6/lib/ruby/3.3.0/bundler/cli.rb:455:in
exec'from /home/mastodon/.rbenv/versions/3.3.6/lib/ruby/3.3.0/bundler/vendor/thor/lib/thor/command.rb:28:in
run' from /home/mastodon/.rbenv/versions/3.3.6/lib/ruby/3.3.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in
invoke_command'
from /home/mastodon/.rbenv/versions/3.3.6/lib/ruby/3.3.0/bundler/vendor/thor/lib/thor.rb:527:in
dispatch' from /home/mastodon/.rbenv/versions/3.3.6/lib/ruby/3.3.0/bundler/cli.rb:35:in
dispatch'from /home/mastodon/.rbenv/versions/3.3.6/lib/ruby/3.3.0/bundler/vendor/thor/lib/thor/base.rb:584:in
start' from /home/mastodon/.rbenv/versions/3.3.6/lib/ruby/3.3.0/bundler/cli.rb:29:in
start'from /home/mastodon/.rbenv/versions/3.3.6/lib/ruby/gems/3.3.0/gems/bundler-2.5.22/exe/bundle:28:in
block in <to p (required)>' from /home/mastodon/.rbenv/versions/3.3.6/lib/ruby/3.3.0/bundler/friendly_errors.rb:117:in
with_friendly_errors'
from /home/mastodon/.rbenv/versions/3.3.6/lib/ruby/gems/3.3.0/gems/bundler-2.5.22/exe/bundle:20:in
<top (requir ed)>' from /home/mastodon/.rbenv/versions/3.3.6/bin/bundle:25:in
load'from /home/mastodon/.rbenv/versions/3.3.6/bin/bundle:25:in `
The text was updated successfully, but these errors were encountered: