Skip to content

active_storage_validations 2.0.0+ causing "stack level too deep" #364

Open
@mooktakim

Description

This issue in production only. Caused a lot of problems, unable to download any files.
Downgraded to old version (1.4.0)

Was not detected locally or by tests.
Using digital ocean as the S3 provider.

> d = Document.last
> d.from_file.download
I, [2025-02-12T17:54:12.603450 #50]  INFO -- :   S3 Storage (215.3ms) Downloaded file from key: yd82c5wka2eq9a142ek1zmnqxzq9
(rapidrecruit):2:in `<top (required)>': stack level too deep (SystemStackError)
rapidrecruit(prod)> #<Thread:0x000076a29bf933f0 /rails/vendor/ruby/3.3.0/gems/scout_apm_logging-1.0.2/lib/scout_apm/logging/loggers/opentelemetry/sdk/logs/export/batch_log_record_processor.rb:184 run> terminated with exception (report_on_exception is true):
/rails/vendor/ruby/3.3.0/gems/uri-1.0.2/lib/uri/common.rb:155:in `new': stack level too deep (SystemStackError)
	from /rails/vendor/ruby/3.3.0/gems/uri-1.0.2/lib/uri/common.rb:155:in `for'
	from /rails/vendor/ruby/3.3.0/gems/uri-1.0.2/lib/uri/rfc3986_parser.rb:135:in `parse'
	from /rails/vendor/ruby/3.3.0/gems/uri-1.0.2/lib/uri/common.rb:208:in `parse'
	from /rails/vendor/ruby/3.3.0/gems/sentry-ruby-5.22.2/lib/sentry/net/http.rb:70:in `extract_request_info'
	from /rails/vendor/ruby/3.3.0/gems/sentry-ruby-5.22.2/lib/sentry/net/http.rb:38:in `block in request'
	from /rails/vendor/ruby/3.3.0/gems/sentry-ruby-5.22.2/lib/sentry/hub.rb:108:in `with_child_span'
	from /rails/vendor/ruby/3.3.0/gems/sentry-ruby-5.22.2/lib/sentry-ruby.rb:506:in `with_child_span'
	from /rails/vendor/ruby/3.3.0/gems/sentry-ruby-5.22.2/lib/sentry/net/http.rb:37:in `request'
	 ... 9349 levels...
	from /rails/vendor/ruby/3.3.0/gems/scout_apm_logging-1.0.2/lib/scout_apm/logging/loggers/opentelemetry/sdk/logs/export/batch_log_record_processor.rb:174:in `block in work'
	from <internal:kernel>:187:in `loop'
	from /rails/vendor/ruby/3.3.0/gems/scout_apm_logging-1.0.2/lib/scout_apm/logging/loggers/opentelemetry/sdk/logs/export/batch_log_record_processor.rb:165:in `work'
	from /rails/vendor/ruby/3.3.0/gems/scout_apm_logging-1.0.2/lib/scout_apm/logging/loggers/opentelemetry/sdk/logs/export/batch_log_record_processor.rb:184:in `block in reset_on_fork'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions