3.8-14.03 broke Samba

I upgraded to 3.8-14.03 on two different Rockstor servers. Both broke Samba. The following is the error received when going to the Samba page:

        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/smart_manager/views/samba_service.py”, line 44, in get
config = get_global_config()
File “/opt/rockstor/src/rockstor/system/samba.py”, line 179, in get_global_config
config[fields[0].strip()] = fields[1].strip()
IndexError: list index out of range

I’m seeing the same. Samba still works, just not configurable.

I can’t even get it samba to work again. I assume it is off.

Can start it from the webui: System --> Services. Or ssh and type: systemctl start smb

Hi @rockstoruser24 and @grizzly , think this can be linked to latest samba mods, so better call @suman

Flyer

@suman

This broke Samba on my install also.

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/smart_manager/views/samba_service.py”, line 44, in get
config = get_global_config()
File “/opt/rockstor/src/rockstor/system/samba.py”, line 179, in get_global_config
config[fields[0].strip()] = fields[1].strip()
IndexError: list index out of range

I can still access the shares, but not configure anything.

Just having a quick look at this and it seems it’s tripping up on the indented comments within the [GLOBAL] section.

[09/Jul/2016 18:38:10] DEBUG [system.samba:182] FIELDS = ['workgroup ', ' mygroup']
[09/Jul/2016 18:38:10] DEBUG [system.samba:183] LEN OF FIELDS = 2
[09/Jul/2016 18:38:10] DEBUG [system.samba:182] FIELDS = ['server string ', ' Samba Server Version %v']
[09/Jul/2016 18:38:10] DEBUG [system.samba:183] LEN OF FIELDS = 2
[09/Jul/2016 18:38:10] DEBUG [system.samba:182] FIELDS = [';\tnetbios name ', ' MYSERVER']
[09/Jul/2016 18:38:10] DEBUG [system.samba:183] LEN OF FIELDS = 2
[09/Jul/2016 18:38:10] DEBUG [system.samba:182] FIELDS = [';\tinterfaces ', ' lo eth0 192.168.12.2/24 192.168.13.2/24']
[09/Jul/2016 18:38:10] DEBUG [system.samba:183] LEN OF FIELDS = 2
[09/Jul/2016 18:38:10] DEBUG [system.samba:182] FIELDS = [';\thosts allow ', ' 127. 192.168.12. 192.168.13.']
[09/Jul/2016 18:38:10] DEBUG [system.samba:183] LEN OF FIELDS = 2
[09/Jul/2016 18:38:10] DEBUG [system.samba:182] FIELDS = [';\tmax protocol ', ' SMB2']
[09/Jul/2016 18:38:10] DEBUG [system.samba:183] LEN OF FIELDS = 2
[09/Jul/2016 18:38:10] DEBUG [system.samba:182] FIELDS = ['# log files split per-machine:']
[09/Jul/2016 18:38:10] DEBUG [system.samba:183] LEN OF FIELDS = 1
[09/Jul/2016 18:38:10] ERROR [storageadmin.util:47] exception: list index out of range
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/smart_manager/views/samba_service.py", line 44, in get
    config = get_global_config()
  File "/opt/rockstor/src/rockstor/system/samba.py", line 186, in get_global_config
    config[fields[0].strip()] = fields[1].strip()
IndexError: list index out of range
[09/Jul/2016 18:38:10] DEBUG [storageadmin.util:48] Current Rockstor version: 3.8-14.03

Linking to the active issue kindly opened by @Mazo on GitHub:

@rockstoruser24, @grizzly, @Flyer, @KarstenV Thanks all and by way of a quick update: the issue already opened and referenced for this problem now has a pending pull request (code change) against it so hopefully after review by @suman a fix should be available shortly. Thanks for your patience on this one and for promptly reporting.

1 Like

I’m having the same issue. I cant access anything on my samba share nor can I access anything via the emby plugin I use. A patch is desperate needed. plez halp

@Blake_Mcconahy Welcome to the Rockstor community and yes I think the fix for this should be out very shortly, just needs to be double checked first and then released.

@rockstoruser24, @grizzly, @Blake_Mcconahy As you are probably already aware the fix for this issue has now been released as of Rockstor version 3.8-14.04 testing channel updates released yesterday.

Thanks for the support but I have bigger problems now. It wont even boot into rockstor properly. Its giving me an error on startup that says “entering emergency mode. Exit the shell to continue.” I cannot acess the web ui. Its says I need to type journalctl to show an error report. It then lists 1014 lines with various ones being red. I will post the error report on a different thread due to its size.