March 31, 201016 yr It started with a drive being disabled. I followed the FAQ and rebuild the drive. It all seemed to have gone well but after a reboot Samba will not start. And I can't make it start either. Mar 31 12:22:51 unRAID emhttp: shcmd (35): rm /etc/samba/smb-shares.conf >/dev/null 2>&1 Mar 31 12:22:51 unRAID emhttp: _shcmd: shcmd (35): exit status: 1 Mar 31 12:22:51 unRAID emhttp: shcmd (36): cp /etc/exports- /etc/exports Mar 31 12:22:51 unRAID emhttp: shcmd (37): mkdir /mnt/user Mar 31 12:22:51 unRAID emhttp: shcmd (38): /usr/local/sbin/shfs /mnt/user -o noatime,big_writes,allow_other,default_permissions Mar 31 12:22:52 unRAID emhttp: shcmd (39): killall -HUP smbd Mar 31 12:22:52 unRAID emhttp: _shcmd: shcmd (39): exit status: 1 Mar 31 12:22:52 unRAID emhttp: shcmd (40): /etc/rc.d/rc.nfsd restart | logger Attatched full syslog. The last thing on boot screen is: SAMBA: no process killed unRAID version is 4.5 and Samba was working just fine until I rebuild the failed drive. I'm connected to two networks one global and one internal. syslog-2010-03-31-unraid.txt
March 31, 201016 yr Author Try typing: /etc/rc.d/rc.samba stop /etc/rc.d/rc.samba start Tried it but samba didn't start.
March 31, 201016 yr Did you edit the config/smb-extra.conf file recently? Perhaps it has a syntax error? You can try to see this: smbstatus To see what samba thinks is configured, type: testparm Samba keeps its own log file. To see it, look here. cat /var/log/samba/smbd.log To see if the samba daemon process is running type: ps -ef | grep smbd | grep -v grep
March 31, 201016 yr Author Did you edit the config/smb-extra.conf file recently? No I didn't edit the file. Hell I can't even find it. You can try to see this: smbstatus Returned this: root@unRAID:~# smbstatus sessionid.tdb not initialised Service pid machine Connected at ------------------------------------------------------- /var/cache/samba/locking.tdb not initialised This is normal if an SMB client has never connected to your server. To see what samba thinks is configured, type: testparm Returned this: root@unRAID:~# testparm Load smb config files from /etc/samba/smb.conf Can't find include file /boot/config/smb-extra.conf Processing section "[flash]" Processing section "[disk1]" Processing section "[disk2]" Processing section "[disk3]" Processing section "[disk4]" Processing section "[disk5]" Processing section "[disk6]" Processing section "[disk7]" Processing section "[disk8]" Processing section "[disk9]" Processing section "[user share-1]" Processing section "[user share-2]" Processing section "[user share-3]" Processing section "[user share-4]" Processing section "[user share-5]" Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions Samba keeps its own log file. To see it, look here. cat /var/log/samba/smbd.log I found log.smbd and it locked like this: To see if the samba daemon process is running type: ps -ef | grep smbd | grep -v grep Don't think it's running because nothing happend.
April 2, 201016 yr Did you edit the config/smb-extra.conf file recently? No I didn't edit the file. Hell I can't even find it. That's because it does not exist unless you create it for your own customizations. it is ok if it does not exist. Guarantees it is not corrupted. You can try to see this: smbstatus Returned this: root@unRAID:~# smbstatus sessionid.tdb not initialised Service pid machine Connected at ------------------------------------------------------- /var/cache/samba/locking.tdb not initialised This is normal if an SMB client has never connected to your server. This look fairly normal. (other than no connections to client machines) To see what samba thinks is configured, type: testparm Returned this: root@unRAID:~# testparm Load smb config files from /etc/samba/smb.conf Can't find include file /boot/config/smb-extra.conf Processing section "[flash]" Processing section "[disk1]" Processing section "[disk2]" Processing section "[disk3]" Processing section "[disk4]" Processing section "[disk5]" Processing section "[disk6]" Processing section "[disk7]" Processing section "[disk8]" Processing section "[disk9]" Processing section "[user share-1]" Processing section "[user share-2]" Processing section "[user share-3]" Processing section "[user share-4]" Processing section "[user share-5]" Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions I would have liked to see what followed when you press enter. (The other half of the output did not yet print) Samba keeps its own log file. To see it, look here. cat /var/log/samba/smbd.log I found log.smbd and it locked like this: Looks quite normal. To see if the samba daemon process is running type: ps -ef | grep smbd | grep -v grep Don't think it's running because nothing happened. I think you are right. It is not running. or you would have seen the line from the process list. With that in mind, Have you installed any add-ons? Have you done any adding of samba (user-share) users? Will samba start if you turn off user-shares?
April 2, 201016 yr Author I would have liked to see what followed when you press enter. Press enter to see a dump of your service definitions [global] workgroup = ARBEITSGRUPPE server string = Media server null passwords = Yes passdb backend = smbpasswd syslog = 0 syslog only = Yes unix extensions = No load printers = No printcap name = /dev/null disable spoolss = Yes show add printer wizard = No local master = No force user = root create mask = 0711 directory mask = 0711 use sendfile = Yes map hidden = Yes map system = Yes msdfs root = Yes [flash] path = /boot read only = No create mask = 0777 directory mask = 0777 map archive = No map hidden = No map system = No [disk1] path = /mnt/disk1 read only = No [disk2] path = /mnt/disk2 read only = No [disk3] path = /mnt/disk3 read only = No [disk4] path = /mnt/disk4 read only = No [disk5] path = /mnt/disk5 read only = No [disk6] path = /mnt/disk6 read only = No [disk7] path = /mnt/disk7 read only = No [disk8] path = /mnt/disk8 read only = No [disk9] path = /mnt/disk9 read only = No [user share-1] path = /mnt/user/user share-1 read only = No [user share-2] path = /mnt/user/user share-2 read only = No [user share-3] path = /mnt/user/user share-3 read only = No [user share-4] path = /mnt/user/user share-4 read only = No [user share-5] path = /mnt/user/user share-5 read only = No Have you installed any add-ons? Yes I have unMenu and untorrent installed. This is the current go-script: #!/bin/bash # Start the Management Utility ifconfig eth1 up 192.168.0.102 & /usr/local/sbin/emhttp & echo "/boot/unmenu/uu" | at now + 1 minute until test -d /mnt/disk1; do sleep 10; done installpkg /boot/packages/unTorrent/untorrent-2.8.5.full-i486-1pur.tgz installpkg /boot/packages/unTorrent/plug_rss-1.5-i486-1pur.txz But I have tried the default #!/bin/bash # Start the Management Utility /usr/local/sbin/emhttp & and it didn't make samba start. Have you done any adding of samba (user-share) users?No. Will samba start if you turn off user-shares?If I turn it off will the user shares disappear or can I just turn it on again and it will be just like before?
April 2, 201016 yr The data will still be there, the user-share config files will still be there, you can disable user-share and re-enable them. If you wish to be absolutely certain of not losing anything, make a copy of the config folder on the flash drive, save it elsewhere (a good thing to do regardless in case the flash drive fails) and then disable user-shares. Joe L.
April 2, 201016 yr Author The data will still be there, the user-share config files will still be there, you can disable user-share and re-enable them. If you wish to be absolutely certain of not losing anything, make a copy of the config folder on the flash drive, save it elsewhere (a good thing to do regardless in case the flash drive fails) and then disable user-shares. Joe L. I would like to make a copy of the config folder. But I'm a putty/telnet noob. And I'm not home until sunday so I can't just unplug the flash disk and make a copy. Right now I'm connecting to a Win XP machine at home on which I use Putty to connect to unraid. So my question is: How do I make a copy of the config folder to my Win XP machine which is running the Putty client?
April 2, 201016 yr The data will still be there, the user-share config files will still be there, you can disable user-share and re-enable them. If you wish to be absolutely certain of not losing anything, make a copy of the config folder on the flash drive, save it elsewhere (a good thing to do regardless in case the flash drive fails) and then disable user-shares. Joe L. I would like to make a copy of the config folder. But I'm a putty/telnet noob. And I'm not home until sunday so I can't just unplug the flash disk and make a copy. Right now I'm connecting to a Win XP machine at home on which I use Putty to connect to unraid. So my question is: How do I make a copy of the config folder to my Win XP machine which is running the Putty client? If you are on windows, you can get to the flash drive via file-explorer as \\tower\flash Then, in file-explorer, copy/paste will do it. In putty cp -r /boot/config /boot/old_config will copy the whole config folder and sub-folders to /boot/old_config (The -r option says to recursively include the sub-directories)
April 4, 201016 yr Author If you are on windows, you can get to the flash drive via file-explorer as \\tower\flash Then, in file-explorer, copy/paste will do it. Didn't work, but isn't that using Samba? In putty cp -r /boot/config /boot/old_config will copy the whole config folder and sub-folders to /boot/old_config (The -r option says to recursively include the sub-directories) Done, but Samba wouldn't start after I disabled user shares. What now? It feels like Samba got corrupted some how. Is it possible to make a new unraid installment and keep all the user shares and not have to build the array again?
April 5, 201016 yr If you are on windows, you can get to the flash drive via file-explorer as \\tower\flash Then, in file-explorer, copy/paste will do it. Didn't work, but isn't that using Samba? In putty cp -r /boot/config /boot/old_config will copy the whole config folder and sub-folders to /boot/old_config (The -r option says to recursively include the sub-directories) Done, but Samba wouldn't start after I disabled user shares. What now? It feels like Samba got corrupted some how. Is it possible to make a new unraid installment and keep all the user shares and not have to build the array again? Every time you reboot you get a new version. (basically) The only parts of the array that define the array locally are the files in the config folder.
April 5, 201016 yr Author Every time you reboot you get a new version. (basically) The only parts of the array that define the array locally are the files in the config folder. So it feels like I tried everything. But every time I see Samba: no process killed on boot screen, which means to me that samba isn't running. What is it left that I can do?
April 8, 201016 yr Let's see if we can enable more detailed debugging messages to see if they provide a clue. To start smbd with a higher debugging level you use the "-d level" command, with level being 1 (the default) through 10 (very verbose) typically, smbd is invoked with "-D" to run as a daeemon process and detach from the terminal, leave that option off so any error messages might be visible to you. You can use the -l option to specify a log file. By putting the log file in /var/log you can see it in the browser by typing http://tower/log/smbd-debug.txt (if you use the following command to specify it as the log file) Invoke smbd with additional debugging enabled. smbd -d 10 -l /var/log/smdb-debug.txt Joe L.
April 8, 201016 yr Author Invoke smbd with additional debugging enabled. smbd -d 10 -l /var/log/smdb-debug.txt Joe L. It didn't create any dubug.txt. But the log.smbd said this: [2010/04/08 13:17:17, 5] lib/debug.c:407(debug_dump_status) INFO: Current debug levels: all: True/10 tdb: False/0 printdrivers: False/0 lanman: False/0 smb: False/0 rpc_parse: False/0 rpc_srv: False/0 rpc_cli: False/0 passdb: False/0 sam: False/0 auth: False/0 winbind: False/0 vfs: False/0 idmap: False/0 quota: False/0 acls: False/0 locking: False/0 msdfs: False/0 dmapi: False/0 registry: False/0
April 8, 201016 yr Try leaving it running in that telnet session and connecting from your PC to a network share. Joe L.
April 8, 201016 yr Author Try leaving it running in that telnet session and connecting from your PC to a network share. Joe L. Can't connect. I can see it under the correct Workgroup. The server name is Unraid, but that shouldn't change anything right?
April 8, 201016 yr Ok, if it is showing up on your network places on your PC while it is still running on your other telnet session try this command: smbstatus -v What OS on the PC? Is the "workgroup" name the same on the PC and the unRAID server? Which machine on your LAN is the "master browser"?? Open a command window on your PC, type nbtstat -a tower What do you see? I get this, as my unRAID server is set as my master browser: C:\Users\User>nbtstat -a tower Local Area Connection: Node IpAddress: [192.168.2.3] Scope Id: [] NetBIOS Remote Machine Name Table Name Type Status --------------------------------------------- TOWER <00> UNIQUE Registered TOWER <03> UNIQUE Registered TOWER <20> UNIQUE Registered ..__MSBROWSE__.<01> GROUP Registered YOURWORKGRP <1D> UNIQUE Registered YOURWORKGRP <1E> GROUP Registered YOURWORKGRP <00> GROUP Registered MAC Address = 00-00-00-00-00-00 Mode details in this link: http://articles.techrepublic.com.com/5100-10878_11-5034239.html
April 8, 201016 yr Author Ok, if it is showing up on your network places on your PC while it is still running on your other telnet session try this command: smbstatus -v I get: using configfile = /etc/samba/smb.conf sessionid.tdb not initialised Opened /var/cache/samba/connections.tdb Service pid machine Connected at ------------------------------------------------------- /var/cache/samba/locking.tdb not initialised This is normal if an SMB client has never connected to your server. What OS on the PC? Is the "workgroup" name the same on the PC and the unRAID server? Which machine on your LAN is the "master browser"?? It's Win XP. And all machines are in the same workgroup. The "master browser" is the Win XP machine. The LAN consists of 5 machines. 1 Win XP, 1 Win Vista, 1 Win 7 and 2 Unraid(named: Tower and Unraid). Open a command window on your PC, type nbtstat -a tower What do you see? I get this, as my unRAID server is set as my master browser: C:\Users\User>nbtstat -a tower Local Area Connection: Node IpAddress: [192.168.2.3] Scope Id: [] NetBIOS Remote Machine Name Table Name Type Status --------------------------------------------- TOWER <00> UNIQUE Registered TOWER <03> UNIQUE Registered TOWER <20> UNIQUE Registered ..__MSBROWSE__.<01> GROUP Registered YOURWORKGRP <1D> UNIQUE Registered YOURWORKGRP <1E> GROUP Registered YOURWORKGRP <00> GROUP Registered MAC Address = 00-00-00-00-00-00 Mode details in this link: http://articles.techrepublic.com.com/5100-10878_11-5034239.html I get this: C:\Documents and Settings\user>nbtstat -a unraid Anslutning till lokalt nätverk 2: Nod-IP-adress: [192.168.1.5] Scope-ID: [] NetBIOS-namntabell för fjärrdator Namn Typ Status --------------------------------------------- UNRAID <00> UNIK Registrerad UNRAID <03> UNIK Registrerad UNRAID <20> UNIK Registrerad WORKGROUP <1E> GRUPP Registrerad WORKGROUP <00> GRUPP Registrerad MAC-adress = 00-00-00-00-00-00
April 8, 201016 yr Ok, if it is showing up on your network places on your PC while it is still running on your other telnet session try this command: smbstatus -v I get: using configfile = /etc/samba/smb.conf sessionid.tdb not initialised Opened /var/cache/samba/connections.tdb Service pid machine Connected at ------------------------------------------------------- /var/cache/samba/locking.tdb not initialised This is normal if an SMB client has never connected to your server. What OS on the PC? Is the "workgroup" name the same on the PC and the unRAID server? Which machine on your LAN is the "master browser"?? It's Win XP. And all machines are in the same workgroup. The "master browser" is the Win XP machine. The LAN consists of 5 machines. 1 Win XP, 1 Win Vista, 1 Win 7 and 2 Unraid(named: Tower and Unraid). Open a command window on your PC, type nbtstat -a tower What do you see? I get this, as my unRAID server is set as my master browser: C:\Users\User>nbtstat -a tower Local Area Connection: Node IpAddress: [192.168.2.3] Scope Id: [] NetBIOS Remote Machine Name Table Name Type Status --------------------------------------------- TOWER <00> UNIQUE Registered TOWER <03> UNIQUE Registered TOWER <20> UNIQUE Registered ..__MSBROWSE__.<01> GROUP Registered YOURWORKGRP <1D> UNIQUE Registered YOURWORKGRP <1E> GROUP Registered YOURWORKGRP <00> GROUP Registered MAC Address = 00-00-00-00-00-00 Mode details in this link: http://articles.techrepublic.com.com/5100-10878_11-5034239.html I get this: C:\Documents and Settings\user>nbtstat -a unraid Anslutning till lokalt nätverk 2: Nod-IP-adress: [192.168.1.5] Scope-ID: [] NetBIOS-namntabell för fjärrdator Namn Typ Status --------------------------------------------- UNRAID <00> UNIK Registrerad UNRAID <03> UNIK Registrerad UNRAID <20> UNIK Registrerad WORKGROUP <1E> GRUPP Registrerad WORKGROUP <00> GRUPP Registrerad MAC-adress = 00-00-00-00-00-00 the "__MSBROWSE__" line is missing from your output. That probably means you do not have the unRAID server set to be the "Master Browser" I'd try enabling "Local Master" = "Yes" on the unRAID settings page and see if that makes a difference.
April 8, 201016 yr Author the "__MSBROWSE__" line is missing from your output. That probably means you do not have the unRAID server set to be the "Master Browser" I'd try enabling "Local Master" = "Yes" on the unRAID settings page and see if that makes a difference. Didn't make any difference. But here is a fresh syslog with color code -> [email protected]
April 10, 201016 yr I am facing the exact same problem as Hogwind. And it all happened after I did a reboot of my unRAID tower today - first time in weeks. I have tried all the suggestions posted in this thread and am getting all the same outcomes i.e. no resolution. I hope someone can help resolve this - it is causing me a lot of distress :'( I have even downgraded to 4.5.1 to no avail. UPDATE: I re-created my flash drive with 4.5.1 (fresh install) and re-created my settings manually. Everything seems to be back to normal now.
April 10, 201016 yr Didn't make any difference. But here is a fresh syslog with color code -> [email protected] Looking at your syslog... For some strange reason your NIC is taking way too long to get up and running. Put a sleep 20 right in the beginnging of your 'go' script and then reboot your server.
Archived
This topic is now archived and is closed to further replies.