Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

folder is empty

Featured Replies

I ran into a strange problem this morning with my unRAID server (running v4.5.6). I tried playing an audio file and the application reported that the file could not be found. So I used Windows explorer to check my network. After double-clicking on 'Media' (the name of my unRAID server), it displayed my 4 shares - music, movies, videos and photos. So when I double-click on the Music icon, it showed "The folder is empty." Since I have nearly 2 TB of music, that gave me a bit of a scare. So I checked the shares for movies, videos and photos and Windows Explorer also reported them as empty.

 

So I used my browser to navigate to the unRAID control panel and everything looked fine. There were a couple of disks that had spun down, so I tried spinning up everything and then I checked the folders in Explorer again. Still, it showed "folder is empty." I tried opening these folders (shares) from a couple other PCs on the network. Same thing - "folder is empty." When I click on one of the share icons in explorer, the status shows that it is online.

 

I've been running unRAID for a couple of years now and this has never happened before.

 

I decided to stop the array and then restart it. If this didn't work, I was going to stop the array and then restart the server. However, stopping and restarting the array worked.

 

Since this is the first time this has happened, I was wondering if anyone else might know why this occurred?

I ran into a strange problem this morning with my unRAID server (running v4.5.6). I tried playing an audio file and the application reported that the file could not be found. So I used Windows explorer to check my network. After double-clicking on 'Media' (the name of my unRAID server), it displayed my 4 shares - music, movies, videos and photos. So when I double-click on the Music icon, it showed "The folder is empty." Since I have nearly 2 TB of music, that gave me a bit of a scare. So I checked the shares for movies, videos and photos and Windows Explorer also reported them as empty.

 

So I used my browser to navigate to the unRAID control panel and everything looked fine. There were a couple of disks that had spun down, so I tried spinning up everything and then I checked the folders in Explorer again. Still, it showed "folder is empty." I tried opening these folders (shares) from a couple other PCs on the network. Same thing - "folder is empty." When I click on one of the share icons in explorer, the status shows that it is online.

 

I've been running unRAID for a couple of years now and this has never happened before.

 

I decided to stop the array and then restart it. If this didn't work, I was going to stop the array and then restart the server. However, stopping and restarting the array worked.

 

Since this is the first time this has happened, I was wondering if anyone else might know why this occurred?

You've set the window's file explorer to hide system and hidden files perhaps?

 

Joe L.

I ran into a strange problem this morning with my unRAID server (running v4.5.6). I tried playing an audio file and the application reported that the file could not be found. So I used Windows explorer to check my network. After double-clicking on 'Media' (the name of my unRAID server), it displayed my 4 shares - music, movies, videos and photos. So when I double-click on the Music icon, it showed "The folder is empty." Since I have nearly 2 TB of music, that gave me a bit of a scare. So I checked the shares for movies, videos and photos and Windows Explorer also reported them as empty.

 

So I used my browser to navigate to the unRAID control panel and everything looked fine. There were a couple of disks that had spun down, so I tried spinning up everything and then I checked the folders in Explorer again. Still, it showed "folder is empty." I tried opening these folders (shares) from a couple other PCs on the network. Same thing - "folder is empty." When I click on one of the share icons in explorer, the status shows that it is online.

 

I've been running unRAID for a couple of years now and this has never happened before.

 

I decided to stop the array and then restart it. If this didn't work, I was going to stop the array and then restart the server. However, stopping and restarting the array worked.

 

Since this is the first time this has happened, I was wondering if anyone else might know why this occurred?

 

If you can capture a syslog we might be able to tell you what happened.

 

Directions are in the troubleshooting section of the wiki (link to the wiki is in my signature).

  • Author

You've set the window's file explorer to hide system and hidden files perhaps?

 

Joe L.

 

Nope, I have it set to show hidden files, folders and drives.

  • Author

 

If you can capture a syslog we might be able to tell you what happened.

 

Directions are in the troubleshooting section of the wiki (link to the wiki is in my signature).

 

I tried attaching a copy of my syslog, but it is 2.48MB in size and the maximum size allowed is 128KB.

 

I wonder why it is so big?

 

Is there another way I can get this to someone to look at?

 

  • Author

I've copied a chunk out of the end of the file and attached it to this post, maybe this will provide a little info.

syslog-2010-11-15end_of_file.txt

  • Author

I think I'm having a problem similar to what was reported in this post:

 

http://lime-technology.com/forum/index.php?topic=8290.msg80235#msg80235

 

I too am running Windows 7 Media Center and use the pictures from my unRAID server for the screen saver. I see lots of "too many open files" messages in my syslog as well.

http://lime-technology.com/forum/index.php?topic=6399.msg64279#msg64279

 

Check out the threads linked, particularly the 1st message linked...

 

Edit:

 

More specifically,

Yep, I can believe it'll be resolved in either the next unRAID or Win7 update whichever comes first (I'd bet unRAID). It's more of a minor annoyance than any real problem for me now as Teracopy's error handling makes it painless. Without Teracopy I'd be really annoyed  ;D

 

abeta, I just tried this, and it actually seems to have fixed my win7 <-> samba "too many files..." issue. I tested it using the built-in windows copy. This means one doesn't need teracopy anymore, though I'll probably continue using it because of the added functions.

 

try applying the following registry changes and reboot:

 

-  Set the following registry key to "1":

 

HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\LargeSystemCache

 

- set the following registry key to "3":

 

HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size

 

- reboot

 

credit:

 

http://alan.lamielle.net/2009/09/03/windows-7-nonpaged-pool-srv-error-2017

and

Since I can't reproduce your problem, you have to help me out to check one idea.

 

A week ago Chopeta mentioned something about 'ulimit -n'. 

Let's see if it can have any bearing on Samba.

 

Reading the man...

"The ulimit builtin is used to set the resource usage limits of the shell and any processes spawned by it."

 

So... if we change 'ulimit -n' in one shell, and then restart Samba from that same shell,

then the modified 'ulimit -n' value will apply to the newly spawned smbd daemon.

(...if that should matter)

 

Let's try it and see what happens.  Telnet to your unRAID and type the following two lines:

ulimit -n 20000
/etc/rc.d/rc.samba restart

 

Now see if your problem is still there.

 

Let me know how it goes.

 

 

If it does help, you can add a single line

ulimit -n 20000

to the /boot/config/ident.cfg file.   

 

config/ident.cfg is "sourced" when /etc/rc.d/rc.samba is run.   This will work even when you reboot the server, or when you stop and re-start the array.     The ident.cfg file is created/written when you change your server name or workgroup, so odds are high the added line will not be overwritten unless you make a change in one of the few parameters defined in that section of the management page.  It also does not matter what editor you use to add the line to the config/ident.cfg file.  It is automatically processed through "fromdos" when used by samba.   The new ulimit (limit of open files)  will be in effect whenever you start and stop your unRAID array. It will automatically be in effect when you reboot your server.

 

Joe L.

and

[bug 462172] Re: samba "Too many files are currently in use."

Bug Watch Updater

Wed, 30 Dec 2009 17:41:00 -0800

 

** Changed in: samba

       Status: In Progress => Fix Released

 

 

Pardon me, but where do you go to look for these bugs and where do I go to get the fix? Thx!

You might try creating a file named

smb-extra.conf

and in it, put this

[global]

max open files = 20000

 

Put that smb-extra.conf file in the config folder on your flash drive.   If there is already a file there, add those two lines to it.

 

Then type

smbcontrol smbd reload-config

to have it read the new contents of the file you created.

 

Apparently, there is a limit to the number of open files in SAMBA, and files are not being closed in a given session, so it runs out.  Upping the limit might be a work-around.

 

Linux itself has its own limit, you can see it with

sysctl  fs.file-max

 

You can set it with

sysctl  fs.file-max=50000

Don't get too crazy... you can run out of other resources if too many files are kept open.  But the odds are you'll be able to get past the file copy you were attempting until the newer version of unRAID, with a newer version of SAMBA, can be deployed.

 

This bug is described here (with the work-around): https://bugs.launchpad.net/samba/+bug/462172

 

Joe L.

 

edit: according to the fix, the old limit was 10,000 open files.  Win7 needs 16,384 + a few extra (20 in the patch)

So.. setting the max open files to 16500 should handle it. 

 

Actual patch is here:

https://bugzilla.samba.org/attachment.cgi?id=5098&action=edit

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.