You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by fengbin <ar...@gmail.com> on 2009/06/23 04:47:32 UTC

problem on email notification hook

Hi,
I am new svn user and met a problem which I couldnt fix via google.

I am trying to setup email notification on commit. And my steps in as
following:

1.Create a repository by hello and only hello.c inside
2.in the hook directory of hello I enable the email notification by using
  mailer.py commit "$REPOS" "$REV" in post-commit script
3.then I do commit in svn client and found the following issue.

libsvn._core.SubversionException: ("Expected version '3' of repository;
found version '5'", 165005)



   then I change the value in format file from 5 to 3 and commit agin. This
error disappeared but a new
error comes out:
Warnning:post-commit hook failed (exit code 1) with output:
Traceback (most recent call last):
  File "/home/svn_tools/mailer.py", line 797, in ?
    author, propname)
  File
"/usr/src/build/554293-i386/install/usr/lib/python2.3/site-packages/svn/core.py",
line 33, in run_app
  File "/home/svn_tools/mailer.py", line 37, in main
    repos = Repository(repos_dir, rev, pool)
  File "/home/svn_tools/mailer.py", line 601, in __init__
    self.root_this = self.get_root(rev)
  File "/home/svn_tools/mailer.py", line 613, in get_root
    root = self.roots[rev] = svn.fs.revision_root(self.fs_ptr, rev,
self.pool)
libsvn._core.SubversionException: ('No such revision 11', 160006)
And I couldnt find any help from internet.
BTW:
svnadmin
svnadmin, version 1.6.2 (r37639)
   compiled May 15 2009, 12:58:28
svn
svn, version 1.5.1 (r32289)
   compiled Oct  6 2008, 12:54:52



Can anyone help me?
Thank you very much!


-- 
arithdon

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2364390

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: problem on email notification hook

Posted by fengbin <ar...@gmail.com>.
Thank you for your kindly reminder!!:-)

On Wed, Jul 1, 2009 at 3:46 PM, <Ul...@elektrobit.com> wrote:

>  Hi,
>
> after upgrading mod_dav_svn, don't forget to restart Apache... ;-)
>
> This happened to multiple people on this list before... ;-)
>
> Ulli
>
>  ------------------------------
> *From:* fengbin [mailto:arithdon@gmail.com]
> *Sent:* Tuesday, June 23, 2009 8:29 AM
> *To:* Ryan Schmidt
> *Cc:* users@subversion.tigris.org
> *Subject:* Re: problem on email notification hook
>
> Dear Ryan,
> Thank you for your warmly help.
> Yes ,you are right ,I am using http:// check out the files.
> I'll check how to upgrade mod_dav_svn..
>
>
>
>
>
> On Tue, Jun 23, 2009 at 1:42 PM, Ryan Schmidt <
> subversion-2009b@ryandesign.com> wrote:
>
>> On Jun 23, 2009, at 00:34, fengbin wrote:
>>
>> What do you mean
>>> "repository was created with a newer version of Subversion than the
>>> server that is now trying to read it"?
>>> The repository is created in the server ,right? So there is another
>>> server to read the data created in svn server?
>>>
>>
>> If you ran "svnadmin create" using svnadmin from Subversion 1.6.2, then
>> the repository is in a format that only Subversion 1.6.x and later can read
>> ("format 5").
>>
>> So, by what URL protocol did you check out the repository on the client --
>> http://, https://, svn://, svn+ssh://, or file:///?
>>
>> If http:// or https://, then the version of mod_dav_svn you are using in
>> Apache on the server is too old (is older than 1.6.0) and needs to be
>> upgraded.
>>
>> If svn:// or svn+ssh://, then the version of svnserve you are using on the
>> server is too old.
>>
>> If file:///, then the version of svn on the client is too old.
>>
>> In any case, if you just upgrade everything to Subversion 1.6.x you should
>> be able to access the repository no matter what protocol you are using. And
>> then we can see whether the email configuration is working. But we need to
>> get basic repository functionality working first.
>>
>>
>>
>
>
> ----------------------------------------------------------------
> Please note: This e-mail may contain confidential information
> intended solely for the addressee. If you have received this
> e-mail in error, please do not disclose it to anyone, notify
> the sender promptly, and delete the message from your system.
> Thank you.
>
>


-- 
Fengbin

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2366984

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: problem on email notification hook

Posted by Ul...@elektrobit.com.
Hi,
 
after upgrading mod_dav_svn, don't forget to restart Apache... ;-)
 
This happened to multiple people on this list before... ;-)
 
Ulli


________________________________

	From: fengbin [mailto:arithdon@gmail.com] 
	Sent: Tuesday, June 23, 2009 8:29 AM
	To: Ryan Schmidt
	Cc: users@subversion.tigris.org
	Subject: Re: problem on email notification hook
	
	
	Dear Ryan,
	Thank you for your warmly help.
	Yes ,you are right ,I am using http:// check out the files.
	I'll check how to upgrade mod_dav_svn..
	
	
	
	
	
	
	On Tue, Jun 23, 2009 at 1:42 PM, Ryan Schmidt
<su...@ryandesign.com> wrote:
	

		On Jun 23, 2009, at 00:34, fengbin wrote:
		
		

			What do you mean
			"repository was created with a newer version of
Subversion than the server that is now trying to read it"?
			The repository is created in the server ,right?
So there is another server to read the data created in svn server?
			


		If you ran "svnadmin create" using svnadmin from
Subversion 1.6.2, then the repository is in a format that only
Subversion 1.6.x and later can read ("format 5").
		
		So, by what URL protocol did you check out the
repository on the client -- http://, https://, svn://, svn+ssh://, or
file:///?
		
		If http:// or https://, then the version of mod_dav_svn
you are using in Apache on the server is too old (is older than 1.6.0)
and needs to be upgraded.
		
		If svn:// or svn+ssh://, then the version of svnserve
you are using on the server is too old.
		
		If file:///, then the version of svn on the client is
too old.
		
		In any case, if you just upgrade everything to
Subversion 1.6.x you should be able to access the repository no matter
what protocol you are using. And then we can see whether the email
configuration is working. But we need to get basic repository
functionality working first.
		
		
		






----------------------------------------------------------------
Please note: This e-mail may contain confidential information
intended solely for the addressee. If you have received this
e-mail in error, please do not disclose it to anyone, notify
the sender promptly, and delete the message from your system.
Thank you.


Re: problem on email notification hook

Posted by fengbin <ar...@gmail.com>.
Dear Ryan,
Thank you for your warmly help.
Yes ,you are right ,I am using http:// check out the files.
I'll check how to upgrade mod_dav_svn..





On Tue, Jun 23, 2009 at 1:42 PM, Ryan Schmidt <
subversion-2009b@ryandesign.com> wrote:

> On Jun 23, 2009, at 00:34, fengbin wrote:
>
>  What do you mean
>> "repository was created with a newer version of Subversion than the server
>> that is now trying to read it"?
>> The repository is created in the server ,right? So there is another server
>> to read the data created in svn server?
>>
>
> If you ran "svnadmin create" using svnadmin from Subversion 1.6.2, then the
> repository is in a format that only Subversion 1.6.x and later can read
> ("format 5").
>
> So, by what URL protocol did you check out the repository on the client --
> http://, https://, svn://, svn+ssh://, or file:///?
>
> If http:// or https://, then the version of mod_dav_svn you are using in
> Apache on the server is too old (is older than 1.6.0) and needs to be
> upgraded.
>
> If svn:// or svn+ssh://, then the version of svnserve you are using on the
> server is too old.
>
> If file:///, then the version of svn on the client is too old.
>
> In any case, if you just upgrade everything to Subversion 1.6.x you should
> be able to access the repository no matter what protocol you are using. And
> then we can see whether the email configuration is working. But we need to
> get basic repository functionality working first.
>
>
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2364407

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: problem on email notification hook

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jun 23, 2009, at 00:34, fengbin wrote:

> What do you mean
> "repository was created with a newer version of Subversion than the  
> server that is now trying to read it"?
> The repository is created in the server ,right? So there is another  
> server to read the data created in svn server?

If you ran "svnadmin create" using svnadmin from Subversion 1.6.2,  
then the repository is in a format that only Subversion 1.6.x and  
later can read ("format 5").

So, by what URL protocol did you check out the repository on the  
client -- http://, https://, svn://, svn+ssh://, or file:///?

If http:// or https://, then the version of mod_dav_svn you are using  
in Apache on the server is too old (is older than 1.6.0) and needs to  
be upgraded.

If svn:// or svn+ssh://, then the version of svnserve you are using  
on the server is too old.

If file:///, then the version of svn on the client is too old.

In any case, if you just upgrade everything to Subversion 1.6.x you  
should be able to access the repository no matter what protocol you  
are using. And then we can see whether the email configuration is  
working. But we need to get basic repository functionality working  
first.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2364402

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: problem on email notification hook

Posted by fengbin <ar...@gmail.com>.
Dear Ryan,
Thank you for your quick and clear response!!!!
1.Yes, I am using absolute path for the mailer.py ..-)
2. About this point I dont understand clearly. What do you mean
"repository was created with a newer version of Subversion than the server
that is now trying to read it"?
The repository is created in the server ,right? So there is another server
to read the data created in svn server?


Million thanks to you!







On Tue, Jun 23, 2009 at 1:26 PM, Ryan Schmidt <
subversion-2009b@ryandesign.com> wrote:

> On Jun 22, 2009, at 23:47, fengbin wrote:
>
>  I am trying to setup email notification on commit. And my steps in as
>> following:
>>
>> 1.Create a repository by hello and only hello.c inside
>> 2.in the hook directory of hello I enable the email notification by using
>>  mailer.py commit "$REPOS" "$REV" in post-commit script
>>
>
> You'll need the absolute path to mailer.py, unless you set the PATH
> environment variable within your hook script.
>
>  3.then I do commit in svn client and found the following issue.
>>
>> libsvn._core.SubversionException: ("Expected version '3' of repository;
>> found version '5'", 165005)
>>
>
> This means the repository was created with a newer version of Subversion
> than the server that is now trying to read it -- server being either
> svnserve, or mod_dav_svn in apache, or the svn client program itself if
> using the file:/// or svn+ssh:// protocols. Upgrade your svnserve /
> mod_dav_svn / svn to the same version.
>
>    then I change the value in format file from 5 to 3
>>
>
> Don't do that. The message was telling you that the repository *is* format
> 5, but this server can only read up to format 3 repositories, meaning the
> server you're using is too old.
>
>
>  and commit agin. This error disappeared but a new
>> error comes out:
>> Warnning:post-commit hook failed (exit code 1) with output:
>> Traceback (most recent call last):
>>  File "/home/svn_tools/mailer.py", line 797, in ?
>>    author, propname)
>>  File
>> "/usr/src/build/554293-i386/install/usr/lib/python2.3/site-packages/svn/core.py",
>> line 33, in run_app
>>  File "/home/svn_tools/mailer.py", line 37, in main
>>    repos = Repository(repos_dir, rev, pool)
>>  File "/home/svn_tools/mailer.py", line 601, in __init__
>>    self.root_this = self.get_root(rev)
>>  File "/home/svn_tools/mailer.py", line 613, in get_root
>>    root = self.roots[rev] = svn.fs.revision_root(self.fs_ptr, rev,
>> self.pool)
>> libsvn._core.SubversionException: ('No such revision 11', 160006)
>> And I couldnt find any help from internet.
>> BTW:
>> svnadmin
>> svnadmin, version 1.6.2 (r37639)
>>   compiled May 15 2009, 12:58:28
>> svn
>> svn, version 1.5.1 (r32289)
>>   compiled Oct  6 2008, 12:54:52
>>
>
>
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2364401

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: problem on email notification hook

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jun 22, 2009, at 23:47, fengbin wrote:

> I am trying to setup email notification on commit. And my steps in  
> as following:
>
> 1.Create a repository by hello and only hello.c inside
> 2.in the hook directory of hello I enable the email notification by  
> using
>   mailer.py commit "$REPOS" "$REV" in post-commit script

You'll need the absolute path to mailer.py, unless you set the PATH  
environment variable within your hook script.

> 3.then I do commit in svn client and found the following issue.
>
> libsvn._core.SubversionException: ("Expected version '3' of  
> repository; found version '5'", 165005)

This means the repository was created with a newer version of  
Subversion than the server that is now trying to read it -- server  
being either svnserve, or mod_dav_svn in apache, or the svn client  
program itself if using the file:/// or svn+ssh:// protocols. Upgrade  
your svnserve / mod_dav_svn / svn to the same version.

>    then I change the value in format file from 5 to 3

Don't do that. The message was telling you that the repository *is*  
format 5, but this server can only read up to format 3 repositories,  
meaning the server you're using is too old.

> and commit agin. This error disappeared but a new
> error comes out:
> Warnning:post-commit hook failed (exit code 1) with output:
> Traceback (most recent call last):
>   File "/home/svn_tools/mailer.py", line 797, in ?
>     author, propname)
>   File "/usr/src/build/554293-i386/install/usr/lib/python2.3/site- 
> packages/svn/core.py", line 33, in run_app
>   File "/home/svn_tools/mailer.py", line 37, in main
>     repos = Repository(repos_dir, rev, pool)
>   File "/home/svn_tools/mailer.py", line 601, in __init__
>     self.root_this = self.get_root(rev)
>   File "/home/svn_tools/mailer.py", line 613, in get_root
>     root = self.roots[rev] = svn.fs.revision_root(self.fs_ptr, rev,  
> self.pool)
> libsvn._core.SubversionException: ('No such revision 11', 160006)
> And I couldnt find any help from internet.
> BTW:
> svnadmin
> svnadmin, version 1.6.2 (r37639)
>    compiled May 15 2009, 12:58:28
> svn
> svn, version 1.5.1 (r32289)
>    compiled Oct  6 2008, 12:54:52

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2364400

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].