Login | Register
My pages Projects Community openCollabNet

Discussions > users > Shell script/Perl help wanted

fsvs
Discussion topic

Hide all messages in topic

All messages in topic

Re: problems with fsvs after change the hardware

Author mmm4m5m
Full name Mmm Mmm
Date 2008-12-22 05:51:24 PST
Message Hi,


> But the other message, about a parse error, is not reproducible?
> Then I'd suggest you'd better run memtest.
>
I can't reproduce the parse error (and I do not know what is it).
I remember two lines and I am almost sure, that first time, this was the
error msg:
<<
sts->was_output
./dev/bus/usb was already output ...
 >>

Why my first email have different log/error...
I can't answer that :(( (shame on me).
Looks like I did something wrong...

Really sorry to lost your time like that.


> It shouldn't happen (and I've seen a similar problem on my machine, so I'm
> already investigating) ... but /dev is udev controlled, /dev/bus/usb is
> dynamically created anyway, so I'd suggest just ignoring (and
> unversioning) /dev.
> (At least most of it - /dev/console might be necessary after a restore, with a
> few others.)
About ignore /dev: maybe that is the best way. Many problems for me come
from /dev. I do not know which part of /dev I could need one day... but
anyway, I already have it in my first (previous) revision(s).


Kind regards,
Plamen.

Re: problems with fsvs after change the hardware

Author pmarek
Full name P.Marek
Date 2008-12-22 04:42:19 PST
Message On Monday 22 December 2008 Plamen Marinov wrote:
> 'fsvs status' works in home directory. In root directory it print error
> message _every_time_.
...
> This is the error msg:
> <<
> 09:32:26.325 st__status[status.c:275] INTERNAL BUG
> sts->was_output
> ./dev/bus/usb was already output ...
But that's a completely different error message than in your first report!

It shouldn't happen (and I've seen a similar problem on my machine, so I'm
already investigating) ... but /dev is udev controlled, /dev/bus/usb is
dynamically created anyway, so I'd suggest just ignoring (and
unversioning) /dev.
(At least most of it - /dev/console might be necessary after a restore, with a
few others.)


But the other message, about a parse error, is not reproducible?
Then I'd suggest you'd better run memtest.


Regards,

Phil

--
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

Re: problems with fsvs after change the hardware

Author pmarek
Full name P.Marek
Date 2008-12-21 01:41:57 PST
Message Hello Plamen!


On Saturday 20 December 2008 Plamen Marinov wrote:
> dir file attached.
Thank you.

I installed that in my test environment, and I get no error:

    $ fsvs st | tail -5
    D... 1175 home/plamen/.../blocklist.xml
    D... 3773 home/plamen/.../Scra​pBook/backup/scrapbo​ok_20081209.rdf
    D... 799 home/plamen/.../cookies.txt
    D... 15219 home/plamen/.../mimeTypes.rdf
    D... 63193 home/plamen/.../localstore.rdf

How reproducible was that for you? Does it happen *every* time? Is it
possible that you've got bad (computer ;-) memory, did you try memtest86+?

If all that doesn't apply, could you please send me the last 50 or 100 lines of
    ltrace fsvs st -q
please?


Regards,

Phil

--
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

Re: problems with fsvs after change the hardware

Author pmarek
Full name P.Marek
Date 2008-12-20 04:26:25 PST
Message On Saturday 20 December 2008 Mmm Mmm wrote:
> Here 'grep -a' output :)
> <<
> $ grep -a -A1 " 4799691b 46c3f2c6 0 nd 57a416fde"
> /var/spool/fsvs/6666​/66/66/*/dir
> 0100644 4799691b 46c3f2c6 0 nd 57a416fdec70fc57d208​e016b2706df1 6009 151
> 1 807 1155109 137051 0 0 0 ar_TN
> 0100644 4799691b 46c3f2c6 0 nd d293dceaa8fb10a5c558​8f4ce2d11d7a 6003 151
> 1 807 1155110 137051 0 0 0 ar_YE
These look fine in the mail ...
Maybe there's some kind of special character in there, that got lost on
copy/paste/mail?

> It is old laptop, but hard drive is ok. Filesystem corruption is
> possible, for example if laptop hang/crash during a HDD read/write
> operation.
But then I'd expect a block of zeroes in the wrong place, or something like
that.

> Anyway, if this test case is not important for you (not a bug), I can
> quickly do sync-repos. That is ok. Btw, fsvs works fine with home
> directory for example (my work copy is '/').
Well, if you want you could send me the (compressed) "dir" file in a (private)
mail ...
But I don't want to keep you from backing up your data, so you can just run
a "sync-repos".

Thank you!


Regards,

Phil


--
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

Re: problems with fsvs after change the hardware

Author mmm4m5m
Full name Mmm Mmm
Date 2008-12-20 04:11:12 PST
Message Hi,


Here 'grep -a' output :)
<<
$ grep -a -A1 " 4799691b 46c3f2c6 0 nd 57a416fde"
/var/spool/fsvs/6666​/66/66/*/dir
0100644 4799691b 46c3f2c6 0 nd 57a416fdec70fc57d208​e016b2706df1 6009 151
1 807 1155109 137051 0 0 0 ar_TN
0100644 4799691b 46c3f2c6 0 nd d293dceaa8fb10a5c558​8f4ce2d11d7a 6003 151
1 807 1155110 137051 0 0 0 ar_YE

