Hi Craig,
This is a very nice tool – I was hoping to use it to copy open .PST files. Is that a valid use for this tool?
It looks like it creates the shadow copy, but it appears that the shadow-copy is still locked and hobocopy fails when it tries to put it in my c:\TESTCopy folder:
C:\Users\us041370\Downloads\HOBOCopy>hobocopy.exe "c:\users\us041370\my documents\outlook files" "c:\TESTCopy" archives2008-2010.pst
HoboCopy (c) 2006 Wangdera Corporation. hobo...@wangdera.com
Starting a full copy from c:\users\us041370\my documents\outlook files to c:\TESTCopy
Copy of file failed with error The process cannot access the file because another process has locked a portion of the file.
(Error number 33) on file \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy13\users\us041370\my documents\outlook files\Archives2008-2010.pst
Any suggestions?
Thanks so much! --Jo
> This is a very nice tool – I was hoping to use it to copy open .PST files.
> Is that a valid use for this tool?
Indeed. That's pretty much the reason I wrote it.
> It looks like it creates the shadow copy, but it appears that the
> shadow-copy is still locked and hobocopy fails when it tries to put it in my
> c:\TESTCopy folder:
>
> Any suggestions?
Sigh. Well, you're definitely not the only person seeing this, or at
least a version of it. I'm slightly at a loss to explain it, but I'm
not giving up yet. If you can consistently reproduce this, that's
great, because I can't.
My employer gives us Fridays to work on open source projects, so what
I'll do is write a custom version of hobocopy then that can figure out
what has that file open. I'll launch handle.exe against the offending
file, which should tell us what has the file locked. Then we'll
proceed from there.
I've opened issue #35 to track this problem.
https://github.com/candera/hobocopy/issues/35
Thanks for the detailed error report!
Thanks so much for looking into this. I'll be happy to test the custom version and provide information back to you. Just so you know, yesterday I tried again (based on your comment that it is unpredictable) and it actually did work twice and failed twice. Still, I'm sure I can get it to fail for you.
I will be going on vacation next week, so I won't be back in the office until July 5 - I'll check back then.
--Jo
Joelle Zack
Senior Information Systems Analyst
717-810-2816
jmz...@te.com
www.te.com
-----Original Message-----
From: craig....@gmail.com [mailto:craig....@gmail.com] On Behalf Of Craig Andera
Sent: Wednesday, June 22, 2011 7:54 AM
To: hobo...@googlegroups.com
Cc: Zack, Joelle M.
Subject: Re: [hobocopy] Hobocopy help?
First, sorry for the delay in responding. I was out of town this last weekend and am still catching up.
> This is a very nice tool - I was hoping to use it to copy open .PST files.
Good timing - I was just about to send out an email. I've prepared a
branch build, available here [1]. It adds the "onlocked" option, which
lets you specify a command to run when hobocopy encounters error 32 or
33 when copying a file. I suggest downloading the excellent "handle"
program from Mark Russinovich [2]. Extract it into some directory (I
put mine in C:\bin), and run hobocopy something like this:
hobocopy /onlocked=C:\bin\handle.exe "c:\users\us041370\my
documents\outlook files" "c:\TESTCopy" archives2008-2010.pst
Then, if it chokes, it'll run handle against archives2008-2010.pst,
which should tell us what's got the file open. It'll appear along with
the rest of hobocopy's output.
Even if that tells us nothing, I still have a few more tricks up my sleeve.
> I will be going on vacation next week, so I won't be back in the office until July 5 - I'll check back then.
No problem - I'd love to figure out what the heck is going on here,
but I only have a small amount of time to devote to hobocopy, so I
move pretty slowly anyway.
[1] http://dl.dropbox.com/u/451150/hobocopy-35-20110624.zip
[2] http://technet.microsoft.com/en-us/sysinternals/bb896655
Joelle Zack
Senior Information Systems Analyst
717-810-2816
jmz...@te.com
www.te.com
-----Original Message-----
From: craig....@gmail.com [mailto:craig....@gmail.com] On Behalf Of Craig Andera
Sent: Friday, June 24, 2011 10:48 AM
To: hobo...@googlegroups.com
Cc: Zack, Joelle M.
Subject: Re: [hobocopy] Hobocopy help?
Now for the $1000 question: what the heck is plugin-container.exe? And
why is it accessing that file? And why, since it appears to be
accessing the file at C:\Users\, is it blocking access to the file in
the shadow copy?
Can you find plugin-container.exe anywhere on your hard drive? Maybe
the directory it's in will give us some clue as to what it does.
On Wed, Nov 16, 2011 at 4:36 AM, Gabrio Secco <kappa...@gmail.com> wrote:
> hi, I think I have the same probrlem, even though I used the files
> linked
>
> hobocopy /onlocked=c:\bin\handle.exe "C:\Documents and Settings
> \myusername\AppData\Local\Temp" "C:\a\temp"
> HoboCopy (c) 2011 Wangdera Corporation. hobo...@wangdera.com
>
> Starting a full copy from C:\Documents and Settings\myusername\AppData
> \Local\Temp
> to C:\a\temp
> Encountered error 32 accessing file \\?\GLOBALROOT\Device
> \HarddiskVolumeShadowCo
> py16\Documents and Settings\seccogbr\AppData\Local\Temp\flaAEB9.tmp.
> Launching "c:\bin\handle.exe" "flaAEB9.tmp" and terminating.
>
> Handle v3.46
> Copyright (C) 1997-2011 Mark Russinovich
> Sysinternals - www.sysinternals.com
>
> plugin-container.exe pid: 1104 type: File 6D8: C:\Users
> \seccogbr\App
> Data\Local\Temp\flaAEB9.tmp
> Encountered error 32 accessing file \\?\GLOBALROOT\Device
> \HarddiskVolumeShadowCo
> py16\Documents and Settings\seccogbr\AppData\Local\Temp\flaAEB9.tmp.
>
>
I realized that this statement is ungrateful to the people that spent
time helping me track it down before. I should have phrased it as,
"This is the first time we've had any luck finding the offending
process."
Handle v3.46
Copyright (C) 1997-2011 Mark Russinovich
Sysinternals - www.sysinternals.com
iexplore.exe pid: 1324 type: File AA4: C:\Users\seccogbr\AppDa
ta\Local\Temp\flaDE1A.tmp
Encountered error 32 accessing file \\?\GLOBALROOT\Device\HarddiskVolumeShadowCo
py21\Documents and Settings\seccogbr\AppData\Local\Temp\flaDE1A.tmp.
strange, that worked time ago.
So, I suspect this is due to a feature of VSS that lets the system
exclude certain things from getting backed up. This link [1] has more
information, but basically, if a file is listed in the registry under
HLKM\SYSTEM\CurrentControlSet\Control\BackupRestore\FilesNotToBackup,
then VSS won't make a copy of it. On my machine, the whole directory
tree %TEMP% is excluded from shadow copies. So for me, anything under
C:\Users\candera\AppData\Local\Temp would be skipped.
The weird part is that I would think that would simply result in the
file not being found at all, rather than it complaining about the file
being in use. There is, however this article [2] that talks about the
registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsBackup
And some subkeys that might also have some influence. It's possible
that if a file is listed there, VSS does something weird like mount
the *actual* file in the shadow area, rather than a shadow copy of it.
In which case the file would indeed be in use by firefox or IE or
whatever.
So two questions:
1) What do you have under the two registry keys I referenced? Anything
that would cover the file/directory in question?
2) Does the file go away if you close Firefox or IE? If not, then the
easy way around this is to close the browser, then make your copy.
If the file *does* disappear when you close Firefox or IE, you could
also try using something like pskill [3] to kill the process instead
of closing. That might not give it a chance to clean up after itself,
and you could copy the file that way.
Let me know if any of that helps.
[1] http://msdn.microsoft.com/en-us/library/aa819132.aspx
[2] http://msdn.microsoft.com/en-us/library/bb891959.aspx
[3] http://technet.microsoft.com/en-us/sysinternals/bb896683
On Thu, Nov 17, 2011 at 9:39 AM, Gabrio Secco <kappa...@gmail.com> wrote:
> plugin-container.exe is a file in C:\Program Files\Mozilla Firefox
>
> I tried to open a video in youtube and copy the video file
> (flaAEB9.tmp ). I always made this succesfully in the past, but now I
> can't anymore, colud be a firefox new version?
I think my answer to the other message in this thread applies to your
question as well. Let me know if the answer I gave there doesn't also
address your question and we'll deal with it separately.
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsBackup
>
this is empty
> 2) Does the file go away if you close Firefox or IE?
yes, also if I kill it with pskill
I'm using Windows 7
the weird thing is that I'm sure that I used hobocopy about 1 year ago
to copy those temp files but using windows XP. So tomorrow i will try
on xp (virtual machine)