Hello everyone,
Today i put a new ssd in my OMV server. i cloned the the harddrive succesfully and OMV started as well without any problems. After that i updated all packages.
Then i logged into the webinterface and there was the first problem. I was in a login loop.
So i tried some solutions from the internet and got it to work again.
But then i discoverd the next problem, samba isn't running.
When i change anything in the smb/cifs settigs i alwais get this error when i hit apply:
Code
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; omv-salt deploy run --no-color samba 2>&1' with exit code '1': debian:
The command "systemctl status smbd.service" gives me this output:
Code
smbd.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2022-08-30 23:39:52 CEST; 2s ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 59398 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (code=exited, status=0/SUCCESS)
Process: 59402 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=1/FAILURE)
Main PID: 59402 (code=exited, status=1/FAILURE)
Status: "daemon failed to start: Samba cannot init registry"
Error: 13 (Keine Berechtigung)
CPU: 111ms
Aug 30 23:39:52 SERVER-FABIAN smbd[59402]: tdb(/var/lib/samba/registry.tdb): tdb_rec_free_read bad magic 0x0 at offset=421888
Aug 30 23:39:52 SERVER-FABIAN smbd[59402]: [2022/08/30 23:39:52.158584, 0] ../../source3/registry/reg_backend_db.c:1177(regdb_store_subkey_list)
Aug 30 23:39:52 SERVER-FABIAN smbd[59402]: regdb_store_keys: Failed to store new record for key [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Group Policy]: WERR_INTERNAL_DB_CORRUPTION
Aug 30 23:39:52 SERVER-FABIAN smbd[59402]: [2022/08/30 23:39:52.158627, 0] ../../source3/registry/reg_init_basic.c:51(registry_init_common)
Aug 30 23:39:52 SERVER-FABIAN smbd[59402]: Failed to initialize data in registry!
Aug 30 23:39:52 SERVER-FABIAN smbd[59402]: [2022/08/30 23:39:52.158716, 0] ../../lib/util/become_daemon.c:121(exit_daemon)
Aug 30 23:39:52 SERVER-FABIAN smbd[59402]: exit_daemon: daemon failed to start: Samba cannot init registry, error code 13
Aug 30 23:39:52 SERVER-FABIAN systemd[1]: smbd.service: Main process exited, code=exited, status=1/FAILURE
Aug 30 23:39:52 SERVER-FABIAN systemd[1]: smbd.service: Failed with result 'exit-code'.
Aug 30 23:39:52 SERVER-FABIAN systemd[1]: Failed to start Samba SMB Daemon.
Alles anzeigen
i tried everithing but noting seems to work
I hope someone can help me and can offer some suggestions.
Thanks a lot,
Fabian