Skip to content
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

rack-cache gem update from 1.13.0 -> 1.14.0 results in error 'cache error: undefined method `match' for nil:NilClass' #118

Open
alexskr opened this issue Jul 21, 2023 · 3 comments

Comments

@alexskr
Copy link
Member

alexskr commented Jul 21, 2023

updating rack-cache gem from 1.13.0 to 1.14.0 breaks API even though all unit tests pass.

ideally unit tests should be improved to catch this kind of problem.

@syphax-bouazzouni
Copy link

I confirm in our side also

alexskr added a commit that referenced this issue Jul 21, 2023
@jvendetti
Copy link
Member

Could we please be more disciplined about issue entry? Beyond saying "breaks API", it's useful to document an error message and/or stack trace, and at least one example of how to reproduce.

The comment about unit tests is unclear. It's considered a best practice among developers to use version specifiers in Gemfiles because it's well known that upgrading 3rd party libraries comes with the potential to break your code.

@alexskr
Copy link
Member Author

alexskr commented Jul 24, 2023

stack trace:

cache error: undefined method `match' for nil:NilClass
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/bundler/gems/redis-store-c395440c3a84/lib/redis/store/namespace.rb:197:in `interpolate'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/bundler/gems/redis-store-c395440c3a84/lib/redis/store/namespace.rb:188:in `namespace'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/bundler/gems/redis-store-c395440c3a84/lib/redis/store/namespace.rb:23:in `get'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/redis-rack-cache-2.2.1/lib/rack/cache/redis_entitystore.rb:20:in `read'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/redis-rack-cache-2.2.1/lib/rack/cache/redis_base.rb:31:in `open'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-cache-1.14.0/lib/rack/cache/meta_store.rb:41:in `lookup'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-cache-1.14.0/lib/rack/cache/context.rb:176:in `lookup'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-cache-1.14.0/lib/rack/cache/context.rb:67:in `call!'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-cache-1.14.0/lib/rack/cache/context.rb:52:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-attack-6.6.1/lib/rack/attack.rb:110:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/bundler/gems/ontologies_linked_data-13bb138aa40c/lib/ontologies_linked_data/security/access_denied_middleware.rb:10:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/bundler/gems/ontologies_linked_data-13bb138aa40c/lib/ontologies_linked_data/security/authorization.rb:45:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
/srv/ontoportal/ontologies_api/releases/20230724163041/lib/rack/param_translator.rb:47:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/bundler/gems/rack-post-body-to-params-0fd30e710386/lib/rack/post-body-to-params.rb:144:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-accept-0.4.5/lib/rack/accept/context.rb:22:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
/srv/ontoportal/ontologies_api/releases/20230724163041/lib/rack/slice_detection.rb:35:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-cors-1.0.6/lib/rack/cors.rb:98:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-cors-1.0.6/lib/rack/cors.rb:98:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-1.6.13/lib/rack/static.rb:124:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-1.6.13/lib/rack/commonlogger.rb:33:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:219:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-protection-1.5.5/lib/rack/protection/xss_header.rb:18:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-protection-1.5.5/lib/rack/protection/json_csrf.rb:18:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-protection-1.5.5/lib/rack/protection/base.rb:49:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-protection-1.5.5/lib/rack/protection/base.rb:49:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-protection-1.5.5/lib/rack/protection/frame_options.rb:31:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-1.6.13/lib/rack/logger.rb:15:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-1.6.13/lib/rack/commonlogger.rb:33:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:219:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:212:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-1.6.13/lib/rack/head.rb:13:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-1.6.13/lib/rack/methodoverride.rb:22:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:182:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:2013:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1487:in `block in call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1787:in `synchronize'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1487:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/unicorn-6.1.0/lib/unicorn/http_server.rb:634:in `process_client'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/unicorn-6.1.0/lib/unicorn/http_server.rb:739:in `worker_loop'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/unicorn-6.1.0/lib/unicorn/http_server.rb:547:in `spawn_missing_workers'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/unicorn-6.1.0/lib/unicorn/http_server.rb:143:in `start'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/unicorn-6.1.0/bin/unicorn:128:in `<top (required)>'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/bin/unicorn:23:in `load'
/srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/bin/unicorn:23:in `<top (required)>'
/usr/local/rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.4.0/lib/bundler/cli/exec.rb:58:in `load'
/usr/local/rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.4.0/lib/bundler/cli/exec.rb:58:in `kernel_load'
/usr/local/rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.4.0/lib/bundler/cli/exec.rb:23:in `run'
/usr/local/rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.4.0/lib/bundler/cli.rb:491:in `exec'
/usr/local/rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.4.0/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/usr/local/rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.4.0/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/usr/local/rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.4.0/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
/usr/local/rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.4.0/lib/bundler/cli.rb:34:in `dispatch'
/usr/local/rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.4.0/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
/usr/local/rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.4.0/lib/bundler/cli.rb:28:in `start'
/usr/local/rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.4.0/exe/bundle:45:in `block in <top (required)>'
/usr/local/rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.4.0/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
/usr/local/rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.4.0/exe/bundle:33:in `<top (required)>'
/usr/local/rbenv/versions/2.7.8/bin/bundle:23:in `load'
/usr/local/rbenv/versions/2.7.8/bin/bundle:23:in `<main>'

E, [2023-07-24T10:27:39.950863 #19537] ERROR -- : app error: undefined method `[]' for nil:NilClass (NoMethodError)
E, [2023-07-24T10:27:39.950986 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-1.6.13/lib/rack/utils.rb:512:in `[]'
E, [2023-07-24T10:27:39.951037 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-cache-1.14.0/lib/rack/cache/response.rb:45:in `initialize'
E, [2023-07-24T10:27:39.951080 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-cache-1.14.0/lib/rack/cache/context.rb:141:in `new'
E, [2023-07-24T10:27:39.951113 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-cache-1.14.0/lib/rack/cache/context.rb:141:in `forward'
E, [2023-07-24T10:27:39.951146 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-cache-1.14.0/lib/rack/cache/context.rb:148:in `pass'
E, [2023-07-24T10:27:39.951177 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-cache-1.14.0/lib/rack/cache/context.rb:179:in `rescue in lookup'
E, [2023-07-24T10:27:39.951206 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-cache-1.14.0/lib/rack/cache/context.rb:175:in `lookup'
E, [2023-07-24T10:27:39.951237 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-cache-1.14.0/lib/rack/cache/context.rb:67:in `call!'
E, [2023-07-24T10:27:39.951312 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-cache-1.14.0/lib/rack/cache/context.rb:52:in `call'
E, [2023-07-24T10:27:39.951346 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
E, [2023-07-24T10:27:39.951377 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-attack-6.6.1/lib/rack/attack.rb:110:in `call'
E, [2023-07-24T10:27:39.951407 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
E, [2023-07-24T10:27:39.951438 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/bundler/gems/ontologies_linked_data-13bb138aa40c/lib/ontologies_linked_data/security/access_denied_middleware.rb:10:in `call'
E, [2023-07-24T10:27:39.951469 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
E, [2023-07-24T10:27:39.951497 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/bundler/gems/ontologies_linked_data-13bb138aa40c/lib/ontologies_linked_data/security/authorization.rb:45:in `call'
E, [2023-07-24T10:27:39.951530 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
E, [2023-07-24T10:27:39.951617 #19537] ERROR -- : /srv/ontoportal/ontologies_api/releases/20230724163041/lib/rack/param_translator.rb:47:in `call'
E, [2023-07-24T10:27:39.951661 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
E, [2023-07-24T10:27:39.951692 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/bundler/gems/rack-post-body-to-params-0fd30e710386/lib/rack/post-body-to-params.rb:144:in `call'
E, [2023-07-24T10:27:39.951725 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
E, [2023-07-24T10:27:39.951806 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-accept-0.4.5/lib/rack/accept/context.rb:22:in `call'
E, [2023-07-24T10:27:39.951848 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
E, [2023-07-24T10:27:39.951886 #19537] ERROR -- : /srv/ontoportal/ontologies_api/releases/20230724163041/lib/rack/slice_detection.rb:35:in `call'
E, [2023-07-24T10:27:39.951915 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
E, [2023-07-24T10:27:39.951990 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-cors-1.0.6/lib/rack/cors.rb:98:in `call'
E, [2023-07-24T10:27:39.952028 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
E, [2023-07-24T10:27:39.952096 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-cors-1.0.6/lib/rack/cors.rb:98:in `call'
E, [2023-07-24T10:27:39.952132 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
E, [2023-07-24T10:27:39.952164 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-1.6.13/lib/rack/static.rb:124:in `call'
E, [2023-07-24T10:27:39.952194 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
E, [2023-07-24T10:27:39.952226 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-1.6.13/lib/rack/commonlogger.rb:33:in `call'
E, [2023-07-24T10:27:39.952282 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:219:in `call'
E, [2023-07-24T10:27:39.952319 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
E, [2023-07-24T10:27:39.952349 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-protection-1.5.5/lib/rack/protection/xss_header.rb:18:in `call'
E, [2023-07-24T10:27:39.952381 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
E, [2023-07-24T10:27:39.952410 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-protection-1.5.5/lib/rack/protection/json_csrf.rb:18:in `call'
E, [2023-07-24T10:27:39.952439 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
E, [2023-07-24T10:27:39.952470 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-protection-1.5.5/lib/rack/protection/base.rb:49:in `call'
E, [2023-07-24T10:27:39.952500 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
E, [2023-07-24T10:27:39.952531 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-protection-1.5.5/lib/rack/protection/base.rb:49:in `call'
E, [2023-07-24T10:27:39.952601 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
E, [2023-07-24T10:27:39.952632 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-protection-1.5.5/lib/rack/protection/frame_options.rb:31:in `call'
E, [2023-07-24T10:27:39.952664 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
E, [2023-07-24T10:27:39.952728 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-1.6.13/lib/rack/logger.rb:15:in `call'
E, [2023-07-24T10:27:39.952769 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
E, [2023-07-24T10:27:39.952801 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-1.6.13/lib/rack/commonlogger.rb:33:in `call'
E, [2023-07-24T10:27:39.952833 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:219:in `call'
E, [2023-07-24T10:27:39.952867 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:212:in `call'
E, [2023-07-24T10:27:39.952899 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
E, [2023-07-24T10:27:39.952941 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-1.6.13/lib/rack/head.rb:13:in `call'
E, [2023-07-24T10:27:39.952978 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
E, [2023-07-24T10:27:39.953011 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/rack-1.6.13/lib/rack/methodoverride.rb:22:in `call'
E, [2023-07-24T10:27:39.953041 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
E, [2023-07-24T10:27:39.953073 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:182:in `call'
E, [2023-07-24T10:27:39.953137 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
E, [2023-07-24T10:27:39.953180 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:2013:in `call'
E, [2023-07-24T10:27:39.953212 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1487:in `block in call'
E, [2023-07-24T10:27:39.953315 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1787:in `synchronize'
E, [2023-07-24T10:27:39.953353 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1487:in `call'
E, [2023-07-24T10:27:39.953384 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/newrelic_rpm-9.3.1/lib/new_relic/agent/instrumentation/middleware_tracing.rb:99:in `call'
E, [2023-07-24T10:27:39.953415 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/unicorn-6.1.0/lib/unicorn/http_server.rb:634:in `process_client'
E, [2023-07-24T10:27:39.953453 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/unicorn-6.1.0/lib/unicorn/http_server.rb:739:in `worker_loop'
E, [2023-07-24T10:27:39.953486 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/unicorn-6.1.0/lib/unicorn/http_server.rb:547:in `spawn_missing_workers'
E, [2023-07-24T10:27:39.953515 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/unicorn-6.1.0/lib/unicorn/http_server.rb:143:in `start'
E, [2023-07-24T10:27:39.953543 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/gems/unicorn-6.1.0/bin/unicorn:128:in `<top (required)>'
E, [2023-07-24T10:27:39.953573 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/bin/unicorn:23:in `load'
E, [2023-07-24T10:27:39.953602 #19537] ERROR -- : /srv/ontoportal/ontologies_api/shared/bundle/ruby/2.7.0/bin/unicorn:23:in `<top (required)>'
E, [2023-07-24T10:27:39.953631 #19537] ERROR -- : /usr/local/rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.4.0/lib/bundler/cli/exec.rb:58:in `load'
E, [2023-07-24T10:27:39.953661 #19537] ERROR -- : /usr/local/rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.4.0/lib/bundler/cli/exec.rb:58:in `kernel_load'
E, [2023-07-24T10:27:39.953690 #19537] ERROR -- : /usr/local/rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.4.0/lib/bundler/cli/exec.rb:23:in `run'
E, [2023-07-24T10:27:39.953721 #19537] ERROR -- : /usr/local/rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.4.0/lib/bundler/cli.rb:491:in `exec'
E, [2023-07-24T10:27:39.953761 #19537] ERROR -- : /usr/local/rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.4.0/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
E, [2023-07-24T10:27:39.953794 #19537] ERROR -- : /usr/local/rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.4.0/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
E, [2023-07-24T10:27:39.953823 #19537] ERROR -- : /usr/local/rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.4.0/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
E, [2023-07-24T10:27:39.953851 #19537] ERROR -- : /usr/local/rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.4.0/lib/bundler/cli.rb:34:in `dispatch'
E, [2023-07-24T10:27:39.953881 #19537] ERROR -- : /usr/local/rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.4.0/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
E, [2023-07-24T10:27:39.953910 #19537] ERROR -- : /usr/local/rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.4.0/lib/bundler/cli.rb:28:in `start'
E, [2023-07-24T10:27:39.954007 #19537] ERROR -- : /usr/local/rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.4.0/exe/bundle:45:in `block in <top (required)>'
E, [2023-07-24T10:27:39.954042 #19537] ERROR -- : /usr/local/rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.4.0/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
E, [2023-07-24T10:27:39.954072 #19537] ERROR -- : /usr/local/rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.4.0/exe/bundle:33:in `<top (required)>'
E, [2023-07-24T10:27:39.954100 #19537] ERROR -- : /usr/local/rbenv/versions/2.7.8/bin/bundle:23:in `load'
E, [2023-07-24T10:27:39.954130 #19537] ERROR -- : /usr/local/rbenv/versions/2.7.8/bin/bundle:23:in `<main>'

@alexskr alexskr changed the title rack-cache gem update from 1.13.0 -> 1.14.0 breaks API rack-cache gem update from 1.13.0 -> 1.14.0 results in error 'cache error: undefined method `match' for nil:NilClass' Jul 24, 2023
syphax-bouazzouni added a commit to ontoportal/ontologies_api that referenced this issue Jan 16, 2024
…onward (#4)

* fix get a submission metrics

* Auto stash before merge of "upstream" and "upstream/master"

* add the slice get endpoint

* add the slices create endpoint

* add the slices delete endpoint

* add the slices update endpoint

* Add caching for analytics for 24 hours.

* Fix for #97. Check for ontology existence before brining attributes

* Handle edge case for submission downloads which do not have UploadFilePath set

Fixes #98

* Gemfile.lock update

* Add GH workflow for capistrano deployments

* Update Gemfile.lock

* fix ability to run deployment manually

* Fix for deprecation notice of Rack::Attack.throttled_response

Update configuration to closely match rack attack documentation in order
to address deprecation notice:
[DEPRECATION] Rack::Attack.throttled_response is deprecated. Please use Rack::Attack.throttled_responder instead

* Update version of actions/checkout to address deprecation notices

* Fix: Documentation rendering  (#107)

* Auto stash before merge of "upstream" and "upstream/master"

* fix haml gem version

* Update Gemfile

* Restore branch specifier to master

* Update capistrano sample config to include setting which branch to deploy from

* Gemfile.lock update

* Gemfile.lock update

* Gemfile.lock update

* Gemfile.lock update

* Make sure ontology is present when accessing submissions.

Fixes an internal server error when accessing submission for non-existent/deleted ontology

* Remove owlapi_wrapper.jar file.  It is included elsewhere

* Add health checks for docker services and add more config file options

* Remove wait-for-it

* Add health check to AG service

* Add GH workflow for publishing docker images

* Add missing redis port number

* Restore branch specifier to develop

* Set mgrep port to 55556

* add arm64 platform

* bump up version of solr-ut

* Fix ncbo#116

- pinned redis-store to 1.9.1 until #358 gets resolved
- fixed deprecation notices "warning: calling URI.open via Kernel#open
  is deprecated, call URI.open directly or use URI#open"

* Restore branch specifier to master

* fix for wrongly replaced string

* Delete fix_purls.rb

fix_purls.rb moved to a rake task under ncbo_cron project

* Remove google analytics depenencies since those needed only in ncbo_cron

* bump up major version of oj and faraday

* remove search_index.rb script

* lock gem rack-cache to 1.13.0

see ncbo#118

* remove depenency on redis-activesupport

rack-attack can work with redis directly so there is no need to use
redis-activesupport which is no longer being actively developed

* unpin redis-store

solves:
ncbo#105
ncbo#106

* use redis-store from forked repo containing redis 5 compat fixes

this should be reverted back to original after redis 5
copatibilty issues are resolved

* use patched version of agraph v7.3.1

* unpin faraday gem

* Gemfile.lock update

* fixed an issue with the GA4 Analytics migration

* fixed an issue with the GA4 Analytics migration

* reduce request limit for resource intensive api calls (#121)

* Announce deployments in NewRelic  (#124)

* Record deployments to NewRelic

https://docs.newrelic.com/docs/apm/agents/ruby-agent/features/record-deployments-ruby-agent/

* add newrelic to deployment group

github actions deployment doesn't install default group so
capistrano fails to find newrelic recepies unless we add it
to the deployment group

* add rubocop

* Gemfile update, goo version including goo#138 and goo#139

* Gemfile.lock update

* Gemfile.lock update

* Gemfile.lock update

* update slice write operation to check if user is admin

* Gemfile.lock update

* fixed an accidental commit of docker compose file

* fixed Gemfile after merging from master

* Gemfile.lock update

* update Gemfile.lock

* Gemfile.lock update

* redis-store gem with redis 5 compatibility fix

* Gemfile.lock update

* make the check_access helper use filter_access if the object is a list

* add test for submissions access check with two ontologies private and pubic

* check access of ontologies in /ontologies/:acronym/submissions endpoint

* Set gem branch specifier to develop

* reset branch specifier to master

* add the slice get endpoint

* add the slices create endpoint

* add the slices delete endpoint

* add the slices update endpoint

* update slice write operation to check if user is admin

* add slices creation & deletion unit tests

* Gemfile.lock update

* Gemfile.lock update

* Merged #87 from master

* fixed Gemfile after merge

* Gemfile.lock update

* update Gemfile.lock

* Add configurable option for github org where code is deployed from

* Gemfile update

* Gemfile update

* check existance of acroym before fetching details

fixes #129

* extract slice tests helper to the parent class for reusability

* add a test for the creation of an admin user

* enforce the security of admin user creation

* enforce user deletion security to be admin only

* Gemfile.lock update

* update Gemfile.lock

* Gemfile update

* implemented the first pass at bmir-radx/radx-project#37

* set bundler version to be comptatible with ruby 2.7

* Gemfile.lock update

* implemented #127 - Add API call to trigger ontology pull from remote location

* Gemfile.lock

* implemented a test for #127 - Add API call to trigger ontology pull from remote location

* Gemfile.lock update

* implemented a test for #127 - Add API call to trigger ontology pull from remote location

* implemented a test for #127 - Add API call to trigger ontology pull from remote location

* Gemfile.lock update

* use agraph v8.0.0

* Gemfile.lock update

* Gemfile.lock update

---------

Co-authored-by: Alex Skrenchuk <[email protected]>
Co-authored-by: mdorf <[email protected]>
Co-authored-by: Jennifer Vendetti <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants