honglianglv / reviewboard-svn-hooks

Automatically exported from code.google.com/p/reviewboard-svn-hooks
0 stars 0 forks source link

<urlopen error [Errno 13] Permission denied> #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Execution of pre-commit hook during SVN 
commit(https://github.com/shuge/reviewboard-svn-hooks/blob/master/reviewboardsvn
hooks/strict_review.py)

What is the expected output? What do you see instead?
<urlopen error [Errno 13] Permission denied>
在rsp = self._opener.open(r)這一行open url以取得request 
xml時出現權限讀取錯誤
我在centos下wget可成功取得xml
但執行hook時失敗

SVN錯誤訊息
===========
Command: Commit  
Modified: D:1.txt  
Sending content: D:1.txt  
Error: Commit failed (details follow):  
Error: Commit blocked by pre-commit hook (exit code 1) with output:  
Error: <urlopen error [Errno 13] Permission denied>   
http://192.168.0.188/rb/api/review-requests/2/reviews/  
Finished! 

What version of the product are you using? On what operating system?
ReviewBoard: 1.7.6
OS: Centos 6.3
Python 2.6.6

Please provide any additional information below.

Original issue reported on code.google.com by rowens...@gmail.com on 18 Mar 2013 at 9:57

GoogleCodeExporter commented 8 years ago
Set SELinux  from Enforcing to Permissive and it's okay.
Hope it helps.

Original comment by rowens...@gmail.com on 19 Mar 2013 at 4:22