Data.fs Recovery

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Data.fs Recovery

Godwin Vaz
I have a corrupt Data.fs file and would appreciate some help recovering
data.

Zope 2.4
OS: Windows 2003 server
Runs as service

The problem was first noticed yesterday on trying to save a web page
after making changes. Received the following error message.
IOError: (0, 'Error')

I tried the following

Restating the Zope service with the following results
- Starts and stops immediately

Start the Zope service using "start.bat" get the following

D:\civil>start.bat
------
2008-04-14T23:20:34 PROBLEM(100) Init Ambiguous name for method of
Products.Pyth
onMethod.PythonMethod.PythonMethod: "manage" != "manage_main"
------
2008-04-14T23:20:35 PROBLEM(100) Init Ambiguous name for method of
Products.ZDat
aQueryKit.ZVisualODBCClient.ZVisualODBCClient: "manage_propertiesForm"
!= "manag
e_main"
------
2008-04-14T23:20:35 PROBLEM(100) Init Ambiguous name for method of
Products.ZDat
aQueryKit.ZVisualODBCClient.ZVisualODBCClient: "manage_propertiesForm"
!= "manag
e_main"
------
2008-04-14T23:20:35 PANIC(300) z2 Startup exception
Traceback (innermost last):
  File D:\civil\z2.py, line 564, in ?
  File <string>, line 1, in ?
  File D:\civil\lib\python\Zope\__init__.py, line 110, in ?
  File D:\civil\lib\python\ZODB\FileStorage.py, line 311, in __init__
    (Object: D:\civil\var\Data.fs)
  File D:\civil\lib\python\ZODB\FileStorage.py, line 1747, in read_index
IOError: (0, 'Error')

Running tranalyzer.py and at some stage I get the following

31166 91405999210488
Traceback (most recent call last):
  File "lib/python/ZODB/tranalyzer.py", line 333, in ?
    main(sys.argv)
  File "lib/python/ZODB/tranalyzer.py", line 325, in main
    t = Transaction(f, off, refs)
  File "lib/python/ZODB/tranalyzer.py", line 170, in __init__
    self.obs.append(Record(f, refs))
  File "lib/python/ZODB/tranalyzer.py", line 214, in __init__
    data = f.c(dl - 8)
  File "lib/python/ZODB/tranalyzer.py", line 105, in c
    self.checkleft(n)
  File "lib/python/ZODB/tranalyzer.py", line 87, in checkleft
    raise 'Not enough data left, %d < %d' % (self.left, n)
Not enough data left, 31166 < 91405999210488

Running fsrecover.py get the following

