Hallo Arnaud,
klaro
-
Aufruf lmn.prepare:
lmn-prepare -i -p server -l /dev/vdb -v var:10,linbo:40,global:10,default-school:100%FREE
-
kein Reboot:
systemctl status linuxmusterwebui.service
linuxmuster-webui.service - linuxmuster.net WebUI
Loaded: loaded (/lib/systemd/system/linuxmuster-webui.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2022-11-18 17:04:39 CET; 56s ago
Main PID: 10421 (python3)
Tasks: 3 (limit: 2313)
CGroup: /system.slice/linuxmuster-webui.service
├─10421 /usr/bin/python3 /usr/local/bin/ajenti-panel -d --stock-plugins --plugins /usr/lib/linuxmuster-webui/plugins
└─10519 /usr/local/bin/ajenti-panel worker [restricted session]
Nov 18 17:04:39 server systemd[1]: Starting linuxmuster.net WebUI…
Nov 18 17:04:39 server systemd[1]: linuxmuster-webui.service: Can’t open PID file /var/run/ajenti.pid (yet?) after start: No such file or directory
Nov 18 17:04:39 server systemd[1]: Started linuxmuster.net WebUI.
3. Logs vor dem Reboot: /var/log/ajenti/ajenti.log
2022-11-18 17:04:40,363 INFO : Loading config from /etc/ajenti/config.yml
2022-11-18 17:04:40,367 WARNING : Users should be stored in /etc/ajenti/users.yml, migrating it …
2022-11-18 17:04:40,367 INFO : /etc/ajenti/users.yml already existing, backing it up
2022-11-18 17:04:40,370 INFO : /etc/ajenti/users.yml correctly written
2022-11-18 17:04:40,370 INFO : Loading users from /etc/ajenti/users.yml
2022-11-18 17:04:40,370 INFO : Loading smtp config from /etc/ajenti/smtp.yml
2022-11-18 17:04:40,371 INFO : Ajenti Core 2.2.1
2022-11-18 17:04:40,371 INFO : Master PID - 10421
2022-11-18 17:04:40,371 INFO : Detected platform: debian / Ubuntu 18.04.6 LTS
2022-11-18 17:04:40,371 INFO : Python version: 3.6.9
2022-11-18 17:04:40,444 INFO : Discovered 34 plugins
2022-11-18 17:04:40,451 INFO : docker.init.py: docker loaded
2022-11-18 17:04:40,486 INFO : Detected encoding for /etc/linuxmuster/webui/config.yml : ascii, but using utf-8
2022-11-18 17:04:40,490 INFO : Detected encoding for /etc/linuxmuster/webui/config.yml : ascii, but using utf-8
2022-11-18 17:04:40,491 ERROR : Can not read realm and domain from smb.conf
2022-11-18 17:04:40,491 INFO : Detected encoding for /var/lib/linuxmuster/setup.ini : no file, using utf-8
2022-11-18 17:04:40,491 INFO : Detected encoding for /var/lib/linuxmuster/setup.ini : no file, using utf-8
2022-11-18 17:04:40,497 INFO : lmn_vdi_administration.init.py: lmn_vdi_administration loaded
2022-11-18 17:04:40,499 INFO : lmn_dhcp.init.py: lmn_dhcp loaded
2022-11-18 17:04:40,503 INFO : samba_dns.init.py: samba_dns loaded
2022-11-18 17:04:40,611 INFO : lmn_nextcloud.init.py: lmn_nextcloud loaded
2022-11-18 17:04:40,671 INFO : lmn_crontab.init.py: lmn_crontab loaded
2022-11-18 17:04:40,682 INFO : lmn_websession.init.py: lmn_websession loaded
2022-11-18 17:04:40,685 INFO : lmn_clients.init.py: lmn_clients loaded
2022-11-18 17:04:40,689 INFO : lmn_vdi_dashboard.init.py: lmn_vdi_dashboard loaded
2022-11-18 17:04:40,702 INFO : lmn_links.init.py: lmn_links loaded
2022-11-18 17:04:40,788 INFO : lmn_landing.init.py: lmn_landing loaded
2022-11-18 17:04:40,796 INFO : Loaded 34 plugins
2022-11-18 17:04:40,796 INFO : Binding to [0.0.0.0]:80
2022-11-18 17:04:40,803 INFO : No secret found, generating new secret key
2022-11-18 17:04:40,821 INFO : New worker „restricted session“ PID 10519, EUID 0, EGID 0
2022-11-18 17:04:40,822 INFO : Worker 10519 is demoting to UID 65534 / GID 65534…
2022-11-18 17:04:40,822 INFO : …done, new EUID 65534 EGID 65534
- WebUI ist via Browser über http://10.0.0.1 erreichbar.
- Reboot
- Nach dem Reboot
root@server:~# systemctl status linuxmuster-webui.service
● linuxmuster-webui.service - linuxmuster.net WebUI
Loaded: loaded (/lib/systemd/system/linuxmuster-webui.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2022-11-18 17:08:39 CET; 24s ago
Process: 585 ExecStart=/usr/bin/python3 /usr/local/bin/ajenti-panel -d --stock-plugins --plugins /usr/lib/linuxmuster-webui/plugins (code=exited, stat
Main PID: 663 (code=exited, status=1/FAILURE)
Nov 18 17:08:39 server.linuxmuster.lan systemd[1]: Starting linuxmuster.net WebUI…
Nov 18 17:08:39 server.linuxmuster.lan systemd[1]: Started linuxmuster.net WebUI.
Nov 18 17:08:39 server.linuxmuster.lan systemd[1]: linuxmuster-webui.service: Main process exited, code=exited, status=1/FAILURE
Nov 18 17:08:39 server.linuxmuster.lan systemd[1]: linuxmuster-webui.service: Failed with result ‚exit-code‘.
→ kein Zugriff auf die WebUI via Browser mti http://10.0.0.1
8. root@server:~# ajenti-panel --dev
18.11.2022 17:10:35 [… 1714] DEBUG Registering [aj.api.http.HttpMiddleware] (interface)
18.11.2022 17:10:35 [… 1714] DEBUG Registering [aj.api.http.HttpMasterMiddleware] (interface)
18.11.2022 17:10:35 [… 1714] DEBUG Registering [aj.api.http.HttpPlugin] (interface)
18.11.2022 17:10:35 [… 1714] DEBUG Registering [aj.api.http.SocketEndpoint] (interface)
18.11.2022 17:10:35 [… 1714] DEBUG Registering [aj.security.verifier.ClientCertificateVerificator] (service)
18.11.2022 17:10:35 [… 1714] DEBUG Registering [aj.auth.AuthenticationMiddleware] (service)
18.11.2022 17:10:35 [… 1714] DEBUG Registering [aj.auth.AuthenticationProvider] (interface)
18.11.2022 17:10:35 [… 1714] DEBUG Registering [aj.auth.OSAuthenticationProvider] (implementation of [aj.auth.AuthenticationProvider])
18.11.2022 17:10:35 [… 1714] DEBUG Registering [aj.auth.AuthenticationService] (service)
18.11.2022 17:10:35 [… 1714] DEBUG Registering [aj.auth.PermissionProvider] (interface)
Traceback (most recent call last):
File „/usr/local/bin/ajenti-panel“, line 135, in
log_level=log_level,
File „/usr/local/lib/python3.6/dist-packages/aj/entry.py“, line 37, in start
import aj.core
File „/usr/local/lib/python3.6/dist-packages/aj/core.py“, line 24, in
from aj.security.pwreset import PasswordResetMiddleware
File „/usr/local/lib/python3.6/dist-packages/aj/security/pwreset.py“, line 9, in
from aj.api.mail import Mail
File „/usr/local/lib/python3.6/dist-packages/aj/api/mail.py“, line 7, in
from jinja2 import Template
ModuleNotFoundError: No module named ‚jinja2‘
9. pip3 install jinja2
10. sudo systemctl start linuxmuster-webui.service
root@server:~# systemctl status linuxmuster-webui.service
● linuxmuster-webui.service - linuxmuster.net WebUI
Loaded: loaded (/lib/systemd/system/linuxmuster-webui.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2022-11-18 17:12:52 CET; 13s ago
Process: 1944 ExecStart=/usr/bin/python3 /usr/local/bin/ajenti-panel -d --stock-plugins --plugins /usr/lib/linuxmuster-webui/plugins (code=exited, sta
Main PID: 1946 (code=exited, status=1/FAILURE)
Nov 18 17:12:52 server.linuxmuster.lan systemd[1]: Starting linuxmuster.net WebUI…
Nov 18 17:12:52 server.linuxmuster.lan systemd[1]: linuxmuster-webui.service: Can’t open PID file /var/run/ajenti.pid (yet?) after start: No such file o
Nov 18 17:12:52 server.linuxmuster.lan systemd[1]: Started linuxmuster.net WebUI.
Nov 18 17:12:52 server.linuxmuster.lan systemd[1]: linuxmuster-webui.service: Main process exited, code=exited, status=1/FAILURE
Nov 18 17:12:52 server.linuxmuster.lan systemd[1]: linuxmuster-webui.service: Failed with result ‚exit-code‘.
Fehlt Dir noch etwas ?
Ich kann also nach Ausführung von lmn-prepare direkt mit der WebUI das Setup ausführen. Nach dem Reboot des Servers - wie es eiegntlich vorgesehen ist nicht.
VG
Chris