Chris Sarginson - Technical Support wrote:
>> That's because in Windows, 64 bit stuff uses system32, and 32 bit stuff such
>> as Bacula uses systemWOW64.
>>
>> http://wiki.bacula.org/doku.php?id=faq#why_do_my_client_side_scripts_fail_on_64_bit_windows
>>
>
> Hi Frank
>
> That is why I specified the full path to the binary in the script, and
> running the script manually works fine, so I don't think this is the
> cause of the issue - in fact there is no wbadmin.exe in
> C:\windows\syswow64\ so this is definitely NOT going to be the issue as
> far as I can see.
Actually, that sounds like it's exactly the problem. Let me explain more fully.
On 32 bit Windows, system32 contains 32 bit libraries and binaries. Simple
enough.
On 64 bit Windows, however, since so many things just directly reference the
system32 directory, system32 contains all of the 64 bit binaries and libraries.
Now obviously, when a 32 bit program tries to run, it will be most unhappy if
it ends up inadvertently trying to use 64 bit libraries. So, in order to work
around this, all attempts to access system32 by 32 bit programs get redirected
to syswow64, which contains all of the 32 bit libraries.
So, when Bacula tries to run C:\Windows\System32\wbadmin.exe Windows will
silently remap it to look for C:\Windows\sysWOW64\wbadmin.exe which, as you
have pointed out, doesn't exist. Since the remapping happens in the
background, without Bacula being aware of it, you get a completely misleading
error message.
The workaround is to make a copy of wbadmin.exe in some place where the
remapping won't occur, which will allow Bacula to find it.
Does that explanation make more sense?
--
Frank Sweetser fs at wpi.edu | For every problem, there is a solution that
WPI Senior Network Engineer | is simple, elegant, and wrong. - HL Mencken
GPG fingerprint = 6174 1257 129E 0D21 D8D4 E8A3 8E39 29E3 E2E8 8CEC
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|