docs: update Troubleshooting page with discussion-based fixes#514
docs: update Troubleshooting page with discussion-based fixes#514rohanmalhotracodes wants to merge 4 commits intooppia:developfrom
Conversation
- Added note at top of page - Added troubleshooting entries from GitHub Discussions - Updated Table of Contents Fixes oppia#207
Updated instructions for loading data and creating classrooms, including clarifications and reordering of steps.
|
@HardikGoyal2003 for #434 (comment) I have included the other changes in this PR itself. PS: Can we maybe raise a new issue in the main repo of Oppia since I have included the fixes needed in docs here itself. |
|
@jayam04 PTAL, gentle reminder. |
|
@jayam04 gentle ping. |
jayam04
left a comment
There was a problem hiding this comment.
@rohanmalhotracodes Thank you for the updates. I have reviewed your changes.
Troubleshooting.md
Outdated
| 2. Run: `python -m scripts.start --dev` | ||
| 3. If the issue persists, try: `python -m scripts.start --clean` | ||
| 4. If necessary, run `yarn install` and restart the server. | ||
|
|
||
| This is typically a frontend build or caching issue rather than a backend problem. |
Troubleshooting.md
Outdated
| 1. Start the dev server. | ||
| 2. Go to: `http://localhost:8181/admin` | ||
| 3. Assign yourself the **admin role** from the roles tab. | ||
| 4. Restart the server if necessary. | ||
|
|
||
| After assigning the admin role, the `/admin` page should load correctly. |
There was a problem hiding this comment.
Specify, you must use email suggested on login for the first time to access /admin page.
Troubleshooting.md
Outdated
| ### oppia-angular-build container exits during install/run | ||
|
|
||
| If the Oppia installation (e.g., `make build`, Docker startup, or `python -m scripts.start`) fails because the `oppia-angular-build` container exits unexpectedly or the build does not complete: | ||
|
|
||
| **Possible fixes:** |
There was a problem hiding this comment.
This was part of Docker setup, which we have already dropped. So, you can remove this.
|
Gentle ping @jayam04 sir anything else you'd like me to addre |
|
@rohanmalhotracodes Give me a day, I will review it. |
jayam04
left a comment
There was a problem hiding this comment.
@rohanmalhotracodes Sorry for late review, left few comments.
| 6. Navigate back to the Admin page, then go to the Activities tab. Click Load Data under Load dummy new structures data. | ||
| 7. For the question opportunities to be valid, their corresponding topics must be part of a classroom topic. Navigate to the classroom admin page: `http://localhost:8181/classroom-admin`. | ||
| 8. Click **Add New Classroom** (or edit an existing classroom), and add the relevant **topic IDs** to the classroom. Save your changes. | ||
| 9. To enable the “Submit Question” tab for your user, make sure your signed-in user is allowlisted for submitting question suggestions. |
There was a problem hiding this comment.
Can you add this back?
Click Add element under [topic_id] (in the “The details for each classroom page.” section) and enter the topic id for the new topics that were created. (You can find a topic’s ID in its page URL from the Topic and Skills Dashboard). Make sure to click save at the bottom of the config page.
Troubleshooting.md
Outdated
| ### Webpack “Cannot resolve module ‘fs’” frontend error | ||
|
|
||
| If your frontend build fails with an error like: | ||
| `Module not found: Error: Can't resolve 'fs' in ...` | ||
|
|
||
| it means your frontend code is trying to import a **Node-only module (`fs`)** that cannot be bundled for the browser. | ||
|
|
||
| **Cause:** | ||
| Frontend code shouldn’t import modules that only work in Node environments (like `fs`). | ||
|
|
||
| **Solution:** | ||
| 1. Remove the import of `fs` or other Node-only modules from the frontend code. | ||
| 2. If you need file access or Node functionality, move that logic to backend code or expose it via an API. | ||
| 3. Rebuild (`yarn` / `python -m scripts.start --clean`) after fixing the import. |
There was a problem hiding this comment.
I am not sure about this. Can you link to Discussions/Issues that shows this approach helps troubleshoot the problem.
There was a problem hiding this comment.
Removed the section as the points I wrote were too generic and there was no reliable way to determine whether they fix the issue
|
PTAL @jayam04 |
Summary of Changes
Opia→OppiaGithub→GitHubAlthough the typo fixes were not explicitly part of the original scope, they were minor consistency corrections and included here to avoid raising separate issues.
Issues Addressed
Fixes #207
Fixes #434