ASKBOT / askbot-devel

Askbot is a Django/Python Q&A forum. **Contributors README**: https://github.com/ASKBOT/askbot-devel#how-to-contribute. Commercial hosting of Askbot and support are available at https://askbot.com
Other
1.56k stars 628 forks source link

ERRORS v0.10.2: http://example.com/settings/##SOME_SETTING## :: Duplicate key issues AND refresh toggle issues ... #737

Closed nmvega closed 7 years ago

nmvega commented 7 years ago

Hello Friends:

I continue to work on AskBot v0.10.2 (a fresh install).

As I attempt to implement changes or updates to various fields in the settings panel, they don't stick and/or generate database errors that look like the following:

duplicate key value violates unique constraint "livesettings_setting_site_id_73efd7fe480a656f_uniq" DETAIL: Key (site_id, "group", key)=(1, SIDEBAR_QUESTION, QUESTION_PAGE_ALWAYS_SHOW_ANSWER_BANNER) already exists.

I also notice that when I refresh the web page, the results toggle (one moment the change is there; the next moment/refresh it is missing).

The environment is: vps + postgres + uWSGI + nginx + askbot v0.10.2. No redis or memcache.

I will also point out that numerous HTML insertion boxes and check-boxes have duplicates (appear twice in a row in the settings panel).

Unfortunately, I can't make progress or feel confident with this unstable situation. Why is this happening? Any solution to this?

Thank you in advance!

nmvega commented 7 years ago

SOLVED: The solution here fixed this issue, too.