Giter Club home page Giter Club logo

Comments (57)

dantti avatar dantti commented on June 12, 2024

What's the issue? from the output it started

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

login page on http is blank

from virtlyst.

dantti avatar dantti commented on June 12, 2024

This must point to the directory where root/src/login.html is, or you can set TemplatePath config to where login.html is. Blank page means the template was not found...

--chdir2 /home/ralf/vrt

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

[root@anarchy]: ~># cd /usr/share/virtlyst/
[root@anarchy]: /usr/share/virtlyst># ls -l
insgesamt 8
drwxr-xr-x 5 root root 4096 23. Apr 17:15 static
drwxr-xr-x 2 root root 4096 23. Apr 17:15 templates
[root@anarchy]: /usr/share/virtlyst>#
this is the path,

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

cutelyst-wsgi2
--application /usr/lib/uwsgi/libVirtlyst.so
--static-map /static=usr/share/virtlyst/templates
--http-socket localhost:3000
--master

blank page

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

with ini file

cutelyst-wsgi2 --ini /etc/uwsgi/virtlyst.ini
Installing EPoll event loop
Loading INI configuration: /etc/uwsgi/virtlyst.ini section: wsgi
Cutelyst-WSGI starting
WSGI socket 0 bound to TCP address 0.0.0.0:3000 fd 7
Changing directory to: /
Loading application: /usr/lib/uwsgi/libVirtlyst.so
4638:4638 cutelyst.core[warning] Can not load translations from not existing directory: "/usr/share/cutelyst2/translations"
4638:4638 wsgi[debug] Loaded application: "cutelyst-wsgi"
Threads:4
4638:4638 cwsgi.staticmap[info] added mapping for "static" => "/usr/share/virtlyst/static"
4638:4638 default[debug] Production true
4638:4638 default[debug] Database "/var/lib/virtlyst/virtlyst.sqlite"
4638:4638 default[debug] Creating database "/var/lib/virtlyst/virtlyst.sqlite"
4638:4638 default[debug] PRAGMA journal_mode = WAL true ""
4638:4638 default[critical] Created user admin with password: "3a4ca947c1c64baab187261174cdc157"
4638:4638 cutelyst.core[warning] Can not load translations from not existing directory: "/usr/share/cutelyst2/translations"
4638:4638 cutelyst.core[info] cutelyst-wsgi powered by Cutelyst 2.1.0, Qt 5.10.1.
4638:4638 cutelyst.core[warning] Can not load translations from not existing directory: "/usr/share/cutelyst2/translations"
4638:4638 cwsgi.staticmap[info] added mapping for "static" => "/usr/share/virtlyst/static"
4638:4638 default[debug] Production true
4638:4638 default[debug] Database "/var/lib/virtlyst/virtlyst.sqlite"
4638:4638 cutelyst.core[warning] Can not load translations from not existing directory: "/usr/share/cutelyst2/translations"
4638:4638 cutelyst.core[warning] Can not load translations from not existing directory: "/usr/share/cutelyst2/translations"
4638:4638 cwsgi.staticmap[info] added mapping for "static" => "/usr/share/virtlyst/static"
4638:4638 default[debug] Production true
4638:4638 default[debug] Database "/var/lib/virtlyst/virtlyst.sqlite"
4638:4638 cutelyst.core[warning] Can not load translations from not existing directory: "/usr/share/cutelyst2/translations"
4638:4638 cutelyst.core[warning] Can not load translations from not existing directory: "/usr/share/cutelyst2/translations"
4638:4638 cwsgi.staticmap[info] added mapping for "static" => "/usr/share/virtlyst/static"
4638:4638 default[debug] Production true
4638:4638 default[debug] Database "/var/lib/virtlyst/virtlyst.sqlite"
4638:4638 cutelyst.core[warning] Can not load translations from not existing directory: "/usr/share/cutelyst2/translations"
spawned WSGI worker 1 (pid: 4639, cores: 4)
4639:4639 wsgi[debug] Starting threads
4639:4640 default[debug] Database ready "virtlyst-0"
4639:4642 default[debug] Database ready "virtlyst-2"
4639:4641 default[debug] Database ready "virtlyst-1"
4639:4643 default[debug] Database ready "virtlyst-3"
4639:4641 default[warning] Non POST method
4639:4641 default[warning] Non POST method
4639:4641 default[warning] Non POST method
4639:4641 default[warning] Non POST method
4639:4641 default[warning] Non POST method
4639:4641 default[warning] Non POST method
4639:4641 default[warning] Non POST method
4639:4641 default[warning] Non POST method
4639:4641 default[warning] Non POST method
4639:4641 default[warning] Non POST method
4639:4641 default[warning] Non POST method
4639:4641 default[warning] Non POST method

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

ini

[wsgi]
master = true
threads = 4
http-socket = :3000
application = /usr/lib/uwsgi/libVirtlyst.so
chdir = /
static-map = /static=/usr/share/virtlyst/static

[Cutelyst]
production = true
DatabasePath = /var/lib/virtlyst/virtlyst.sqlite
TemplatePath = /usr/share/virtlyst/templates

