pythonindia / junction

Junction is a software to manage proposals, reviews, schedule, feedback during conference.
MIT License
192 stars 185 forks source link

Error while adding a comment #762

Closed bhansa closed 1 year ago

bhansa commented 1 year ago

Example URL: https://in.pycon.org/cfp/test-conference/proposals/comment/test-test-test-test-test-test-test-test-test-test-test/create/

Error screen: image

ananyo2012 commented 1 year ago

Thanks for reporting this. This is what I did to fix the issue:

  1. Set master role to redis DB

    docker-compose exec redis /bin/sh
    # redis-cli
    127.0.0.1:6379>slaveof no one

    Ref: https://stackoverflow.com/questions/42810115/redis-sentinel-not-connect-to-master-error-readonly-you-cant-write-against-a

  2. Rebuild container and redeploy

ananyo2012 commented 1 year ago

If this issue still persists we need to secure redis with a password and update the redis broker url

ananyo2012 commented 1 year ago

Applied the above fix in this commit - https://github.com/pythonindia/junction/commit/9948041b3f53d7d45e618df8ac0f9c175e822683 . Will monitor for some more time before closing this issue

ananyo2012 commented 1 year ago

Fixed in #757