Run command: bzr push - [Errno 13] Permission denied: u'/root/.bazaar/locations.conf

Asked by Vijaya Kumar

Hi,

If i try to run push command using bzr+http and it is giving this error,

Run command: bzr push
Using saved push location: bzr+http://XXX.XX.XXX.XX/bzr/Project_demo/Source/
bzr: ERROR: bzrlib.errors.ErrorFromSmartServer: Error received from smart server: ('PermissionDenied', '/root/.bazaar/locations.conf', ": [Errno 13] Permission denied: u'/root/.bazaar/locations.conf'")

i have given full access to this path in server
chmod 777 -R /root/.bazaar/

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:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Fernando Gonzalez Sanchez (elcorreodefernando) said :
#2

I am getting the same error, previously used to work fine, may be related to a windows update.

Revision history for this message
Martin Packman (gz) said :
#3

Can set BZR_LOG to somewhere writeable in the httpd config and then paste the traceback from the server side of this operation? With apache on windows that would be something like:

    SetEnv BZR_LOG C:/Temp/httpd.bzr.log

As a workaround, a similar approach but setting BZR_HOME to something the server can access would probably work.

Revision history for this message
Vijaya Kumar (vijayakumar-cm) said :
#4

suddenly it is giving me also the same error..

In Linux server:-
Is there anything to do with this path? /root/.bazaar/location.conf
i couldn't find any file if "location.conf" ?

Revision history for this message
Vincent Ladeuil (vila) said :
#5

@Vijaya: the proces giving this error is running with $HOME set to '/root' but as a user that doesn't have write access, something is probably wrong in your setup but it's hard to tell what without more details. Are you sure '/root/.bazaar' exists and has the right mode bits ?

Revision history for this message
Vijaya Kumar (vijayakumar-cm) said :
#6

It was working before, suddenly it stops... this smart server running as root (on Linux)

There is a directory /root/.bazaar (with rwx for all)

ErrorLog:-
bzr: ERROR: bzrlib.errors.ErrorFromSmartServer: Error received from smart server: ('PermissionDenied', '/root/.bazaar/locations.conf', ": [Errno 13] Permission denied: u'/root/.bazaar/locations.conf'")

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 946, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1150, in run_bzr
  File "bzrlib\commands.pyo", line 699, in run_argv_aliases
  File "bzrlib\commands.pyo", line 721, in run
  File "bzrlib\cleanup.pyo", line 135, in run_simple
  File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\commands.py", line 821, in run
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\subprocess.py", line 888, in run_subprocess_command
  File "bzrlib\commands.pyo", line 1150, in run_bzr
  File "bzrlib\commands.pyo", line 699, in run_argv_aliases
  File "bzrlib\commands.pyo", line 721, in run
  File "bzrlib\cleanup.pyo", line 135, in run_simple
  File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
  File "bzrlib\builtins.pyo", line 1204, in run
  File "bzrlib\push.pyo", line 142, in _show_push_branch
  File "bzrlib\controldir.pyo", line 380, in push_branch
  File "bzrlib\branch.pyo", line 1118, in push
  File "bzrlib\branch.pyo", line 3401, in push
  File "bzrlib\cleanup.pyo", line 131, in run
  File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
  File "bzrlib\branch.pyo", line 3456, in _push_with_bound_branches
  File "bzrlib\branch.pyo", line 3418, in _basic_push
  File "bzrlib\decorators.pyo", line 217, in write_locked
  File "bzrlib\branch.pyo", line 3319, in _update_revisions
  File "bzrlib\decorators.pyo", line 217, in write_locked
  File "bzrlib\branch.pyo", line 3296, in fetch
  File "bzrlib\remote.pyo", line 1657, in fetch
  File "bzrlib\decorators.pyo", line 217, in write_locked
  File "bzrlib\vf_repository.pyo", line 2499, in fetch
  File "bzrlib\fetch.pyo", line 75, in __init__
  File "bzrlib\fetch.pyo", line 102, in __fetch
  File "bzrlib\fetch.pyo", line 130, in _fetch_everything_for_search
  File "bzrlib\remote.pyo", line 2110, in insert_stream
  File "bzrlib\smart\client.pyo", line 181, in call_with_body_stream
  File "bzrlib\smart\client.pyo", line 81, in _call_and_read_response
  File "bzrlib\smart\message.pyo", line 306, in read_response_tuple
  File "bzrlib\smart\message.pyo", line 351, in _raise_smart_server_error
ErrorFromSmartServer: Error received from smart server: ('PermissionDenied', '/root/.bazaar/locations.conf', ": [Errno 13] Permission denied: u'/root/.bazaar/locations.conf'")

Revision history for this message
Vijaya Kumar (vijayakumar-cm) said :
#7

[root@P690-6YWJR1S ~]# pwd
/root
[root@P690-6YWJR1S ~]# ls -la | grep .bazaar
drwxrwxrwx 2 tanst apache 4096 Mar 22 15:29 .bazaar
[root@P690-6YWJR1S ~]# ls -la .bazaar/*
-rwxrwxrwx 1 tanst apache 52 Nov 10 13:34 .bazaar/bazaar.conf

Revision history for this message
Vijaya Kumar (vijayakumar-cm) said :
#8

It just started working, after i rebooted the server..