Login | Register
My pages Projects Community openCollabNet

Discussions > users > fsvs configuration bug

fsvs
Discussion topic

Hide all messages in topic

All messages in topic

Re: fsvs configuration bug

Author pmarek
Full name P.Marek
Date 2008-04-17 22:17:12 PDT
Message Hello Gunnar!

> On Thursday 17 April 2008 11:41:56 Gunnar Thielebein wrote:
> thank you for your immidiate answer.
> I did a test on another machine and it seems to work fine there like it
should be.

> At buttom you'll find output of the commands.
...
> strange, the "_base" is an symlink to pathes i used before for testing
issues. but i deleted the urls and ignore lists for them. Why do they
still appear in the config dir?

On initial definition of a working copy base directory via "fsvs urls ..."
fsvs creates the /etc/fsvs/ directories, and puts the symlink in there (as
documentation).

Simple "fsvs urls load" and so on may clean the URL list - but they do not
remove the symlink. That would have to be a "fsvs disown" or something
like that :-)


Now, I think that on this machine you might have a directory in /etc/fsvs/
that was defined for some directory below /etc - eg. /etc/apache2/

fsvs looks through the directory structure, finds this directory, and
believes it to be the working copy base - but then there's nothing
defined.

So you could try to clean that up - and should be fine.


HTH!


Regards,

Phil


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

Re: fsvs configuration bug

Author tekknokrat
Full name Gunnar Thielebein
Date 2008-04-17 06:02:28 PDT
Message On Thursday 17 April 2008 11:41:56 Gunnar Thielebein wrote:
> -------- Original-Nachricht --------
> Betreff: Re: fsvs configuration bug
> Datum: Thu, 17 Apr 2008 07:27:01 +0200 (CEST)
> Von: Philipp Marek <philipp at marek dot priv dot at>
> Antwort an: users at fsvs dot tigris dot org
> An: gunnar_thielebein at gmx dot net
> CC: users at fsvs dot tigris dot org, hw at travelping dot com, aschultz at travelping dot com
> Referenzen: <200804161834.344​47.gunnar_thielebein​@gmx.net>
>
>

Hi Marek,

thank you for your immidiate answer.
I did a test on another machine and it seems to work fine there like it should be.
At buttom you'll find output of the commands.

>
> Hello Gunnar!
>
> > Where we are struggling now is when doing some configuration management.
> > Lets say we are in /etc/apache2 and have done some changes in
> > sites-enable/000-default and want to perform a commit.
> >
> > fsvs commit -m "changed apache2 config"
> >
> > fsvs tries to look for configuration of the path which is cwd passwd as
> > parameter with fsvs commit and fails with
> >
> > "No URLs have been defined for /etc/apache2."
>
> Strange ... I have explicit code that looks at upper directories, if the
> current directory has no configuration data.
>
> Which version of FSVS are you using?
>
> Could you please send me the output of these commands?
> $ cd /etc/apache2
> $ fsvs info

An error occurred: Cannot assign requested address (99)
  in ops__load_1entry

> $ fsvs ci -mX -D waa__get_waa_directory -d

04:34:09.900 waa__get_waa_directo​ry[waa.c:351] path is /etc/apache2
04:34:09.904 waa__get_waa_directo​ry[waa.c:398] md5 of /etc/apache2
04:34:09.904 waa__get_waa_directo​ry[waa.c:443] returning /etc/fsvs/174c842010​42bb2d7f49746dc078fd​56/
04:34:09.904 waa__get_waa_directo​ry[waa.c:351] path is /etc
04:34:09.905 waa__get_waa_directo​ry[waa.c:398] md5 of /etc
04:34:09.905 waa__get_waa_directo​ry[waa.c:443] returning /etc/fsvs/182f153bd9​4803955c2043e6f2581d​5d/
04:34:09.905 waa__get_waa_directo​ry[waa.c:351] path is /etc
04:34:09.905 waa__get_waa_directo​ry[waa.c:398] md5 of /etc
04:34:09.905 waa__get_waa_directo​ry[waa.c:443] returning /etc/fsvs/182f153bd9​4803955c2043e6f2581d​5d/
04:34:09.906 waa__get_waa_directo​ry[waa.c:351] path is /etc
04:34:09.906 waa__get_waa_directo​ry[waa.c:398] md5 of /etc
04:34:09.906 waa__get_waa_directo​ry[waa.c:443] returning /etc/fsvs/182f153bd9​4803955c2043e6f2581d​5d/
No URLs have been defined for /etc.

An error occurred at 04:34:09.907: No such file or directory (2)
  in url__load_nonempty_list [url.c:779]: No URLs have been defined for /etc.

