Dropbox says it cannot sync a file due to space constraints

164

This may sound like a stupid question, but do you have enough space on your physical drive? Since Dropbox acts as a folder on your physical drive there has to be enough space on that drive as well for it to sync. It sounds like you're saying the file does fit on your physical drive by your saying "The file in question is only 30MB, and should fit fine (and, in fact, does)." but I wanted to just throw this first easy solution out there for you.

Edit:

Have you cleared the Dropbox cache? This is the path in Windows Explorer (assuming you're using Windows 7) %HOMEPATH%\Dropbox\.dropbox.cache type that line in the location bar in Windows Explorer and it should take you to the dropbox cache folder. The cache folder is deleted automatically every 3 days, but if you just recently deleted a lot of files this could be taking up valuable space in your dropbox folder.

Share:
164

Related videos on Youtube

Brink
Author by

Brink

Updated on September 18, 2022

Comments

  • Brink
    Brink almost 2 years

    This is extremely stupid, but my loop is exiting before it gets to the second loop apparently.

    What the script does is counts the hardware bus and function number from ethernet cards on a server (usually contain at least 2 ports or more). The bus usually corresponds to a chip/card in the server, and the function number usually the specific port.

    Example scenario - a server with 2 dual-port ethernet cards might look like this when you run get-netadapterhardwareinfo:

    name     Bus Function
    ----     --- --------
    PORT4      2        1
    PORT3      2        0
    B1 Port2   1        1 
    B1 Port1   1        0
    

    You can see the script runs on "bus 1" but then the loop exits before "bus 2" can be processed.

    This line is supposed to handle it

    for($i = 1; $i -le $buscount.Maximum; $i++)

    and the "less than or equal" should evaluate as true for the second loop. I put in some write-hosts at the end to debug the loop, it seems to exit.

    FULL SCRIPT:

    #BEGIN
    #collect hardware information, determine ports.
    $allnicinfo = Get-NetAdapterHardwareInfo | Select Name, InstanceID, InterfaceDescription, BusNumber, FunctionNumber
    
    #determine how many adapters exist
    $buscount = Get-NetAdapterHardwareInfo | select -ExpandProperty busnumber | measure-object -maximum | select Maximum
    
    #improve the bus count method
    for($i = 1; $i -le $buscount.Maximum; $i++)
        {
        $bus = $i
    
        $funccount= @()
        $funccount = $allnicinfo | where-object {$_.busnumber -eq $i} | select -expandproperty functionnumber | measure-object -Maximum | select Maximum
        for($i = 0; $i -le $funccount.Maximum; $i++)
            {
            $nic = Get-NetAdapterHardwareInfo | where {($_.busnumber -eq $bus) -and ($_.functionnumber -eq $i)}
            $port = $i + 1
            Rename-NetAdapter $nic.Name "B$bus Port$port"
            }
        write-host $bus
        write-host $i
    
        }
    
    • Maximilian Burszley
      Maximilian Burszley over 6 years
      Where does BusNumber exist? I see in your example that there's a Bus property, but no BusNumber. Additionally, your $allnicinfo variable should have a .Count property since it's an array.
    • Brink
      Brink over 6 years
      $It's a property of the get-netadapterhardwareinfo cmdlet. Doesn't seem to have a count, why I'm not certain. You are probably right that I should be storing it as an array, I don't think it will fix my loop problem either way however.
    • Maximilian Burszley
      Maximilian Burszley over 6 years
      Why are you using For instead of ForEach loops? Seems a bit convoluted to follow. All you're doing is renaming adapters
    • Brink
      Brink over 6 years
      No great reason, seems like for what I wanted to do (loop through each bus and rename adapters based on functionnumber) it would work.
  • David Yates
    David Yates almost 12 years
    I have 100G free on the local drive
  • Art.Vandelay05
    Art.Vandelay05 almost 12 years
    Okay. That's good. Have you cleared the Dropbox cache? This is the path in Windows Explorer (assuming you're using Windows 7) %HOMEPATH%\Dropbox\.dropbox.cache type that line in the location bar in Windows Explorer and it should take you to the dropbox cache folder. The cache folder is deleted automatically every 3 days, but if you just recently deleted a lot of files this could be taking up valuable space in your dropbox folder.
  • David Yates
    David Yates almost 12 years
    did not know about the %HOMEPATH%\Dropbox\.dropbox.cache trick - that solved this problem :) .. I had a dir from June hanging out plus three more from this week
  • martineau
    martineau almost 12 years
    I periodically delete everything in my ...\Dropbox\.dropbox.cache by adding it as a custom folder to be cleaned in my CCleaner settings. Also not that you can move your Dropbox folder anywhere -- like out of the default Windows subdirectory it's put in by default.
  • Art.Vandelay05
    Art.Vandelay05 almost 12 years
    Excellent! I'm glad I could help.
  • Brink
    Brink over 6 years
    Works perfectly, thank you! I'll try to avoid that other approach!