Cannot Access SMB shares on OMV 4

    • OMV 4.x (stable)
    • Resolved
    • Cannot Access SMB shares on OMV 4

      Yes, my bad. I jumped to 4.x without backing up config files in 3.x.

      SMB is not working.

      I see it on my desktop but it will not connect. My desktop is a Mac running OSX.
      In the OMV gui, I get the following error when I click on the SMB button:

      Failed to index key 'audit' of 'audit.0' because it has no children.
      Error #0:RuntimeException: Failed to index key 'audit' of 'audit.0' because it has no children. in /usr/share/php/openmediavault/dictionary.inc:145Stack trace:#0 /usr/share/php/openmediavault/config/configobject.inc(193): OMV\Dictionary->set('audit.0', false)#1 /usr/share/php/openmediavault/config/configobject.inc(271): OMV\Config\ConfigObject->set('audit.0', false, false)#2 /usr/share/php/openmediavault/config/configobject.inc(233): OMV\Config\ConfigObject->setFlatAssoc(Array, false, false)#3 /usr/share/php/openmediavault/config/database.inc(85): OMV\Config\ConfigObject->setAssoc(Array, false)#4 /usr/share/openmediavault/engined/rpc/smb.inc(118): OMV\Config\Database->get('conf.service.sm...')#5 [internal function]: OMVRpcServiceSmb->getShareList(Array, Array)#6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)#7 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('getShareList', Array, Array)#8 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('SMB', 'getShareList', Array, Array, 1)#9 {main}

      Output of smb status:

      systemctl status smbd
      smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
      Loaded: loaded (/etc/init.d/smbd)
      Active: active (running) since Sat 2018-01-13 12:41:52 PST; 6h ago
      CGroup: /system.slice/smbd.service
      └─2574 /usr/sbin/smbd -D

      I have reviewed the OMV config file discussion from this thread: SMB / CIFS Cant see the shares. Get an error
      I don't see anything obvious in the config file related to "audit" or "smb" that looks wrong and needs editing, but I did not go over it line by line.

      In the GUI under SMB, the Shares are empty. However, if I try to add one , it says I can't because it already exists. It outputs this error;

      The configuration object 'conf.service.smb.share' is not unique. An object with the property 'sharedfolderref' and value 'd36c2417-2807-485d-b26e-f9d447fff8f5' already exists.

      Lastly, the output of omv-showkey smb is:

      root@openmediavault:/usr/share/openmediavault/templates# omv-showkey smb
      <smb>
      <enable>1</enable>
      <workgroup>WORKGROUP</workgroup>
      <serverstring>%h server</serverstring>
      <loglevel>0</loglevel>
      <usesendfile>0</usesendfile>
      <nullpasswords>0</nullpasswords>
      <localmaster>1</localmaster>
      <timeserver>0</timeserver>
      <winssupport>0</winssupport>
      <winsserver/>
      <homesenable>1</homesenable>
      <homesbrowseable>1</homesbrowseable>
      <extraoptions/>
      <shares>
      <share>
      <uuid>46b31393-9ae4-4458-a0bb-a74e8aa9a03d</uuid>
      <enable>1</enable>
      <sharedfolderref>d36c2417-2807-485d-b26e-f9d447fff8f5</sharedfolderref>
      <comment/>
      <guest>no</guest>
      <readonly>0</readonly>
      <browseable>1</browseable>
      <inheritacls>1</inheritacls>
      <inheritpermissions>0</inheritpermissions>
      <recyclebin>0</recyclebin>
      <recyclemaxsize>0</recyclemaxsize>
      <recyclemaxage>0</recyclemaxage>
      <hidedotfiles>1</hidedotfiles>
      <easupport>0</easupport>
      <storedosattributes>0</storedosattributes>
      <hostsallow/>
      <hostsdeny/>
      <audit>0</audit>
      <extraoptions/>
      </share>
      <share>
      <uuid>196110e2-e261-4401-9ce7-72fea7f699fb</uuid>
      <sharedfolderref>260cc780-3b52-440b-b1d6-a8915361f12d</sharedfolderref>
      <comment/>
      <readonly>0</readonly>
      <browseable>1</browseable>
      <inheritacls>0</inheritacls>
      <inheritpermissions>0</inheritpermissions>
      <recyclebin>0</recyclebin>
      <hidedotfiles>1</hidedotfiles>
      <easupport>0</easupport>
      <storedosattributes>0</storedosattributes>
      <hostsallow/>
      <hostsdeny/>
      <extraoptions/>
      <recyclemaxsize>0</recyclemaxsize>
      <recyclemaxage>0</recyclemaxage>
      <audit>0</audit>
      <audit>0</audit>
      <enable>1</enable>
      <guest>no</guest>
      </share>
      <share>
      <uuid>37f26223-5aae-44c5-85e3-100fb098b4b0</uuid>
      <sharedfolderref>7be3c3bc-dfa2-4e38-a5f9-eec2087015d6</sharedfolderref>
      <comment/>
      <readonly>0</readonly>
      <browseable>1</browseable>
      <inheritacls>0</inheritacls>
      <inheritpermissions>0</inheritpermissions>
      <recyclebin>0</recyclebin>
      <hidedotfiles>1</hidedotfiles>
      <easupport>0</easupport>
      <storedosattributes>0</storedosattributes>
      <hostsallow/>
      <hostsdeny/>
      <extraoptions/>
      <recyclemaxsize>0</recyclemaxsize>
      <recyclemaxage>0</recyclemaxage>
      <audit>0</audit>
      <audit>0</audit>
      <enable>1</enable>
      <guest>no</guest>
      </share>
      <share>
      <uuid>0e077ab6-c680-409e-9fd8-3f999c9451e9</uuid>
      <sharedfolderref>86c22262-39a3-456e-ad04-6e89e8dd6ba5</sharedfolderref>
      <comment/>
      <readonly>0</readonly>
      <browseable>1</browseable>
      <inheritacls>0</inheritacls>
      <inheritpermissions>0</inheritpermissions>
      <recyclebin>0</recyclebin>
      <hidedotfiles>1</hidedotfiles>
      <easupport>0</easupport>
      <storedosattributes>0</storedosattributes>
      <hostsallow/>
      <hostsdeny/>
      <extraoptions/>
      <recyclemaxsize>0</recyclemaxsize>
      <recyclemaxage>0</recyclemaxage>
      <audit>0</audit>
      <audit>0</audit>
      <enable>1</enable>
      <guest>no</guest>
      </share>
      <share>
      <uuid>6ce2d862-8ea2-42b0-aead-336cbd828ccf</uuid>
      <sharedfolderref>69cb1105-5ddb-49dc-9a69-1e9e485f9907</sharedfolderref>
      <comment/>
      <readonly>0</readonly>
      <browseable>1</browseable>
      <inheritacls>0</inheritacls>
      <inheritpermissions>0</inheritpermissions>
      <recyclebin>0</recyclebin>
      <hidedotfiles>1</hidedotfiles>
      <easupport>0</easupport>
      <storedosattributes>0</storedosattributes>
      <hostsallow/>
      <hostsdeny/>
      <extraoptions/>
      <recyclemaxsize>0</recyclemaxsize>
      <recyclemaxage>0</recyclemaxage>
      <audit>0</audit>
      <audit>0</audit>
      <enable>1</enable>
      <guest>no</guest>
      </share>
      <share>
      <uuid>f1069e01-5330-440b-8bd2-3960dc89f42f</uuid>
      <sharedfolderref>b7afef84-53da-4cb0-8e35-03002500ca1e</sharedfolderref>
      <comment/>
      <readonly>0</readonly>
      <browseable>1</browseable>
      <inheritacls>0</inheritacls>
      <inheritpermissions>0</inheritpermissions>
      <recyclebin>0</recyclebin>
      <hidedotfiles>1</hidedotfiles>
      <easupport>0</easupport>
      <storedosattributes>0</storedosattributes>
      <hostsallow/>
      <hostsdeny/>
      <extraoptions/>
      <recyclemaxsize>0</recyclemaxsize>
      <recyclemaxage>0</recyclemaxage>
      <audit>0</audit>
      <audit>0</audit>
      <enable>1</enable>
      <guest>no</guest>
      </share>
      <share>
      <uuid>adda8201-6a4d-4150-9b22-67a1f8467e5b</uuid>
      <sharedfolderref>0c13e1f4-c724-4160-9fce-6944db0cb755</sharedfolderref>
      <comment/>
      <readonly>0</readonly>
      <browseable>1</browseable>
      <inheritacls>0</inheritacls>
      <inheritpermissions>0</inheritpermissions>
      <recyclebin>0</recyclebin>
      <hidedotfiles>1</hidedotfiles>
      <easupport>0</easupport>
      <storedosattributes>0</storedosattributes>
      <hostsallow/>
      <hostsdeny/>
      <extraoptions/>
      <recyclemaxsize>0</recyclemaxsize>
      <recyclemaxage>0</recyclemaxage>
      <audit>0</audit>
      <audit>0</audit>
      <enable>1</enable>
      <guest>no</guest>
      </share>
      <share>
      <uuid>5caf9512-cc12-413d-85dc-3ae4fca8b81b</uuid>
      <sharedfolderref>15963cb7-099d-4b6b-80a0-4b2ee5e22188</sharedfolderref>
      <comment/>
      <readonly>0</readonly>
      <browseable>1</browseable>
      <inheritacls>0</inheritacls>
      <inheritpermissions>0</inheritpermissions>
      <recyclebin>0</recyclebin>
      <hidedotfiles>1</hidedotfiles>
      <easupport>0</easupport>
      <storedosattributes>0</storedosattributes>
      <hostsallow/>
      <hostsdeny/>
      <extraoptions/>
      <recyclemaxsize>0</recyclemaxsize>
      <recyclemaxage>0</recyclemaxage>
      <audit>0</audit>
      <audit>0</audit>
      <enable>1</enable>
      <guest>no</guest>
      </share>
      </shares>
      <aio>1</aio>
      </smb>

      The post was edited 1 time, last by egizzi ().

    • Your database is corrupted. Please remove the duplicate <audit> entries.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • Ah, I see those duplicate lines now in the config.xml file. I will edit them out and reboot and report back.

      The share are now showing up in the OMV GUI.

      I still can't see them from my Mac even though I have rebooted. FTP works fine. Probably a problem on my mac's end. I will mark as resolved. I have no idea how those double audit lines got in there.

      The post was edited 2 times, last by egizzi ().

    • You may also need to recreate the SMB config with

      Shell-Script

      1. omv-mkconf samba
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • Users Online 1

      1 Guest