Error initializing file /var/lib/named/dev/log
Reading globbing filelist /root/.ftplicity/exclude
--------------[ Backup Statistics ]--------------
StartTime 1155607237.21 (Tue Aug 15 04:00:37 2006)
EndTime 1155607341.88 (Tue Aug 15 04:02:21 2006)
ElapsedTime 104.66 (1 minute 44.66 seconds)
SourceFiles 84784
SourceFileSize 3897665692 (3.63 GB)
NewFiles 4852
NewFileSize 50596647 (48.3 MB)
DeletedFiles 144
ChangedFiles 837
ChangedFileSize 140756228 (134 MB)
ChangedDeltaSize 0 (0 bytes)
DeltaEntries 5833
RawDeltaSize 68024442 (64.9 MB)
TotalDestinationSizeChange 17649956 (16.8 MB)
Errors 0
-------------------------------------------------
h898552:/var# ls
backups certs lib lock mail run tmp www
cache empty local log opt spool webmin
h898552:/var#
/dev
/initrd
/lost+found
/media
/mnt
/opt
/proc
/srv
/sys
/tmp
/var/cache
/var/lib/apache2
/var/lib/dcc
/var/lib/mysql
/var/lib/named/dev
/var/run
/var/spool
/var/tmp
# Ausfuehrlichkeit der Bildschirmausgaben (9 fuer Fehlersuche)
VERBOSITY=9
h898552:~/.ftplicity# ftplicity full
Traceback (most recent call last):
File "/usr/bin/duplicity", line 373, in ?
if __name__ == "__main__": main()
File "/usr/bin/duplicity", line 363, in main
if action == "full": full_backup(col_stats)
File "/usr/bin/duplicity", line 142, in full_backup
bytes_written = write_multivol("full", tarblock_iter, globals.backend)
File "/usr/bin/duplicity", line 89, in write_multivol
backend.put(tdp, dest_filename)
File "/usr/lib/python2.3/site-packages/duplicity/backends.py", line 349, in put
self.error_wrap('storbinary', "STOR "+remote_filename, source_file)
File "/usr/lib/python2.3/site-packages/duplicity/backends.py", line 335, in error_wrap
except ftplib.all_errors, e: raise BackendException(e)
duplicity.backends.BackendException
Reading globbing filelist /root/.ftplicity/exclude
Main action: full
Listing files on FTP server
Ignoring file '.'
Ignoring file '..'
Ignoring file 'backup'
Ignoring file 'index.php'
Collection Status
-----------------
Connecting with backend: ftpBackend
Archive dir: None
No backup chains with active signatures found
Found 0 backup chains without signatures.
No orphaned or incomplete backup sets found.
Selecting /var/www
Comparing () and None
Getting delta of (() /var/www dir) and None
Generating delta - new file: .
Selecting /var/www/web1/web/serverstats/system/uptime-6h.gif
Comparing ('var', 'www', 'web1', 'web', 'serverstats', 'system', 'uptime-6h.gif') and ('var', 'www', 'web1', 'web', 'serverstats', 'system', 'uptime-6h.gif')
Getting delta of (('var', 'www', 'web1', 'web', 'serverstats', 'system', 'uptime-6h.gif') /var/www/web1/web/serverstats/system/uptime-6h.gif reg) and (('var', 'www', 'web1', 'web', 'serverstats', 'system', 'uptime-6h.gif') reg)
Generating delta - changed file: var/www/web1/web/serverstats/system/uptime-6h.gif
Selecting /var/www/web1/web/serverstats/system/uptime-6h.png
Comparing ('var', 'www', 'web1', 'web', 'serverstats', 'system', 'uptime-6h.png') and ('var', 'www', 'web1', 'web', 'serverstats', 'system', 'uptime-6h.png')
Getting delta of (('var', 'www', 'web1', 'web', 'serverstats', 'system', 'uptime-6h.png') /var/www/web1/web/serverstats/system/uptime-6h.png reg) and (('var', 'www', 'web1', 'web', 'serverstats', 'system', 'uptime-6h.png') reg)
Generating delta - changed file: var/www/web1/web/serverstats/system/uptime-6h.png
Selecting /var/www/web1/web/serverstats/system/uptime-day.gif
Comparing ('var', 'www', 'web1', 'web', 'serverstats', 'system', 'uptime-day.gif') and ('var', 'www', 'web1', 'web', 'serverstats', 'system', 'uptime-day.gif')
Getting delta of (('var', 'www', 'web1', 'web', 'serverstats', 'system', 'uptime-day.gif') /var/www/web1/web/serverstats/system/uptime-day.gif reg) and (('var', 'www', 'web1', 'web', 'serverstats', 'system', 'uptime-day.gif') reg)
Generating delta - changed file: var/www/web1/web/serverstats/system/uptime-day.gif
Saving duplicity-inc.2007-01-25T04:00:35+02:00.to.2007-02-14T08:41:22+02:00.vol24.difftar.gpg on FTP server
Traceback (most recent call last):
File "/usr/bin/duplicity", line 373, in ?
if __name__ == "__main__": main()
File "/usr/bin/duplicity", line 367, in main
else: incremental_backup(sig_chain)
File "/usr/bin/duplicity", line 170, in incremental_backup
bytes_written = write_multivol("inc", tarblock_iter, globals.backend)
File "/usr/bin/duplicity", line 89, in write_multivol
backend.put(tdp, dest_filename)
File "/usr/lib/python2.3/site-packages/duplicity/backends.py", line 349, in put
self.error_wrap('storbinary', "STOR "+remote_filename, source_file)
File "/usr/lib/python2.3/site-packages/duplicity/backends.py", line 335, in error_wrap
except ftplib.all_errors, e: raise BackendException(e)
duplicity.backends.BackendException
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
gpg: Error writing to `-': Broken pipe
gpg: handle plaintext failed: file write error
--- duplicity-0.4.2/src/backends.py 2006-02-03 04:44:31.000000000 +0100
+++ duplicity-0.4.2/src/backends.py.timeout2 2007-04-02 02:39:00.000000000 +0200
@@ -20,6 +20,7 @@
import os, types, ftplib, tempfile
import log, path, dup_temp, file_naming
+import time
class BackendException(Exception): pass
class ParsingException(Exception): pass
@@ -318,8 +319,11 @@
class ftpBackend(Backend):
"""Connect to remote store using File Transfer Protocol"""
+ SLEEP = 10 # time in seconds before we try to reconnect on temporary errors
+ RETRIES = 3 # max count of retries in case of error
def __init__(self, parsed_url):
"""Create a new ftp backend object, log in to host"""
+ self.parsed_url = parsed_url
self.ftp = ftplib.FTP()
if parsed_url.port is None: self.error_wrap('connect', parsed_url.host)
else: self.error_wrap('connect', parsed_url.host, parsed_url.port)
@@ -332,7 +336,20 @@
def error_wrap(self, command, *args):
"""Run self.ftp.command(*args), but raise BackendException on error"""
try: return ftplib.FTP.__dict__[command](self.ftp, *args)
- except ftplib.all_errors, e: raise BackendException(e)
+ except ftplib.all_errors, e:
+ #ftplib.error_temp, e:
+ self.RETRIES = self.RETRIES-1
+ if self.RETRIES > 0:
+ log.Log("Temporary error '%s'. Trying to reconnect in %d seconds." %
+ (str(e), self.SLEEP), 3)
+ time.sleep(self.SLEEP)
+ self.__init__(self.parsed_url)
+ self.error_wrap(command, *args)
+ self.RETRIES = 3
+ else:
+ self.RETRIES = 3
+ raise BackendException(e)
+ #except ftplib.all_errors, e: raise BackendException(e)
# ftplicity backup
...
Comparing ('srv', 'www', 'htdocs', 'web', 'html', 'user_center', '_notes', '***.LCK') and ('srv', 'www', 'htdocs', 'web', 'html', 'user_center', '_notes', '***.php.mno.LCK')
Selecting /srv/www/htdocs/web/html/***.php.mno
Comparing ('srv', 'www', 'htdocs', 'web', 'html', 'user_center', '_notes', '***.php.mno') and ('srv', 'www', 'htdocs', 'web', 'html', 'user_center', '_notes', '***.php.mno')
/usr/local/bin/ftplicity: line 219: 24769 Speicherzugriffsfehler FTP_PASSWORD="$ZIEL_PW" PASSPHRASE="$GPG_PW" TMPDIR="$TEMP_DIR" $DUPLICITY --encrypt-key $GPG_KEY --sign-key $GPG_KEY --verbosity $VERBOSITY "$@"
gpg: Error writing to `-': Datenübergabe unterbrochen (broken pipe)
gpg: handle plaintext failed: Dateischreibfehler
gpg: Error writing to `-': Datenübergabe unterbrochen (broken pipe)
gpg: handle plaintext failed: Dateischreibfehler
root@****:~/.ftplicity# gpg: Error writing to `-': Datenübergabe unterbrochen (broken pipe)
gpg: handle plaintext failed: Dateischreibfehler
gpg: Error writing to `-': Datenübergabe unterbrochen (broken pipe)
gpg: handle plaintext failed: Dateischreibfehler
gpg: Error writing to `-': Datenübergabe unterbrochen (broken pipe)
gpg: handle plaintext failed: Dateischreibfehler
...
*Die Dateinamen habe ich etwas gekürzt
root@***: cd /srv/www/htdocs/web/html/user_center/_notes
root@***:/srv/www/htdocs/web/html/user_center/_notes# ls -alh
Speicherzugriffsfehler
root@***: nano /srv/www/htdocs/web/html/user_center/_notes/note.php.mno
<?xml version="1.0" encoding="utf-8" ?>
<info>
<infoitem key=
...
root@***: dmesg
<1>Unable to handle kernel paging request at virtual address 04000000
printing eip:
c0153608
*pde = 00000000
Oops: 0000
CPU: 0
EIP: 0010:[<c0153608>] Not tainted
EFLAGS: 00010206
eax: c9345c40 ebx: c9345c40 ecx: 00000000 edx: 04000000
esi: 00000000 edi: dfbd7014 ebp: c265ff40 esp: c265ff0c
ds: 0018 es: 0018 ss: 0018
Process ls (pid: 26654, stackpage=c265f000)
Stack: c0b403a0 c265ff40 dfbd7000 c0153ff3 c0b403a0 c265ff40 00000008 00000246
00000009 00000246 00000008 c265ff98 00000000 dfbd7000 00000014 a3e80a02
bfffeea0 c265ff98 dfbd7000 00000000 c265ff98 c0154879 dfbd7000 dfbd7000
Call Trace: [<c0153ff3>] [<c0154879>] [<c0154c39>] [<c01535b5>] [<c015026f>]
[<c0107403>]
Code: 8b 0a 85 c9 75 0a 89 d8 8b 5c 24 08 83 c4 0c c3 89 04 24 8b
import os, types, ftplib, tempfile
import log, path, dup_temp, file_naming
+import time
class BackendException(Exception): pass
class ParsingException(Exception): pass
+FTPMODE = 0 # 0 for passive mode; 1 for active mode
.......
class ftpBackend(Backend):
"""Connect to remote store using File Transfer Protocol"""
+ SLEEP = 10 # time in seconds before we try to reconnect on temporary errors
+ RETRIES = 3 # max count of retries in case of FTP errors, like loss of connection
+ RETRIELEVEL = 1 # 1 = try to repeat command, 2 = try to reinit
def __init__(self, parsed_url):
"""Create a new ftp backend object, log in to host"""
self.parsed_url = parsed_url
self.ftp = ftplib.FTP()
+ self.error_wrap('set_pasv', FTPMODE)
if parsed_url.port is None: self.error_wrap('connect', parsed_url.host)
else: self.error_wrap('connect', parsed_url.host, parsed_url.port)
if parsed_url.user is not None:
self.error_wrap('login', parsed_url.user, self.get_password())
else: self.error_wrap('login')
self.ftp.cwd(parsed_url.path)
def error_wrap(self, command, *args):
"""Run self.ftp.command(*args), but raise BackendException on error"""
try: return ftplib.FTP.__dict__[command](self.ftp, *args)
+- except ftplib.all_errors, e:
+ #ftplib.error_temp, e:
+ self.RETRIES = self.RETRIES - 1
+ if self.RETRIELEVEL > 1:
+ if self.RETRIES > 0:
+ log.Log("Temporary error '%s'. Trying to reconnect in %d seconds." %
+ (str(e), self.SLEEP), 3)
+ time.sleep(self.SLEEP)
+ self.__init__(self.parsed_url)
+ self.error_wrap(command, *args)
+ else:
+ self.RETRIES = 3
+ self.RETRIELEVEL = 1
+ raise BackendException(e)
+ else:
+ if self.RETRIES > 0:
+ log.Log("Temporary error '%s'. Trying to repeat command in %d seconds." %
+ (str(e), self.SLEEP), 3)
+ time.sleep(self.SLEEP)
+ self.error_wrap(command, *args)
+ else:
+ self.RETRIES = 3
+ self.RETRIELEVEL = 2
+ #except ftplib.all_errors, e: raise BackendException(e)
hmmm....
Da wird mir wohl nichts andere übrigbleiben als alle einzeln durchzugehen (sichern) und festzustellen, welches Probleme macht... das wird aber ne Heidenarbeit, weil ich die exclude Datei jedesmal wegkopieren muss, weil das Ganze nämlich nicht funktioniert, wenn ich die exclude Datei die zu Sourcepfad / passt mit Sourcepfad /var versuche laufen zu lassen, aber na ja.
ME=$(basename "$0")
CONFDIR="$HOME/.ftplicity"
CONF="$CONFDIR/conf"
ME=$(basename "$0")
CONFDIR="$HOME/.$ME"
CONF="$CONFDIR/conf"
/usr/local/bin# ftplicity full
NcFTP version is 3.2.0
Reading globbing filelist /etc/ftplicity/exclude.conf
Last full backup date: Thu Jan 1 01:00:00 1970
Traceback (most recent call last):
File "/usr/bin/duplicity", line 421, in ?
if __name__ == "__main__": main()
File "/usr/bin/duplicity", line 410, in main
if action == "full": full_backup(col_stats)
File "/usr/bin/duplicity", line 150, in full_backup
bytes_written = write_multivol("full", tarblock_iter, globals.backend)
File "/usr/bin/duplicity", line 83, in write_multivol
globals.gpg_profile,globals.volsize)
File "/usr/lib/python2.4/site-packages/duplicity/gpg.py", line 198, in GPGWriteFile
try: data = block_iter.next(bytes_to_go).data
File "/usr/lib/python2.4/site-packages/duplicity/diffdir.py", line 407, in next
result = self.process(self.input_iter.next(), size)
File "/usr/lib/python2.4/site-packages/duplicity/diffdir.py", line 487, in process
data, last_block = self.get_data_block(fp, size - 512)
File "/usr/lib/python2.4/site-packages/duplicity/diffdir.py", line 508, in get_data_block
buf = fp.read(read_size)
File "/usr/lib/python2.4/site-packages/duplicity/diffdir.py", line 338, in read
buf = self.infile.read(length)
IOError: [Errno 22] Invalid argument
Getting delta of (('var', 'www', 'confixx', 'awstats', 'web29', 'awstats042007.web29.txt') /var/www/confixx/awstats/web29/awstats042007.web29.txt reg) and None
Generating delta - new file: var/www/confixx/awstats/web29/awstats042007.web29.txt
Saving duplicity-full.2008-04-14T19:57:59+02:00.vol1694.difftar.gpg on FTP server
Traceback (most recent call last):
File "/usr/bin/duplicity", line 373, in ?
if __name__ == "__main__": main()
File "/usr/bin/duplicity", line 363, in main
if action == "full": full_backup(col_stats)
File "/usr/bin/duplicity", line 142, in full_backup
bytes_written = write_multivol("full", tarblock_iter, globals.backend)
File "/usr/bin/duplicity", line 89, in write_multivol
backend.put(tdp, dest_filename)
[COLOR="Red"]File "/usr/lib/python2.4/site-packages/duplicity/backends.py", line 349, in put
self.error_wrap('storbinary', "STOR "+remote_filename, source_file)[/COLOR]
File "/usr/lib/python2.4/site-packages/duplicity/backends.py", line 335, in error_wrap
except ftplib.all_errors, e: raise BackendException(e)
duplicity.backends.BackendException
/boot
/dev
/initrd
/lib
/media
/mnt
/proc
/src
/sys
/tmp
/var/tmp
/var/run
/var/lib/reoback
/usr
/bin
/sbin
/var/lib
/var/log
/var/cache
/var/spool/
/var/www/chroot
We use essential cookies to make this site work, and optional cookies to enhance your experience.