> $ ls -lad /etc/fsvs/*/*

lrwxrwxrwx 1 root root 4 2008-04-16 04:37 /etc/fsvs/182f153bd9​4803955c2043e6f2581d​5d/_base -> /etc
-rwxr-xr-x 1 root root 0 2008-04-15 08:05 /etc/fsvs/182f153bd9​4803955c2043e6f2581d​5d/Urls
lrwxrwxrwx 1 root root 1 2008-04-16 04:37 /etc/fsvs/6666cd76f9​6956469e7be39d750cc7​d9/_base -> /
-rwxr-xr-x 1 root root 296 2008-04-15 07:10 /etc/fsvs/6666cd76f9​6956469e7be39d750cc7​d9/Ign
-rwxr-xr-x 1 root root 64 2008-04-15 06:59 /etc/fsvs/6666cd76f9​6956469e7be39d750cc7​d9/Urls
lrwxrwxrwx 1 root root 5 2008-04-16 04:37 /etc/fsvs/a53bfb3334​37907a8d5bdc636d15c7​5d/_base -> /boot
-rwxr-xr-x 1 root root 69 2008-04-15 07:15 /etc/fsvs/a53bfb3334​37907a8d5bdc636d15c7​5d/Urls
lrwxrwxrwx 1 root root 4 2008-04-16 04:37 /etc/fsvs/ca905eb4a0​0d34150573153a09e2e7​9b/_base -> /var
-rwxr-xr-x 1 root root 68 2008-04-15 07:15 /etc/fsvs/ca905eb4a0​0d34150573153a09e2e7​9b/Urls
lrwxrwxrwx 1 root root 17 2008-04-16 04:37 /etc/fsvs/ddc6f68f83​14c7d9557e9b5a578c38​21/_base -> /home/gthielebein
-rwxr-xr-x 1 root root 2 2008-04-15 02:41 /etc/fsvs/ddc6f68f83​14c7d9557e9b5a578c38​21/Ign
-rwxr-xr-x 1 root root 0 2008-04-15 02:40 /etc/fsvs/ddc6f68f83​14c7d9557e9b5a578c38​21/Urls

strange, the "_base" is an symlink to pathes i used before for testing issues. but i deleted the urls and ignore lists for them. Why do they still appear in the config dir?

Regards, Gunnar
Attachments

Re: fsvs configuration bug

Author pmarek
Full name P.Marek
Date 2008-04-16 22:27:01 PDT
Message Hello Gunnar!

> Where we are struggling now is when doing some configuration management.
> Lets say we are in /etc/apache2 and have done some changes in
> sites-enable/000-default and want to perform a commit.
>
> fsvs commit -m "changed apache2 config"
>
> fsvs tries to look for configuration of the path which is cwd passwd as
> parameter with fsvs commit and fails with
>
> "No URLs have been defined for /etc/apache2."
Strange ... I have explicit code that looks at upper directories, if the
current directory has no configuration data.

Which version of FSVS are you using?

Could you please send me the output of these commands?
  $ cd /etc/apache2
  $ fsvs info
  $ fsvs ci -mX -D waa__get_waa_directory -d
  $ ls -lad /etc/fsvs/*/*


Thank you.


Regards,

Phil


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

fsvs configuration bug

Author tekknokrat
Full name Gunnar Thielebein
Date 2008-04-16 09:34:34 PDT
Message Hi,

I am trying to configure fsvs to manage the configuration of several servers
in our company.

We have choosen / as configuration path. We are using exactly one url and
exactly one ignore list.

The ignore list shows this way:

t./boot
t./boot/grub
t./boot/grub/menu.lst
./etc/fsvs
./etc/*passwd*
./etc/*shadow*
./etc/ssh/ssh_host_[dr]sa_key
./etc/ssl/private
t./etc/
t./var
t./var/lib
t./var/lib/dpkg
t./var/lib/dpkg/status
t./var/trac
t./var/trac/*
t./var/trac/*/conf
t./var/trac/*/conf/trac.ini
./**

the svn url is

http://server/svn/OR​GUNIT/DOMAIN/SUBDOMA​IN/hostname

Where we are struggling now is when doing some configuration management.
Lets say we are in /etc/apache2 and have done some changes in
sites-enable/000-default and want to perform a commit.

fsvs commit -m "changed apache2 config"

fsvs tries to look for configuration of the path which is cwd passwd as
parameter with fsvs commit and fails with

"No URLs have been defined for /etc/apache2."

Another thing is if I use

fsvs status /etc/

i get a whole list of new files because there is no ignore list used.

Is it possible to use the configuration of the last dir which is configured
with an url (in stepping the path back) and using the url that is configured
(modified with the new path)? Is it possible to do the similar with ignore
list (Trimming path from the list equivalent to position of current /param
dir) ?

Best Regards,
Gunnar Thielebein
Messages per page: