[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bacula-devel] win32 restore warning on german umlauts


On Wed, 2008-10-15 at 12:36 +0200, Kern Sibbald wrote:
> On Tuesday 14 October 2008 15:22:03 Ulrich Leodolter wrote:
> > On Mon, 2008-10-13 at 16:42 +0200, Kern Sibbald wrote:
> > > On Monday 13 October 2008 15:45:23 Ulrich Leodolter wrote:
> > > > Hello,
> > > >
> > > > Today i have built a winbacula-2.5.14.exe (README.mingw32)
> > > > from svn trunk.  There was one issue in
> > > > bacula/src/win32/installer/winbacula.nsi,
> > > > looks like winbacula.nsi is not adapted to new manuals.
> > >
> > > Yes, we still build it with the old manual.
> > >
> > > > After removing the DocumentationGroup from winbacula.nsi
> > > > the installer build succeeds.
> > > >
> > > > After installing winbacula-2.5.14.exe into my VirtualBox Windose
> > > > (XP SP3) i've run a new Full Backup (using Accurate = yes),
> > > > this job succeeds without problems.
> > > >
> > > > Then i've run a full restore into C:/bacula-restores.
> > > > this job also terminates OK and number of restored files
> > > > is identical to previous full backup.
> > > >
> > > > But there are a lots of warnings on files and directories
> > > > using german umlauts.
> > >
> > > I suspect that either your Director is not setup to run UTF-8 (see the
> > > manual), or you have some other strange configuration problem -- e.g.
> > > perhaps you are not using VSS, though that really should not matter ...
> >
> > Hello,
> >
> > I looked a bit closer at the Warning messages and started bacula-fd.exe
> > with debug level 200.
> >
> > 1) Warning messages are limited to directories containing umlauts at
> > least in one path part.  Files inside such directories are restored
> > without warnings.  So this is a first hint.
> >
> > 2) I've attached a restore log for one directory (cut from
> > bacula-fd.trace)
> >
> > There u can see 2 messages like:
> >
> > FindFirstFile(C:.../): Das System kann die angegebene Datei nicht finden
> >
> > Maybe the trailing (back)slash should be removed before calling
> > FindFirstFile.
> >
> > The msdn Documentation of FindFirstFile says:
> > lpFileName [in]
> >
> >         The directory or path, and the file name, which can include
> >         wildcard characters, for example, an asterisk (*) or a question
> >         mark (?).
> >
> >         This parameter should not be NULL, an invalid string (for
> >         example, an empty string or a string that is missing the
> >         terminating null character), or end in a trailing backslash (\).
> >
> >
> > Thanks
> > Ulrich
> >
> > > > All warnings look like this:
> > > >
> > > > 13-Oct 15:10 leodolter-win-fd JobId 4274:
> > > > Warning: ../../findlib/mkpath.c:75 Cannot change permissions of
> > > > C:/bacula-restores/C/Dokumente und Einstellungen/All Users/Startmenü:
> > > > ERR=No such file or directory
> > > > 13-Oct 15:10 leodolter-win-fd JobId 4274:
> > > > Warning: ../../findlib/mkpath.c:75 Cannot change permissions of
> > > > C:/bacula-restores/C/Dokumente und Einstellungen/All
> > > > Users/Startmenü/Programme/Autostart: ERR=No such file or directory
> > > >
> > > >
> > > > Is it a WARNING, an ERR or a BUG ?
> > >
> > > A warning is a warning, a "minor" but not critical error.
> 
> I just took another look at this, and perhaps I now understand what is going 
> on, and if I am right the problem should exist on all Bacula versions. 
> 
> The way Bacula restores directories is if you have explicitly backed up a path 
> directory, Bacula will use BackupWrite() to create the path during a restore, 
> providing you are putting it back into the existing tree (i.e. restoring it 
> to the same place).  If you are restoring it to a different location, or if 
> you did not explicitly select the directory item to be restored, Bacula will 
> have to create a sort of "dummy" directory to put the file in.  In that case, 
> I believe that it uses simple standard APIs (not the Wide character) APIs to 
> create the directory entries, and in that case, it is going to have problems.
> 
> I believe that this is documented (particularly the premissions problems) in 
> the Win32 chapter of the manual.  I am not sure if it talks about accented 
> characters.
> 
> Possibly one work around for this problem, as is already documented in the 
> manual, would be for you to create all these "weird" directories prior to 
> doing the restore.  If they pre-exist, then quite possibly Bacula will be 
> able to correctly use them (though I have some doubts here).
> 
> Another work around, that may or may not be possible is to copy any existing 
> directories that you want to restore to some other place for safekeeping, 
> then do a restore without specifying a "where" i.e. directly to the original 
> locations.  I suspect that will work
> 

Hi,

