[ Traceback (most recent call last):
File "/opt/rockstor/src/rockstor/rest_framework_custom/generic_view.py", line 40, in _handle_exception
yield
File "/opt/rockstor/src/rockstor/storageadmin/views/samba.py", line 156, in post
self._restart_samba()
File "/opt/rockstor/src/rockstor/storageadmin/views/samba.py", line 52, in _restart_samba
restart_samba(hard=True)
File "/opt/rockstor/src/rockstor/system/samba.py", line 146, in restart_samba
run_command([SYSTEMCTL, mode, 'smb'])
File "/opt/rockstor/src/rockstor/system/osi.py", line 103, in run_command
raise CommandException(cmd, out, err, rc)
CommandException: Error running a command. cmd = ['/usr/bin/systemctl', 'restart', 'smb']. rc = 1. stdout = ['']. stderr = ['Job for smb.service failed because the control process exited with error code. See "systemctl status smb.service" and "journalctl -xe" for details.', '']
Using username "root".
Last login: Wed Oct 19 14:15:53 2016 from gpworkstation.fritz.box
[root@gphomeserver2 ~]# journalctl -xe
-- Subject: A new session 3 has been created for user root
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat
--
-- A new session with the ID 3 has been created for the user root.
--
-- The leading process of the session is 7474.
Okt 19 15:36:16 gphomeserver2 systemd[1]: Started Session 3 of user root.
-- Subject: Unit session-3.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-3.scope has finished starting up.
--
-- The start-up result is done.
Okt 19 15:36:16 gphomeserver2 systemd[1]: Starting Session 3 of user root.
-- Subject: Unit session-3.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-3.scope has begun starting up.
Okt 19 15:36:16 gphomeserver2 sshd[7474]: pam_unix(sshd:session): session opened
[root@gphomeserver2 ~]# journalctl -xe
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nmb.service has finished starting up.
--
-- The start-up result is done.
Okt 19 15:38:58 gphomeserver2 systemd[1]: Starting Samba SMB Daemon...
-- Subject: Unit smb.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit smb.service has begun starting up.
Okt 19 15:38:58 gphomeserver2 systemd[1]: smb.service: main process exited, code
Okt 19 15:38:58 gphomeserver2 systemd[1]: Failed to start Samba SMB Daemon.
-- Subject: Unit smb.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit smb.service has failed.
--
-- The result is failed.
Okt 19 15:38:58 gphomeserver2 systemd[1]: Unit smb.service entered failed state.
Okt 19 15:38:58 gphomeserver2 systemd[1]: smb.service failed.
[root@gphomeserver2 ~]# -- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit smb.service has failed.
--
-- The result is failed.
Okt 19 15:38:58 gphomeserver2 systemd[1]: Unit smb.service entered failed state.
Okt 19 15:38:58 gphomeserver2 systemd[1]: smb.service failed.-bash: --: Kommando nicht gefunden.
Hello @Flyer at this time I’ve a new problem. After install MariaDB, I can’t connect to any service nor webui. And system restore option, tell me, after a short time, that there are no linux filesystems found.
And these errormessage came at start samba too.
I think I must reinstall rockstor and patch it again. Please stay tuned
[2016/10/19 19:26:33, 0] ../source3/smbd/server.c:1241(main)
smbd version 4.2.10 started.
Copyright Andrew Tridgell and the Samba Team 1992-2014
[2016/10/19 19:26:34.900338, 0] ../lib/util/become_daemon.c:124(daemon_ready)
STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2016/10/19 19:26:34.911622, 0] ../source3/printing/print_cups.c:151(cups_connect)
Unable to connect to CUPS server localhost:631 - Der Socket ist nicht verbunden
[2016/10/19 19:26:34.911784, 0] ../source3/printing/print_cups.c:529(cups_async_callback)
failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2016/10/19 19:35:35.352846, 0] ../source3/printing/print_cups.c:151(cups_connect)
Unable to connect to CUPS server localhost:631 - Der Socket ist nicht verbunden
[2016/10/19 19:35:35.353411, 0] ../source3/printing/print_cups.c:529(cups_async_callback)
failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2016/10/19 19:48:35.962379, 0] ../source3/printing/print_cups.c:151(cups_connect)
Unable to connect to CUPS server localhost:631 - Der Socket ist nicht verbunden
[2016/10/19 19:48:35.964158, 0] ../source3/printing/print_cups.c:529(cups_async_callback)
failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2016/10/19 19:53:32.850686, 0] ../lib/util/pidfile.c:153(pidfile_unlink)
Failed to delete pidfile /run/smbd.pid. Error was Datei oder Verzeichnis nicht gefunden
[2016/10/19 19:53:32, 0] ../source3/smbd/server.c:1241(main)
smbd version 4.2.10 started.
Copyright Andrew Tridgell and the Samba Team 1992-2014
[2016/10/19 19:53:32, 0] ../source3/smbd/server.c:1256(main)
error opening config file '/etc/samba/smb.conf'
[2016/10/19 19:55:36, 0] ../source3/smbd/server.c:1241(main)
smbd version 4.2.10 started.
Copyright Andrew Tridgell and the Samba Team 1992-2014
[2016/10/19 19:55:36, 0] ../source3/smbd/server.c:1256(main)
error opening config file '/etc/samba/smb.conf'
[2016/10/19 21:24:50, 0] ../source3/smbd/server.c:1241(main)
smbd version 4.2.10 started.
Copyright Andrew Tridgell and the Samba Team 1992-2014
[2016/10/19 21:24:50, 0] ../source3/smbd/server.c:1256(main)
error opening config file '/etc/samba/smb.conf'
No, Samba will not start. Not in the WebUI and also not at the console.
[root@gphomeserver2 ~]# cat /etc/samba/smb.conf
[global]
workgroup = HOMEOFFICE
log file = /var/log/samba/log.%m
log level = 3
load printers = no
cups options = raw
printcap name = /dev/null
[root@gphomeserver2 ~]# testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
# Global parameters
[global]
workgroup = HOMEOFFICE
log file = /var/log/samba/log.%m
load printers = No
printcap name = /dev/null
idmap config * : backend = tdb
cups options = raw
Hi @Uwe_Ganswig you don’t have errors because errors are inside systemctl restart eheh
…but having no systemctl smb and nmb don’t restart (that’s why you don’t have samba)
It’s really strange, actually had my dev env out of Active Directory running simple samba and it seems fine. Are you on stable branch or testing branch?