Bug 915253
| Summary: | [fork][US3419]Sometimes show LoadError in AccountController#show exception when access my account page | ||||||
|---|---|---|---|---|---|---|---|
| Product: | OKD | Reporter: | Rony Gong 🔥 <qgong> | ||||
| Component: | Website | Assignee: | Clayton Coleman <ccoleman> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 2.x | CC: | dmcphers | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2013-03-15 14:12:40 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
The exception info when access account page: LoadError in AccountController#show Expected /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-console-1.5.5/app/models/user_associations.rb to define UserAssociations Rails.root: /var/www/openshift/site Application Trace | Framework Trace | Full Trace activesupport (3.2.8) lib/active_support/dependencies.rb:503:in `load_missing_constant' activesupport (3.2.8) lib/active_support/dependencies.rb:192:in `block in const_missing' activesupport (3.2.8) lib/active_support/dependencies.rb:190:in `each' activesupport (3.2.8) lib/active_support/dependencies.rb:190:in `const_missing' activesupport (3.2.8) lib/active_support/inflector/methods.rb:230:in `block in constantize' activesupport (3.2.8) lib/active_support/inflector/methods.rb:229:in `each' activesupport (3.2.8) lib/active_support/inflector/methods.rb:229:in `constantize' openshift-origin-console (1.5.5) config/initializers/inflections.rb:15:in `safe_constantize' openshift-origin-console (1.5.5) config/initializers/inflections.rb:36:in `safe_constantize' openshift-origin-console (1.5.5) lib/active_resource/reflection.rb:26:in `create_reflection' openshift-origin-console (1.5.5) lib/active_resource/associations/builder/association.rb:26:in `build' openshift-origin-console (1.5.5) lib/active_resource/associations/builder/association.rb:17:in `build' openshift-origin-console (1.5.5) lib/active_resource/associations.rb:104:in `belongs_to' openshift-origin-console (1.5.5) app/models/key.rb:25:in `<class:Key>' openshift-origin-console (1.5.5) app/models/key.rb:4:in `<top (required)>' activesupport (3.2.8) lib/active_support/dependencies.rb:469:in `load' activesupport (3.2.8) lib/active_support/dependencies.rb:469:in `block in load_file' activesupport (3.2.8) lib/active_support/dependencies.rb:639:in `new_constants_in' activesupport (3.2.8) lib/active_support/dependencies.rb:468:in `load_file' activesupport (3.2.8) lib/active_support/dependencies.rb:353:in `require_or_load' activesupport (3.2.8) lib/active_support/dependencies.rb:502:in `load_missing_constant' activesupport (3.2.8) lib/active_support/dependencies.rb:192:in `block in const_missing' activesupport (3.2.8) lib/active_support/dependencies.rb:190:in `each' activesupport (3.2.8) lib/active_support/dependencies.rb:190:in `const_missing' activesupport (3.2.8) lib/active_support/dependencies.rb:514:in `load_missing_constant' activesupport (3.2.8) lib/active_support/dependencies.rb:192:in `block in const_missing' activesupport (3.2.8) lib/active_support/dependencies.rb:190:in `each' activesupport (3.2.8) lib/active_support/dependencies.rb:190:in `const_missing' activesupport (3.2.8) lib/active_support/dependencies.rb:514:in `load_missing_constant' activesupport (3.2.8) lib/active_support/dependencies.rb:192:in `block in const_missing' activesupport (3.2.8) lib/active_support/dependencies.rb:190:in `each' activesupport (3.2.8) lib/active_support/dependencies.rb:190:in `const_missing' app/controllers/account/extended_dashboard.rb:14:in `block in show' openshift-origin-console (1.5.5) app/controllers/async_aware.rb:11:in `block in async' Request Parameters: None Show session dump _csrf_token: "2+huJ77OZNPZWsPtOxCQRymXXEDRJ+sbm4jtzCZc6u0=" api_ticket: "383ae38ce0e47e8704992cdcac2987fd5efed14f75ecb42b9c1f60792aea6214" caps: nil captcha_status: nil captcha_type: nil domain: "domx1" login: "xtian+test1" session_id: "19290deb1211457ba07be6306c43d0bd" streamline_type: :simple terms: true ticket: "0|UkeK0LD6kvlcWVdPpjdwecRa0TpggTIsXa0" Show env dump HTTP_ACCEPT: "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" HTTP_ACCEPT_CHARSET: "ISO-8859-1,utf-8;q=0.7,*;q=0.3" HTTP_ACCEPT_ENCODING: "gzip,deflate,sdch" HTTP_ACCEPT_LANGUAGE: "en-US,en;q=0.8" REMOTE_ADDR: "127.0.0.1" SERVER_NAME: "ec2-50-16-178-82.compute-1.amazonaws.com" SERVER_PROTOCOL: "HTTP/1.1" Response Headers: Fixed in 421f8bc, will be in next fork ami or master. Commit pushed to master at https://github.com/openshift/li https://github.com/openshift/li/commit/421f8bcb101b6eff60214232371ec2251adcc983 Bug 915253 - Eagerly load referenced model classes in development mode Verified on devenv_2860 Here the exception can't happened anymore. Steps: 1.User sign in openshift 2.Remove all authorizations of this user by click the button "revoke all" 3.Re-click the my account page |
Created attachment 702270 [details] site/development.log Description of problem: Sometimes show exception like " LoadError in AccountController#show " when accessing my account page, it will be rendered well if you refresh again. Version-Release number of selected component (if applicable): fork_session_auth_support_491 How reproducible: Randomly Steps to Reproduce: 1.User sign in openshift 2.Remove all authorizations of this user by click the button "revoke all" 3.Re-click the my account page Actual results: Show exception: LoadError in AccountController#show Expected /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-console-1.5.5/app/models/user_associations.rb to define UserAssociations Rails.root: /var/www/openshift/site Application Trace | Framework Trace | Full Trace app/controllers/account/extended_dashboard.rb:14:in `block in show' Request Parameters: None Show session dump Show env dump Response Headers: None Expected results: Should not how exception. Additional info: