LinuxMCE Forums

General => Users => Topic started by: jondecker76 on August 18, 2008, 12:41:20 AM

Title: Shares all disappeared (CIFS)
Post by: jondecker76 on August 18, 2008, 12:41:20 AM
Yesterday my shares all disappeared. I have rebooted a few time since, and no computers on my network can see any windows shares. NFS shares are still there and available however. Looking at syslog, I have a ton of CIFS errors:

CIFS VFS: Error connecting to IPv4 socket. Aborting operation
Aug 17 15:59:49 dcerouter kernel: [  158.196000]  CIFS VFS: cifs_mount failed w/return code = -111
Aug 17 15:59:49 dcerouter automount[23568]: >> mount error 111 = Connection refused


any tips?
Title: Re: Shares all disappeared (CIFS)
Post by: colinjones on August 18, 2008, 01:01:08 AM
Try changing the filesystem type in the device data to smbfs instead of cifs, click the online box and try again...
Title: Re: Shares all disappeared (CIFS)
Post by: jondecker76 on August 18, 2008, 02:01:06 PM
I went to my RAID device, and when attempting to change the device data, it was not flaggged as Allowed to Modify. CHanged the master device template to allow modification of the device data, and changed to smbfs. After a reload, it resets itsself to cifs.
Title: Re: Shares all disappeared (CIFS)
Post by: colinjones on August 18, 2008, 02:16:35 PM
hmm... forgot you were using RAID, I thought we were talking about Windows/NAS shares? RAID on those really should be transparent I would have thought, on LMCE machines they aren't really cifs shares, so I'm not sure what is actually going on :)
Title: Re: Shares all disappeared (CIFS)
Post by: jondecker76 on August 18, 2008, 02:49:30 PM
the thing is, it always worked like it should until recently. (I'm not extremely knowlegable with network shares)

For example, my wife can't upload her pictures to the pictures share anymore because going to network places in windows, or even the network browser in Ubuntu, there is no longer anything there. Where there used to be a LMCE network populated with shares, there is simply nothing. Though under the mshome workgroup, I can see all of the orbiters...
Title: Re: Shares all disappeared (CIFS)
Post by: colinjones on August 18, 2008, 02:53:26 PM
not really sure which is cause and which is effect - btw did you put your Windows PCs in the LinuxMCE workgroup? Could be a permissions issue but also these hierarchies are made visible through the black-art of Computer Browser, and the workgroup should certainly make that easier... not being much help here (but very tired!)
Title: Re: Shares all disappeared (CIFS)
Post by: jondecker76 on August 18, 2008, 03:19:18 PM
I'll have to investigate more when I get home, but the LinuxMCE workgroup is what vanished! It completely disappeared from all of my windows machines and all my linux machines. Its simply not there now. So maybe this isn't strictly a cifs issue...
Title: Re: Shares all disappeared (CIFS)
Post by: Zaerc on August 18, 2008, 07:02:17 PM
That is odd, are the samba deamons even running at all? ps ax | grep mbd Should tell you if so.
Title: Re: Shares all disappeared (CIFS)
Post by: jondecker76 on August 18, 2008, 09:40:40 PM
here is my output:

linuxmce@dcerouter:~$ ps ax | grep mbd
11578 pts/27   R+     0:00 grep mbd
29519 ?        Ss     0:00 /usr/sbin/nmbd -D
29522 ?        Ss     0:21 /usr/sbin/smbd -D
29551 ?        S      0:00 /usr/sbin/smbd -D
29620 ?        S      6:41 /usr/sbin/smbd -D
29622 ?        S      3:05 /usr/sbin/smbd -D
29624 ?        S      2:04 /usr/sbin/smbd -D

Title: Re: Shares all disappeared (CIFS)
Post by: colinjones on August 18, 2008, 10:05:06 PM
Workgroups are "created" by a machine being in one. Put your ms machines in that workgroup then reboot LMCE - that should trigger Master Browser election events in your Windows System event logs - should at least tell you if LMCE is even trying to participate in that workgroup (actually, will test this on my setup in the morning, too!)
Title: Re: Shares all disappeared (CIFS)
Post by: jondecker76 on August 19, 2008, 12:57:05 PM
Tried setting an XP machine to workgroup LinuxMCE and rebooted. Still noting - just a workgroup can't be found error....
Title: Re: Shares all disappeared (CIFS)
Post by: colinjones on August 19, 2008, 02:48:39 PM
Now I have no idea what is going on! Workgroups don't need to "exist" - putting a PC in one "creates" it, it isn't like a domain where there is a central authority to register with (and therefore "find")... sure you're not trying to add the machine to a domain rather than a workgroup? Its just a radio button option between the two in the same dialogue that you set the name....

Either way, to reset the whole thing, you can set the PC's workgroup name to something that has never been used before, click OK, allow it to reboot, then set it back to the LinuxMCE workgroup, OK and reboot again. Did you check your system event log for Computer Browser events confirming that the browsers are "forcing elections" when you change these things, or even reboot a machine on the same broadcast domain? There are segment browsers, master browsers, backup browsers, etc, and they all collaborate to compile a complete list of the workgroups and computers in the network... can get complicated, and it maybe nothing to do with the issue, but having them all talking correctly and able to find each other at a NetBIOS level will probably help when they are trying to confirm credentials (even if that is just guest, and there are no restrictions....)
Title: Re: Shares all disappeared (CIFS)
Post by: jondecker76 on August 19, 2008, 03:05:22 PM
Yeah, it was a workgroup and not a domain. Also, should the workgroup be LinuxMCE or LMCE?

The thing that still doesn't make sense is that everything disappeared from both my Windows and my Linux machines (running Ubuntu). In ubuntu, browsing the network used to show a MSHOME workgroup and a LINUXMCE workgroup, now only MSHOME is present.

My Windows machines I never use anyway (My Touchscreen orbiters are XP machines, which I never had set to the LINUXMCE workgroup anyways, as they are only used for orbiters. But I have seen the LINUXMCE workgroup listed on these XP machines before, and they are not there either)

My Ubuntu boxes still get the NFS shares, but I'm not sure how to use them..  I get access denied whenever I try to do anything with them.

So we're still stuck now, unable to upload photos etc to the core easily (for now I have to ssh to the core, scp the media, change permissions etc.. what a pain!)

Also, we just recently swapped our network interfaces because of my onboard NIC uses forcedeth which caused many crashes. I wonder if this has anything to do with the shares disappearing?
Title: Re: Shares all disappeared (CIFS)
Post by: colinjones on August 19, 2008, 03:19:49 PM
can't remember at the mo... gotta go to bed, tired! As I say, those "lists" of workgroups/computers are compiled by the computer browser services - you Need to look in that even log and make sure that this subsystem is working at all. Something could have screwed it completely and so nothing would be there.... restarting the Computer Browser service on any of your PCs will trigger an election event so you can see what is happening in that log.

Either way, not being able to browse the network using this Computer Browser service doesn't mean you can't connect directly to the share if you know it. \\computername\sharename or \\IPaddress\sharename or smb://computername/share name

Or even doing a NET VIEW \\computername from your PCs and they should show the NetBIOS resources available on the remote machine you choose. None of that is dependant on Computer Browsing working.... nite
Title: Re: Shares all disappeared (CIFS)
Post by: Zaerc on August 19, 2008, 04:37:40 PM
Ok at least it all seems to be running, what do "smbstatus" and "smbclient -L dcerouter" (just hit enter when asked for a password) tell you?
Title: Re: Shares all disappeared (CIFS)
Post by: jondecker76 on August 20, 2008, 11:53:01 AM
Everything looks find with Samba.. I even have some playlists with smb:// paths that work fine. Still no Linuxmce workgroup to be found though.


linuxmce@dcerouter:~$ smbstatus
Processing section "[public]"
Processing section "[home]"
Unknown parameter encountered: "inherit uid"
Ignoring unknown parameter "inherit uid"
Processing section "[jondecker76]"
Processing section "[traceydecker82]"
Processing section "[nathandecker97]"
Processing section "[samanthadecker99]"
Processing section "[calebstofan05]"
Processing section "[parents]"
Processing section "[Storage64$]"

Samba version 3.0.26a
PID     Username      Group         Machine                       
-------------------------------------------------------------------
29190   pluto_jondecker76  pluto_jondecker76  studio-desktop (192.168.80.248)
  790   sambahelper   sambahelper   moon104      (192.168.80.3)
  793   sambahelper   sambahelper   moon85       (192.168.80.2)
  795   sambahelper   sambahelper   moon122      (192.168.80.4)

Service      pid     machine       Connected at
-------------------------------------------------------
public       29190   studio-desktop  Wed Aug 20 05:46:24 2008
home         793   moon85        Wed Aug 20 01:19:51 2008
home         795   moon122       Wed Aug 20 01:19:50 2008
Storage64$   795   moon122       Wed Aug 20 05:46:56 2008
home         790   moon104       Wed Aug 20 01:19:50 2008

Locked files:
Pid          Uid        DenyMode   Access      R/W        Oplock           SharePath   Name   Time
--------------------------------------------------------------------------------------------------
790          0          DENY_NONE  0x120116    WRONLY     EXCLUSIVE        /home   cameras/148/2008/08/20-timelapse.mpg   Wed Aug 20 05:46:16 2008




linuxmce@dcerouter:~$ smbclient -L dcerouter
Password:
Anonymous login successful
Domain=[LINUXMCE] OS=[Unix] Server=[Samba 3.0.26a]

Sharename       Type      Comment
---------       ----      -------
IPC$            IPC       IPC Service (DCERouter)
Storage64$      Disk      Storage Device 64
parents         Disk      parents's private files
calebstofan05   Disk      calebstofan05's private files
samanthadecker99 Disk      samanthadecker99's private files
nathandecker97  Disk      nathandecker97's private files
traceydecker82  Disk      traceydecker82's private files
jondecker76     Disk      jondecker76's private files
home            Disk      shared home files
public          Disk      public files
Anonymous login successful
Domain=[LINUXMCE] OS=[Unix] Server=[Samba 3.0.26a]

Server               Comment
---------            -------
DCEROUTER            DCERouter

Workgroup            Master
---------            -------
LINUXMCE             DCEROUTER

Title: Re: Shares all disappeared (CIFS)
Post by: Zaerc on August 20, 2008, 04:12:39 PM
Seems to be running just fine, maybe try running "smbclient -L dcerouter" from the other linux machines that can't see the workgroup.

Have you tried shutting all the machines down and then booting again?
Title: Re: Shares all disappeared (CIFS)
Post by: jondecker76 on August 20, 2008, 04:22:05 PM
yeah I guess thats my next step - shutting everything down.. Its pretty rare that everything would be down at once, so everything hasn't been off all at the same time in quite a while (13 computers on the network). I'll try it when I get home tonight.
Title: Re: Shares all disappeared (CIFS)
Post by: jondecker76 on August 29, 2008, 05:28:43 PM
Still no go.. I've shut down everything on the network, as well as did an (unrelated) full motherboard swap out, different NIC's/chipsets and everything. Its almost like LMCE isn't assigning itsself to the LinuxMCE workgroup.
Title: Re: Shares all disappeared (CIFS)
Post by: jondecker76 on August 31, 2008, 08:06:52 PM
Could anyone running Ubuntu post their /etc/samba/smb.conf file for comparison? I'm wondering if something is out of whack on the client end over here...