from virtlyst.

dantti avatar dantti commented on June 12, 2024

Can you please add:

[Rules]
cutelyst.*=true

to the ini file just to see if there's some msg that give a better hint, from the ini it seems it should work fine now.

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

add ini

[wsgi]
master = true
threads = 4
http-socket = :3000
application = /usr/lib/uwsgi/libVirtlyst.so
chdir = /
static-map = /static=/usr/share/virtlyst/static

[Cutelyst]
production = true
DatabasePath = /var/lib/virtlyst/virtlyst.sqlite
TemplatePath = /usr/share/virtlyst/templates

[Rules]
cutelyst.*=true

start again,
print

cutelyst-wsgi2 --ini /etc/uwsgi/virtlyst.ini

Installing EPoll event loop
Loading INI configuration: /etc/uwsgi/virtlyst.ini section: wsgi
Cutelyst-WSGI starting
WSGI socket 0 bound to TCP address 0.0.0.0:3000 fd 7
Changing directory to: /
Loading application: /usr/lib/uwsgi/libVirtlyst.so
5148:5148 cutelyst.core[warning] Can not load translations from not existing directory: "/usr/share/cutelyst2/translations"
5148:5148 wsgi[debug] Loaded application: "cutelyst-wsgi"
Threads:4
5148:5148 cwsgi.staticmap[info] added mapping for "static" => "/usr/share/virtlyst/static"
5148:5148 default[debug] Production true
5148:5148 default[debug] Database "/var/lib/virtlyst/virtlyst.sqlite"
5148:5148 default[debug] Creating database "/var/lib/virtlyst/virtlyst.sqlite"
5148:5148 default[debug] PRAGMA journal_mode = WAL true ""
5148:5148 default[critical] Created user admin with password: "0bd6b548203d4296880198dd56a31c03"
5148:5148 cutelyst.core[warning] Can not load translations from not existing directory: "/usr/share/cutelyst2/translations"
5148:5148 cutelyst.core[info] cutelyst-wsgi powered by Cutelyst 2.1.0, Qt 5.10.1.
5148:5148 cutelyst.core[warning] Can not load translations from not existing directory: "/usr/share/cutelyst2/translations"
5148:5148 cwsgi.staticmap[info] added mapping for "static" => "/usr/share/virtlyst/static"
5148:5148 default[debug] Production true
5148:5148 default[debug] Database "/var/lib/virtlyst/virtlyst.sqlite"
5148:5148 cutelyst.core[warning] Can not load translations from not existing directory: "/usr/share/cutelyst2/translations"
5148:5148 cutelyst.core[warning] Can not load translations from not existing directory: "/usr/share/cutelyst2/translations"
5148:5148 cwsgi.staticmap[info] added mapping for "static" => "/usr/share/virtlyst/static"
5148:5148 default[debug] Production true
5148:5148 default[debug] Database "/var/lib/virtlyst/virtlyst.sqlite"
5148:5148 cutelyst.core[warning] Can not load translations from not existing directory: "/usr/share/cutelyst2/translations"
5148:5148 cutelyst.core[warning] Can not load translations from not existing directory: "/usr/share/cutelyst2/translations"
5148:5148 cwsgi.staticmap[info] added mapping for "static" => "/usr/share/virtlyst/static"
5148:5148 default[debug] Production true
5148:5148 default[debug] Database "/var/lib/virtlyst/virtlyst.sqlite"
5148:5148 cutelyst.core[warning] Can not load translations from not existing directory: "/usr/share/cutelyst2/translations"
spawned WSGI worker 1 (pid: 5149, cores: 4)
5149:5149 wsgi[debug] Starting threads
5149:5150 default[debug] Database ready "virtlyst-0"
5149:5151 default[debug] Database ready "virtlyst-1"
5149:5153 default[debug] Database ready "virtlyst-3"
5149:5152 default[debug] Database ready "virtlyst-2"

blank page,

from virtlyst.

dantti avatar dantti commented on June 12, 2024

Hmm I forgot, you also need to add to your .service file:

[Service]
Environment=QT_LOGGING_CONF=/etc/uwsgi/virtlyst.ini

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

cutelyst-wsgi2 --ini /etc/uwsgi/virtlyst.ini

Installing EPoll event loop
Loading INI configuration: /etc/uwsgi/virtlyst.ini section: wsgi
Cutelyst-WSGI starting
WSGI socket 0 bound to TCP address 0.0.0.0:3000 fd 7
Changing directory to: /
Loading application: /usr/lib/uwsgi/libVirtlyst.so
5219:5219 cutelyst.core[warning] Can not load translations from not existing directory: "/usr/share/cutelyst2/translations"
5219:5219 wsgi[debug] Loaded application: "cutelyst-wsgi"
Threads:1
5219:5219 cwsgi.staticmap[info] added mapping for "static" => "/usr/share/virtlyst/static"
5219:5219 default[debug] Production true
5219:5219 default[debug] Database "/var/lib/virtlyst/virtlyst.sqlite"
5219:5219 default[debug] Creating database "/var/lib/virtlyst/virtlyst.sqlite"
5219:5219 default[debug] PRAGMA journal_mode = WAL true ""
5219:5219 default[critical] Created user admin with password: "b9fbb8cd7cdc433188bfd321d1b34de6"
5219:5219 cutelyst.core[warning] Can not load translations from not existing directory: "/usr/share/cutelyst2/translations"
5219:5219 cutelyst.core[info] cutelyst-wsgi powered by Cutelyst 2.1.0, Qt 5.10.1.
spawned WSGI worker 1 (pid: 5220, cores: 1)
5220:5221 default[debug] Database ready "virtlyst-0"
5220:5221 default[warning] Non POST method
5220:5221 default[warning] Non POST metho

