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

JavaScript error in Tutor 18.0, 18.1, 18.1.1, 18.1.2, 18.1.3 - users unable to access account page. #1111

Closed
pkolyvas opened this issue Aug 15, 2024 · 15 comments
Assignees

Comments

@pkolyvas
Copy link

Bug description

There is an issue with Tutor v18.0+ (18.0, 18.1.0, 18.1.1, 18.1.2 and 18.1.3) where the accounts page (MFE app) fails to load as a result of some issues with JavaScript assets.

Please see this screenshot. This occurs when someone tries to view their account in order to validate or edit their user profile:
Screenshot 2024-08-13 at 8 53 21 AM
Screenshot 2024-08-13 at 9 50 06 AM

The logs provide no indication of error, in part because, as best as we can tell, the root cause is on the client side assets. The browser console (tested on Chrome, Firefox, Safari) provides the same error:

Error: Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    React 16
    80492 index.jsx:27
    o pubsub.js:67
    i pubsub.js:88
    a pubsub.js:99
    setTimeout handler*u pubsub.js:146
    publish pubsub.js:160
    s pubSub.js:46
    e initialize.js:361
    f initialize.js:2
    _ initialize.js:2
    k initialize.js:2
    Vt initialize.js:2
    i initialize.js:2
    promise callback*Vt initialize.js:2
    i initialize.js:2
    promise callback*Vt initialize.js:2
    i initialize.js:2
    promise callback*Vt initialize.js:2
    i initialize.js:2
    promise callback*Vt initialize.js:2
    i initialize.js:2
    promise callback*Vt initialize.js:2
    i initialize.js:2
    promise callback*Vt initialize.js:2
    i initialize.js:2
    promise callback*Vt initialize.js:2
    i initialize.js:2
    promise callback*Vt initialize.js:2
    i initialize.js:2
    promise callback*Vt initialize.js:2
    i initialize.js:2
    Ht initialize.js:2
    Ht initialize.js:2
    on initialize.js:369
    rn initialize.js:288
    80492 index.jsx:58
    Webpack 6
react-dom.production.min.js:216:199

How to reproduce

Reproduction is possible on a vanilla, completely unchanged Tutor install. This is true for both someone installing via PIP as well as customers using the AWS AMI Marketplace image. Please see this thread for even more context: https://discuss.openedx.org/t/problem-displaying-account-content-after-upgraded-to-redwood-with-tutor-v18/13641

I use a script to install tutor, as part of spinning up the EC2 instance via Terraform. The userdata script is here and can be easily converted into a shell script for reproduction: https://gist.github.com/pkolyvas/331ac52029801cd38190600ffecb05f2

Environment

  • AWS Marketplace AMI upgrade
  • Ubuntu 24.04LTS/amd64/Tutor 18.0,18.1,18.1.1,18.1.2 & 18.1.3 confirmed.
@regisb
Copy link
Contributor

regisb commented Aug 16, 2024

  1. What plugins are you running? tutor plugins list
  2. What is your OS and browser version?
  3. What is the output of tutor mounts list?

@pkolyvas
Copy link
Author

pkolyvas commented Aug 16, 2024

  1. None other than stock as per the linked reproduction script. As noted in the issue, this is on a stock Tutor install. As if someone was following the quickstart guide with no customizations.
PLUGINS:
- forum
- indigo
- mfe
  1. MacOS / Unbuntu 22.04 / Windows 11. All browsers at whatever the current release build is. Edge, Chrome, Firefox 129, Safari - same behaviour.

  2. Unfortunately, I don't have a running 18.x install at the moment. I've asked others in the thread linked above to include their information here as well since the issue seems to be consistent across a number of users.

@regisb
Copy link
Contributor

regisb commented Aug 16, 2024

Please paste the output of tutor plugins list. This command is giving some useful information, including the plugin versions.

@Tyler-SEM
Copy link

Tyler-SEM commented Aug 16, 2024

I've got the same issue on a fresh pip tutor install on my desktop.

  1. tutor plugins list
    android installed 18.0.0
    cairn installed 18.0.0
    credentials installed 18.0.0
    discovery installed 18.0.0
    ecommerce installed 18.0.0
    forum installed 18.0.0
    indigo ✅ enabled 18.1.0
    jupyter installed 18.0.0
    mfe ✅ enabled 18.0.0
    minio installed 18.0.0
    notes installed 18.0.0
    webui installed 18.0.0
    xqueue installed 18.0.0

  2. Windows 11, Firefox 129.0.1 / Chome 127.0.6533.100 / Edge 127.0.2651.98

  3. tutor mounts list
    []

Thanks for the help on this!

@regisb
Copy link
Contributor

regisb commented Aug 16, 2024

Am I correct in assuming that you are not facing that issue on https://apps.sandbox.openedx.edly.io/account/ ?
Login: admin / admin or student / student

@Tyler-SEM
Copy link

Correct, that link works fine.

@pkolyvas
Copy link
Author

pkolyvas commented Aug 16, 2024

Alright I rolled another fresh installation of 18.1.3 (using the provided script above). Same issue.

AWS EC2, Canonical's most up-to-date 24.04LTS AMI image on an M7i-flex.large instance, with a public IP (no reverse proxy / load-balancer in front of the instance).

  1. tutor plugins list:
NAME            	STATUS   	VERSION
android         	installed	18.0.0
cairn           	installed	18.0.0
credentials     	installed	18.0.0
discovery       	installed	18.0.0
ecommerce       	installed	18.0.0
forum           	✅ enabled	18.0.0
indigo          	✅ enabled	18.1.0
jupyter         	installed	18.0.0
mfe             	✅ enabled	18.0.0
minio           	installed	18.0.0
notes           	installed	18.0.0
third-party-auth	installed	1.0.0
webui           	installed	18.0.0
xqueue          	installed	18.0.0
  1. MacOS Sonoma 14.6, Firefox 129 (but also Windows 11 24H2, FF 129)

  2. tutor mounts list:
    []

I have a complete set of logs available from the installation all the way to the error here: https://gist.githubusercontent.com/pkolyvas/aa8d0967d62b850abc8595e57645b699/raw/5a056c1e559f13408d94c5dbb91766611c9b1691/tutor.log

Screenshot 2024-08-16 at 10 51 55 AM

Hope this is more helpful. :)

@regisb
Copy link
Contributor

regisb commented Aug 16, 2024

Yes, I finally managed to reproduce the issue. But I haven't figured out why the issue was not happening on my local setup, and why it's not happening on sandbox.openedx.edly.io either. This is almost certainly an issue related to Docker caching during image building. @hinakhadim is still investigating...

@jennyq
Copy link

jennyq commented Aug 16, 2024

  • What plugins are you running? tutor plugins list

  • What is your OS and browser version?

  • What is the output of tutor mounts list?

  1. tutor plugins list
NAME       	STATUS   	VERSION
  android    	installed	18.0.0
  cairn      	installed	18.0.0
  credentials	installed	18.0.0
  discovery  	installed	18.0.0
  ecommerce  	installed	18.0.0
  forum      	✅ enabled	18.0.0
  indigo     	✅ enabled	18.1.0
  jupyter    	installed	18.0.0
  mfe        	✅ enabled	18.0.0
  minio      	installed	18.0.0
  notes      	installed	18.0.0
  webui      	installed	18.0.0
  xqueue     	installed	18.0.0
  1. OS: Ubuntu 24.04 LTS. Browsers: Chrome, Firefox

  2. tutor mounts list
    []

@jennyq
Copy link

jennyq commented Aug 16, 2024

Here is the list of my docker images.
image

@VoThanhDanh95
Copy link

VoThanhDanh95 commented Aug 16, 2024

I solved the problem by just install the tutor by clone the git and used pip install -e . instead of "pip install tutor[full]"

EDIT by @regisb: Nope, this is not going to resolve anything. Don't waste your time.

@pkolyvas
Copy link
Author

Yes, I finally managed to reproduce the issue. But I haven't figured out why the issue was not happening on my local setup, and why it's not happening on sandbox.openedx.edly.io either. This is almost certainly an issue related to Docker caching during image building. @hinakhadim is still investigating...

Thanks for all your help. :)

@acaleechurn
Copy link

Is there a time frame to get this issue fixed?

@hinakhadim
Copy link
Contributor

@acaleechurn PR has been merged to resolve this issue. You can get the fix in tutor-indigo=18.1.1.

@DawoudSheraz
Copy link
Contributor

overhangio/tutor-indigo#96 has resolved this.

@github-project-automation github-project-automation bot moved this from In Progress to Done in Tutor project management Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

8 participants