You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Giulio Troccoli <Gi...@uk.linedata.com> on 2007/06/13 10:56:53 UTC
Subversion asking for password over and over again
I have been using Subversion for a year or so now and I have 3
productions repositories and 3 or 4 testing repositories. I am using one
of these repositories to test some scripts I am writing.
My testing repository is a copy of a production one and what I did is:
- svnadmin dump
- create the repository dir
- svnadmin create
- svnadmin load
- copy the hooks from production to testing
The post-commit hook contains some code to change the log message, using
svn ps, and it works fine in production. However it does not in testing.
If I run the script manually svn stops when changing the svn:log
property to ask for the Subversion password. I thought this was fine the
first time, as it was a new repository, but even after I entered the
password the first time (and it was the correct password as svn ps
succeeded) this is not stored and I have to enter it again, making it
impossible for the post-commit script to work.
The strange thing is that when I use another user to commit the changes
to the repository (so that the post-commit script is call) subversion
asked me for the password just the first time.
I am very confused because firstly it seems that the password is stored
for one user and not the other, and secondly because I don't recall
having done anything in the production repository to tell subversion to
store the password so I don't know if I have to do something on the
testing repository.
Can anybody help please?
Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851 VAT Reg No 778499447
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Subversion 1.4.4 RPM's for SuSE 9.3 and SLES9
Posted by Marcus Rueckert <da...@web.de>.
On 2007-06-14 10:54:23 +0200, Karl Heinz Marbaise wrote:
> i have created binary/source RPM's for SuSE 9.3 and SLES9 and make them
> available.
>
> They had been created using the subversion-1.4.4.tar.gz and
> the subversion-deps-1.4.4.tar.gz:
>
> I'm continuing my effort to create RPM's with different language
> bindings (e.g. Python, Perl), but they are not ready yet.
>
> You can find the RPM's here:
>
> http://rpm.soebes.de
>
> The SuSE 9.3 RPM's:
> http://rpm.soebes.de/wiki/SuSE93
> The SLES9 RPM's:
> http://rpm.soebes.de/wiki/SLES9
>
> If you have any further detailed questions, suggestions, bugs etc. just
> get in contact with me via
>
> rpm@soebes.de
maybe look into:
http://build.opensuse.org
http://en.opensuse.org/Build_Service
and join us in the Subversion buildservice project. (rpms can be found
in http://software.opensuse.org/download/Subversion/
darix
--
openSUSE - SUSE Linux is my linux
openSUSE is good for you
www.opensuse.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Subversion 1.4.4 RPM's for SuSE 9.3 and SLES9
Posted by Marcus Rueckert <da...@web.de>.
On 2007-06-14 10:54:23 +0200, Karl Heinz Marbaise wrote:
> i have created binary/source RPM's for SuSE 9.3 and SLES9 and make them
> available.
>
> They had been created using the subversion-1.4.4.tar.gz and
> the subversion-deps-1.4.4.tar.gz:
>
> I'm continuing my effort to create RPM's with different language
> bindings (e.g. Python, Perl), but they are not ready yet.
>
> You can find the RPM's here:
>
> http://rpm.soebes.de
>
> The SuSE 9.3 RPM's:
> http://rpm.soebes.de/wiki/SuSE93
> The SLES9 RPM's:
> http://rpm.soebes.de/wiki/SLES9
>
> If you have any further detailed questions, suggestions, bugs etc. just
> get in contact with me via
>
> rpm@soebes.de
maybe look into:
http://build.opensuse.org
http://en.opensuse.org/Build_Service
and join us in the Subversion buildservice project. (rpms can be found
in http://software.opensuse.org/download/Subversion/
darix
--
openSUSE - SUSE Linux is my linux
openSUSE is good for you
www.opensuse.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Subversion 1.4.4 RPM's for SuSE 9.3 and SLES9
Posted by Karl Heinz Marbaise <kh...@gmx.de>.
Hi to all,
i have created binary/source RPM's for SuSE 9.3 and SLES9 and make them
available.
They had been created using the subversion-1.4.4.tar.gz and
the subversion-deps-1.4.4.tar.gz:
I'm continuing my effort to create RPM's with different language
bindings (e.g. Python, Perl), but they are not ready yet.
You can find the RPM's here:
http://rpm.soebes.de
The SuSE 9.3 RPM's:
http://rpm.soebes.de/wiki/SuSE93
The SLES9 RPM's:
http://rpm.soebes.de/wiki/SLES9
If you have any further detailed questions, suggestions, bugs etc. just
get in contact with me via
rpm@soebes.de
Kind regards
Karl Heinz Marbaise
--
SoftwareEntwicklung Beratung Schulung Tel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz Marbaise ICQ#: 135949029
Hauptstrasse 177 USt.IdNr: DE191347579
52146 Würselen http://www.soebes.de
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Subversion 1.4.4 RPM's for SuSE 9.3 and SLES9
Posted by Karl Heinz Marbaise <kh...@gmx.de>.
Hi to all,
i have created binary/source RPM's for SuSE 9.3 and SLES9 and make them
available.
They had been created using the subversion-1.4.4.tar.gz and
the subversion-deps-1.4.4.tar.gz:
I'm continuing my effort to create RPM's with different language
bindings (e.g. Python, Perl), but they are not ready yet.
You can find the RPM's here:
http://rpm.soebes.de
The SuSE 9.3 RPM's:
http://rpm.soebes.de/wiki/SuSE93
The SLES9 RPM's:
http://rpm.soebes.de/wiki/SLES9
If you have any further detailed questions, suggestions, bugs etc. just
get in contact with me via
rpm@soebes.de
Kind regards
Karl Heinz Marbaise
--
SoftwareEntwicklung Beratung Schulung Tel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz Marbaise ICQ#: 135949029
Hauptstrasse 177 USt.IdNr: DE191347579
52146 Würselen http://www.soebes.de
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Subversion asking for password over and over again
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jun 14, 2007, at 03:32, Giulio Troccoli wrote:
>> I don't even think your hook script needs to access the repository in
>> a way that requires a password. You should be able to bypass that.
>>
>> For example, you could write your post-commit hook like this:
>
> [snip]
>
> Thanks. I didn't know that you could use svnadmin to change the log.
> This does not require a commit, does it?
Correct. The log message is a property of a revision, so it just
changes the property of that revision, without creating a new revision.
> However, this is more a workaround that a solution. I still don't
> understand why one user has stored the password and another hasn't
> (the
> config files in the .subversion diretory are the same). I would very
> much like to understand the problem and fix it rather than put a
> workaround in place. Especially because the exact same procedure (to
> change the log message) works perfectly fine in the production
> repository.
Oh I thought the task was to modify the log message in a hook script,
and I showed how to do that.
I don't know why you're having the other problem.
>> $SVNADMIN setlog --bypass-hooks \
>> $REPOS -r $REV $FILE
>
> The problem is not that the normal hooks are called. So bypassing them
> wouldn't make any difference. However, as I said, I didn't know you
> could use svnadmin and that this does not require a commit.
I just included --bypass-hooks for completeness. If you did not
specify that, you would also need to install a pre-revprop-change
hook to allow changing revision properties. Perhaps you have already
done this, in which case --bypass-hooks is not necessary for you. But
maybe someone reading these messages in the archive won't have
already set up that hook.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
RE: Subversion asking for password over and over again
Posted by Giulio Troccoli <Gi...@uk.linedata.com>.
> I don't even think your hook script needs to access the repository in
> a way that requires a password. You should be able to bypass that.
>
> For example, you could write your post-commit hook like this:
[snip]
Thanks. I didn't know that you could use svnadmin to change the log.
This does not require a commit, does it?
However, this is more a workaround that a solution. I still don't
understand why one user has stored the password and another hasn't (the
config files in the .subversion diretory are the same). I would very
much like to understand the problem and fix it rather than put a
workaround in place. Especially because the exact same procedure (to
change the log message) works perfectly fine in the production
repository.
> $SVNADMIN setlog --bypass-hooks \
> $REPOS -r $REV $FILE
The problem is not that the normal hooks are called. So bypassing them
wouldn't make any difference. However, as I said, I didn't know you
could use svnadmin and that this does not require a commit.
Giulio
Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851 VAT Reg No 778499447
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Subversion asking for password over and over again
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jun 13, 2007, at 05:56, Giulio Troccoli wrote:
> I have been using Subversion for a year or so now and I have 3
> productions repositories and 3 or 4 testing repositories. I am
> using one
> of these repositories to test some scripts I am writing.
>
> My testing repository is a copy of a production one and what I did is:
> - svnadmin dump
> - create the repository dir
> - svnadmin create
> - svnadmin load
> - copy the hooks from production to testing
>
> The post-commit hook contains some code to change the log message,
> using
> svn ps, and it works fine in production. However it does not in
> testing.
> If I run the script manually svn stops when changing the svn:log
> property to ask for the Subversion password. I thought this was
> fine the
> first time, as it was a new repository, but even after I entered the
> password the first time (and it was the correct password as svn ps
> succeeded) this is not stored and I have to enter it again, making it
> impossible for the post-commit script to work.
[snip]
I don't even think your hook script needs to access the repository in
a way that requires a password. You should be able to bypass that.
For example, you could write your post-commit hook like this:
#!/bin/sh
REPOS="$1"
REV="$2"
SVNADMIN=/usr/bin/svnadmin
MKTEMP=/usr/bin/mktemp
CAT=/bin/cat
RM=/bin/rm
FILE=`$MKTEMP -t svnhook`
$CAT > $FILE << SVNHOOK_EOF
my
new
log
message
SVNHOOK_EOF
$SVNADMIN setlog --bypass-hooks \
$REPOS -r $REV $FILE
$RM -f $FILE
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
RE: RE: Subversion asking for password over and over again
Posted by Giulio Troccoli <Gi...@uk.linedata.com>.
Also, I have just realised that the config file in .subversion directory
for the user that does work for the testing repository has everything
commented out (the same is for the user that does not work).
So, to summarise:
- the config files in the .subversion directory for both user
UserOK (on AIX) and user UserKO (on Linux) have everything commented out
- both user UserOK and UserKO work fine (i.e. subversion does
not ask for passwords) for repository ProdRepo
- TestRepo is a copy of ProdRepo (dump/load cycle and copies
the hooks)
- UserOK works fine for repository TestProd
- UserKO does not work fine for TestProd
I have look at the .subversion/auth/svn.simple directory for both UserOK
and UserKO. For UserOK I do have a file for TestRepo which have the
password in it. For UserKO I do not have a file for TestRepo, and this
is I think the problem. But why isn't there such a file?
ln1sub01 svn.simple> svn --version
svn, version 1.4.3 (r23084)
compiled Jan 25 2007, 18:41:18
ln1sub01 svn.simple> uname -a
Linux ln1sub01.ad.ldsam.com 2.6.9-22.0.2.ELsmp #1 SMP Thu Jan 5 17:13:01
EST 2006 i686 i686 i386 GNU/Linux
kylie[ksh]% .subversion>uname -a
AIX kylie 3 5 00CEDC9D4C00
________________________________
From: Giulio Troccoli [mailto:Giulio.Troccoli@uk.linedata.com]
Sent: 13 June 2007 13:28
To: rahul8024@yahoo.com; users@subversion.tigris.org
Subject: RE: Subversion asking for password over and over again
Thanks for your answer.
I haven't tried it yet, but I forgot to tell you that the same user
works fine with the production repositories (subversion does not ask for
a password).
Giulio
________________________________
From: Rahul [mailto:rahul8024@yahoo.com]
Sent: 13 June 2007 13:13
To: Giulio Troccoli; users@subversion.tigris.org
Subject: Re: Subversion asking for password over and over again
Hi Troccoli,
For this edit the file config which is placed in
.subversion folder on your home and set `store-passwords = Yes' and
`store-auth-creds = Yes`
Hopefully it will do
Rg,
Rahul
Giulio Troccoli <Gi...@uk.linedata.com> wrote:
I have been using Subversion for a year or so now and I have 3
productions repositories and 3 or 4 testing repositories. I am using one
of these repositories to test some scripts I am writing.
My testing repository is a copy of a production one and what I did is:
- svnadmin dump
- create the repository dir
- svnadmin create
- svnadmin load
- copy the hooks from production to testing
The post-commit hook contains some code to change the log message, using
svn ps, and it works fine in production. However it does not in testing.
If I run the script manually svn stops when changing the svn:log
property to ask for the Subversion password. I thought this was fine the
first time, as it was a new repository, but even after I entered the
password the first time (and it was the correct password as svn ps
succeeded) this is not stored and I have to enter it again, making it
impossible for the post-commit script to work.
The strange thing is that when I use another user to commit the changes
to the repository (so that the post-commit script is call) subversion
asked me for the password just the first time.
I am very confused because firstly it seems that the password is stored
for one user and not the other, and secondly because I don't recall
having done anything in the production repository to tell subversion to
store the password so I don't know if I have to do something on the
testing repository.
Can anybody help please?
Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1
6DB
Registered in England and Wales No 3027851 VAT Reg No 778499447
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
________________________________
Get your own web address.
<http://us.rd.yahoo.com/evt=49678/*http:/smallbusiness.yahoo.com/domains
/?p=BESTDEAL>
Have a HUGE year through Yahoo! Small Business.
RE: Subversion asking for password over and over again
Posted by Giulio Troccoli <Gi...@uk.linedata.com>.
Thanks for your answer.
I haven't tried it yet, but I forgot to tell you that the same user
works fine with the production repositories (subversion does not ask for
a password).
Giulio
________________________________
From: Rahul [mailto:rahul8024@yahoo.com]
Sent: 13 June 2007 13:13
To: Giulio Troccoli; users@subversion.tigris.org
Subject: Re: Subversion asking for password over and over again
Hi Troccoli,
For this edit the file config which is placed in
.subversion folder on your home and set `store-passwords = Yes' and
`store-auth-creds = Yes`
Hopefully it will do
Rg,
Rahul
Giulio Troccoli <Gi...@uk.linedata.com> wrote:
I have been using Subversion for a year or so now and I have 3
productions repositories and 3 or 4 testing repositories. I am using one
of these repositories to test some scripts I am writing.
My testing repository is a copy of a production one and what I did is:
- svnadmin dump
- create the repository dir
- svnadmin create
- svnadmin load
- copy the hooks from production to testing
The post-commit hook contains some code to change the log message, using
svn ps, and it works fine in production. However it does not in testing.
If I run the script manually svn stops when changing the svn:log
property to ask for the Subversion password. I thought this was fine the
first time, as it was a new repository, but even after I entered the
password the first time (and it was the correct password as svn ps
succeeded) this is not stored and I have to enter it again, making it
impossible for the post-commit script to work.
The strange thing is that when I use another user to commit the changes
to the repository (so that the post-commit script is call) subversion
asked me for the password just the first time.
I am very confused because firstly it seems that the password is stored
for one user and not the other, and secondly because I don't recall
having done anything in the production repository to tell subversion to
store the password so I don't know if I have to do something on the
testing repository.
Can anybody help please?
Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1
6DB
Registered in England and Wales No 3027851 VAT Reg No 778499447
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
________________________________
Get your own web address.
<http://us.rd.yahoo.com/evt=49678/*http:/smallbusiness.yahoo.com/domains
/?p=BESTDEAL>
Have a HUGE year through Yahoo! Small Business.
Re: Subversion asking for password over and over again
Posted by Rahul <ra...@yahoo.com>.
Hi Troccoli,
For this edit the file config which is placed in .subversion folder on your home and set `store-passwords = Yes' and `store-auth-creds = Yes`
Hopefully it will do
Rg,
Rahul
Giulio Troccoli <Gi...@uk.linedata.com> wrote: I have been using Subversion for a year or so now and I have 3
productions repositories and 3 or 4 testing repositories. I am using one
of these repositories to test some scripts I am writing.
My testing repository is a copy of a production one and what I did is:
- svnadmin dump
- create the repository dir
- svnadmin create
- svnadmin load
- copy the hooks from production to testing
The post-commit hook contains some code to change the log message, using
svn ps, and it works fine in production. However it does not in testing.
If I run the script manually svn stops when changing the svn:log
property to ask for the Subversion password. I thought this was fine the
first time, as it was a new repository, but even after I entered the
password the first time (and it was the correct password as svn ps
succeeded) this is not stored and I have to enter it again, making it
impossible for the post-commit script to work.
The strange thing is that when I use another user to commit the changes
to the repository (so that the post-commit script is call) subversion
asked me for the password just the first time.
I am very confused because firstly it seems that the password is stored
for one user and not the other, and secondly because I don't recall
having done anything in the production repository to tell subversion to
store the password so I don't know if I have to do something on the
testing repository.
Can anybody help please?
Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851 VAT Reg No 778499447
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
---------------------------------
Get your own web address.
Have a HUGE year through Yahoo! Small Business.