new ini

[wsgi]
master = true
threads = 1
http-socket = :3000
application = /usr/lib/uwsgi/libVirtlyst.so
chdir = /
static-map = /static=/usr/share/virtlyst/static

[Cutelyst]
production = true
DatabasePath = /var/lib/virtlyst/virtlyst.sqlite
TemplatePath = /usr/share/virtlyst/templates

[Rules]
cutelyst.* = true

[Service]
Environment=QT_LOGGING_CONF=/etc/uwsgi/virtlyst.ini

the same blank page,

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

● virtlyst.service - Web interface to manage virtual machines with libvirt
Loaded: loaded (/usr/lib/systemd/system/virtlyst.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2018-04-23 20:58:45 CEST; 2s ago
Main PID: 5301 (cutelyst-wsgi2)
Tasks: 3 (limit: 4522)
Memory: 3.9M
CGroup: /system.slice/virtlyst.service
├─5301 /usr/bin/cutelyst-wsgi2 --ini /etc/uwsgi/virtlyst.ini
└─5302 /usr/bin/cutelyst-wsgi2 --ini /etc/uwsgi/virtlyst.ini

Apr 23 20:58:46 anarchy cutelyst-wsgi2[5301]: 5301:5301 cutelyst.core[warning] Can not load translations from not existing dire>
Apr 23 20:58:46 anarchy cutelyst-wsgi2[5301]: 5301:5301 wsgi[debug] Loaded application: "cutelyst-wsgi"
Apr 23 20:58:46 anarchy cutelyst-wsgi2[5301]: Threads:1
Apr 23 20:58:46 anarchy cutelyst-wsgi2[5301]: 5301:5301 cwsgi.staticmap[info] added mapping for "static" => "/usr/share/virtlys>
Apr 23 20:58:46 anarchy cutelyst-wsgi2[5301]: 5301:5301 default[debug] Production true
Apr 23 20:58:46 anarchy cutelyst-wsgi2[5301]: 5301:5301 default[debug] Database "/var/lib/virtlyst/virtlyst.sqlite"
Apr 23 20:58:46 anarchy cutelyst-wsgi2[5301]: 5301:5301 cutelyst.core[warning] Can not load translations from not existing dire>
Apr 23 20:58:46 anarchy cutelyst-wsgi2[5301]: 5301:5301 cutelyst.core[info] cutelyst-wsgi powered by Cutelyst 2.1.0, Qt 5.10.1.
Apr 23 20:58:46 anarchy cutelyst-wsgi2[5301]: spawned WSGI worker 1 (pid: 5302, cores: 1)
Apr 23 20:58:46 anarchy cutelyst-wsgi2[5302]: 5302:5303 default[debug] Database ready "virtlyst-0"
~
~

from virtlyst.

dantti avatar dantti commented on June 12, 2024

The last change is on the systemd file not on the ini. also be sure to run systemctl daemon-reload

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

systemctl daemon-reload make it

systemctl restart virtlyst

[root@anarchy]: /var/lib># systemctl status virtlyst
● virtlyst.service - Web interface to manage virtual machines with libvirt
Loaded: loaded (/usr/lib/systemd/system/virtlyst.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2018-04-23 21:03:07 CEST; 40s ago
Main PID: 5410 (cutelyst-wsgi2)
Tasks: 3 (limit: 4522)
Memory: 3.9M
CGroup: /system.slice/virtlyst.service
├─5410 /usr/bin/cutelyst-wsgi2 --ini /etc/uwsgi/virtlyst.ini
└─5411 /usr/bin/cutelyst-wsgi2 --ini /etc/uwsgi/virtlyst.ini

Apr 23 21:03:07 anarchy cutelyst-wsgi2[5410]: 5410:5410 default[debug] Production true
Apr 23 21:03:07 anarchy cutelyst-wsgi2[5410]: 5410:5410 default[debug] Database "/var/lib/virtlyst/virtlyst.sqlite"
Apr 23 21:03:07 anarchy cutelyst-wsgi2[5410]: 5410:5410 cutelyst.core[warning] Can not load translations from not existing dire>
Apr 23 21:03:07 anarchy cutelyst-wsgi2[5410]: 5410:5410 cutelyst.core[info] cutelyst-wsgi powered by Cutelyst 2.1.0, Qt 5.10.1.
Apr 23 21:03:07 anarchy cutelyst-wsgi2[5410]: spawned WSGI worker 1 (pid: 5411, cores: 1)
Apr 23 21:03:07 anarchy cutelyst-wsgi2[5411]: 5411:5412 default[debug] Database ready "virtlyst-0"
Apr 23 21:03:24 anarchy cutelyst-wsgi2[5411]: 5411:5412 default[warning] Non POST method
Apr 23 21:03:25 anarchy cutelyst-wsgi2[5411]: 5411:5412 default[warning] Non POST method
Apr 23 21:03:32 anarchy cutelyst-wsgi2[5411]: 5411:5412 default[warning] Non POST method
Apr 23 21:03:32 anarchy cutelyst-wsgi2[5411]: 5411:5412 default[warning] Non POST method
lines 1-20/20 (END)

from virtlyst.

dantti avatar dantti commented on June 12, 2024

Did you change this file right? /usr/lib/systemd/system/virtlyst.service?

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

644 root root

from virtlyst.

dantti avatar dantti commented on June 12, 2024

Add:

[Service]
Environment=QT_LOGGING_CONF=/etc/uwsgi/virtlyst.ini

To the file:

/usr/lib/systemd/system/virtlyst.service

Then:

systemctl daemon-reload

And restart virtlyst

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

new ini

[wsgi]
master = true
threads = 1
http-socket = :3000
application = /usr/lib/uwsgi/libVirtlyst.so
chdir = /
static-map = /static=/usr/share/virtlyst/static

[Cutelyst]
production = true
DatabasePath = /var/lib/virtlyst/virtlyst.sqlite
TemplatePath = /usr/share/virtlyst/templates

[Rules]
cutelyst.* = true

[Service]
Environment=QT_LOGGING_CONF=/usr/lib/systemd/system/virtlyst.service

systemctl daemon-reload

systemctl restart virtlyst

systemctl status virtlyst

● virtlyst.service - Web interface to manage virtual machines with libvirt
Loaded: loaded (/usr/lib/systemd/system/virtlyst.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2018-04-23 21:22:00 CEST; 35s ago
Main PID: 1482 (cutelyst-wsgi2)
Tasks: 3 (limit: 4522)
Memory: 3.9M
CGroup: /system.slice/virtlyst.service
├─1482 /usr/bin/cutelyst-wsgi2 --ini /etc/uwsgi/virtlyst.ini
└─1483 /usr/bin/cutelyst-wsgi2 --ini /etc/uwsgi/virtlyst.ini

Apr 23 21:22:00 anarchy cutelyst-wsgi2[1482]: Threads:1
Apr 23 21:22:00 anarchy cutelyst-wsgi2[1482]: 1482:1482 cwsgi.staticmap[info] added mapping for "static" => "/usr/share/virtl>
Apr 23 21:22:00 anarchy cutelyst-wsgi2[1482]: 1482:1482 default[debug] Production true
Apr 23 21:22:00 anarchy cutelyst-wsgi2[1482]: 1482:1482 default[debug] Database "/var/lib/virtlyst/virtlyst.sqlite"
Apr 23 21:22:00 anarchy cutelyst-wsgi2[1482]: 1482:1482 cutelyst.core[warning] Can not load translations from not existing di>
Apr 23 21:22:00 anarchy cutelyst-wsgi2[1482]: 1482:1482 cutelyst.core[info] cutelyst-wsgi powered by Cutelyst 2.1.0, Qt 5.10.>
Apr 23 21:22:00 anarchy cutelyst-wsgi2[1482]: spawned WSGI worker 1 (pid: 1483, cores: 1)
Apr 23 21:22:00 anarchy cutelyst-wsgi2[1483]: 1483:1484 default[debug] Database ready "virtlyst-0"
Apr 23 21:22:15 anarchy cutelyst-wsgi2[1483]: 1483:1484 default[warning] Non POST method
Apr 23 21:22:15 anarchy cutelyst-wsgi2[1483]: 1483:1484 default[warning] Non POST method
same

from virtlyst.

dantti avatar dantti commented on June 12, 2024

No, you do not add [Service] tag to the ini file, but to the .service file that systemd uses

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

rights of die files?

/static=/usr/share/virtlyst/static

/usr/share/virtlyst/templates

[root@anarchy]: /usr/lib/systemd/system># cd /usr/share/virtlyst/
[root@anarchy]: /usr/share/virtlyst># ls -l
insgesamt 8
drwxr-xr-x 5 root root 4096 23. Apr 17:15 static
drwxr-xr-x 2 root root 4096 23. Apr 17:15 templates

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

● virtlyst.service - Web interface to manage virtual machines with libvirt
Loaded: loaded (/usr/lib/systemd/system/virtlyst.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2018-04-23 21:34:21 CEST; 5s ago
Main PID: 1850 (cutelyst-wsgi2)
Tasks: 3 (limit: 4522)
Memory: 3.9M
CGroup: /system.slice/virtlyst.service
├─1850 /usr/bin/cutelyst-wsgi2 --ini /etc/uwsgi/virtlyst.ini
└─1851 /usr/bin/cutelyst-wsgi2 --ini /etc/uwsgi/virtlyst.ini

Apr 23 21:34:21 anarchy cutelyst-wsgi2[1850]: 1850:1850 cutelyst.core[debug] Loaded dispatcher "Cutelyst::Dispatcher"
Apr 23 21:34:21 anarchy cutelyst-wsgi2[1850]: 1850:1850 cutelyst.core[debug] Using engine "CWSGI::CWsgiEngine"
Apr 23 21:34:21 anarchy cutelyst-wsgi2[1850]: 1850:1850 cutelyst.core[debug] Found home "/"
Apr 23 21:34:21 anarchy cutelyst-wsgi2[1850]: 1850:1850 cutelyst.core[debug] Loaded components:
.---------------------------------+------------.
| Class | Type |
.---------------------------------+------------.
| Console | Controller |
| Create | Controller |
| Info | Controller |
| Infrastructure | Controller |
| Instances | Controller |
| Interfaces | Controller |
| Networks | Controller |
| Overview | Controller |
| Root | Controller |
| Secrets | Controller |
| Server | Controller |
| Storages | Controller |
| Cutelyst::GrantleeView->execute | View |
.---------------------------------+------------.
Apr 23 21:34:21 anarchy cutelyst-wsgi2[1850]: 1850:1850 cutelyst.dispatcher[debug] Loaded Private actions:
.-----------------------+----------------+--------------.
| Private | Class | Method |
.-----------------------+----------------+--------------.
| /Auto | Root | Auto |
| /defaultPage | Root | defaultPage |
| /End | Root | End |
| /index | Root | index |
| /login | Root | login |
| /logout | Root | logout |
| /console/index | Console | index |
| /console/ws | Console | ws |
| /create/index | Create | index |
| /info/hostusage | Info | hostusage |
| /info/inst_status | Info | inst_status |
| /info/insts_status | Info | insts_status |
| /info/instusage | Info | instusage |
| /infrastructure/index | Infrastructure | index |
| /instances/index | Instances | index |
| /instances/instance | Instances | instance |
| /interfaces/index | Interfaces | index |
| /interfaces/interface | Interfaces | interface |
| /networks/index | Networks | index |
| /networks/network | Networks | network |
| /overview/index | Overview | index |
| /secrets/index | Secrets | index |
| /server/index | Server | index |
| /storages/index | Storages | index |
| /storages/storage | Storages | storage |
.-----------------------+----------------+--------------.
Apr 23 21:34:21 anarchy cutelyst-wsgi2[1850]: 1850:1850 cutelyst.dispatcher[debug] Loaded Path actions:
.-----------------------+-----------------------.
| Path | Private |
.-----------------------+-----------------------.
| /... | /defaultPage |
| / | /index |
| /console// | /console/index |
| /console/ws// | /console/ws |
| /create/* | /create/index |
| /create/* | /create/index |
| /info/hostusage/* | /info/hostusage |
| /info/inst_status// | /info/inst_status |
| /info/insts_status/* | /info/insts_status |
| /info/instusage// | /info/instusage |
| /infrastructure | /infrastructure/index |
| /instances/* | /instances/index |
| /instances// | /instances/instance |
| /interfaces/* | /interfaces/index |
| /interfaces// | /interfaces/interface |
| /login | /login |
| /logout | /logout |
| /networks/* | /networks/index |
| /networks// | /networks/network |
| /overview/* | /overview/index |
| /secrets/* | /secrets/index |
| /server | /server/index |
| /storages/* | /storages/index |
| /storages// | /storages/storage |
.-----------------------+-----------------------.
Apr 23 21:34:21 anarchy cutelyst-wsgi2[1850]: 1850:1850 cutelyst.dispatcher[debug]
Apr 23 21:34:21 anarchy cutelyst-wsgi2[1850]: 1850:1850 cutelyst.core[info] cutelyst-wsgi powered by Cutelyst 2.1.0, Qt 5.10.>
Apr 23 21:34:21 anarchy cutelyst-wsgi2[1850]: spawned WSGI worker 1 (pid: 1851, cores: 1)
Apr 23 21:34:21 anarchy cutelyst-wsgi2[1851]: 1851:1852 default[debug] Database ready "virtlyst-0"

from virtlyst.

dantti avatar dantti commented on June 12, 2024

ok, now what happens when you try to open the page?

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

● virtlyst.service - Web interface to manage virtual machines with libvirt
Loaded: loaded (/usr/lib/systemd/system/virtlyst.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2018-04-23 21:34:21 CEST; 2min 45s ago
Main PID: 1850 (cutelyst-wsgi2)
Tasks: 3 (limit: 4522)
Memory: 4.0M
CGroup: /system.slice/virtlyst.service
├─1850 /usr/bin/cutelyst-wsgi2 --ini /etc/uwsgi/virtlyst.ini
└─1851 /usr/bin/cutelyst-wsgi2 --ini /etc/uwsgi/virtlyst.ini

Apr 23 21:36:57 anarchy cutelyst-wsgi2[1851]: 1851:1852 cutelyst.dispatcher[debug] Arguments are "favicon.ico"
Apr 23 21:36:57 anarchy cutelyst-wsgi2[1851]: 1851:1852 cutelyst.response[debug] Redirecting to "http://localhost:3000/login">
Apr 23 21:36:57 anarchy cutelyst-wsgi2[1851]: 1851:1852 cutelyst.stats[debug] Response Code: 302; Content-Type: text/html; ch>
Apr 23 21:36:57 anarchy cutelyst-wsgi2[1851]: 1851:1852 cutelyst.stats[info] Request took: 0.000000s (??/s)
.--------+-----------.
| Action | Time |
.--------+-----------.
| /Auto | 0.000000s |
| /End | 0.000000s |
.--------+-----------.
Apr 23 21:36:57 anarchy cutelyst-wsgi2[1851]: 1851:1852 cutelyst.request[debug] "GET" request for "login" from "::1"
Apr 23 21:36:57 anarchy cutelyst-wsgi2[1851]: 1851:1852 cutelyst.dispatcher[debug] Path is "login"
Apr 23 21:36:57 anarchy cutelyst-wsgi2[1851]: 1851:1852 default[warning] Non POST method

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

sorry, here the full print

[root@anarchy]: /usr/share/virtlyst># systemctl status virtlyst
● virtlyst.service - Web interface to manage virtual machines with libvirt
Loaded: loaded (/usr/lib/systemd/system/virtlyst.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2018-04-23 21:34:21 CEST; 2min 45s ago
Main PID: 1850 (cutelyst-wsgi2)
Tasks: 3 (limit: 4522)
Memory: 4.0M
CGroup: /system.slice/virtlyst.service
├─1850 /usr/bin/cutelyst-wsgi2 --ini /etc/uwsgi/virtlyst.ini
└─1851 /usr/bin/cutelyst-wsgi2 --ini /etc/uwsgi/virtlyst.ini

Apr 23 21:36:57 anarchy cutelyst-wsgi2[1851]: 1851:1852 cutelyst.dispatcher[debug] Arguments are "favicon.ico"
Apr 23 21:36:57 anarchy cutelyst-wsgi2[1851]: 1851:1852 cutelyst.response[debug] Redirecting to "http://localhost:3000/login">
Apr 23 21:36:57 anarchy cutelyst-wsgi2[1851]: 1851:1852 cutelyst.stats[debug] Response Code: 302; Content-Type: text/html; ch>
Apr 23 21:36:57 anarchy cutelyst-wsgi2[1851]: 1851:1852 cutelyst.stats[info] Request took: 0.000000s (??/s)
.--------+-----------.
| Action | Time |
.--------+-----------.
| /Auto | 0.000000s |
| /End | 0.000000s |
.--------+-----------.
Apr 23 21:36:57 anarchy cutelyst-wsgi2[1851]: 1851:1852 cutelyst.request[debug] "GET" request for "login" from "::1"
Apr 23 21:36:57 anarchy cutelyst-wsgi2[1851]: 1851:1852 cutelyst.dispatcher[debug] Path is "login"
Apr 23 21:36:57 anarchy cutelyst-wsgi2[1851]: 1851:1852 default[warning] Non POST method
Apr 23 21:36:57 anarchy cutelyst-wsgi2[1851]: 1851:1852 cutelyst.grantlee[debug] Rendering template "login.html"
Apr 23 21:36:57 anarchy cutelyst-wsgi2[1851]: 1851:1852 cutelyst.stats[debug] Response Code: 200; Content-Type: text/html; ch>
Apr 23 21:36:57 anarchy cutelyst-wsgi2[1851]: 1851:1852 cutelyst.stats[info] Request took: 0.000000s (??/s)
.---------------------------------+-----------.
| Action | Time |
.---------------------------------+-----------.
| /Auto | 0.000000s |
| /login | 0.000000s |
| /End | 0.000000s |
| Cutelyst::GrantleeView->execute | 0.000000s |
.---------------------------------+-----------.
lines 12-34/34 (END)

from virtlyst.

dantti avatar dantti commented on June 12, 2024

which Grantlee version is installed? from the log all is fine, weird...

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

5.1.0-1

from virtlyst.

dantti avatar dantti commented on June 12, 2024

pls: ls -l /usr/share/virtlyst/templates

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

ls -l /usr/share/virtlyst/templates
insgesamt 284
-rw-r--r-- 1 root root 468 23. Apr 17:15 404.html
-rw-r--r-- 1 root root 532 23. Apr 17:15 500.html
-rw-r--r-- 1 root root 1992 23. Apr 17:15 base_auth.html
-rw-r--r-- 1 root root 2197 23. Apr 17:15 base.html
-rw-r--r-- 1 root root 4738 23. Apr 17:15 console-base.html
-rw-r--r-- 1 root root 6890 23. Apr 17:15 console-spice.html
-rw-r--r-- 1 root root 7100 23. Apr 17:15 console-vnc.html
-rw-r--r-- 1 root root 31492 23. Apr 17:15 create.html
-rw-r--r-- 1 root root 3168 23. Apr 17:15 hostdetail.html
-rw-r--r-- 1 root root 5277 23. Apr 17:15 infrastructure.html
-rw-r--r-- 1 root root 47399 23. Apr 17:15 instance.html
-rw-r--r-- 1 root root 17989 23. Apr 17:15 instances.html
-rw-r--r-- 1 root root 2786 23. Apr 17:15 interface.html
-rw-r--r-- 1 root root 11276 23. Apr 17:15 interfaces.html
-rw-r--r-- 1 root root 1023 23. Apr 17:15 login.html
-rw-r--r-- 1 root root 8818 23. Apr 17:15 network.html
-rw-r--r-- 1 root root 7415 23. Apr 17:15 networks.html
-rw-r--r-- 1 root root 8540 23. Apr 17:15 secrets.html
-rw-r--r-- 1 root root 27721 23. Apr 17:15 servers.html
-rw-r--r-- 1 root root 7 23. Apr 17:15 sidebar_close.html
-rw-r--r-- 1 root root 1626 23. Apr 17:15 sidebar.html
-rw-r--r-- 1 root root 20639 23. Apr 17:15 storage.html
-rw-r--r-- 1 root root 18374 23. Apr 17:15 storages.html

from virtlyst.

dantti avatar dantti commented on June 12, 2024

can you try removin DynamicUser from .service file

from virtlyst.

dantti avatar dantti commented on June 12, 2024

the black page is surely not being able to open the login.html file, and since the path look ok, It can only think about permissions.

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

Okay, I'll continue tomorrow, I'll report here

from virtlyst.

gdamjan avatar gdamjan commented on June 12, 2024

@rallep71 do you use the AUR package?
currently it only works with an unreleased (patched) Virtlyst, and with cutelyst-git.

The DynamicUser + SupplementaryGroup=libvirt also didn't work well, which is the next thing to investigate.

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

no, im use not aur package, i use normal package on arch

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

today a new version of cutelyst are installed, the same thing, blank page....:(

● virtlyst.service - Web interface to manage virtual machines with libvirt
Loaded: loaded (/usr/lib/systemd/system/virtlyst.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2018-04-25 02:15:05 CEST; 1min 17s ago
Main PID: 1115 (cutelyst-wsgi2)
Tasks: 3 (limit: 4522)
Memory: 4.3M
CGroup: /system.slice/virtlyst.service
├─1115 /usr/bin/cutelyst-wsgi2 --ini /etc/uwsgi/virtlyst.ini
└─1118 /usr/bin/cutelyst-wsgi2 --ini /etc/uwsgi/virtlyst.ini

Apr 25 02:16:03 anarchy cutelyst-wsgi2[1118]: 1118:1119 cutelyst.dispatcher[debug] Path is "/"
Apr 25 02:16:03 anarchy cutelyst-wsgi2[1118]: 1118:1119 cutelyst.response[debug] Redirecting to "http://localhost:3000/login" 302
Apr 25 02:16:03 anarchy cutelyst-wsgi2[1118]: 1118:1119 cutelyst.stats[debug] Response Code: 302; Content-Type: text/html; charset=ut>
Apr 25 02:16:03 anarchy cutelyst-wsgi2[1118]: 1118:1119 cutelyst.stats[info] Request took: 0.000000s (??/s)
.--------+-----------.
| Action | Time |
.--------+-----------.
| /Auto | 0.000000s |
| /End | 0.000000s |
.--------+-----------.
Apr 25 02:16:03 anarchy cutelyst-wsgi2[1118]: 1118:1119 cutelyst.request[debug] "GET" request for "login" from "::1"
Apr 25 02:16:03 anarchy cutelyst-wsgi2[1118]: 1118:1119 cutelyst.dispatcher[debug] Path is "login"
Apr 25 02:16:03 anarchy cutelyst-wsgi2[1118]: 1118:1119 default[warning] Non POST method
Apr 25 02:16:03 anarchy cutelyst-wsgi2[1118]: 1118:1119 cutelyst.grantlee[debug] Rendering template "login.html"
Apr 25 02:16:03 anarchy cutelyst-wsgi2[1118]: 1118:1119 cutelyst.stats[debug] Response Code: 200; Content-Type: text/html; charset=ut>
Apr 25 02:16:03 anarchy cutelyst-wsgi2[1118]: 1118:1119 cutelyst.stats[info] Request took: 0.001000s (1000.000/s)
.---------------------------------+-----------.
| Action | Time |
.---------------------------------+-----------.
| /Auto | 0.000000s |
| /login | 0.000000s |
| /End | 0.001000s |
| Cutelyst::GrantleeView->execute | 0.001000s |
.---------------------------------+-----------.
[root@anarchy]: ~>#

from virtlyst.

dantti avatar dantti commented on June 12, 2024

try running by hand cutelyst-wsgi2 --ini /etc/uwsgi/virtlyst.ini

Next week I'll roll some fixes to cutelyst that might help seeing where the issue is.

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

ok, i disable "systemctl disable virtlyst.servcie" right? reboot an starting by hand?
cutelyst-wsgi2 --ini /etc/uwsgi/virtlyst.ini is this the correct way?
i will prob this

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

ok, ive do it, the same thing, blank page,

[root@anarchy]: ~># cutelyst-wsgi2 --ini /etc/uwsgi/virtlyst.ini
Installing EPoll event loop
Loading INI configuration: /etc/uwsgi/virtlyst.ini section: wsgi
Cutelyst-WSGI starting
WSGI socket 0 bound to TCP address 0.0.0.0:3000 fd 7
Changing directory to: /
Loading application: /usr/lib/uwsgi/libVirtlyst.so
4637:4637 cutelyst.core[warning] Can not load translations from not existing directory: "/usr/share/cutelyst2/translations"
4637:4637 wsgi[debug] Loaded application: "cutelyst-wsgi"
Threads:1
4637:4637 cwsgi.staticmap[info] added mapping for "static" => "/usr/share/virtlyst/static"
4637:4637 default[debug] Production true
4637:4637 default[debug] Database "/var/lib/virtlyst/virtlyst.sqlite"
4637:4637 cutelyst.core[warning] Can not load translations from not existing directory: "/usr/share/cutelyst2/translations"
4637:4637 cutelyst.core[info] cutelyst-wsgi powered by Cutelyst 2.1.0, Qt 5.10.1.
spawned WSGI worker 1 (pid: 4638, cores: 1)
4638:4639 default[debug] Database ready "virtlyst-0"
4638:4639 default[warning] Non POST method
4638:4639 default[warning] Non POST method

from virtlyst.

gdamjan avatar gdamjan commented on June 12, 2024

no, im use not aur package, i use normal package on arch

what normal package? there's no such thing. @rallep71 just wait for the next release of Cutelyst and Virtlyst

from virtlyst.

dantti avatar dantti commented on June 12, 2024

@rallep71 the AUR package of @gdamjan was updated to the last version, can you please try that again?
Thanks

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

Great, i test it

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

systemctl status virtlyst
● virtlyst.service - Web interface to manage virtual machines with libvirt
Loaded: loaded (/usr/lib/systemd/system/virtlyst.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2018-05-04 20:14:37 CEST; 57s ago
Process: 1351 ExecStart=/usr/bin/cutelyst-wsgi2 --ini /etc/uwsgi/virtlyst.ini (code=exited, status=1/FAILURE)
Main PID: 1351 (code=exited, status=1/FAILURE)

Mai 04 20:14:37 arch systemd[1]: virtlyst.service: Service hold-off time over, scheduling restart.
Mai 04 20:14:37 arch systemd[1]: virtlyst.service: Scheduled restart job, restart counter is at 5.
Mai 04 20:14:37 arch systemd[1]: Stopped Web interface to manage virtual machines with libvirt.
Mai 04 20:14:37 arch systemd[1]: virtlyst.service: Start request repeated too quickly.
Mai 04 20:14:37 arch systemd[1]: virtlyst.service: Failed with result 'exit-code'.

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

ok, good news, with my ini starts the webinterface, i will dive in....docs are smal to configer vm's

[wsgi]
master = true
threads = 4
application = /usr/lib/uwsgi/libVirtlyst.so
static-map = /static=/usr/share/virtlyst/static
chdir = /
http-socket = :3000
[Cutelyst]
production = true
DatabasePath = /var/lib/virtlyst/virtlyst.sqlite
TemplatePath = /usr/share/virtlyst/templates

[Rules]
cutelyst.* = true
virtlyst.* = true

from virtlyst.

dantti avatar dantti commented on June 12, 2024

Great, if you are going just to talk to the local virtd daemon, just add a local socket connection.

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

Connecting to "qemu+tcp://192.168.10.122/system"
libvirt: XML-RPC Fehler : Kann keine Verbindung herstellen mit Server auf '192.168.10.122:16509': Keine Route zum Zielrechner
1957:1961 virt.connection[warning] Failed to open connection to QUrl("qemu+tcp://[email protected]/system")

what means label? ive greated with eth0 ???

from virtlyst.

dantti avatar dantti commented on June 12, 2024

can you do?

virsh -c qemu+tcp://192.168.10.122/system

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

as root?

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

must i install virsh?

from virtlyst.

dantti avatar dantti commented on June 12, 2024

as any user it will try to connect to the remote server, if it was properly configured it will ask user and password.

from virtlyst.

dantti avatar dantti commented on June 12, 2024

once you can login with virsh you will be able to do the same with Virtlyst

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

ok i will test

from virtlyst.

dantti avatar dantti commented on June 12, 2024

If you don't want to have virsh installed try to ssh to that host and do that command from there.

An alternative is to use qemu+ssh but that will require a ssh key without password

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

ok

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

must ive installed qemu? gemu or qemu headless?

from virtlyst.

dantti avatar dantti commented on June 12, 2024

I don't think so, but I usually have all installed

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

have y installed gemu or qemu headless?

from virtlyst.

dantti avatar dantti commented on June 12, 2024

qemu is installed since I use it locally

from virtlyst.

rallep71 avatar rallep71 commented on June 12, 2024

ok

from virtlyst.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.