Your hostname is too long.
Right you are! A clean install with a shorter host name did the trick!
Your hostname is too long.
Right you are! A clean install with a shorter host name did the trick!
I'm having a very similar issue on a fresh Raspbian install with a Raspberry Pi 4. Looks like salt is again the problem. It occurs when I try to enable SBM and apply the configuration change. Annoyingly, the SBM share works perfectly, but I can't apply the change.
Anyone find a solution to this?
Error #0:
OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; omv-salt deploy run samba 2>&1' with exit code '1': /usr/lib/python3/dist-packages/salt/utils/path.py:265: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
if not isinstance(exes, collections.Iterable):
shn-nas-raspberry-pi:
----------
ID: configure_samba_global
Function: file.managed
Name: /etc/samba/smb.conf
Result: True
Comment: File /etc/samba/smb.conf updated
Started: 08:08:04.447250
Duration: 151.626 ms
Changes:
----------
diff:
---
+++
@@ -40,4 +40,3 @@
write cache size = 524288
getwd cache = yes
socket options = TCP_NODELAY IPTOS_LOWDELAY
-#======================= Share Definitions =======================
----------
ID: configure_samba_shares
Function: file.append
Name: /etc/samba/smb.conf
Result: True
Comment: Appended 1 lines
Started: 08:08:04.599213
Duration: 142.485 ms
Changes:
----------
diff:
---
+++
@@ -40,3 +40,4 @@
write cache size = 524288
getwd cache = yes
socket options = TCP_NODELAY IPTOS_LOWDELAY
+#======================= Share Definitions =======================
----------
ID: configure_samba_recyclebin_cron
Function: file.managed
Name: /etc/cron.daily/openmediavault-samba-recycle
Result: True
Comment: File /etc/cron.daily/openmediavault-samba-recycle is in the correct state
Started: 08:08:04.742002
Duration: 4.603 ms
Changes:
----------
ID: remove_samba_recyclebin_cron_scripts
Function: module.run
Result: True
Comment: file.find: []
Started: 08:08:04.748111
Duration: 1.829 ms
Changes:
----------
file.find:
----------
ID: configure_default_wsdd
Function: file.managed
Name: /etc/default/wsdd
Result: True
Comment: File /etc/default/wsdd is in the correct state
Started: 08:08:04.750228
Duration: 6.51 ms
Changes:
----------
ID: test_samba_service_config
Function: cmd.run
Name: samba-tool testparm --suppress-prompt
Result: False
Comment: Command "samba-tool testparm --suppress-prompt" run
Started: 08:08:04.758398
Duration: 204.32 ms
Changes:
----------
pid:
19438
retcode:
255
stderr:
netbios name SHN-NAS-RASPBERRY-PI is not a valid netbios name
ERROR: Invalid smb.conf
stdout:
# Global parameters
[global]
disable spoolss = Yes
encrypt passwords = Yes
getwd cache = Yes
guest account = nobody
log file = /var/log/samba/log.%m
logging = syslog
log level = 0
max log size = 1000
min receivefile size = 16384
pam password change = Yes
panic action = /usr/share/samba/panic-action %d
passdb backend = tdbsam
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
passwd program = /usr/bin/passwd %u
printcap name = /dev/null
server string = %h server
socket options = TCP_NODELAY IPTOS_LOWDELAY
unix extensions = Yes
workgroup = WORKGROUP
fruit:aapl = yes
aio read size = 16384
aio write size = 16384
create mask = 0777
directory mask = 0777
use sendfile = Yes
write cache size = 524288
----------
ID: start_samba_service
Function: service.running
Name: smbd
Result: False
Comment: One or more requisite failed: omv.deploy.samba.default.test_samba_service_config
Started: 08:08:04.988897
Duration: 0.021 ms
Changes:
----------
ID: start_samba_service_nmbd
Function: service.running
Name: nmbd
Result: False
Comment: One or more requisite failed: omv.deploy.samba.default.start_samba_service
Started: 08:08:04.989722
Duration: 0.012 ms
Changes:
----------
ID: start_wsdd_service
Function: service.running
Name: wsdd
Result: True
Comment: The service wsdd is already running
Started: 08:08:04.989851
Duration: 86.218 ms
Changes:
Summary for shn-nas-raspberry-pi
------------
Succeeded: 6 (changed=4)
Failed: 3
------------
Total states run: 9
Total run time: 597.624 ms in /usr/share/php/openmediavault/system/process.inc:182
Stack trace:
#0 /usr/share/php/openmediavault/engine/module/serviceabstract.inc(60): OMV\System\Process->execute()
#1 /usr/share/openmediavault/engined/rpc/config.inc(167): OMV\Engine\Module\ServiceAbstract->deploy()
#2 [internal function]: Engined\Rpc\Config->applyChanges(Array, Array)
#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
#5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(588): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusvn...', '/tmp/bgoutput19...')
#6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#7 /usr/share/openmediavault/engined/rpc/config.inc(189): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
#8 [internal function]: Engined\Rpc\Config->applyChangesBg(Array, Array)
#9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#10 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
#11 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
#12 {main}
Alles anzeigen