D:\civil>bin\python lib/python/ZODB/fsrecover.py var/Data.fs
Traceback (most recent call last):
  File "lib/python/ZODB/fsrecover.py", line 94, in ?
    FileStorage.recover(sys.argv[1])
  File "D:\civil\lib\python\ZODB\FileStorage.py", line 1721, in recover
    pos, oid, tid = read_index(
  File "D:\civil\lib\python\ZODB\FileStorage.py", line 1747, in read_index
    file_size=file.tell()
IOError: (0, 'Error')

D:\civil>bin\python lib/python/ZODB/fsrecover.py
Traceback (most recent call last):
  File "lib/python/ZODB/fsrecover.py", line 94, in ?
    FileStorage.recover(sys.argv[1])
IndexError: list index out of range


Please help!!

Thanks
Godwin
_______________________________________________
OzZope mailing list
[hidden email]
http://lists.ozzope.org/cgi-bin/mailman/listinfo/ozzope
Reply | Threaded
Open this post in threaded view
|

Re: Data.fs Recovery

Godwin Vaz
Stefan

Stefan Tjarks wrote:

> Godwin Vaz wrote:
>  
>> I have a corrupt Data.fs file and would appreciate some help recovering
>> data.
>>
>> Zope 2.4
>>    
>
> Are you sure about that? 2.4 is stone age!
>  
Yes it is stone age and will be upgrading soon

>  
>> OS: Windows 2003 server
>> Runs as service
>>
>> The problem was first noticed yesterday on trying to save a web page
>> after making changes. Received the following error message.
>> IOError: (0, 'Error')
>>
>> I tried the following
>>
>> Restating the Zope service with the following results
>> - Starts and stops immediately
>>
>> Start the Zope service using "start.bat" get the following
>>
>> D:\civil>start.bat
>> ------
>> 2008-04-14T23:20:34 PROBLEM(100) Init Ambiguous name for method of
>> Products.Pyth
>> onMethod.PythonMethod.PythonMethod: "manage" != "manage_main"
>> ------
>> 2008-04-14T23:20:35 PROBLEM(100) Init Ambiguous name for method of
>> Products.ZDat
>> aQueryKit.ZVisualODBCClient.ZVisualODBCClient: "manage_propertiesForm"
>> != "manag
>> e_main"
>> ------
>> 2008-04-14T23:20:35 PROBLEM(100) Init Ambiguous name for method of
>> Products.ZDat
>> aQueryKit.ZVisualODBCClient.ZVisualODBCClient: "manage_propertiesForm"
>> != "manag
>> e_main"
>> ------
>> 2008-04-14T23:20:35 PANIC(300) z2 Startup exception
>> Traceback (innermost last):
>>  File D:\civil\z2.py, line 564, in ?
>>  File <string>, line 1, in ?
>>  File D:\civil\lib\python\Zope\__init__.py, line 110, in ?
>>  File D:\civil\lib\python\ZODB\FileStorage.py, line 311, in __init__
>>    (Object: D:\civil\var\Data.fs)
>>  File D:\civil\lib\python\ZODB\FileStorage.py, line 1747, in read_index
>> IOError: (0, 'Error')
>>
>> Running tranalyzer.py and at some stage I get the following
>>
>> 31166 91405999210488
>> Traceback (most recent call last):
>>  File "lib/python/ZODB/tranalyzer.py", line 333, in ?
>>    main(sys.argv)
>>  File "lib/python/ZODB/tranalyzer.py", line 325, in main
>>    t = Transaction(f, off, refs)
>>  File "lib/python/ZODB/tranalyzer.py", line 170, in __init__
>>    self.obs.append(Record(f, refs))
>>  File "lib/python/ZODB/tranalyzer.py", line 214, in __init__
>>    data = f.c(dl - 8)
>>  File "lib/python/ZODB/tranalyzer.py", line 105, in c
>>    self.checkleft(n)
>>  File "lib/python/ZODB/tranalyzer.py", line 87, in checkleft
>>    raise 'Not enough data left, %d < %d' % (self.left, n)
>> Not enough data left, 31166 < 91405999210488
>>
>> Running fsrecover.py get the following
>>
>> D:\civil>bin\python lib/python/ZODB/fsrecover.py var/Data.fs
>> Traceback (most recent call last):
>>  File "lib/python/ZODB/fsrecover.py", line 94, in ?
>>    FileStorage.recover(sys.argv[1])
>>  File "D:\civil\lib\python\ZODB\FileStorage.py", line 1721, in recover
>>    pos, oid, tid = read_index(
>>  File "D:\civil\lib\python\ZODB\FileStorage.py", line 1747, in read_index
>>    file_size=file.tell()
>> IOError: (0, 'Error')
>>
>> D:\civil>bin\python lib/python/ZODB/fsrecover.py
>> Traceback (most recent call last):
>>  File "lib/python/ZODB/fsrecover.py", line 94, in ?
>>    FileStorage.recover(sys.argv[1])
>> IndexError: list index out of range
>>    
>
> Could it be that your drive D run out of disk space?
>  
Heaps of space 35GB only 3 used.
> I'm not a ZODB expert and you may be better off asking for help on the
> zope-user mailinglist, but I do have one hint. If you look into the
> fsrecover.py file it says that you have to provide an input and output
> file. Try this
>
>   D:\civil>bin\python lib/python/ZODB/fsrecover.py var/Data.fs
> var/RecoverData.fs
>  
Get the same error message

D:\civil>bin\python lib/python/ZODB/fsrecover.py var/Data.fs
Traceback (most recent call last):
 File "lib/python/ZODB/fsrecover.py", line 94, in ?
   FileStorage.recover(sys.argv[1])
 File "D:\civil\lib\python\ZODB\FileStorage.py", line 1721, in recover
   pos, oid, tid = read_index(
 File "D:\civil\lib\python\ZODB\FileStorage.py", line 1747, in read_index
   file_size=file.tell()
IOError: (0, 'Error')

> -stj
>  
Thanks
Godwin
_______________________________________________
OzZope mailing list
[hidden email]
http://lists.ozzope.org/cgi-bin/mailman/listinfo/ozzope
Reply | Threaded
Open this post in threaded view
|

Re: Data.fs Recovery

Justin Warren
In reply to this post by Godwin Vaz
On Tue, 2008-04-15 at 10:04 +1000, Godwin Vaz wrote:
> I have a corrupt Data.fs file and would appreciate some help recovering
> data.

[snip]

> Running fsrecover.py get the following
>
> D:\civil>bin\python lib/python/ZODB/fsrecover.py var/Data.fs
> Traceback (most recent call last):
>   File "lib/python/ZODB/fsrecover.py", line 94, in ?
>     FileStorage.recover(sys.argv[1])
>   File "D:\civil\lib\python\ZODB\FileStorage.py", line 1721, in recover
>     pos, oid, tid = read_index(
>   File "D:\civil\lib\python\ZODB\FileStorage.py", line 1747, in read_index
>     file_size=file.tell()
> IOError: (0, 'Error')
>
> D:\civil>bin\python lib/python/ZODB/fsrecover.py
> Traceback (most recent call last):
>   File "lib/python/ZODB/fsrecover.py", line 94, in ?
>     FileStorage.recover(sys.argv[1])
> IndexError: list index out of range

It appears that fsrecover.py is looking for an argument here (sys.argv
is the list of commandline arguments passed to the program).

Checking out the program, its usage is thus:

"""Simple script for repairing damaged FileStorage files.

Usage: %s [-f] [-v level] [-p] [-P seconds] input output

Recover data from a FileStorage data file, skipping over damaged data.
Any damaged data will be lost.  This could lead to useless output if
critical data is lost.

Options:

    -f
       Overwrite output file even if it exists.

    -v level

       Set the verbosity level:

         0 -- show progress indicator (default)

         1 -- show transaction times and sizes

         2 -- show transaction times and sizes, and show object (record)
              ids, versions, and sizes

    -p

       Copy partial transactions.  If a data record in the middle of a
       transaction is bad, the data up to the bad data are packed.  The
       output record is marked as packed.  If this option is not used,
       transactions with any bad data are skipped.

    -P t

       Pack data to t seconds in the past.  Note that if the "-p" option
is
       used, then t should be 0.


Important:  The ZODB package must be importable.  You may need to adjust
            PYTHONPATH accordingly.
"""

Try passing fsrecover a couple of arguments, eg:

fsrecover.py original_Data.fs recovered_Data.fs

Back up your original_Data.fs, then move recovered_Data.fs into place
and try to restart Zope.

--
Justin Warren <[hidden email]>

_______________________________________________
OzZope mailing list
[hidden email]
http://lists.ozzope.org/cgi-bin/mailman/listinfo/ozzope
Reply | Threaded
Open this post in threaded view
|

Re: Data.fs Recovery

Tim Knapp
In reply to this post by Godwin Vaz
Hi Godwin,

On Tue, 2008-04-15 at 10:37 +1000, Godwin Vaz wrote:

<snip />

> >  
> Heaps of space 35GB only 3 used.
> > I'm not a ZODB expert and you may be better off asking for help on the
> > zope-user mailinglist, but I do have one hint. If you look into the
> > fsrecover.py file it says that you have to provide an input and output
> > file. Try this
> >
> >   D:\civil>bin\python lib/python/ZODB/fsrecover.py var/Data.fs
> > var/RecoverData.fs
> >  
> Get the same error message
>
> D:\civil>bin\python lib/python/ZODB/fsrecover.py var/Data.fs

It doesn't appear that you're putting in the last *critical* argument,
i.e. var/RecoverData.fs, as per Stefan's post above (which unfortunately
appears to have been line-wrapped badly).

> Traceback (most recent call last):
>  File "lib/python/ZODB/fsrecover.py", line 94, in ?
>    FileStorage.recover(sys.argv[1])
>  File "D:\civil\lib\python\ZODB\FileStorage.py", line 1721, in recover
>    pos, oid, tid = read_index(
>  File "D:\civil\lib\python\ZODB\FileStorage.py", line 1747, in read_index
>    file_size=file.tell()
> IOError: (0, 'Error')
>
> > -stj
> >  
> Thanks
> Godwin

-Tim

> _______________________________________________
> OzZope mailing list
> [hidden email]
> http://lists.ozzope.org/cgi-bin/mailman/listinfo/ozzope

_______________________________________________
OzZope mailing list
[hidden email]
http://lists.ozzope.org/cgi-bin/mailman/listinfo/ozzope
Reply | Threaded
Open this post in threaded view
|

Re: Data.fs Recovery

Godwin Vaz
Thanks guys

Working on all your suggestions. Will post soon

Godwin

Tim Knapp wrote:

> Hi Godwin,
>
> On Tue, 2008-04-15 at 10:37 +1000, Godwin Vaz wrote:
>
> <snip />
>  
>>>  
>>>      
>> Heaps of space 35GB only 3 used.
>>    
>>> I'm not a ZODB expert and you may be better off asking for help on the
>>> zope-user mailinglist, but I do have one hint. If you look into the
>>> fsrecover.py file it says that you have to provide an input and output
>>> file. Try this
>>>
>>>   D:\civil>bin\python lib/python/ZODB/fsrecover.py var/Data.fs
>>> var/RecoverData.fs
>>>  
>>>      
>> Get the same error message
>>
>> D:\civil>bin\python lib/python/ZODB/fsrecover.py var/Data.fs
>>    
>
> It doesn't appear that you're putting in the last *critical* argument,
> i.e. var/RecoverData.fs, as per Stefan's post above (which unfortunately
> appears to have been line-wrapped badly).
>
>  
>> Traceback (most recent call last):
>>  File "lib/python/ZODB/fsrecover.py", line 94, in ?
>>    FileStorage.recover(sys.argv[1])
>>  File "D:\civil\lib\python\ZODB\FileStorage.py", line 1721, in recover
>>    pos, oid, tid = read_index(
>>  File "D:\civil\lib\python\ZODB\FileStorage.py", line 1747, in read_index
>>    file_size=file.tell()
>> IOError: (0, 'Error')
>>
>>    
>>> -stj
>>>  
>>>      
>> Thanks
>> Godwin
>>    
>
> -Tim
>
>  
>> _______________________________________________
>> OzZope mailing list
>> [hidden email]
>> http://lists.ozzope.org/cgi-bin/mailman/listinfo/ozzope
>>    
>
> _______________________________________________
> OzZope mailing list
> [hidden email]
> http://lists.ozzope.org/cgi-bin/mailman/listinfo/ozzope
>  
_______________________________________________
OzZope mailing list
[hidden email]
http://lists.ozzope.org/cgi-bin/mailman/listinfo/ozzope
Reply | Threaded
Open this post in threaded view
|

Re: Data.fs Recovery

telefon
This post has NOT been accepted by the mailing list yet.
In reply to this post by Godwin Vaz
Godwin Vaz wrote
Stefan

Stefan Tjarks wrote:
> Godwin Vaz wrote:
>  
>> I have a corrupt Data.fs file and would appreciate some help recovering
>> data.
>>
>> Zope 2.4
>>    
>
> Are you sure about that? 2.4 is stone age!
>  
Yes it is stone age and will be upgrading soon
>  
>> OS: Windows 2003 server
>> Runs as service
>>
>> The problem was first noticed yesterday on trying to save a web page
>> after making changes. Received the following error message.
>> IOError: (0, 'Error')
>>
>> I tried the following
>>
>> Restating the Zope service with the following results
>> - Starts and stops immediately
>>
>> Start the Zope service using "start.bat" get the following
>>
>> D:\civil>start.bat
>> ------
>> 2008-04-14T23:20:34 PROBLEM(100) Init Ambiguous name for method of
>> Products.Pyth
>> onMethod.PythonMethod.PythonMethod: "manage" != "manage_main"
>> ------
>> 2008-04-14T23:20:35 PROBLEM(100) Init Ambiguous name for method of
>> Products.ZDat
>> aQueryKit.ZVisualODBCClient.ZVisualODBCClient: "manage_propertiesForm"
>> != "manag
>> e_main"
>> ------
>> 2008-04-14T23:20:35 PROBLEM(100) Init Ambiguous name for method of
>> Products.ZDat
>> aQueryKit.ZVisualODBCClient.ZVisualODBCClient: "manage_propertiesForm"
>> != "manag
>> e_main"
>> ------
>> 2008-04-14T23:20:35 PANIC(300) z2 Startup exception
>> Traceback (innermost last):
>>  File D:\civil\z2.py, line 564, in ?
>>  File <string>, line 1, in ?
>>  File D:\civil\lib\python\Zope\__init__.py, line 110, in ?
>>  File D:\civil\lib\python\ZODB\FileStorage.py, line 311, in __init__
>>    (Object: D:\civil\var\Data.fs)
>>  File D:\civil\lib\python\ZODB\FileStorage.py, line 1747, in read_index
>> IOError: (0, 'Error')
>>
>> Running tranalyzer.py and at some stage I get the following
>>
>> 31166 91405999210488
>> Traceback (most recent call last):
>>  File "lib/python/ZODB/tranalyzer.py", line 333, in ?
>>    main(sys.argv)
>>  File "lib/python/ZODB/tranalyzer.py", line 325, in main
>>    t = Transaction(f, off, refs)
>>  File "lib/python/ZODB/tranalyzer.py", line 170, in __init__
>>    self.obs.append(Record(f, refs))
>>  File "lib/python/ZODB/tranalyzer.py", line 214, in __init__
>>    data = f.c(dl - 8)
>>  File "lib/python/ZODB/tranalyzer.py", line 105, in c
>>    self.checkleft(n)
>>  File "lib/python/ZODB/tranalyzer.py", line 87, in checkleft
>>    raise 'Not enough data left, %d < %d' % (self.left, n)
>> Not enough data left, 31166 < 91405999210488
>>
>> Running fsrecover.py get the following
>>
>> D:\civil>bin\python lib/python/ZODB/fsrecover.py var/Data.fs
>> Traceback (most recent call last):
>>  File "lib/python/ZODB/fsrecover.py", line 94, in ?
>>    FileStorage.recover(sys.argv[1])
>>  File "D:\civil\lib\python\ZODB\FileStorage.py", line 1721, in recover
>>    pos, oid, tid = read_index(
>>  File "D:\civil\lib\python\ZODB\FileStorage.py", line 1747, in read_index
>>    file_size=file.tell()
>> IOError: (0, 'Error')
>>
>> D:\civil>bin\python lib/python/ZODB/fsrecover.py
>> Traceback (most recent call last):
>>  File "lib/python/ZODB/fsrecover.py", line 94, in ?
>>    FileStorage.recover(sys.argv[1])
>> IndexError: list index out of range
>>    
>
> Could it be that your drive D run out of disk space?
>  
Heaps of space 35GB only 3 used.
> I'm not a ZODB expert and you may be better off asking for help on the
> zope-user mailinglist, but I do have one hint. If you look into the
> fsrecover.py file it says that you have to provide an input and output
> file. Try this
>
>   D:\civil>bin\python lib/python/ZODB/fsrecover.py var/Data.fs
> var/RecoverData.fs
>  
Get the same error message

D:\civil>bin\python lib/python/ZODB/fsrecover.py var/Data.fs
Traceback (most recent call last):
 File "lib/python/ZODB/fsrecover.py", line 94, in ?
   FileStorage.recover(sys.argv[1])
 File "D:\civil\lib\python\ZODB\FileStorage.py", line 1721, in recover
   pos, oid, tid = read_index(
 File "D:\civil\lib\python\ZODB\FileStorage.py", line 1747, in read_index
   file_size=file.tell()
IOError: (0, 'Error')

> -stj
>  
Thanks
Godwin
_______________________________________________
OzZope mailing list
OzZope@lists.ozzope.org
http://lists.ozzope.org/cgi-bin/mailman/listinfo/ozzope
I don't really know how to use this though i would like to recover some data from last year but the problem is i have formatted my hard disk once and stored many other new data by the time.Is it still possible to recover my old files?  telefon dinleme telefon dinleme cihazları
Reply | Threaded
Open this post in threaded view
|

Re: Data.fs Recovery

casusbocek
This post has NOT been accepted by the mailing list yet.
In reply to this post by Tim Knapp
its right ... casus telefon yazılımı
dinleme cihazları
casus telefon

Tim Knapp wrote
Hi Godwin,

On Tue, 2008-04-15 at 10:37 +1000, Godwin Vaz wrote:

<snip />
> >  
> Heaps of space 35GB only 3 used.
> > I'm not a ZODB expert and you may be better off asking for help on the
> > zope-user mailinglist, but I do have one hint. If you look into the
> > fsrecover.py file it says that you have to provide an input and output
> > file. Try this
> >
> >   D:\civil>bin\python lib/python/ZODB/fsrecover.py var/Data.fs
> > var/RecoverData.fs
> >  
> Get the same error message
>
> D:\civil>bin\python lib/python/ZODB/fsrecover.py var/Data.fs

It doesn't appear that you're putting in the last *critical* argument,
i.e. var/RecoverData.fs, as per Stefan's post above (which unfortunately
appears to have been line-wrapped badly).

> Traceback (most recent call last):
>  File "lib/python/ZODB/fsrecover.py", line 94, in ?
>    FileStorage.recover(sys.argv[1])
>  File "D:\civil\lib\python\ZODB\FileStorage.py", line 1721, in recover
>    pos, oid, tid = read_index(
>  File "D:\civil\lib\python\ZODB\FileStorage.py", line 1747, in read_index
>    file_size=file.tell()
> IOError: (0, 'Error')
>
> > -stj
> >  
> Thanks
> Godwin

-Tim

> _______________________________________________
> OzZope mailing list
> OzZope@lists.ozzope.org
> http://lists.ozzope.org/cgi-bin/mailman/listinfo/ozzope

_______________________________________________
OzZope mailing list
OzZope@lists.ozzope.org
http://lists.ozzope.org/cgi-bin/mailman/listinfo/ozzope