I have run a restore job to the original location,
marked only C:/Dokumente und Einstellungen/All Users/Startmenü/

Directories and Files exist, i have nothing removed or
changed at this location , last full backup was before midday.

Warning messages are still there (see attachment)
(the Error can be ignored for this issue)

I am testing new features "Accurate = yes" and "Exclude Dir Containing".
Would be nice if you can build winbacula-2.5.15.exe or newer (please
give me download link because .exe will not got through our email
server)

Maybe Warnings appear only if "Accurate = yes" (not sure, but
cant remember on 2.4.x winxp client)


Thanks
Ulrich


> Regards,
> 
> Kern
> 
> 
> > >
> > > Regards,
> > >
> > > Kern
> > >
> > > > Thanks
> > > > Ulrich
> > > >
> > > >
> > > >
> > > > -----------------------------------------------------------------------
> > > >-- This SF.Net email is sponsored by the Moblin Your Move Developer's
> > > > challenge Build the coolest Linux based applications with Moblin SDK &
> > > > win great prizes Grand prize is a trip for two to an Open Source event
> > > > anywhere in the world
> > > > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > > > _______________________________________________
> > > > Bacula-devel mailing list
> > > > Bacula-devel@xxxxxxxxxxxxxxxxxxxxx
> > > > https://lists.sourceforge.net/lists/listinfo/bacula-devel
> 
> 
> 
-- 
Ulrich Leodolter <ulrich.leodolter@xxxxxxxx>
Oesterreichische Bibliothekenverbund und Service GmbH
Bruennlbadgasse 17/2A, A-1090 Wien
Fax +43 1 4035158-30
Tel +43 1 4035158-21
Web http://www.obvsg.at
15-Oct 12:56 troll-dir JobId 4343: Start Restore Job RestoreWin.2008-10-15_12.56.11
15-Oct 12:56 troll-dir JobId 4343: Using Device "FileStorage"
15-Oct 12:56 troll-sd JobId 4343: Ready to read from volume "Backup-0047" on device "FileStorage" (/disk0/bacula/files).
15-Oct 12:56 troll-sd JobId 4343: Forward spacing Volume "Backup-0047" to file:block 0:1978418956.
15-Oct 12:56 leodolter-win-fd JobId 4343: Warning: ../../findlib/mkpath.c:75 Cannot change permissions of C:/Dokumente und Einstellungen/All Users/Startmenü/Programme/Autostart/: ERR=No such file or directory
15-Oct 12:56 leodolter-win-fd JobId 4343: Warning: ../../findlib/mkpath.c:75 Cannot change permissions of C:/Dokumente und Einstellungen/All Users/Startmenü/Programme/Bacula/Configuration/: ERR=No such file or directory
15-Oct 12:56 leodolter-win-fd JobId 4343: Warning: ../../findlib/mkpath.c:75 Cannot change permissions of C:/Dokumente und Einstellungen/All Users/Startmenü/Programme/Bacula/Documentation/: ERR=No such file or directory
15-Oct 12:56 leodolter-win-fd JobId 4343: Warning: ../../findlib/mkpath.c:75 Cannot change permissions of C:/Dokumente und Einstellungen/All Users/Startmenü/Programme/Bacula/: ERR=No such file or directory
15-Oct 12:56 leodolter-win-fd JobId 4343: Warning: ../../findlib/mkpath.c:75 Cannot change permissions of C:/Dokumente und Einstellungen/All Users/Startmenü/Programme/ClamWin Antivirus/Help/: ERR=No such file or directory
15-Oct 12:56 leodolter-win-fd JobId 4343: Warning: ../../findlib/mkpath.c:75 Cannot change permissions of C:/Dokumente und Einstellungen/All Users/Startmenü/Programme/ClamWin Antivirus/: ERR=No such file or directory
15-Oct 12:56 leodolter-win-fd JobId 4343: Warning: ../../findlib/mkpath.c:75 Cannot change permissions of C:/Dokumente und Einstellungen/All Users/Startmenü/Programme/CVSNT/: ERR=No such file or directory
15-Oct 12:56 leodolter-win-fd JobId 4343: Warning: ../../findlib/mkpath.c:75 Cannot change permissions of C:/Dokumente und Einstellungen/All Users/Startmenü/Programme/RapidSVN-0.9.7/: ERR=No such file or directory
15-Oct 12:56 leodolter-win-fd JobId 4343: Warning: ../../findlib/mkpath.c:75 Cannot change permissions of C:/Dokumente und Einstellungen/All Users/Startmenü/Programme/Spiele/: ERR=No such file or directory
15-Oct 12:56 leodolter-win-fd JobId 4343: Warning: ../../findlib/mkpath.c:75 Cannot change permissions of C:/Dokumente und Einstellungen/All Users/Startmenü/Programme/TortoiseSVN/: ERR=No such file or directory
15-Oct 12:56 leodolter-win-fd JobId 4343: Warning: ../../findlib/mkpath.c:75 Cannot change permissions of C:/Dokumente und Einstellungen/All Users/Startmenü/Programme/Verwaltung/: ERR=No such file or directory
15-Oct 12:56 leodolter-win-fd JobId 4343: Warning: ../../findlib/mkpath.c:75 Cannot change permissions of C:/Dokumente und Einstellungen/All Users/Startmenü/Programme/Vim 7.2/: ERR=No such file or directory
15-Oct 12:56 leodolter-win-fd JobId 4343: Warning: ../../findlib/mkpath.c:75 Cannot change permissions of C:/Dokumente und Einstellungen/All Users/Startmenü/Programme/WinCvs/Web/: ERR=No such file or directory
15-Oct 12:56 leodolter-win-fd JobId 4343: Warning: ../../findlib/mkpath.c:75 Cannot change permissions of C:/Dokumente und Einstellungen/All Users/Startmenü/Programme/WinCvs/: ERR=No such file or directory
15-Oct 12:56 leodolter-win-fd JobId 4343: Warning: ../../findlib/mkpath.c:75 Cannot change permissions of C:/Dokumente und Einstellungen/All Users/Startmenü/Programme/Zubehör/Eingabehilfen/: ERR=No such file or directory
15-Oct 12:56 leodolter-win-fd JobId 4343: Warning: ../../findlib/mkpath.c:75 Cannot change permissions of C:/Dokumente und Einstellungen/All Users/Startmenü/Programme/Zubehör/Kommunikation/: ERR=No such file or directory
15-Oct 12:56 leodolter-win-fd JobId 4343: Warning: ../../findlib/mkpath.c:75 Cannot change permissions of C:/Dokumente und Einstellungen/All Users/Startmenü/Programme/Zubehör/Systemprogramme/: ERR=No such file or directory
15-Oct 12:56 leodolter-win-fd JobId 4343: Warning: ../../findlib/mkpath.c:75 Cannot change permissions of C:/Dokumente und Einstellungen/All Users/Startmenü/Programme/Zubehör/Unterhaltungsmedien/: ERR=No such file or directory
15-Oct 12:56 leodolter-win-fd JobId 4343: Warning: ../../findlib/mkpath.c:75 Cannot change permissions of C:/Dokumente und Einstellungen/All Users/Startmenü/Programme/Zubehör/: ERR=No such file or directory
15-Oct 12:56 leodolter-win-fd JobId 4343: Warning: ../../findlib/mkpath.c:75 Cannot change permissions of C:/Dokumente und Einstellungen/All Users/Startmenü/Programme/: ERR=No such file or directory
15-Oct 12:56 leodolter-win-fd JobId 4343: Warning: ../../findlib/mkpath.c:75 Cannot change permissions of C:/Dokumente und Einstellungen/All Users/Startmenü/: ERR=No such file or directory
15-Oct 12:56 troll-sd JobId 4343: End of Volume at file 0 on device "FileStorage" (/disk0/bacula/files), Volume "Backup-0047"
15-Oct 12:56 troll-sd JobId 4343: End of all volumes.
15-Oct 12:56 leodolter-win-fd JobId 4343: Error: ../../findlib/create_file.c:387 Could not open C:/Dokumente und Einstellungen/All Users/Startmenü/Programme/: ERR=Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird.

