mrmarkuz
(Markus Neuberger)
February 27, 2022, 12:11pm
41
Maybe try to reinstall nethserver-dc to recover the lost service file:
yum reinstall nethserver-dc
If that didn’t work, you could manually recreate /usr/lib/systemd/system/nsdc.service
:
[Unit]
Description=NethServer Domain Controller container
Documentation=man:systemd-nspawn(1)
PartOf=machines.target
Before=machines.target
Before=sssd.service
After=network.service
Wants=network.service
ConditionPathExists=!/var/run/.nethserver-fixnetwork
ConditionPathExists=/var/lib/machines/nsdc/etc/centos-release
[Service]
Environment=OPTIONS=
Environment=BRIDGE=brdef
EnvironmentFile=-/etc/sysconfig/nsdc
ExecStart=/usr/bin/systemd-nspawn --quiet --keep-unit --boot --network-bridge=${BRIDGE} --machine=nsdc ${OPTIONS}
ExecReload=/usr/bin/systemctl -M nsdc daemon-reload
ExecReload=/usr/bin/systemctl -M nsdc restart samba-provision.service samba.service
KillMode=mixed
Type=notify
RestartForceExitStatus=133
SuccessExitStatus=133
Slice=machine.slice
Delegate=yes
[Install]
WantedBy=machines.target
and apply the new service:
systemctl daemon-reload
Hi mrmarkuz,
reinstall is not possible.
[root@dc01 ~]# yum reinstall nethserver-dc
Loaded plugins: changelog, fastestmirror, nethserver_events
No Match for argument: nethserver-dc
Loading mirror speeds from cached hostfile
mrmarkuz
(Markus Neuberger)
February 27, 2022, 12:28pm
43
OK, it seems nethserver-dc was removed too.
Let’s try to install:
yum install nethserver-dc
1 Like
Ok, now groups and users are back again in cockpit. But clamscan fileserver, fali2ban and some other applications are missing.
mrmarkuz
(Markus Neuberger)
February 27, 2022, 12:40pm
45
You could install the missing applications manually or restore a config backup to reinstall the packages.
I have a backup of the config.
With or without recreate of network configuration?
mrmarkuz
(Markus Neuberger)
February 27, 2022, 12:52pm
47
With, just keep defaults.
EDIT:
Maybe you still need to install community packages manually…not sure.
I will see. Restore of config is running now.
1 Like
Restore of config is finished now. But like before no fileserver and other applications are there.
mrmarkuz
(Markus Neuberger)
February 27, 2022, 1:12pm
50
Did you restore a config backup from a time where everything was ok?
Yes, backup was from last friday. But i can reinstall the components again from softwarecenter. Done with samba and the fileserver is up again now.
mrmarkuz, thank you from the bottom of my heart. I have reinstalled the missing components by hand and it looks like everything is working again. Without you I greenhorn would not have gotten this to work again. Thank you a thousand times!
Uwe
2 Likes