Deployed Open Source Canvas LMS with Analytics plugin.
Trying to generate 1 year report
it fails with error There was a problem creating a new export job. Please try again later
[CANVAS_ERRORS] EXCEPTION LOG
PageViews::Common::ConfigurationError (Missing credentials for environment: production):
/home/canvas/public_html/app/services/page_views/configuration.rb:27:in 'PageViews::Configuration#initialize'
/home/canvas/public_html/app/controllers/page_views_controller.rb:589:in 'Class#new'
/home/canvas/public_html/app/controllers/page_views_controller.rb:589:in 'PageViewsController#pv5_enqueue_service'
/home/canvas/public_html/app/controllers/page_views_controller.rb:427:in 'PageViewsController#query'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/action_controller/metal/basic_implicit_render.rb:8:in 'ActionController::BasicImplicitRender#send_action'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/abstract_controller/base.rb:215:in 'AbstractController::Base#process_action'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/action_controller/metal/rendering.rb:193:in 'ActionController::Rendering#process_action'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/abstract_controller/callbacks.rb:261:in 'block in AbstractController::Callbacks#process_action'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.4/lib/active_support/callbacks.rb:120:in 'block in ActiveSupport::Callbacks#run_callbacks'
/home/canvas/public_html/app/controllers/application_controller.rb:3453:in 'ApplicationController#manage_live_events_context'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.4/lib/active_support/callbacks.rb:129:in 'block in ActiveSupport::Callbacks#run_callbacks'
/home/canvas/public_html/app/controllers/application_controller.rb:1037:in 'ApplicationController#compute_http_cost'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.4/lib/active_support/callbacks.rb:129:in 'block in ActiveSupport::Callbacks#run_callbacks'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/inst_statsd-3.4.0/lib/inst_statsd/statsd.rb:111:in 'InstStatsd::Statsd.batch'
/home/canvas/public_html/app/controllers/application_controller.rb:1032:in 'ApplicationController#batch_statsd'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.4/lib/active_support/callbacks.rb:129:in 'block in ActiveSupport::Callbacks#run_callbacks'
/home/canvas/public_html/lib/base/temp_cache.rb:30:in 'TempCache.enable'
/home/canvas/public_html/app/controllers/application_controller.rb:1028:in 'ApplicationController#enable_request_cache'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.4/lib/active_support/callbacks.rb:129:in 'block in ActiveSupport::Callbacks#run_callbacks'
/home/canvas/public_html/app/controllers/application_controller.rb:1024:in 'ApplicationController#set_timezone'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.4/lib/active_support/callbacks.rb:129:in 'block in ActiveSupport::Callbacks#run_callbacks'
/home/canvas/public_html/app/controllers/application_controller.rb:1014:in 'ApplicationController#set_locale'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.4/lib/active_support/callbacks.rb:129:in 'block in ActiveSupport::Callbacks#run_callbacks'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/sentry-rails-5.28.1/lib/sentry/rails/controller_transaction.rb:34:in 'block in Sentry::Rails::ControllerTransaction#sentry_around_action'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/sentry-ruby-5.28.1/lib/sentry/hub.rb:139:in 'Sentry::Hub#with_child_span'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/sentry-ruby-5.28.1/lib/sentry-ruby.rb:538:in 'Sentry.with_child_span'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/sentry-rails-5.28.1/lib/sentry/rails/controller_transaction.rb:18:in 'Sentry::Rails::ControllerTransaction#sentry_around_action'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.4/lib/active_support/callbacks.rb:129:in 'block in ActiveSupport::Callbacks#run_callbacks'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.4/lib/active_support/callbacks.rb:140:in 'ActiveSupport::Callbacks#run_callbacks'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/abstract_controller/callbacks.rb:260:in 'AbstractController::Callbacks#process_action'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/action_controller/metal/rescue.rb:27:in 'ActionController::Rescue#process_action'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/action_controller/metal/instrumentation.rb:76:in 'block in ActionController::Instrumentation#process_action'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.4/lib/active_support/notifications.rb:210:in 'block in ActiveSupport::Notifications.instrument'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.4/lib/active_support/notifications/instrumenter.rb:58:in 'ActiveSupport::Notifications::Instrumenter#instrument'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.4/lib/active_support/notifications.rb:210:in 'ActiveSupport::Notifications.instrument'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/action_controller/metal/instrumentation.rb:75:in 'ActionController::Instrumentation#process_action'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/action_controller/metal/params_wrapper.rb:259:in 'ActionController::ParamsWrapper#process_action'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.4/lib/active_record/railties/controller_runtime.rb:39:in 'ActiveRecord::Railties::ControllerRuntime#process_action'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/abstract_controller/base.rb:152:in 'AbstractController::Base#process'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionview-8.0.4/lib/action_view/rendering.rb:40:in 'ActionView::Rendering#process'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/action_controller/metal.rb:252:in 'ActionController::Metal#dispatch'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/action_controller/metal.rb:335:in 'ActionController::Metal.dispatch'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/action_dispatch/routing/route_set.rb:67:in 'ActionDispatch::Routing::RouteSet::Dispatcher#dispatch'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/action_dispatch/routing/route_set.rb:50:in 'ActionDispatch::Routing::RouteSet::Dispatcher#serve'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/action_dispatch/journey/router.rb:53:in 'block in ActionDispatch::Journey::Router#serve'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/action_dispatch/journey/router.rb:133:in 'block in ActionDispatch::Journey::Router#find_routes'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/action_dispatch/journey/router.rb:126:in 'Array#each'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/action_dispatch/journey/router.rb:126:in 'ActionDispatch::Journey::Router#find_routes'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/action_dispatch/journey/router.rb:34:in 'ActionDispatch::Journey::Router#serve'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/action_dispatch/routing/route_set.rb:908:in 'ActionDispatch::Routing::RouteSet#call'
/home/canvas/public_html/gems/plugins/respondus_soap_endpoint/lib/respondus_soap_endpoint/middleware.rb:81:in 'RespondusSoapEndpoint::Middleware#call'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/rack-3.2.4/lib/rack/tempfile_reaper.rb:20:in 'Rack::TempfileReaper#call'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/rack-3.2.4/lib/rack/etag.rb:29:in 'Rack::ETag#call'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/rack3-brotli-1.0.1/lib/rack/brotli/deflater.rb:30:in 'Rack::Brotli::Deflater#call'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/rack-3.2.4/lib/rack/deflater.rb:47:in 'Rack::Deflater#call'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/rack-3.2.4/lib/rack/conditional_get.rb:44:in 'Rack::ConditionalGet#call'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/rack-3.2.4/lib/rack/head.rb:15:in 'Rack::Head#call'
/home/canvas/public_html/app/middleware/request_throttle.rb:73:in 'block in RequestThrottle#call'
/home/canvas/public_html/app/middleware/request_throttle.rb:425:in 'RequestThrottle::LeakyBucket#reserve_capacity'
/home/canvas/public_html/app/middleware/request_throttle.rb:71:in 'RequestThrottle#call'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/action_dispatch/http/permissions_policy.rb:38:in 'ActionDispatch::PermissionsPolicy::Middleware#call'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/action_dispatch/http/content_security_policy.rb:38:in 'ActionDispatch::ContentSecurityPolicy::Middleware#call'
/home/canvas/public_html/gems/request_context/lib/request_context/session.rb:28:in 'RequestContext::Session#call'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/rack-session-2.1.1/lib/rack/session/abstract/id.rb:274:in 'Rack::Session::Abstract::Persisted#context'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/rack-session-2.1.1/lib/rack/session/abstract/id.rb:268:in 'Rack::Session::Abstract::Persisted#call'
/home/canvas/public_html/app/middleware/load_account.rb:50:in 'LoadAccount#call'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/action_dispatch/middleware/cookies.rb:706:in 'ActionDispatch::Cookies#call'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/action_dispatch/middleware/callbacks.rb:31:in 'block in ActionDispatch::Callbacks#call'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.4/lib/active_support/callbacks.rb:100:in 'ActiveSupport::Callbacks#run_callbacks'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/action_dispatch/middleware/callbacks.rb:30:in 'ActionDispatch::Callbacks#call'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/sentry-rails-5.28.1/lib/sentry/rails/rescued_exception_interceptor.rb:14:in 'Sentry::Rails::RescuedExceptionInterceptor#call'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/action_dispatch/middleware/debug_exceptions.rb:31:in 'ActionDispatch::DebugExceptions#call'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/sentry-ruby-5.28.1/lib/sentry/rack/capture_exceptions.rb:30:in 'block (2 levels) in Sentry::Rack::CaptureExceptions#call'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/sentry-ruby-5.28.1/lib/sentry/hub.rb:310:in 'Sentry::Hub#with_session_tracking'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/sentry-ruby-5.28.1/lib/sentry-ruby.rb:431:in 'Sentry.with_session_tracking'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/sentry-ruby-5.28.1/lib/sentry/rack/capture_exceptions.rb:21:in 'block in Sentry::Rack::CaptureExceptions#call'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/sentry-ruby-5.28.1/lib/sentry/hub.rb:89:in 'Sentry::Hub#with_scope'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/sentry-ruby-5.28.1/lib/sentry-ruby.rb:411:in 'Sentry.with_scope'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/sentry-ruby-5.28.1/lib/sentry/rack/capture_exceptions.rb:20:in 'Sentry::Rack::CaptureExceptions#call'
/home/canvas/public_html/app/middleware/sentry_trace_scrubber.rb:40:in 'SentryTraceScrubber#call'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/action_dispatch/middleware/show_exceptions.rb:32:in 'ActionDispatch::ShowExceptions#call'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/railties-8.0.4/lib/rails/rack/logger.rb:41:in 'Rails::Rack::Logger#call_app'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/railties-8.0.4/lib/rails/rack/logger.rb:29:in 'Rails::Rack::Logger#call'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/action_dispatch/middleware/remote_ip.rb:96:in 'ActionDispatch::RemoteIp#call'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/request_store-1.7.0/lib/request_store/middleware.rb:19:in 'RequestStore::Middleware#call'
/home/canvas/public_html/gems/request_context/lib/request_context/generator.rb:73:in 'RequestContext::Generator#call'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/rack-3.2.4/lib/rack/method_override.rb:28:in 'Rack::MethodOverride#call'
/home/canvas/public_html/app/middleware/prevent_non_multipart_parse.rb:35:in 'PreventNonMultipartParse#call'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/rack-3.2.4/lib/rack/runtime.rb:24:in 'Rack::Runtime#call'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/action_dispatch/middleware/executor.rb:16:in 'ActionDispatch::Executor#call'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/rack-3.2.4/lib/rack/sendfile.rb:131:in 'Rack::Sendfile#call'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.4/lib/action_dispatch/middleware/ssl.rb:92:in 'ActionDispatch::SSL#call'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/railties-8.0.4/lib/rails/engine.rb:535:in 'Rails::Engine#call'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/railties-8.0.4/lib/rails/railtie.rb:226:in 'Kernel#public_send'
/home/canvas/public_html/vendor/bundle/ruby/3.4.0/gems/railties-8.0.4/lib/rails/railtie.rb:226:in 'Rails::Railtie.method_missing'
/usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:107:in 'PhusionPassenger::Rack::ThreadHandlerExtension#process_request'
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:161:in 'PhusionPassenger::RequestHandler::ThreadHandler#accept_and_process_next_request'
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:114:in 'PhusionPassenger::RequestHandler::ThreadHandler#main_loop'
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:419:in 'block (3 levels) in PhusionPassenger::RequestHandler#start_threads'
/usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:111:in 'block in PhusionPassenger::Utils#create_thread_and_abort_on_exception'CONTEXT: {tags: {"inst.team" => "unknown", account_id: 10000000000001, user_id: 10000000003350, type: nil, response_code: 500}, extra: {request_id: "43360899-894a-4a61-b6db-c4c11e15acc3", session_id: "ef76f82cc93290436f7c42d9aaf2166d", meta_headers: "o=page_views;n=query;", request_context_id: "43360899-894a-4a61-b6db-c4c11e15acc3", request_method: :post, format: #<Mime::Type:0x00007fbcc27abaa8 @symbol=:json, @synonyms=["text/x-json", "application/jsonrequest", "application/problem+json"], @string="application/json", @hash=-503920573497094858>, "HTTP_ACCEPT" => "application/json+canvas-string-ids, application/json", "HTTP_ACCEPT_ENCODING" => "gzip, br", "HTTP_HOST" => "lms.cool.university", "HTTP_REFERER" => "https://lms.cool.university/accounts/1/users/2120", "HTTP_USER_AGENT" => "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36 OPR/129.0.0.0", "PATH_INFO" => "/api/v1/users/2120/page_views/query", "QUERY_STRING" => "?", "REQUEST_METHOD" => "POST", "REQUEST_URI" => "https://lms.cool.university/api/v1/users/2120/page_views/query", "SERVER_NAME" => "lms.cool.university", "SERVER_PORT" => "443", "SERVER_PROTOCOL" => "HTTP/1.1", "HTTP_X_FORWARDED_PROTO" => "https", "HTTP_X_FORWARDED_FOR" => "2001:67c:198c:906:4:701:0:28b", "REMOTE_ADDR" => "2001:67c:198c:906:4:701:0:28b", "path_parameters" => "{format: \"json\", controller: \"page_views\", action: \"query\", user_id: \"2120\"}", "query_parameters" => "{}", "request_parameters" => "{\"user\" => \"2120\", \"start_date\" => \"2026-04-01\", \"end_date\" => \"2026-05-01\", \"results_format\" => \"csv\"}", user_agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36 OPR/129.0.0.0"}}
Describe the bug
Deployed Open Source Canvas LMS with Analytics plugin.
Trying to generate 1 year report
it fails with error There was a problem creating a new export job. Please try again later
Screenshots or screen recordings
No response
Steps to reproduce
What browsers are you seeing the problem on (if applicable)?
No response
Backtrace
Relevant log output