15-Oct 12:56 leodolter-win-fd JobId 4343: Error: ../../findlib/create_file.c:387 Could not open C:/Dokumente und Einstellungen/All Users/Startmenü/: ERR=Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird.

15-Oct 12:56 troll-dir JobId 4343: Error: Bacula troll-dir 2.5.15 (14Oct08): 15-Oct-2008 12:56:14
  Build OS:               i686-pc-linux-gnu redhat Enterprise release
  JobId:                  4343
  Job:                    RestoreWin.2008-10-15_12.56.11
  Restore Client:         leodolter-win-fd
  Start time:             15-Oct-2008 12:56:11
  End time:               15-Oct-2008 12:56:14
  Files Expected:         106
  Files Restored:         107
  Bytes Restored:         117,897
  Rate:                   39.3 KB/s
  FD Errors:              2
  FD termination status:  Error
  SD termination status:  OK
  Termination:            *** Restore Error ***

15-Oct 12:56 troll-dir JobId 4343: Begin pruning Jobs.
15-Oct 12:56 troll-dir JobId 4343: No Jobs found to prune.
15-Oct 12:56 troll-dir JobId 4343: Begin pruning Files.
15-Oct 12:56 troll-dir JobId 4343: No Files found to prune.
15-Oct 12:56 troll-dir JobId 4343: End auto prune.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-devel mailing list
Bacula-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/bacula-devel


This mailing list archive is a service of Copilotco.