[SOLVED] Error running a command. cmd at samba share screen

Samba is 4.2.10 too and the network is static

[root@gphomeserver2 ~]# tail -n 100 /var/log/samba/log.smbd
[2016/10/21 19:46:47.214369,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2016/10/21 19:46:47.227972,  0] ../source3/printing/print_cups.c:151(cups_connect)
  Unable to connect to CUPS server localhost:631 - Der Socket ist nicht verbunden
[2016/10/21 19:46:47.229002,  0] ../source3/printing/print_cups.c:529(cups_async_callback)
  failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2016/10/21 19:53:47.600824,  0] ../source3/printing/print_cups.c:151(cups_connect)
  Unable to connect to CUPS server localhost:631 - Der Socket ist nicht verbunden
[2016/10/21 19:53:47.601036,  0] ../source3/printing/print_cups.c:529(cups_async_callback)
  failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2016/10/21 20:06:48.259571,  0] ../source3/printing/print_cups.c:151(cups_connect)
  Unable to connect to CUPS server localhost:631 - Der Socket ist nicht verbunden
[2016/10/21 20:06:48.260063,  0] ../source3/printing/print_cups.c:529(cups_async_callback)
  failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2016/10/21 20:09:15.503022,  0] ../lib/util/pidfile.c:153(pidfile_unlink)
  Failed to delete pidfile /run/smbd.pid. Error was Datei oder Verzeichnis nicht gefunden
[2016/10/21 20:09:40,  0] ../source3/smbd/server.c:1241(main)
  smbd version 4.2.10 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2014
[2016/10/21 20:09:40.735791,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2016/10/21 20:09:40.740626,  0] ../source3/printing/print_cups.c:151(cups_connect)
  Unable to connect to CUPS server localhost:631 - Der Socket ist nicht verbunden
[2016/10/21 20:09:40.740704,  0] ../source3/printing/print_cups.c:529(cups_async_callback)
  failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2016/10/21 20:10:40.774434,  0] ../source3/printing/print_cups.c:151(cups_connect)
  Unable to connect to CUPS server localhost:631 - Der Socket ist nicht verbunden
[2016/10/21 20:10:40.776027,  0] ../source3/printing/print_cups.c:529(cups_async_callback)
  failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2016/10/21 20:23:41.428054,  0] ../source3/printing/print_cups.c:151(cups_connect)
  Unable to connect to CUPS server localhost:631 - Der Socket ist nicht verbunden
[2016/10/21 20:23:41.429088,  0] ../source3/printing/print_cups.c:529(cups_async_callback)
  failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2016/10/21 20:36:42.061556,  0] ../source3/printing/print_cups.c:151(cups_connect)
  Unable to connect to CUPS server localhost:631 - Der Socket ist nicht verbunden
[2016/10/21 20:36:42.061959,  0] ../source3/printing/print_cups.c:529(cups_async_callback)
  failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2016/10/21 20:49:42.630931,  0] ../source3/printing/print_cups.c:151(cups_connect)
  Unable to connect to CUPS server localhost:631 - Der Socket ist nicht verbunden
[2016/10/21 20:49:42.631121,  0] ../source3/printing/print_cups.c:529(cups_async_callback)
  failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2016/10/21 20:58:44.505054,  0] ../lib/util/pidfile.c:153(pidfile_unlink)
  Failed to delete pidfile /run/smbd.pid. Error was Datei oder Verzeichnis nicht gefunden
[2016/10/21 20:59:58,  0] ../source3/smbd/server.c:1241(main)
  smbd version 4.2.10 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2014
[2016/10/21 20:59:58.372625,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2016/10/21 20:59:58.399960,  0] ../source3/printing/print_cups.c:151(cups_connect)
  Unable to connect to CUPS server localhost:631 - Der Socket ist nicht verbunden
[2016/10/21 20:59:58.400163,  0] ../source3/printing/print_cups.c:529(cups_async_callback)
  failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2016/10/21 21:08:35.479190,  0] ../lib/util/pidfile.c:153(pidfile_unlink)
  Failed to delete pidfile /run/smbd.pid. Error was Datei oder Verzeichnis nicht gefunden
[2016/10/21 21:09:49,  0] ../source3/smbd/server.c:1241(main)
  smbd version 4.2.10 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2014
[2016/10/21 21:09:49.371019,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2016/10/21 21:09:49.376054,  0] ../source3/printing/print_cups.c:151(cups_connect)
  Unable to connect to CUPS server localhost:631 - Der Socket ist nicht verbunden
[2016/10/21 21:09:49.376726,  0] ../source3/printing/print_cups.c:529(cups_async_callback)
  failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2016/10/21 21:11:07.439587,  0] ../lib/util/pidfile.c:153(pidfile_unlink)
  Failed to delete pidfile /run/smbd.pid. Error was Datei oder Verzeichnis nicht gefunden
[2016/10/21 21:11:07,  0] ../source3/smbd/server.c:1241(main)
  smbd version 4.2.10 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2014
