Status: "daemon failed to start: Samba detected misconfigured 'server role' and exited

I have tried a reinstall and a reboot but still getting this error.
Any help would be welcome.

Here is my setup and the install and error messages in full.

Thanks :slight_smile:

System: Host: ddocu-web Kernel: 5.4.59-1-MANJARO-ARM aarch64 bits: 64
parameters: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1
snd_bcm2835.enable_headphones=1 video=HDMI-A-1:1360x768M@60 smsc95xx.macaddr=DC:A6:32:1F:F6:49
vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 root=LABEL=ROOT_MNJRO rw rootwait console=ttyS0,115200
console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=ttyS0,115200
elevator=noop usbhid.mousepoll=8 snd-bcm2835.enable_compat_alsa=0
Desktop: i3 4.18.2 Distro: Manjaro ARM
Machine: Type: ARM Device System: Raspberry Pi 4 Model B Rev 1.1 details: BCM2835 rev: c03111 serial:
CPU: Topology: Quad Core model: N/A variant: cortex-a72 bits: 64 type: MCP family: 8 model-id: N/A stepping: 3
microcode: N/A
Speed: 600 MHz min/max: 600/1500 MHz Core speeds (MHz): 1: 600 2: 600 3: 600 4: 600
Vulnerabilities: Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass status: Vulnerable
Type: spectre_v1 mitigation: __user pointer sanitization
Type: spectre_v2 status: Vulnerable
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics: Device-1: bcm2711-vc5 driver: vc4_drm v: N/A
Device-2: bcm2711-hdmi0 driver: N/A
Device-3: bcm2711-hdmi1 driver: N/A
Display: x11 server: X.Org 1.20.8 driver: fbturbo resolution: 1360x768~N/A
Message: Unable to show advanced data. Required tool glxinfo missing.
Audio: Device-1: bcm2835-audio driver: bcm2835_audio
Device-2: bcm2711-hdmi0 driver: N/A
Device-3: bcm2711-hdmi1 driver: N/A
Sound Server: ALSA v: k5.4.59-1-MANJARO-ARM
Network: Message: No ARM data found for this feature.
IF-ID-1: eth0 state: down mac:
IF-ID-2: wlan0 state: up mac:
Drives: Local Storage: total: 29.72 GiB used: 6.67 GiB (22.4%)
ID-1: /dev/mmcblk0 model: SR32G size: 29.72 GiB block size: physical: 512 B logical: 512 B
Partition: ID-1: / raw size: 29.48 GiB size: 28.96 GiB (98.23%) used: 6.63 GiB (22.9%) fs: ext4 dev: /dev/mmcblk0p2
ID-2: /boot raw size: 213.6 MiB size: 213.4 MiB (99.89%) used: 45.5 MiB (21.3%) fs: vfat dev: /dev/mmcblk0p1
Sensors: System Temperatures: cpu: 48.7 C mobo: N/A
Fan Speeds (RPM): N/A
Info: Processes: 167 Uptime: 8m Memory: 3.78 GiB used: 1.03 GiB (27.2%) gpu: 64.0 MiB Shell: bash inxi: 3.0.37

INSTALLATION MESSAGE

Preparing…
Warning: manjaro-settings-samba-20200213-1 is up to date – reinstalling
Resolving dependencies…
Checking inter-conflicts…
Checking keyring…
Checking integrity…
Loading package files…
Checking file conflicts…
Checking available disc space…
Reinstalling manjaro-settings-samba (20200213-1)…
Configuring manjaro-settings-samba…
==> Adding user ‘dave’ to user-group ‘sambashare’
==> Please add new users to ‘sambashare’ group.
Transaction successfully finished.

ERROR MESSAGE

Job for samba.service failed because the control process exited with error code.
See “systemctl status samba.service” and “journalctl -xe” for details.
[dave@ddocu-web ~]$ systemctl status samba.service
● samba.service - Samba AD Daemon
Loaded: loaded (/usr/lib/systemd/system/samba.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2020-08-30 14:35:22 BST; 20s ago
Docs: man:samba(8)
man:samba(7)
man:smb.conf(5)
Process: 1373 ExecStart=/usr/bin/samba --foreground --no-process-group $SAMBAOPTIONS (code=exited, status=1/FAILURE)
Main PID: 1373 (code=exited, status=1/FAILURE)
Status: “daemon failed to start: Samba detected misconfigured ‘server role’ and exited. Check logs for details”
Error: 22 (Invalid argument)

Aug 30 14:35:22 ddocu-web samba[1373]: Copyright Andrew Tridgell and the Samba Team 1992-2020
Aug 30 14:35:22 ddocu-web samba[1373]: [2020/08/30 14:35:22.674390, 0] …/…/source4/smbd/server.c:826(binary_smbd_main)
Aug 30 14:35:22 ddocu-web samba[1373]: At this time the ‘samba’ binary should only be used for either:
Aug 30 14:35:22 ddocu-web samba[1373]: ‘server role = active directory domain controller’ or to access the ntvfs file server with ‘server services = +smb’ or the rpc >
Aug 30 14:35:22 ddocu-web samba[1373]: You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
Aug 30 14:35:22 ddocu-web samba[1373]: [2020/08/30 14:35:22.674718, 0] …/…/lib/util/become_daemon.c:121(exit_daemon)
Aug 30 14:35:22 ddocu-web samba[1373]: exit_daemon: daemon failed to start: Samba detected misconfigured ‘server role’ and exited. Check logs for details, error code >
Aug 30 14:35:22 ddocu-web systemd[1]: samba.service: Main process exited, code=exited, status=1/FAILURE
Aug 30 14:35:22 ddocu-web systemd[1]: samba.service: Failed with result ‘exit-code’.
Aug 30 14:35:22 ddocu-web systemd[1]: Failed to start Samba AD Daemon.

https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html#SERVERROLE

Thanks for that Megavolt, I had a good read and tried a few things but still get the same error.
HOWEVER, I do have another Nix* box running Raspbian and that has a running Samba Server.
So, I can connect via Windows ( need to drag all my stuff of it ).
Can only ONE Samba Server be run on a network at any one time, is that my problem here or am I barking up the wrong tree. :dog: :deciduous_tree:

Going forward I need to run Samba on Manjaro when I replace Raspbian with Manjaro.

:slight_smile: