Forums

redislite

hi i used redislite with flask but i get this error

Error running WSGI application redislite.client.RedisLiteServerStartError: The redis-server process failed to start File "/var/www/siamak0449_pythonanywhere_com_wsgi.py", line 16, in <module> from flask_app import app as application File "/home/siamak0449/mysite/flask_app.py", line 14, in <module> redis_connection = Redis('/home/siamak0449/mysite/redis.db') File "/home/siamak0449/.local/lib/python3.5/site-packages/redislite/client.py", line 386, in init self._start_redis() File "/home/siamak0449/.local/lib/python3.5/site-packages/redislite/client.py", line 194, in _start_redis 'The redis-server process failed to start'

how i can fix this?

You're leaving your redislite processes lying around when you're done with them, so the extra processes are preventing you from starting new ones. Make sure that when you are done with the redislite process, that you close it down properly.