kiaayo.onlinestore.website
Open in
urlscan Pro
20.74.67.78
Public Scan
Submitted URL: http://kiaayo.onlinestore.website/
Effective URL: https://kiaayo.onlinestore.website/
Submission Tags: @ecarlesi possiblethreat Search All
Submission: On November 21 via api from IT — Scanned from FR
Effective URL: https://kiaayo.onlinestore.website/
Submission Tags: @ecarlesi possiblethreat Search All
Submission: On November 21 via api from IT — Scanned from FR
Form analysis
0 forms found in the DOMText Content
APARTMENT::TENANTNOTFOUND Could not set search path to schemas, they may be invalid: "kiaayo" "public". Original error: ActiveRecord::StatementInvalid: Could not find schema kiaayo Extracted source (around line #139): 137 138 139 140 141 142 def raise_schema_connect_to_new(tenant, exception) raise TenantNotFound, <<~EXCEPTION_MESSAGE Could not set search path to schemas, they may be invalid: "#{tenant}" #{full_search_path}. Original error: #{exception.class}: #{exception} EXCEPTION_MESSAGE Extracted source (around line #85): 83 84 85 86 87 88 Apartment.connection.clear_cache! if postgresql_version < 90_300 rescue *rescuable_exceptions => e raise_schema_connect_to_new(tenant, e) end private Extracted source (around line #73): 71 72 73 74 75 76 # Set schema search path to new schema # def connect_to_new(tenant = nil) return reset if tenant.nil? raise ActiveRecord::StatementInvalid, "Could not find schema #{tenant}" unless schema_exists?(tenant) Extracted source (around line #76): 74 75 76 77 78 79 def switch!(tenant = nil) run_callbacks :switch do connect_to_new(tenant).tap do Apartment.connection.clear_query_cache end end Extracted source (around line #98): 96 97 98 99 100 101 if callbacks.empty? yield if block_given? else env = Filters::Environment.new(self, false, nil) next_sequence = callbacks.compile Extracted source (around line #75): 73 74 75 76 77 78 # def switch!(tenant = nil) run_callbacks :switch do connect_to_new(tenant).tap do Apartment.connection.clear_query_cache end Extracted source (around line #88): 86 87 88 89 90 91 def switch(tenant = nil) previous_tenant = current switch!(tenant) yield ensure begin Extracted source (around line #238): 236 237 238 239 240 241 end; end end # SingleForwardable can be used to setup delegation at the object level as well. # Extracted source (around line #22): 20 21 22 23 24 25 if database Apartment::Tenant.switch(database) { @app.call(env) } else @app.call(env) end Extracted source (around line #55): 53 54 55 56 57 58 def call(env) rack_response = @app.call(env) begin DevTraceResponseManipulator.new(env, rack_response).call rescue Exception => e Extracted source (around line #17): 15 16 17 18 19 20 def call(env) if !@enabled || @started || @attempts > MAX_ATTEMPTS @app.call(env) else attempt_to_start_agent @app.call(env) Extracted source (around line #17): 15 16 17 18 19 20 Bullet.start_request status, headers, response = @app.call(env) response_body = nil Extracted source (around line #15): 13 14 15 16 17 18 app_request = AppRequest.new env['action_dispatch.request_id'] app_request.current! @app.call(env) rescue StandardError => e if defined?(ActionDispatch::ExceptionWrapper) wrapper = if ActionDispatch::ExceptionWrapper.method_defined? :env Extracted source (around line #15): 13 14 15 16 17 18 events_json(request_id) else @app.call(env) end end Extracted source (around line #36): 34 35 36 37 38 39 result = catch(:warden) do env['warden'].on_request @app.call(env) end result ||= {} Extracted source (around line #34): 32 33 34 35 36 37 env['warden'] = Proxy.new(env, self) result = catch(:warden) do env['warden'].on_request @app.call(env) end Extracted source (around line #34): 32 33 34 35 36 37 env['warden'] = Proxy.new(env, self) result = catch(:warden) do env['warden'].on_request @app.call(env) end Extracted source (around line #15): 13 14 15 16 17 18 def call(env) env[RACK_TEMPFILES] ||= [] status, headers, body = @app.call(env) body_proxy = BodyProxy.new(body) do env[RACK_TEMPFILES].each(&:close!) unless env[RACK_TEMPFILES].nil? end Extracted source (around line #27): 25 26 27 28 29 30 def call(env) status, headers, body = @app.call(env) headers = Utils::HeaderHash[headers] Extracted source (around line #27): 25 26 27 28 29 30 case env[REQUEST_METHOD] when "GET", "HEAD" status, headers, body = @app.call(env) headers = Utils::HeaderHash[headers] if status == 200 && fresh?(env, headers) status = 304 Extracted source (around line #12): 10 11 12 13 14 15 def call(env) status, headers, body = @app.call(env) if env[REQUEST_METHOD] == HEAD [ Extracted source (around line #22): 20 21 22 23 24 25 def call(env) request = ActionDispatch::Request.new(env) _, headers, _ = response = @app.call(env) return response unless html_response?(headers) return response if policy_present?(headers) Extracted source (around line #19): 17 18 19 20 21 22 def call(env) request = ActionDispatch::Request.new env _, headers, _ = response = @app.call(env) return response if policy_present?(headers) Extracted source (around line #266): 264 265 266 267 268 269 req = make_request env prepare_session(req) status, headers, body = app.call(req.env) res = Rack::Response::Raw.new status, headers commit_session(req, res) [status, headers, body] Extracted source (around line #260): 258 259 260 261 262 263 def call(env) context(env) end def context(env, app = @app) Extracted source (around line #697): 695 696 697 698 699 700 request = ActionDispatch::Request.new env status, headers, body = @app.call(env) if request.have_cookie_jar? cookie_jar = request.cookie_jar Extracted source (around line #601): 599 600 601 602 603 604 end @app.call(env) end private Extracted source (around line #27): 25 26 27 28 29 30 error = nil result = run_callbacks :call do @app.call(env) rescue => error end raise error if error Extracted source (around line #98): 96 97 98 99 100 101 if callbacks.empty? yield if block_given? else env = Filters::Environment.new(self, false, nil) next_sequence = callbacks.compile Extracted source (around line #26): 24 25 26 27 28 29 def call(env) error = nil result = run_callbacks :call do @app.call(env) rescue => error end Extracted source (around line #14): 12 13 14 15 16 17 state = @executor.run!(reset: true) begin response = @app.call(env) returned = response << ::Rack::BodyProxy.new(response.pop) { state.complete! } ensure state.complete! unless returned Extracted source (around line #18): 16 17 18 19 20 21 def call(env) request = ActionDispatch::Request.new(env) return @app.call(env) unless actionable_request?(request) ActiveSupport::ActionableError.dispatch(request.params[:error].to_s.safe_constantize, request.params[:action]) Extracted source (around line #29): 27 28 29 30 31 32 def call(env) request = ActionDispatch::Request.new env _, headers, body = response = @app.call(env) if headers["X-Cascade"] == "pass" body.close if body.respond_to?(:close) Extracted source (around line #132): 130 131 132 133 134 135 def call_app(env) @app.call(env) rescue => e throw :app_exception, e end Extracted source (around line #19): 17 18 19 20 21 22 app_exception = catch :app_exception do request = create_regular_or_whiny_request(env) return call_app(env) unless request.permitted? if id = id_for_repl_session_update(request) return update_repl_session(id, request) Extracted source (around line #17): 15 16 17 18 19 20 def call(env) app_exception = catch :app_exception do request = create_regular_or_whiny_request(env) return call_app(env) unless request.permitted? Extracted source (around line #17): 15 16 17 18 19 20 def call(env) app_exception = catch :app_exception do request = create_regular_or_whiny_request(env) return call_app(env) unless request.permitted? Extracted source (around line #23): 21 22 23 24 25 26 def call(env) response = @app.call(env) headers = HEADERS_KLASS.new.merge(response[1]) @block.call(headers) response[1] = headers Extracted source (around line #18): 16 17 18 19 20 21 headers['X-Meta-Request-Version'] = MetaRequest::VERSION unless skip?(request_path) end middleware.call(env) end private Extracted source (around line #33): 31 32 33 34 35 36 def call(env) request = ActionDispatch::Request.new env @app.call(env) rescue Exception => exception if request.show_exceptions? render_exception(request, exception) Extracted source (around line #37): 35 36 37 38 39 40 instrumenter.start "request.action_dispatch", request: request logger.info { started_request_message(request) } status, headers, body = @app.call(env) body = ::Rack::BodyProxy.new(body) { finish(request) } [status, headers, body] rescue Exception Extracted source (around line #26): 24 25 26 27 28 29 if logger.respond_to?(:tagged) logger.tagged(compute_tags(request)) { call_app(request, env) } else call_app(request, env) end Extracted source (around line #99): 97 98 99 100 101 102 def tagged(*tags) if block_given? formatter.tagged(*tags) { yield self } else logger = ActiveSupport::TaggedLogging.new(self) logger.formatter.extend LocalTagStorage Extracted source (around line #37): 35 36 37 38 39 40 def tagged(*tags) new_tags = push_tags(*tags) yield self ensure pop_tags(new_tags.size) end Extracted source (around line #99): 97 98 99 100 101 102 def tagged(*tags) if block_given? formatter.tagged(*tags) { yield self } else logger = ActiveSupport::TaggedLogging.new(self) logger.formatter.extend LocalTagStorage Extracted source (around line #26): 24 25 26 27 28 29 if logger.respond_to?(:tagged) logger.tagged(compute_tags(request)) { call_app(request, env) } else call_app(request, env) end Extracted source (around line #13): 11 12 13 14 15 16 ::Rails.logger.silence { @app.call(env) } else @app.call(env) end end end Extracted source (around line #81): 79 80 81 82 83 84 req = ActionDispatch::Request.new env req.remote_ip = GetIp.new(req, check_ip, proxies) @app.call(req.env) end # The GetIp class exists as a way to defer processing of the request data Extracted source (around line #26): 24 25 26 27 28 29 req = ActionDispatch::Request.new env req.request_id = make_request_id(req.headers[@header]) @app.call(env).tap { |_status, headers, _body| headers[@header] = req.request_id } end private Extracted source (around line #24): 22 23 24 25 26 27 end @app.call(env) end def method_override(env) Extracted source (around line #22): 20 21 22 23 24 25 def call(env) start_time = Utils.clock_time status, headers, body = @app.call(env) headers = Utils::HeaderHash[headers] request_time = Utils.clock_time - start_time Extracted source (around line #29): 27 28 29 30 31 32 def call(env) LocalCacheRegistry.set_cache_for(local_cache_key, LocalStore.new) response = @app.call(env) response[2] = ::Rack::BodyProxy.new(response[2]) do LocalCacheRegistry.set_cache_for(local_cache_key, nil) end Extracted source (around line #14): 12 13 14 15 16 17 state = @executor.run!(reset: true) begin response = @app.call(env) returned = response << ::Rack::BodyProxy.new(response.pop) { state.complete! } ensure state.complete! unless returned Extracted source (around line #24): 22 23 24 25 26 27 def call(env) @file_handler.attempt(env) || @app.call(env) end end Extracted source (around line #110): 108 109 110 111 112 113 def call(env) status, headers, body = @app.call(env) if body.respond_to?(:to_path) case type = variation(env) when 'X-Accel-Redirect' Extracted source (around line #142): 140 141 142 143 144 145 def call(env) return @app.call(env) if @permissions.empty? request = Request.new(env) Extracted source (around line #102): 100 101 102 103 104 105 vary_resource = resource_for_path(path) status, headers, body = @app.call env if add_headers headers = add_headers.merge(headers) Extracted source (around line #51): 49 50 51 52 53 54 begin response = @app.call(env) rescue Error raise # Don't capture Raven errors rescue Exception => e Extracted source (around line #102): 100 101 102 103 104 105 vary_resource = resource_for_path(path) status, headers, body = @app.call env if add_headers headers = add_headers.merge(headers) Extracted source (around line #539): 537 538 539 540 541 542 def call(env) req = build_request env app.call req.env end # Defines additional Rack env configuration that is added on each call. Extracted source (around line #107): 105 106 107 108 109 110 begin status, headers, body = @app.call(env) rescue => e if e.is_a?(Errno::ENOBUFS) raise e Extracted source (around line #149): 147 148 149 150 151 152 begin if headers[REQUEST_METHOD] == GET process_request(headers, connection, socket_wrapper, @protocol == :http) elsif headers[REQUEST_METHOD] == PING process_ping(headers, connection) false Extracted source (around line #110): 108 109 110 111 112 113 finish_callback.call while true hijacked = accept_and_process_next_request(socket_wrapper, channel, buffer) socket_wrapper = Utils::UnseekableSocket.new if hijacked end rescue Interrupted Extracted source (around line #419): 417 418 419 420 421 422 handler = thread_handler.new(self, main_socket_options) handler.install handler.main_loop(set_initialization_state_to_true) ensure set_initialization_state.call(false) unregister_current_thread Extracted source (around line #113): 111 112 113 114 115 116 Thread.current.abort_on_exception = true begin yield(*args) rescue SystemExit raise rescue Exception => e Rails.root: /home/ubuntu/new/spree_starter Application Trace | Framework Trace | Full Trace ros-apartment (2.11.0) lib/apartment/adapters/postgresql_adapter.rb:139:in `raise_schema_connect_to_new' ros-apartment (2.11.0) lib/apartment/adapters/postgresql_adapter.rb:85:in `rescue in connect_to_new' ros-apartment (2.11.0) lib/apartment/adapters/postgresql_adapter.rb:73:in `connect_to_new' ros-apartment (2.11.0) lib/apartment/adapters/abstract_adapter.rb:76:in `block in switch!' activesupport (6.1.7.3) lib/active_support/callbacks.rb:98:in `run_callbacks' ros-apartment (2.11.0) lib/apartment/adapters/abstract_adapter.rb:75:in `switch!' ros-apartment (2.11.0) lib/apartment/adapters/abstract_adapter.rb:88:in `switch' /usr/local/rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/forwardable.rb:238:in `switch' ros-apartment (2.11.0) lib/apartment/elevators/generic.rb:22:in `call' scout_apm (5.3.5) lib/scout_apm/instant/middleware.rb:55:in `call' scout_apm (5.3.5) lib/scout_apm/middleware.rb:17:in `call' bullet (7.0.7) lib/bullet/rack.rb:17:in `call' meta_request (0.8.2) lib/meta_request/middlewares/app_request_handler.rb:15:in `call' meta_request (0.8.2) lib/meta_request/middlewares/meta_request_handler.rb:15:in `call' warden (1.2.9) lib/warden/manager.rb:36:in `block in call' warden (1.2.9) lib/warden/manager.rb:34:in `catch' warden (1.2.9) lib/warden/manager.rb:34:in `call' rack (2.2.7) lib/rack/tempfile_reaper.rb:15:in `call' rack (2.2.7) lib/rack/etag.rb:27:in `call' rack (2.2.7) lib/rack/conditional_get.rb:27:in `call' rack (2.2.7) lib/rack/head.rb:12:in `call' actionpack (6.1.7.3) lib/action_dispatch/http/permissions_policy.rb:22:in `call' actionpack (6.1.7.3) lib/action_dispatch/http/content_security_policy.rb:19:in `call' rack (2.2.7) lib/rack/session/abstract/id.rb:266:in `context' rack (2.2.7) lib/rack/session/abstract/id.rb:260:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/cookies.rb:697:in `call' activerecord (6.1.7.3) lib/active_record/migration.rb:601:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/callbacks.rb:27:in `block in call' activesupport (6.1.7.3) lib/active_support/callbacks.rb:98:in `run_callbacks' actionpack (6.1.7.3) lib/action_dispatch/middleware/callbacks.rb:26:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/executor.rb:14:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/debug_exceptions.rb:29:in `call' web-console (4.2.0) lib/web_console/middleware.rb:132:in `call_app' web-console (4.2.0) lib/web_console/middleware.rb:19:in `block in call' web-console (4.2.0) lib/web_console/middleware.rb:17:in `catch' web-console (4.2.0) lib/web_console/middleware.rb:17:in `call' rack-contrib (2.5.0) lib/rack/contrib/response_headers.rb:23:in `call' meta_request (0.8.2) lib/meta_request/middlewares/headers.rb:18:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' railties (6.1.7.3) lib/rails/rack/logger.rb:37:in `call_app' railties (6.1.7.3) lib/rails/rack/logger.rb:26:in `block in call' activesupport (6.1.7.3) lib/active_support/tagged_logging.rb:99:in `block in tagged' activesupport (6.1.7.3) lib/active_support/tagged_logging.rb:37:in `tagged' activesupport (6.1.7.3) lib/active_support/tagged_logging.rb:99:in `tagged' railties (6.1.7.3) lib/rails/rack/logger.rb:26:in `call' sprockets-rails (3.4.2) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/request_id.rb:26:in `call' rack (2.2.7) lib/rack/method_override.rb:24:in `call' rack (2.2.7) lib/rack/runtime.rb:22:in `call' activesupport (6.1.7.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/executor.rb:14:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/static.rb:24:in `call' rack (2.2.7) lib/rack/sendfile.rb:110:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/host_authorization.rb:142:in `call' rack-cors (2.0.1) lib/rack/cors.rb:102:in `call' sentry-raven (3.1.2) lib/raven/integrations/rack.rb:51:in `call' rack-cors (2.0.1) lib/rack/cors.rb:102:in `call' railties (6.1.7.3) lib/rails/engine.rb:539:in `call' /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:107:in `process_request' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:149:in `accept_and_process_next_request' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:110:in `main_loop' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:419:in `block (3 levels) in start_threads' /usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception' ros-apartment (2.11.0) lib/apartment/adapters/postgresql_adapter.rb:139:in `raise_schema_connect_to_new' ros-apartment (2.11.0) lib/apartment/adapters/postgresql_adapter.rb:85:in `rescue in connect_to_new' ros-apartment (2.11.0) lib/apartment/adapters/postgresql_adapter.rb:73:in `connect_to_new' ros-apartment (2.11.0) lib/apartment/adapters/abstract_adapter.rb:76:in `block in switch!' activesupport (6.1.7.3) lib/active_support/callbacks.rb:98:in `run_callbacks' ros-apartment (2.11.0) lib/apartment/adapters/abstract_adapter.rb:75:in `switch!' ros-apartment (2.11.0) lib/apartment/adapters/abstract_adapter.rb:88:in `switch' /usr/local/rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/forwardable.rb:238:in `switch' ros-apartment (2.11.0) lib/apartment/elevators/generic.rb:22:in `call' scout_apm (5.3.5) lib/scout_apm/instant/middleware.rb:55:in `call' scout_apm (5.3.5) lib/scout_apm/middleware.rb:17:in `call' bullet (7.0.7) lib/bullet/rack.rb:17:in `call' meta_request (0.8.2) lib/meta_request/middlewares/app_request_handler.rb:15:in `call' meta_request (0.8.2) lib/meta_request/middlewares/meta_request_handler.rb:15:in `call' warden (1.2.9) lib/warden/manager.rb:36:in `block in call' warden (1.2.9) lib/warden/manager.rb:34:in `catch' warden (1.2.9) lib/warden/manager.rb:34:in `call' rack (2.2.7) lib/rack/tempfile_reaper.rb:15:in `call' rack (2.2.7) lib/rack/etag.rb:27:in `call' rack (2.2.7) lib/rack/conditional_get.rb:27:in `call' rack (2.2.7) lib/rack/head.rb:12:in `call' actionpack (6.1.7.3) lib/action_dispatch/http/permissions_policy.rb:22:in `call' actionpack (6.1.7.3) lib/action_dispatch/http/content_security_policy.rb:19:in `call' rack (2.2.7) lib/rack/session/abstract/id.rb:266:in `context' rack (2.2.7) lib/rack/session/abstract/id.rb:260:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/cookies.rb:697:in `call' activerecord (6.1.7.3) lib/active_record/migration.rb:601:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/callbacks.rb:27:in `block in call' activesupport (6.1.7.3) lib/active_support/callbacks.rb:98:in `run_callbacks' actionpack (6.1.7.3) lib/action_dispatch/middleware/callbacks.rb:26:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/executor.rb:14:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/debug_exceptions.rb:29:in `call' web-console (4.2.0) lib/web_console/middleware.rb:132:in `call_app' web-console (4.2.0) lib/web_console/middleware.rb:19:in `block in call' web-console (4.2.0) lib/web_console/middleware.rb:17:in `catch' web-console (4.2.0) lib/web_console/middleware.rb:17:in `call' rack-contrib (2.5.0) lib/rack/contrib/response_headers.rb:23:in `call' meta_request (0.8.2) lib/meta_request/middlewares/headers.rb:18:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' railties (6.1.7.3) lib/rails/rack/logger.rb:37:in `call_app' railties (6.1.7.3) lib/rails/rack/logger.rb:26:in `block in call' activesupport (6.1.7.3) lib/active_support/tagged_logging.rb:99:in `block in tagged' activesupport (6.1.7.3) lib/active_support/tagged_logging.rb:37:in `tagged' activesupport (6.1.7.3) lib/active_support/tagged_logging.rb:99:in `tagged' railties (6.1.7.3) lib/rails/rack/logger.rb:26:in `call' sprockets-rails (3.4.2) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/request_id.rb:26:in `call' rack (2.2.7) lib/rack/method_override.rb:24:in `call' rack (2.2.7) lib/rack/runtime.rb:22:in `call' activesupport (6.1.7.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/executor.rb:14:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/static.rb:24:in `call' rack (2.2.7) lib/rack/sendfile.rb:110:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/host_authorization.rb:142:in `call' rack-cors (2.0.1) lib/rack/cors.rb:102:in `call' sentry-raven (3.1.2) lib/raven/integrations/rack.rb:51:in `call' rack-cors (2.0.1) lib/rack/cors.rb:102:in `call' railties (6.1.7.3) lib/rails/engine.rb:539:in `call' /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:107:in `process_request' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:149:in `accept_and_process_next_request' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:110:in `main_loop' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:419:in `block (3 levels) in start_threads' /usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception' EXCEPTION CAUSES ActiveRecord::StatementInvalid: Could not find schema kiaayo Extracted source (around line #75): 73 74 75 76 77 78 def connect_to_new(tenant = nil) return reset if tenant.nil? raise ActiveRecord::StatementInvalid, "Could not find schema #{tenant}" unless schema_exists?(tenant) @current = tenant.is_a?(Array) ? tenant.map(&:to_s) : tenant.to_s Apartment.connection.schema_search_path = full_search_path Extracted source (around line #76): 74 75 76 77 78 79 def switch!(tenant = nil) run_callbacks :switch do connect_to_new(tenant).tap do Apartment.connection.clear_query_cache end end Extracted source (around line #98): 96 97 98 99 100 101 if callbacks.empty? yield if block_given? else env = Filters::Environment.new(self, false, nil) next_sequence = callbacks.compile Extracted source (around line #75): 73 74 75 76 77 78 # def switch!(tenant = nil) run_callbacks :switch do connect_to_new(tenant).tap do Apartment.connection.clear_query_cache end Extracted source (around line #88): 86 87 88 89 90 91 def switch(tenant = nil) previous_tenant = current switch!(tenant) yield ensure begin Extracted source (around line #238): 236 237 238 239 240 241 end; end end # SingleForwardable can be used to setup delegation at the object level as well. # Extracted source (around line #22): 20 21 22 23 24 25 if database Apartment::Tenant.switch(database) { @app.call(env) } else @app.call(env) end Extracted source (around line #55): 53 54 55 56 57 58 def call(env) rack_response = @app.call(env) begin DevTraceResponseManipulator.new(env, rack_response).call rescue Exception => e Extracted source (around line #17): 15 16 17 18 19 20 def call(env) if !@enabled || @started || @attempts > MAX_ATTEMPTS @app.call(env) else attempt_to_start_agent @app.call(env) Extracted source (around line #17): 15 16 17 18 19 20 Bullet.start_request status, headers, response = @app.call(env) response_body = nil Extracted source (around line #15): 13 14 15 16 17 18 app_request = AppRequest.new env['action_dispatch.request_id'] app_request.current! @app.call(env) rescue StandardError => e if defined?(ActionDispatch::ExceptionWrapper) wrapper = if ActionDispatch::ExceptionWrapper.method_defined? :env Extracted source (around line #15): 13 14 15 16 17 18 events_json(request_id) else @app.call(env) end end Extracted source (around line #36): 34 35 36 37 38 39 result = catch(:warden) do env['warden'].on_request @app.call(env) end result ||= {} Extracted source (around line #34): 32 33 34 35 36 37 env['warden'] = Proxy.new(env, self) result = catch(:warden) do env['warden'].on_request @app.call(env) end Extracted source (around line #34): 32 33 34 35 36 37 env['warden'] = Proxy.new(env, self) result = catch(:warden) do env['warden'].on_request @app.call(env) end Extracted source (around line #15): 13 14 15 16 17 18 def call(env) env[RACK_TEMPFILES] ||= [] status, headers, body = @app.call(env) body_proxy = BodyProxy.new(body) do env[RACK_TEMPFILES].each(&:close!) unless env[RACK_TEMPFILES].nil? end Extracted source (around line #27): 25 26 27 28 29 30 def call(env) status, headers, body = @app.call(env) headers = Utils::HeaderHash[headers] Extracted source (around line #27): 25 26 27 28 29 30 case env[REQUEST_METHOD] when "GET", "HEAD" status, headers, body = @app.call(env) headers = Utils::HeaderHash[headers] if status == 200 && fresh?(env, headers) status = 304 Extracted source (around line #12): 10 11 12 13 14 15 def call(env) status, headers, body = @app.call(env) if env[REQUEST_METHOD] == HEAD [ Extracted source (around line #22): 20 21 22 23 24 25 def call(env) request = ActionDispatch::Request.new(env) _, headers, _ = response = @app.call(env) return response unless html_response?(headers) return response if policy_present?(headers) Extracted source (around line #19): 17 18 19 20 21 22 def call(env) request = ActionDispatch::Request.new env _, headers, _ = response = @app.call(env) return response if policy_present?(headers) Extracted source (around line #266): 264 265 266 267 268 269 req = make_request env prepare_session(req) status, headers, body = app.call(req.env) res = Rack::Response::Raw.new status, headers commit_session(req, res) [status, headers, body] Extracted source (around line #260): 258 259 260 261 262 263 def call(env) context(env) end def context(env, app = @app) Extracted source (around line #697): 695 696 697 698 699 700 request = ActionDispatch::Request.new env status, headers, body = @app.call(env) if request.have_cookie_jar? cookie_jar = request.cookie_jar Extracted source (around line #601): 599 600 601 602 603 604 end @app.call(env) end private Extracted source (around line #27): 25 26 27 28 29 30 error = nil result = run_callbacks :call do @app.call(env) rescue => error end raise error if error Extracted source (around line #98): 96 97 98 99 100 101 if callbacks.empty? yield if block_given? else env = Filters::Environment.new(self, false, nil) next_sequence = callbacks.compile Extracted source (around line #26): 24 25 26 27 28 29 def call(env) error = nil result = run_callbacks :call do @app.call(env) rescue => error end Extracted source (around line #14): 12 13 14 15 16 17 state = @executor.run!(reset: true) begin response = @app.call(env) returned = response << ::Rack::BodyProxy.new(response.pop) { state.complete! } ensure state.complete! unless returned Extracted source (around line #18): 16 17 18 19 20 21 def call(env) request = ActionDispatch::Request.new(env) return @app.call(env) unless actionable_request?(request) ActiveSupport::ActionableError.dispatch(request.params[:error].to_s.safe_constantize, request.params[:action]) Extracted source (around line #29): 27 28 29 30 31 32 def call(env) request = ActionDispatch::Request.new env _, headers, body = response = @app.call(env) if headers["X-Cascade"] == "pass" body.close if body.respond_to?(:close) Extracted source (around line #132): 130 131 132 133 134 135 def call_app(env) @app.call(env) rescue => e throw :app_exception, e end Extracted source (around line #19): 17 18 19 20 21 22 app_exception = catch :app_exception do request = create_regular_or_whiny_request(env) return call_app(env) unless request.permitted? if id = id_for_repl_session_update(request) return update_repl_session(id, request) Extracted source (around line #17): 15 16 17 18 19 20 def call(env) app_exception = catch :app_exception do request = create_regular_or_whiny_request(env) return call_app(env) unless request.permitted? Extracted source (around line #17): 15 16 17 18 19 20 def call(env) app_exception = catch :app_exception do request = create_regular_or_whiny_request(env) return call_app(env) unless request.permitted? Extracted source (around line #23): 21 22 23 24 25 26 def call(env) response = @app.call(env) headers = HEADERS_KLASS.new.merge(response[1]) @block.call(headers) response[1] = headers Extracted source (around line #18): 16 17 18 19 20 21 headers['X-Meta-Request-Version'] = MetaRequest::VERSION unless skip?(request_path) end middleware.call(env) end private Extracted source (around line #33): 31 32 33 34 35 36 def call(env) request = ActionDispatch::Request.new env @app.call(env) rescue Exception => exception if request.show_exceptions? render_exception(request, exception) Extracted source (around line #37): 35 36 37 38 39 40 instrumenter.start "request.action_dispatch", request: request logger.info { started_request_message(request) } status, headers, body = @app.call(env) body = ::Rack::BodyProxy.new(body) { finish(request) } [status, headers, body] rescue Exception Extracted source (around line #26): 24 25 26 27 28 29 if logger.respond_to?(:tagged) logger.tagged(compute_tags(request)) { call_app(request, env) } else call_app(request, env) end Extracted source (around line #99): 97 98 99 100 101 102 def tagged(*tags) if block_given? formatter.tagged(*tags) { yield self } else logger = ActiveSupport::TaggedLogging.new(self) logger.formatter.extend LocalTagStorage Extracted source (around line #37): 35 36 37 38 39 40 def tagged(*tags) new_tags = push_tags(*tags) yield self ensure pop_tags(new_tags.size) end Extracted source (around line #99): 97 98 99 100 101 102 def tagged(*tags) if block_given? formatter.tagged(*tags) { yield self } else logger = ActiveSupport::TaggedLogging.new(self) logger.formatter.extend LocalTagStorage Extracted source (around line #26): 24 25 26 27 28 29 if logger.respond_to?(:tagged) logger.tagged(compute_tags(request)) { call_app(request, env) } else call_app(request, env) end Extracted source (around line #13): 11 12 13 14 15 16 ::Rails.logger.silence { @app.call(env) } else @app.call(env) end end end Extracted source (around line #81): 79 80 81 82 83 84 req = ActionDispatch::Request.new env req.remote_ip = GetIp.new(req, check_ip, proxies) @app.call(req.env) end # The GetIp class exists as a way to defer processing of the request data Extracted source (around line #26): 24 25 26 27 28 29 req = ActionDispatch::Request.new env req.request_id = make_request_id(req.headers[@header]) @app.call(env).tap { |_status, headers, _body| headers[@header] = req.request_id } end private Extracted source (around line #24): 22 23 24 25 26 27 end @app.call(env) end def method_override(env) Extracted source (around line #22): 20 21 22 23 24 25 def call(env) start_time = Utils.clock_time status, headers, body = @app.call(env) headers = Utils::HeaderHash[headers] request_time = Utils.clock_time - start_time Extracted source (around line #29): 27 28 29 30 31 32 def call(env) LocalCacheRegistry.set_cache_for(local_cache_key, LocalStore.new) response = @app.call(env) response[2] = ::Rack::BodyProxy.new(response[2]) do LocalCacheRegistry.set_cache_for(local_cache_key, nil) end Extracted source (around line #14): 12 13 14 15 16 17 state = @executor.run!(reset: true) begin response = @app.call(env) returned = response << ::Rack::BodyProxy.new(response.pop) { state.complete! } ensure state.complete! unless returned Extracted source (around line #24): 22 23 24 25 26 27 def call(env) @file_handler.attempt(env) || @app.call(env) end end Extracted source (around line #110): 108 109 110 111 112 113 def call(env) status, headers, body = @app.call(env) if body.respond_to?(:to_path) case type = variation(env) when 'X-Accel-Redirect' Extracted source (around line #142): 140 141 142 143 144 145 def call(env) return @app.call(env) if @permissions.empty? request = Request.new(env) Extracted source (around line #102): 100 101 102 103 104 105 vary_resource = resource_for_path(path) status, headers, body = @app.call env if add_headers headers = add_headers.merge(headers) Extracted source (around line #51): 49 50 51 52 53 54 begin response = @app.call(env) rescue Error raise # Don't capture Raven errors rescue Exception => e Extracted source (around line #102): 100 101 102 103 104 105 vary_resource = resource_for_path(path) status, headers, body = @app.call env if add_headers headers = add_headers.merge(headers) Extracted source (around line #539): 537 538 539 540 541 542 def call(env) req = build_request env app.call req.env end # Defines additional Rack env configuration that is added on each call. Extracted source (around line #107): 105 106 107 108 109 110 begin status, headers, body = @app.call(env) rescue => e if e.is_a?(Errno::ENOBUFS) raise e Extracted source (around line #149): 147 148 149 150 151 152 begin if headers[REQUEST_METHOD] == GET process_request(headers, connection, socket_wrapper, @protocol == :http) elsif headers[REQUEST_METHOD] == PING process_ping(headers, connection) false Extracted source (around line #110): 108 109 110 111 112 113 finish_callback.call while true hijacked = accept_and_process_next_request(socket_wrapper, channel, buffer) socket_wrapper = Utils::UnseekableSocket.new if hijacked end rescue Interrupted Extracted source (around line #419): 417 418 419 420 421 422 handler = thread_handler.new(self, main_socket_options) handler.install handler.main_loop(set_initialization_state_to_true) ensure set_initialization_state.call(false) unregister_current_thread Extracted source (around line #113): 111 112 113 114 115 116 Thread.current.abort_on_exception = true begin yield(*args) rescue SystemExit raise rescue Exception => e Rails.root: /home/ubuntu/new/spree_starter Application Trace | Framework Trace | Full Trace ros-apartment (2.11.0) lib/apartment/adapters/postgresql_adapter.rb:75:in `connect_to_new' ros-apartment (2.11.0) lib/apartment/adapters/abstract_adapter.rb:76:in `block in switch!' activesupport (6.1.7.3) lib/active_support/callbacks.rb:98:in `run_callbacks' ros-apartment (2.11.0) lib/apartment/adapters/abstract_adapter.rb:75:in `switch!' ros-apartment (2.11.0) lib/apartment/adapters/abstract_adapter.rb:88:in `switch' /usr/local/rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/forwardable.rb:238:in `switch' ros-apartment (2.11.0) lib/apartment/elevators/generic.rb:22:in `call' scout_apm (5.3.5) lib/scout_apm/instant/middleware.rb:55:in `call' scout_apm (5.3.5) lib/scout_apm/middleware.rb:17:in `call' bullet (7.0.7) lib/bullet/rack.rb:17:in `call' meta_request (0.8.2) lib/meta_request/middlewares/app_request_handler.rb:15:in `call' meta_request (0.8.2) lib/meta_request/middlewares/meta_request_handler.rb:15:in `call' warden (1.2.9) lib/warden/manager.rb:36:in `block in call' warden (1.2.9) lib/warden/manager.rb:34:in `catch' warden (1.2.9) lib/warden/manager.rb:34:in `call' rack (2.2.7) lib/rack/tempfile_reaper.rb:15:in `call' rack (2.2.7) lib/rack/etag.rb:27:in `call' rack (2.2.7) lib/rack/conditional_get.rb:27:in `call' rack (2.2.7) lib/rack/head.rb:12:in `call' actionpack (6.1.7.3) lib/action_dispatch/http/permissions_policy.rb:22:in `call' actionpack (6.1.7.3) lib/action_dispatch/http/content_security_policy.rb:19:in `call' rack (2.2.7) lib/rack/session/abstract/id.rb:266:in `context' rack (2.2.7) lib/rack/session/abstract/id.rb:260:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/cookies.rb:697:in `call' activerecord (6.1.7.3) lib/active_record/migration.rb:601:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/callbacks.rb:27:in `block in call' activesupport (6.1.7.3) lib/active_support/callbacks.rb:98:in `run_callbacks' actionpack (6.1.7.3) lib/action_dispatch/middleware/callbacks.rb:26:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/executor.rb:14:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/debug_exceptions.rb:29:in `call' web-console (4.2.0) lib/web_console/middleware.rb:132:in `call_app' web-console (4.2.0) lib/web_console/middleware.rb:19:in `block in call' web-console (4.2.0) lib/web_console/middleware.rb:17:in `catch' web-console (4.2.0) lib/web_console/middleware.rb:17:in `call' rack-contrib (2.5.0) lib/rack/contrib/response_headers.rb:23:in `call' meta_request (0.8.2) lib/meta_request/middlewares/headers.rb:18:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' railties (6.1.7.3) lib/rails/rack/logger.rb:37:in `call_app' railties (6.1.7.3) lib/rails/rack/logger.rb:26:in `block in call' activesupport (6.1.7.3) lib/active_support/tagged_logging.rb:99:in `block in tagged' activesupport (6.1.7.3) lib/active_support/tagged_logging.rb:37:in `tagged' activesupport (6.1.7.3) lib/active_support/tagged_logging.rb:99:in `tagged' railties (6.1.7.3) lib/rails/rack/logger.rb:26:in `call' sprockets-rails (3.4.2) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/request_id.rb:26:in `call' rack (2.2.7) lib/rack/method_override.rb:24:in `call' rack (2.2.7) lib/rack/runtime.rb:22:in `call' activesupport (6.1.7.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/executor.rb:14:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/static.rb:24:in `call' rack (2.2.7) lib/rack/sendfile.rb:110:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/host_authorization.rb:142:in `call' rack-cors (2.0.1) lib/rack/cors.rb:102:in `call' sentry-raven (3.1.2) lib/raven/integrations/rack.rb:51:in `call' rack-cors (2.0.1) lib/rack/cors.rb:102:in `call' railties (6.1.7.3) lib/rails/engine.rb:539:in `call' /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:107:in `process_request' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:149:in `accept_and_process_next_request' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:110:in `main_loop' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:419:in `block (3 levels) in start_threads' /usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception' ros-apartment (2.11.0) lib/apartment/adapters/postgresql_adapter.rb:75:in `connect_to_new' ros-apartment (2.11.0) lib/apartment/adapters/abstract_adapter.rb:76:in `block in switch!' activesupport (6.1.7.3) lib/active_support/callbacks.rb:98:in `run_callbacks' ros-apartment (2.11.0) lib/apartment/adapters/abstract_adapter.rb:75:in `switch!' ros-apartment (2.11.0) lib/apartment/adapters/abstract_adapter.rb:88:in `switch' /usr/local/rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/forwardable.rb:238:in `switch' ros-apartment (2.11.0) lib/apartment/elevators/generic.rb:22:in `call' scout_apm (5.3.5) lib/scout_apm/instant/middleware.rb:55:in `call' scout_apm (5.3.5) lib/scout_apm/middleware.rb:17:in `call' bullet (7.0.7) lib/bullet/rack.rb:17:in `call' meta_request (0.8.2) lib/meta_request/middlewares/app_request_handler.rb:15:in `call' meta_request (0.8.2) lib/meta_request/middlewares/meta_request_handler.rb:15:in `call' warden (1.2.9) lib/warden/manager.rb:36:in `block in call' warden (1.2.9) lib/warden/manager.rb:34:in `catch' warden (1.2.9) lib/warden/manager.rb:34:in `call' rack (2.2.7) lib/rack/tempfile_reaper.rb:15:in `call' rack (2.2.7) lib/rack/etag.rb:27:in `call' rack (2.2.7) lib/rack/conditional_get.rb:27:in `call' rack (2.2.7) lib/rack/head.rb:12:in `call' actionpack (6.1.7.3) lib/action_dispatch/http/permissions_policy.rb:22:in `call' actionpack (6.1.7.3) lib/action_dispatch/http/content_security_policy.rb:19:in `call' rack (2.2.7) lib/rack/session/abstract/id.rb:266:in `context' rack (2.2.7) lib/rack/session/abstract/id.rb:260:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/cookies.rb:697:in `call' activerecord (6.1.7.3) lib/active_record/migration.rb:601:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/callbacks.rb:27:in `block in call' activesupport (6.1.7.3) lib/active_support/callbacks.rb:98:in `run_callbacks' actionpack (6.1.7.3) lib/action_dispatch/middleware/callbacks.rb:26:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/executor.rb:14:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/debug_exceptions.rb:29:in `call' web-console (4.2.0) lib/web_console/middleware.rb:132:in `call_app' web-console (4.2.0) lib/web_console/middleware.rb:19:in `block in call' web-console (4.2.0) lib/web_console/middleware.rb:17:in `catch' web-console (4.2.0) lib/web_console/middleware.rb:17:in `call' rack-contrib (2.5.0) lib/rack/contrib/response_headers.rb:23:in `call' meta_request (0.8.2) lib/meta_request/middlewares/headers.rb:18:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' railties (6.1.7.3) lib/rails/rack/logger.rb:37:in `call_app' railties (6.1.7.3) lib/rails/rack/logger.rb:26:in `block in call' activesupport (6.1.7.3) lib/active_support/tagged_logging.rb:99:in `block in tagged' activesupport (6.1.7.3) lib/active_support/tagged_logging.rb:37:in `tagged' activesupport (6.1.7.3) lib/active_support/tagged_logging.rb:99:in `tagged' railties (6.1.7.3) lib/rails/rack/logger.rb:26:in `call' sprockets-rails (3.4.2) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/request_id.rb:26:in `call' rack (2.2.7) lib/rack/method_override.rb:24:in `call' rack (2.2.7) lib/rack/runtime.rb:22:in `call' activesupport (6.1.7.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/executor.rb:14:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/static.rb:24:in `call' rack (2.2.7) lib/rack/sendfile.rb:110:in `call' actionpack (6.1.7.3) lib/action_dispatch/middleware/host_authorization.rb:142:in `call' rack-cors (2.0.1) lib/rack/cors.rb:102:in `call' sentry-raven (3.1.2) lib/raven/integrations/rack.rb:51:in `call' rack-cors (2.0.1) lib/rack/cors.rb:102:in `call' railties (6.1.7.3) lib/rails/engine.rb:539:in `call' /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:107:in `process_request' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:149:in `accept_and_process_next_request' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:110:in `main_loop' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:419:in `block (3 levels) in start_threads' /usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception' REQUEST Parameters: None Toggle session dump Toggle env dump HTTP_ACCEPT: "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7" HTTP_ACCEPT_ENCODING: "gzip, deflate, br, zstd" HTTP_ACCEPT_LANGUAGE: "fr-FR,fr;q=0.9" HTTP_VERSION: "HTTP/1.1" ORIGINAL_SCRIPT_NAME: "" REMOTE_ADDR: "193.32.126.132" SERVER_NAME: "kiaayo.onlinestore.website" SERVER_PROTOCOL: "HTTP/1.1" RESPONSE Headers: None