$ grep -A1 -a " 4799691b 46c3f2c6 0 nd 57a416fde"
/var/spool/fsvs/6666​/66/66/*/dir
0100644 4799691b 46c3f2c6 0 nd 57a416fdec70fc57d208​e016b2706df1 6009 151
1 807 1155109 137051 0 0 0 ar_TN
0100644 4799691b 46c3f2c6 0 nd d293dceaa8fb10a5c558​8f4ce2d11d7a 6003 151
1 807 1155110 137051 0 0 0 ar_YE
 >>


> Strange ... maybe filesystem corruption?
>
I am not sure, but I do not think so. I think the PC crash, not the hard
drive. Of course I can be 100% sure.

I did login and I went for a cup of coffee. System was idle (fsvs was
not working). When I come back the mouse and everything else did not
respond. (Not surprised, few times it happens in last few months).

So, I restart, but I did not see even the bios screen. Remove
cd/hdd/memory/etc, play a little, but no luck.

It is old laptop, but hard drive is ok. Filesystem corruption is
possible, for example if laptop hang/crash during a HDD read/write
operation.

Anyway, if this test case is not important for you (not a bug), I can
quickly do sync-repos. That is ok. Btw, fsvs works fine with home
directory for example (my work copy is '/').

kind regards,
Plamen.

Re: problems with fsvs after change the hardware

Author pmarek
Full name P.Marek
Date 2008-12-20 02:25:09 PST
Message Hello Plamen!

On Saturday 20 December 2008 Mmm Mmm wrote:
> Here the grep output:
> <<
> $ grep -A1 " 4799691b 46c3f2c6 0 nd 57a416fde"
> /var/spool/fsvs/6666​/66/66/*/dir
> Binary file /var/spool/fsvs/6666​/66/66/cd76f96956469​e7be39d750cc7d9/dir
> matches
Sorry, I forgot to add "-a" to force string output.


> >> Please, give me some hints.
> >> Is it a bug?
> >
> > Possibly.
> > Did you copy as much as possible from the old machine to the new?
> > Then it could be possible that the line is damaged because some parts are
> > in a defect sector.
>
> The old harddisk is just fine. I did not copy anything, I do not have
> any data lost. Only the laptop crashed somehow.
> Now, I am using different PC (laptop), harddisk is attached to USB. I am
> booting from USB. That is why my old harddisk is /dev/sdb, instead of
> /dev/sda.
Strange ... maybe filesystem corruption?

Could you please re-run the grep command with "-a" added and send me the
output?
Thank you.


Regards,

Phil

--
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

Re: problems with fsvs after change the hardware

Author mmm4m5m
Full name Mmm Mmm
Date 2008-12-20 00:20:31 PST
Message Hi,


Here the grep output:
<<
$ grep -A1 " 4799691b 46c3f2c6 0 nd 57a416fde"
/var/spool/fsvs/6666​/66/66/*/dir
Binary file /var/spool/fsvs/6666​/66/66/cd76f96956469​e7be39d750cc7d9/dir
matches
 >>


>> Please, give me some hints.
>> Is it a bug?
>>
> Possibly.
> Did you copy as much as possible from the old machine to the new?
> Then it could be possible that the line is damaged because some parts are in a
> defect sector.
>
The old harddisk is just fine. I did not copy anything, I do not have
any data lost. Only the laptop crashed somehow.
Now, I am using different PC (laptop), harddisk is attached to USB. I am
booting from USB. That is why my old harddisk is /dev/sdb, instead of
/dev/sda.


Kind regards,
Plamen.

Re: problems with fsvs after change the hardware

Author pmarek
Full name P.Marek
Date 2008-12-19 09:30:58 PST
Message Hello Plamen!

On Friday 19 December 2008 Mmm Mmm wrote:
> I am using fsvs to do full backup (all files).
...

> This is the error message I get:
> 18:40:57.488 waa__input_tree[waa.c:1739] about to parse 0xb6e9d49d =
> '0100644 4799691b 46c3f2c6 0 nd 57a416fde...'
>
>
> An error occurred at 18:40:57.488: Invalid argument (22)
> in ops__load_1entry [est_ops.c:379]: cannot parse entry line - 12
> tokens found
This message means that parsing a line failed.
Could you please send me the output of the (single) line
 grep -A1 " 4799691b 46c3f2c6 0 nd 57a416fde" /var/spool/fsvs/6666​/66/66/*/dir

> Recently my laptop "fire", so now I am using another laptop.
...
> Please, give me some hints.
> Is it a bug?
Possibly.
Did you copy as much as possible from the old machine to the new?
Then it could be possible that the line is damaged because some parts are in a
defect sector.

> Is it ok and I just have to "sync-repos"?
Well, a "sync-repos" would regenerate the entry list, and so you should be
able to work again.

Please send the "grep" output above - that should be interesting.


Regards,

Phil

--
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

problems with fsvs after change the hardware

Author mmm4m5m
Full name Mmm Mmm
Date 2008-12-19 08:49:33 PST
Message Hi all,


I am using fsvs to do full backup (all files). It is ubuntu 7.10 and:
<<
# fsvs -V
FSVS (licensed under the GPLv3), (C) by Ph. Marek; version trunk:2039
 >>


This is the error message I get:
<<
# fsvs status -vv -d
...
18:40:57.487 waa__input_tree[waa.c:1739] about to parse 0xb6e9d286 =
'0100644 4799691b 46c3f2c6 0 nd c8dbdc4ff...'
18:40:57.487 url__find_by_intnum[url.c:304] url with intnum 1 is
file://localhost/med​ia/sda6/backup/fsvs/​trunk/base
18:40:57.487 waa__input_tree[waa.c:1718] curr=0xb6e9d2f1,
end=0xb735c0a9, count=43546
18:40:57.487 waa__input_tree[waa.c:1739] about to parse 0xb6e9d2f1 =
'0100644 4799691b 46c3f2c6 0 nd 6aaa3fb68...'
18:40:57.487 url__find_by_intnum[url.c:304] url with intnum 1 is
file://localhost/med​ia/sda6/backup/fsvs/​trunk/base
18:40:57.487 waa__input_tree[waa.c:1718] curr=0xb6e9d35c,
end=0xb735c0a9, count=43545
18:40:57.487 waa__input_tree[waa.c:1739] about to parse 0xb6e9d35c =
'0100644 4799691b 46c3f2c6 0 nd c8cbf2b1b...'
18:40:57.487 url__find_by_intnum[url.c:304] url with intnum 1 is
file://localhost/med​ia/sda6/backup/fsvs/​trunk/base
18:40:57.487 waa__input_tree[waa.c:1718] curr=0xb6e9d3c7,
end=0xb735c0a9, count=43544
18:40:57.487 waa__input_tree[waa.c:1739] about to parse 0xb6e9d3c7 =
'0100644 4799691b 46c3f2c6 0 nd bf8bf2c58...'
18:40:57.487 url__find_by_intnum[url.c:304] url with intnum 1 is
file://localhost/med​ia/sda6/backup/fsvs/​trunk/base
18:40:57.487 waa__input_tree[waa.c:1718] curr=0xb6e9d432,
end=0xb735c0a9, count=43543
18:40:57.488 waa__input_tree[waa.c:1739] about to parse 0xb6e9d432 =
'0100644 4799691b 46c3f2c6 0 nd 171a07baa...'
18:40:57.488 url__find_by_intnum[url.c:304] url with intnum 1 is
file://localhost/med​ia/sda6/backup/fsvs/​trunk/base
18:40:57.488 waa__input_tree[waa.c:1718] curr=0xb6e9d49d,
end=0xb735c0a9, count=43542
18:40:57.488 waa__input_tree[waa.c:1739] about to parse 0xb6e9d49d =
'0100644 4799691b 46c3f2c6 0 nd 57a416fde...'


An error occurred at 18:40:57.488: Invalid argument (22)
  in ops__load_1entry [est_ops.c:379]: cannot parse entry line - 12
tokens found
  in waa__input_tree [waa.c:1740]
18:40:57.489 waa__read_or_build_t​ree[waa.c:2160] read tree = 22
  in waa__read_or_build_tree [waa.c:2169]
  in st__work [status.c:370]: No working copy data could be found.
  in main [fsvs.c:1244]: action status failed
