[GH-ISSUE #480] where is backend data location #292

Closed
opened 2026-02-27 15:58:08 +03:00 by kerem · 4 comments
Owner

Originally created by @anhnvme on GitHub (Dec 22, 2021).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/480

Hello,

I'm tried move webvirtcloud to kubernetes, every working fine, but i don't know backend which saved log, KVM Machine location
Some body can show me this location

Originally created by @anhnvme on GitHub (Dec 22, 2021). Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/480 Hello, I'm tried move webvirtcloud to kubernetes, every working fine, but i don't know backend which saved log, KVM Machine location Some body can show me this location
kerem closed this issue 2026-02-27 15:58:09 +03:00
Author
Owner

@catborise commented on GitHub (Dec 22, 2021):

it save logs to database. i think we should add an option to log also stdout or file.
for now you can take logs of nginx only.

<!-- gh-comment-id:999322056 --> @catborise commented on GitHub (Dec 22, 2021): it save logs to database. i think we should add an option to log also stdout or file. for now you can take logs of nginx only.
Author
Owner

@anhnvme commented on GitHub (Dec 22, 2021):

it save logs to database. i think we should add an option to log also stdout or file.
for now you can take logs of nginx only.

I just found db.sqlite3 on /srv/webvirtcloud. maybe file save information which I need. How can i change location this file ?. i want to mount a NFS folder and store this file on NFS

<!-- gh-comment-id:999442733 --> @anhnvme commented on GitHub (Dec 22, 2021): > it save logs to database. i think we should add an option to log also stdout or file. > for now you can take logs of nginx only. I just found db.sqlite3 on /srv/webvirtcloud. maybe file save information which I need. How can i change location this file ?. i want to mount a NFS folder and store this file on NFS
Author
Owner

@catborise commented on GitHub (Dec 22, 2021):

you can change it from webvirtcloud/settings.py file.
DATABASES section "base_dir"

and also you can you mysql or postgresql to keep data

DATABASES = {
#    'default': {
#        'ENGINE': 'django.db.backends.sqlite3',
#        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
#    }
     'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'wvcdb',
        'USER': 'wvcuser',
        'PASSWORD': 'wvcpass',
        'HOST': '127.0.0.1',
        'PORT': '',
    }
}
<!-- gh-comment-id:999560333 --> @catborise commented on GitHub (Dec 22, 2021): you can change it from webvirtcloud/settings.py file. DATABASES section "base_dir" and also you can you mysql or postgresql to keep data ``` DATABASES = { # 'default': { # 'ENGINE': 'django.db.backends.sqlite3', # 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), # } 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'wvcdb', 'USER': 'wvcuser', 'PASSWORD': 'wvcpass', 'HOST': '127.0.0.1', 'PORT': '', } } ```
Author
Owner

@anhnvme commented on GitHub (Dec 23, 2021):

you can change it from webvirtcloud/settings.py file. DATABASES section "base_dir"

and also you can you mysql or postgresql to keep data

DATABASES = {
#    'default': {
#        'ENGINE': 'django.db.backends.sqlite3',
#        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
#    }
     'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'wvcdb',
        'USER': 'wvcuser',
        'PASSWORD': 'wvcpass',
        'HOST': '127.0.0.1',
        'PORT': '',
    }
}

thank you so much. i'm really don't know python too much 😅

<!-- gh-comment-id:999982139 --> @anhnvme commented on GitHub (Dec 23, 2021): > you can change it from webvirtcloud/settings.py file. DATABASES section "base_dir" > > and also you can you mysql or postgresql to keep data > > ``` > DATABASES = { > # 'default': { > # 'ENGINE': 'django.db.backends.sqlite3', > # 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), > # } > 'default': { > 'ENGINE': 'django.db.backends.postgresql_psycopg2', > 'NAME': 'wvcdb', > 'USER': 'wvcuser', > 'PASSWORD': 'wvcpass', > 'HOST': '127.0.0.1', > 'PORT': '', > } > } > ``` thank you so much. i'm really don't know python too much 😅
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#292
No description provided.