[GH-ISSUE #150] Error with database, Still no login. #104

Closed
opened 2026-02-27 15:57:20 +03:00 by kerem · 2 comments
Owner

Originally created by @ssbaksa on GitHub (Jun 1, 2018).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/150

After changing:

You have to change in settings.py to:

AUTHENTICATION_BACKENDS = (
'django.contrib.auth.backends.ModelBackend',
#'accounts.backends.MyRemoteUserBackend',
)

I can login only if I use old database so I decided to reinstall it from beginning (delete all and start with new pull). With new installation there is an error which say:

Request Method: GET
http://172.17.103.18:80/
1.8.11
OperationalError
no such table: django_session
/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py in execute, line 318
/srv/webvirtcloud/venv/bin/python2
2.7.12
['/srv/webvirtcloud', '/srv/webvirtcloud/venv/bin', '/srv/webvirtcloud/venv/lib/python2.7', '/srv/webvirtcloud/venv/lib/python2.7/plat-x86_64-linux-gnu', '/srv/webvirtcloud/venv/lib/python2.7/lib-tk', '/srv/webvirtcloud/venv/lib/python2.7/lib-old', '/srv/webvirtcloud/venv/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/srv/webvirtcloud/venv/local/lib/python2.7/site-packages']
Fri, 1 Jun 2018 09:35:45 +0000
Originally created by @ssbaksa on GitHub (Jun 1, 2018). Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/150 After changing: You have to change in settings.py to: AUTHENTICATION_BACKENDS = ( 'django.contrib.auth.backends.ModelBackend', #'accounts.backends.MyRemoteUserBackend', ) I can login only if I use old database so I decided to reinstall it from beginning (delete all and start with new pull). With new installation there is an error which say: Request Method: | GET -- | -- http://172.17.103.18:80/ 1.8.11 OperationalError no such table: django_session /srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py in execute, line 318 /srv/webvirtcloud/venv/bin/python2 2.7.12 ['/srv/webvirtcloud', '/srv/webvirtcloud/venv/bin', '/srv/webvirtcloud/venv/lib/python2.7', '/srv/webvirtcloud/venv/lib/python2.7/plat-x86_64-linux-gnu', '/srv/webvirtcloud/venv/lib/python2.7/lib-tk', '/srv/webvirtcloud/venv/lib/python2.7/lib-old', '/srv/webvirtcloud/venv/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/srv/webvirtcloud/venv/local/lib/python2.7/site-packages'] Fri, 1 Jun 2018 09:35:45 +0000
kerem closed this issue 2026-02-27 15:57:21 +03:00
Author
Owner

@honza801 commented on GitHub (Jun 15, 2018):

hi,
have you initialized db and application correctly?
fous

<!-- gh-comment-id:397607118 --> @honza801 commented on GitHub (Jun 15, 2018): hi, have you initialized db and application correctly? fous
Author
Owner

@ssbaksa commented on GitHub (Jun 15, 2018):

I have more than 10 working installation of WebvirtCloud (older version)
and there was no problem with installation or initialisation so this is
much bigger issue than the one with improper initialisation of admin
account.

On Fri, 15 Jun 2018, 14:36 Jan Krcmar, notifications@github.com wrote:

hi,
have you initialized db and application correctly?
fous


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/retspen/webvirtcloud/issues/150#issuecomment-397607118,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATCLsFsB-UXAZJSFkn2v5WyEwyze97phks5t86pGgaJpZM4UWZ2k
.

<!-- gh-comment-id:397624530 --> @ssbaksa commented on GitHub (Jun 15, 2018): I have more than 10 working installation of WebvirtCloud (older version) and there was no problem with installation or initialisation so this is much bigger issue than the one with improper initialisation of admin account. On Fri, 15 Jun 2018, 14:36 Jan Krcmar, <notifications@github.com> wrote: > hi, > have you initialized db and application correctly? > fous > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/retspen/webvirtcloud/issues/150#issuecomment-397607118>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/ATCLsFsB-UXAZJSFkn2v5WyEwyze97phks5t86pGgaJpZM4UWZ2k> > . >
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtcloud#104
No description provided.