Discussion:
[Bug 1658273] Re: Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked.
Andreas Hasenack
2017-05-29 13:07:30 UTC
Permalink
These messages:
Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory

Are not fatal. Look at the "|| true" ending of all those calls:
deb-systemd-helper unmask samba-ad-dc.service >/dev/null || true

# was-enabled defaults to true, so new installations run enable.
if deb-systemd-helper --quiet was-enabled samba-ad-dc.service; then
# Enables the unit on first installation, creates new
# symlinks on upgrades if the unit file has changed.
deb-systemd-helper enable samba-ad-dc.service >/dev/null || true
else
# Update the statefile to add new symlinks (if any), which need to be
# cleaned up on purge. Also remove old symlinks.
deb-systemd-helper update-state samba-ad-dc.service >/dev/null || true
fi

It's confusing, and the upstream "fix" was to just echo a message asking
the administrator to ignore the error, which is a bit unfortunate:

https://anonscm.debian.org/cgit/pkg-
samba/samba.git/commit/?id=61eaeba2a7a2df61b681b4ea545811569de421d0

So back to the bug at hand.

Do you still have a crash happening, and if yes could you provide us with these files:
- /var/log/syslog
- /var/log/samba/log*
- /etc/samba/smb.conf

Then we can change the subject line of this bug and go from there.

** Changed in: samba (Ubuntu)
Status: Confirmed => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1658273

Title:
Failed to preset unit: Unit file /etc/systemd/system/samba-ad-
dc.service is masked.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1658273/+subscriptions
--
Ubuntu-server-bugs mailing list
Ubuntu-server-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
Andreas Hasenack
2017-10-04 14:16:07 UTC
Permalink
@aleandrodasilva, which error is the same? We have established that the
"Failed to preset unit" messages are harmless.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1658273

Title:
Failed to preset unit: Unit file /etc/systemd/system/samba-ad-
dc.service is masked.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1658273/+subscriptions
--
Ubuntu-server-bugs mailing list
Ubuntu-server-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists
Andreas Hasenack
2018-01-05 12:58:30 UTC
Permalink
That is expected, see comment #8. Unless your apt operation exited with
a status code other than zero, i.e., apt or dpkg actually finished with
an error.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1658273

Title:
Failed to preset unit: Unit file /etc/systemd/system/samba-ad-
dc.service is masked.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1658273/+subscriptions
--
Ubuntu-server-bugs mailing list
Ubuntu-server-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/li
Andreas Hasenack
2018-01-08 12:33:23 UTC
Permalink
It is indeed confusing, I totally agree.

Maybe we should morph this bug into that issue only. Something like
"confusing error message when not configured as AD/DC"
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1658273

Title:
Failed to preset unit: Unit file /etc/systemd/system/samba-ad-
dc.service is masked.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1658273/+subscriptions
--
Ubuntu-server-bugs mailing list
Ubuntu-server-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com
Loading...