question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

500 error when trying to edit details or copy the lesson, a.k.a. 'adhoclearnersgroup' woes

See original GitHub issue

Observed behavior

Seems impossible to edit lesson details or copy it elsewhere. All resources are present on the facility, and the lesson is assigned to entire class.

Expected behavior

Ability to edit & copy the lesson.

User-facing consequences

Troubled coach.

Errors and logs

Uncaught (in promise) Error: Request failed with status code 500
    createError createError.js:16
    settle settle.js:17
    handleLoad xhr.js:61

LEDev20 04 (start)  Running  - Oracle VM VirtualBox_894

Logs

debug-last-day.zip kolibri.zip

Steps to reproduce

Same 500 error in both cases:

  • Open an existing lesson in the Plan tab
  • Click to open the Options and select Edit details

OR

  • Select Copy and try to copy the lesson in another class

Context

  • Kolibri version: current 0.14.x release branch
  • Operating system: Ubuntu 18.04
  • Browser: Firefox

cc @rtibbles

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rtibblescommented, Jul 29, 2020

In examining the database that produced this error, what appears to have happened is that the tree_id value of the Facility object in question has been set to 3, while the tree_id value of all its descendant collections is set to 1.

I am not entirely sure what would have caused this, but this database has engaged in syncing, which seems like the likeliest candidate.

0reactions
radinamaticcommented, Jul 30, 2020

what I meant was, I think the data corruption seems likely to have happened in an older beta.

Gotcha, thanks for clarifying! 🤞

I’ll reopen if I manage to step into this mudhole again 😛

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix a 500 Internal Server Error - Lifewire
Learn about the 500 Internal Server Error (aka HTTP 500 error), a generic error suggesting a problem with the website's server.
Read more >
How to Clear Browser Cookies to Resolve “Error 500
If you are receiving an “Error 500 – Internal Server Error” message while trying to log into Canvas, you will need to clear...
Read more >
Error 500 when I try to Edit a product - WordPress.org
When this plugin is active i can't edit woocommerce's product. I have 2.14 version installed. The problem was appeared before the las update ......
Read more >
How to Fix the 500 Internal Server Error in WordPress (10 Tips)
A 500 internal server error on your WordPress website can be caused by many factors, but there are also many ways to fix...
Read more >
How to Fix the 500 Internal Server Error in ... - ThemeIsle
1. Turn on debugging - You can turn debugging on by editing your site’s wp-config.php file: once you’ve accessed this file, search for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found