[2016/10/21 21:11:07,  0] ../source3/smbd/server.c:1256(main)
  error opening config file '/etc/samba/smb.conf'
[2016/10/21 21:15:51,  0] ../source3/smbd/server.c:1241(main)
  smbd version 4.2.10 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2014
[2016/10/21 21:15:51,  0] ../source3/smbd/server.c:1256(main)
  error opening config file '/etc/samba/smb.conf'
[2016/10/22 10:16:14,  0] ../source3/smbd/server.c:1241(main)
  smbd version 4.2.10 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2014
[2016/10/22 10:16:14,  0] ../source3/smbd/server.c:1256(main)
  error opening config file '/etc/samba/smb.conf'
[2016/10/22 12:28:27,  0] ../source3/smbd/server.c:1241(main)
  smbd version 4.2.10 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2014
[2016/10/22 12:28:27,  0] ../source3/smbd/server.c:1256(main)
  error opening config file '/etc/samba/smb.conf'
[2016/10/22 12:55:18,  0] ../source3/smbd/server.c:1241(main)
  smbd version 4.2.10 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2014
[2016/10/22 12:55:18,  0] ../source3/smbd/server.c:1256(main)
  error opening config file '/etc/samba/smb.conf'
[2016/10/22 12:57:28,  0] ../source3/smbd/server.c:1241(main)
  smbd version 4.2.10 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2014
[2016/10/22 12:57:28,  0] ../source3/smbd/server.c:1256(main)
  error opening config file '/etc/samba/smb.conf'
[2016/10/22 13:12:23,  0] ../source3/smbd/server.c:1241(main)
  smbd version 4.2.10 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2014
[2016/10/22 13:12:23,  0] ../source3/smbd/server.c:1256(main)
  error opening config file '/etc/samba/smb.conf'

Adding local master = no did not work

     Traceback (most recent call last):
  File "/opt/rockstor/src/rockstor/smart_manager/views/samba_service.py", line 84, in post
    restart_samba(hard=True)
  File "/opt/rockstor/src/rockstor/system/samba.py", line 228, in restart_samba
    run_command([SYSTEMCTL, mode, 'smb'])
  File "/opt/rockstor/src/rockstor/system/osi.py", line 109, 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.', '']

Ok, I’ve open smb.conf with WinSCP and can see that changes are made. But the WebUI open the error box

What happens if you systemctl restart smb via shell??

[root@gphomeserver2 ~]# systemctl restart smb
Job for smb.service failed because the control process exited with error code. See “systemctl status smb.service” and “journalctl -xe” for details.

Uhmmm
did you had some mods over smb.conf via winscp or any window editor / copy&paste from win to shell ?

I use putty to do changes or copy/paste operations. The shell in the webui does not accept my root password.

Let’s have another test:
from the shell
file /etc/samba/smb.conf +
ls -l /etc/samba/smb.conf

/etc/samba/smb.conf: ASCII text
[root@gphomeserver2 ~]# ls -l /etc/samba/smb.conf
-rw------. 1 root root 305 22. Okt 14:09 /etc/samba/smb.conf

Please have a look to the followed movie:

http://www.computerganzeasy.de/media/rockstor_sftp.mp4

The status of sftp isn’t stored

Ok, smb.conf is a good ASCII text file, so not related to that; perms seem right too

Big big test:
edit /etc/locale.conf and change to LANG=en_US.UTF-8
reboot
Check if samba & others run or not

Actually smb.conf file seems ok, all seem ok, maybe still related to locale?? let’s check it

If all fails with en_US too, finally that’s not Rockstor related
M.

Ok, I do reinstall rockstore as en_US instead of de_DE.

OK, I’ve reinstalled rockstor in BIOS mode instead of UEFI and with en-US locale. All works fine. But the WebUI shell does not accept my root password. :wink:

1 Like

Ok, that’s a good starting point :smiley:

WebUI shell: carefully config it, default config doesn’t allow root login, you have to use your rockstor user & su. To enable root direct access you have to click on the wrench and change access type.

Locale: apply patch (do you remember?), apply the “workaround”, via shell change /etc/locale.conf to LANG=de_DE.UTF-8, reboot and check if samba is working ? (I hope/think it will and probably all of this related to that UEFI non legacy bios & net nic)

M.

2 Likes

Thank you for the long-term help. Rockstor rocks (if one knows how :blush: ).

If there is any plan to translate Rockstor in the future, the Rockstor team is welcome to contact me.

[SOLVED]

1 Like

Good morning @Uwe_Ganswig,
I assume you had a new installation then moved to de_DE with that trick from my last post, so marking this SOLVED :slight_smile:

With next Rockstor release patch and workaround will be on code, so user actions no more required.
Finally I can say this issue was uefi bios related and not on Rockstor side :smiley:

My suggestion : once again, remember to move that r8169 to r8168 (or change nic, disabling the onboard!), believe me.

Mirko

Good Morning @Flyer

Yes new installation, patched and moved to de_DE :smiley:

Thanks again.

Bitte!! :stuck_out_tongue:

1 Like