18:40:57.489 main[fsvs.c:1261] memory stats: 0x80a3000 to 0x8169000, 792 KB
 >>


Recently my laptop "fire", so now I am using another laptop. I do boot
from USB. So far, everything works. The only difference is:
- old laptop: single IDE drive (/dev/sda)
- new laptop: boot from USB drive (/dev/sdb)

My svn repository was located at /dev/sda6. Now it is /dev/sdb6. Anyway,
I do mount it to /media/sda6 (as I did with my old laptop).


Please, give me some hints.
Is it a bug?
Is it ok and I just have to "sync-repos"?

Thank you.
Plamen.

Re: Shell script/Perl help wanted

Author pmarek
Full name P.Marek
Date 2008-12-02 08:02:32 PST
Message I forgot to mention that the ignore patterns (now grouping patterns) have to
be rewritten, too; the lowercase letters at the start must be substituted by
the keywords.

Happy hacking, and thank you!


Regards,

Phil


--
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

Re: Shell script/Perl help wanted

Author pmarek
Full name P.Marek
Date 2008-12-01 16:18:06 PST
Message On Monday 01 December 2008 Gunnar Thielebein wrote:
> Farzad FARID wrote:
> > I'm willing to help you, in case you're still interested, I may have a
> > little time for this in a few days.
> I also would like to help. I also have to finish some other things
> regarding shell scripting for fsvs (hoping to get the apt-hook thing
> managed then also).
Well, then please see whether you get something up and running.

Short description:
- The $FSVS_WAA has an additional level, that's determined by a few (per
  default 4) characters of the MD5 of the WC path.
  I'd suggest just running "fsvs info <wc>" to get the correct paths.
  Extra points if you're using the $FSVS_CONF/*/_base links to do that
  for all used WCs on the machine.
- The URLs file has to be moved to the WAA
- And the WAA has either to be cleaned up, or the data moved correctly.
  Please see that at least the "dir" files is moved; although the properties
  would be nice - else a "fsvs sync-repos" run would be necessary to avoid
  the loss of the properties.
  Maybe looking for all "prop" files in the WAA, and correlating them to the
  working copy (by getting a list of all known entries by "fsvs st -v") would
  be best.
  The "md5s" and "cflct" files would be nice, too, but are not as important.

That all with a nice short README, disclaimer, and your email addresses (for
bug reports :-), and I'd be *very* happy.


Don't hesitate to ask if there are any more questions.
If you like you're welcome to use the dev@ list - so that others (including
me) see some progress, and can help if there are any questions.


Thank you *very* *much*!


Regards,

Phil


--
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

Re: Shell script/Perl help wanted

Author tekknokrat
Full name Gunnar Thielebein
Date 2008-12-01 09:50:05 PST
Message Farzad FARID wrote:
> Hi Phil,
>
> On Saturday 29 November 2008 10:13:41 Philipp Marek wrote:
>
>> Hello everybody,
>>
>> I'm asking for a bit of help.
>>
>> With the next FSVS version there'll be some incompatible changes - the
>> $FSVS_WAA has an additional level, and the URLs file has moved.
>>
>> Would somebody like to help me, writing a script that does the conversion?
>>
>
> I'm willing to help you, in case you're still interested, I may have a little
> time for this in a few days.
>
> Regards
>
>
I also would like to help. I also have to finish some other things
regarding shell scripting for fsvs (hoping to get the apt-hook thing
managed then also).

Cheers,
Gunnar

Re: Shell script/Perl help wanted

Author farzy
Full name Farzad FARID
Date 2008-12-01 07:18:09 PST
Message Hi Phil,

On Saturday 29 November 2008 10:13:41 Philipp Marek wrote:
> Hello everybody,
>
> I'm asking for a bit of help.
>
> With the next FSVS version there'll be some incompatible changes - the
> $FSVS_WAA has an additional level, and the URLs file has moved.
>
> Would somebody like to help me, writing a script that does the conversion?

I'm willing to help you, in case you're still interested, I may have a little
time for this in a few days.

 Regards

--
Farzad FARID / Architecte Open Source - AssociƩ
Pragmatic Source / http://www.pragmatic-source.com
Tel : +33 9 53 19 21 90 / Mob : +33 6 03 70 65 46

Shell script/Perl help wanted

Author pmarek
Full name P.Marek
Date 2008-11-29 01:13:41 PST
Message Hello everybody,

I'm asking for a bit of help.

With the next FSVS version there'll be some incompatible changes - the
$FSVS_WAA has an additional level, and the URLs file has moved.

Would somebody like to help me, writing a script that does the conversion?


Regards,

Phil


--
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!
Messages per page: