"[Errno 13] Permission denied:" In Linux while creating branch / repository
Hi,
We have mounted a windows shared drive in Linux (/mnt/p), in which bazaar repository is been created.
And i have given full permission from the linux m/c user.
Using bazaar I'm able to checkout and checkin the files, but while creating branch / new repository getting this below error.
Error:
[tanst@server test]$ bzr branch /mnt/p/
bzr: ERROR: Permission denied: "/mnt/p/
But a branch folder is been created in target directory with an empty ".bzr" inside.
As a normal user i'm able to create directory inside repository path,
[tanst@ server test]$ mkdir /mnt/p/
[tanst@ server test]$ ls -l /mnt/p/
total 12
drwxrwxrwx 3 tanst RemoteUsr 4096 Nov 8 16:30 ASD_witt
drwxrwxrwx 3 tanst RemoteUsr 4096 Nov 8 16:30 RC1234
drwxrwxrwx 2 tanst RemoteUsr 4096 Nov 14 2011 RCTEST
I don't know why bazaar is giving problem in this situation.
Regards,
Vijay
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Bazaar Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Vijaya Kumar
- Solved:
- Last query:
- Last reply:
Related FAQ:
None Link to a FAQ
Revision history for this message
|
#1 |
From .bzr.log -->
>>>>>>>
Mon 2011-11-14 16:11:19 +0800
0.028 bazaar version: 2.1.4
0.028 bzr arguments: [u'branch', u'/mnt/
0.043 looking for plugins in /home/tanst/
0.043 looking for plugins in /usr/lib/
0.109 encoding stdout as sys.stdout encoding 'UTF-8'
1.751 Traceback (most recent call last):
File "/usr/lib/
return the_callable(*args, **kwargs)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run_
File "/usr/lib/
return self._operation
File "/usr/lib/
return _do_with_cleanups(
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
source_
File "/usr/lib/
result = cloning_
File "/usr/lib/
return self._initializ
File "/usr/lib/
mode=
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
raise errors.
PermissionDenied: Permission denied: "/mnt/p/
1.751 Transferred: 0KiB (0.0K/s r:0K w:0K)
1.751 return code 3
>>>>>>>
Revision history for this message
|
#2 |
On 11/14/2011 9:45 AM, Vijaya Kumar wrote:
> Question #178695 on Bazaar changed:
> https:/
>
> Vijaya Kumar gave more information on the question:
>
>> From .bzr.log -->
...
> File "/usr/lib/
> raise errors.
> PermissionDenied: Permission denied: "/mnt/p/
>
> 1.751 Transferred: 0KiB (0.0K/s r:0K w:0K)
> 1.751 return code 3
>>>>>>>
>
I'm guessing we are trying to make sure the directory exists, so we are
calling mkdir(). We would expect that if the dir already existed, we
would get a FileExists exception, but we are getting PermissionDenied.
Which leads us to believe that the directory doesn't exist (we were
denied permission to create it).
I suppose we could change the code a bit so that when we get an error,
we do a bit more digging to see if it really means what it says.
John
=:->
Revision history for this message
|
#3 |
To be more clear..
(1)
Run command: bzr branch bzr+http://
bzr: ERROR: Permission denied: ".": : [Errno 13] Permission denied: '/bzr/repo/
(2)
Run command: bzr branch bzr+http://
Revision history for this message
|
#5 |
Could you help me to resolve this:
bzr branch lp:~mbp/bzr/606537-mkdir test
bzr: ERROR: Connection error: Couldn't resolve host 'xmlrpc.
Revision history for this message
|
#6 |
Hi Vijaya, that seems like a connection problem. Perhaps it's intermittent? Launchpad does seem to be up at the moment.
Revision history for this message
|
#7 |
He likely has a firewall blocking the connection. Try using bzr+ssh.
On Nov 14, 2011 11:31 PM, "Jelmer Vernooij" <
<email address hidden>> wrote:
> Question #178695 on Bazaar changed:
> https:/
>
> Jelmer Vernooij proposed the following answer:
> Hi Vijaya, that seems like a connection problem. Perhaps it's
> intermittent? Launchpad does seem to be up at the moment.
>
> --
> You received this question notification because you are an answer
> contact for Bazaar.
>
>
Revision history for this message
|
#8 |
getting this error :(
ssh: bazaar.
bzr: ERROR: Connection closed: Unexpected end of message. Please check connectivity and permissions, and report a bug if problems persist.
Revision history for this message
|
#9 |
I guess this is also your firewall
Try setting http_proxy=http://
then bzr branch http://
Revision history for this message
|
#10 |
Yes, i have copied the branch.
To perform the test, How to merge this code to my existing bzr setup in linux?
Revision history for this message
|
#11 |
For this test, just run
./bzr branch /mnt/p/
/mnt/p/
from inside your bzr checkout.
Revision history for this message
|
#12 |
Still the same issue:
[tanst@P690-6YWJR1S 606537-mkdir]$ ./bzr branch /mnt/p/
bzr: ERROR: Permission denied: "/mnt/p/
bzr: warning: some compiled extensions could not be loaded; see <https:/
Revision history for this message
|
#14 |
>>>>>>>
1.691 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
1.697 Traceback (most recent call last):
File "/home/
return the_callable(*args, **kwargs)
File "/home/
ret = run(*run_argv)
File "/home/
return self.run(
File "/home/
return self._operation
File "/home/
self.cleanups, self.func, *args, **kwargs)
File "/home/
result = func(*args, **kwargs)
File "/home/
source_
File "/home/
create_
File "/home/
self.cleanups, self.func, self, *args, **kwargs)
File "/home/
result = func(*args, **kwargs)
File "/home/
result = cloning_
File "/home/
return self._initializ
File "/home/
mode=
File "/home/
self.
File "/home/
self.
File "/home/
raise errors.
PermissionDenied: Permission denied: "/mnt/p/
1.697 return code 3
[11186] 2011-11-16 12:42:40.903 WARNING: bzr: warning: some compiled extensions could not be loaded; see <https:/
>>>>>>>
Revision history for this message
|
#15 |
thanks. please run 'bzr pull' in the bzr directory and try again.
Revision history for this message
|
#16 |
This fix the issue:
>>>>>>>
[tanst@P690-6YWJR1S 606537-mkdir]$ ./bzr branch /mnt/p/
Branched 1 revision(s).
bzr: warning: some compiled extensions could not be loaded; see <https:/
>>>>>>>
Now i need to replace this version into the server, is it like just copy the bzrlib to python?
>>>>>>>
[root@P690-6YWJR1S bzrlib]# bzr --version
Bazaar (bzr) 2.1.4
Python interpreter: /usr/bin/python 2.4.3
Python standard library: /usr/lib/python2.4
Platform: Linux-2.
bzrlib: /usr/lib/
Bazaar configuration: /root/.bazaar
Bazaar log file: /root/.bzr.log
[root@P690-6YWJR1S 606537-mkdir]# ./bzr --version
Bazaar (bzr) 2.4.3dev
from bzr checkout /home/tanst/
revision: 6062
revid: <email address hidden>
branch nick: 606537-mkdir
Python interpreter: /usr/bin/python2.6 2.6.5
Python standard library: /usr/lib/python2.6
Platform: Linux-2.
bzrlib: /home/tanst/
Bazaar configuration: /root/.bazaar
Bazaar log file: /root/.bzr.log
>>>>>>>
Revision history for this message
|
#17 |
awesome, thanks for your help testing this.
as far as upgrading your server, it depends a bit how you installed it
originally. this fix will be in the next 2.4 release. i'm not sure if
redhat will ship that, if you installed from redhat.
perhaps the easiest way to upgrade is
1. remove the distro version
2. do 'sudo python setup.py install'
--
Martin
Revision history for this message
|
#18 |
Thanks for the info..
my linux server has 2 python version 2.4 and 2.6 in which 2.4 is the default one.
I cant change the default version because it has lot of dependencies running on.
How to install this setup.py with the 2.6 version?
Revision history for this message
|
#19 |
sudo python2.6 setup.py install
should do it
Revision history for this message
|
#20 |
[root@P690-6YWJR1S 606537-mkdir]# sudo python2.6 setup.py install
No Cython, trying Pyrex...
The python package 'Pyrex' is not available. If the .c files are available,
they will be built, but modifying the .pyx files will not rebuild them.
C extension(s) not found:
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/_rio_pyx.c
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
The python versions will be used instead.
running install
running build
running build_py
running build_ext
building 'bzrlib.
gcc -pthread -fno-strict-
bzrlib/
In file included from bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
bzrlib/
Cannot build extension "bzrlib.
Use "build_ext --allow-
error: command 'gcc' failed with exit status 1
Revision history for this message
|
#21 |
Installed: python26-
[root@P690-6YWJR1S 606537-mkdir]# sudo python2.6 setup.py install
running install
running build
running build_py
running build_ext
cythoning bzrlib/
building 'bzrlib.
gcc -pthread -fno-strict-
bzrlib/
bzrlib/
Cannot build extension "bzrlib.
Use "build_ext --allow-
error: command 'gcc' failed with exit status 1
Revision history for this message
|
#22 |
you'll need python-devel or something
Revision history for this message
|
#23 |
Martin, Thanks a lot for you help..
came up with my server setup :)