svn-push fails with SubversionException: Can't create directory, perm. denied

Asked by Slaven

Hi, I was following tutorial at http://doc.bazaar-vcs.org/latest/en/user-guide/index.html#bzr-svn

When I wanted to push changes back to the SVN repo, exception occurred. Since I work under OSX /home/svn/... is not writable. Is there a way I could specify directory where svn would create its db or whatever it needs to push changes?

Thanks! Below is the exception backtrace.

Host:cms username$ bzr commit -m "test"
Committing to: svn://192.168.1.15/cms
modified application/english/views/recent.phtml
modified languages/english.php
bzr: ERROR: bzrlib.plugins.svn.core.SubversionException: ("Can't create directory '/home/svn/cms/db/transactions/2229-1.txn': Permission denied", 13)

Traceback (most recent call last):
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 893, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 839, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 539, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Library/Python/2.5/site-packages/bzrlib/builtins.py", line 2435, in run
    exclude=safe_relpath_files(tree, exclude))
  File "/Library/Python/2.5/site-packages/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/workingtree_4.py", line 235, in commit
    result = WorkingTree3.commit(self, message, revprops, *args, **kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/mutabletree.py", line 202, in commit
    *args, **kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/commit.py", line 404, in commit
    revision_id=self.rev_id)
  File "/Library/Python/2.5/site-packages/bzrlib/repository.py", line 1021, in fetch
    find_ghosts=find_ghosts)
  File "/Library/Python/2.5/site-packages/bzrlib/plugins/svn/commit.py", line 909, in fetch
    self.copy_content(revision_id=revision_id, pb=pb)
  File "/Library/Python/2.5/site-packages/bzrlib/plugins/svn/commit.py", line 902, in copy_content
    self.source, parent_revid, revision_id, rev)
  File "/Library/Python/2.5/site-packages/bzrlib/plugins/svn/commit.py", line 787, in push_revision_tree
    revid = builder.commit(rev.message)
  File "/Library/Python/2.5/site-packages/bzrlib/plugins/svn/commit.py", line 539, in commit
    branch_editors[-1])
  File "/Library/Python/2.5/site-packages/bzrlib/plugins/svn/commit.py", line 375, in _dir_process
    self._dir_process(new_child_path, child_ie.file_id, child_editor)
  File "/Library/Python/2.5/site-packages/bzrlib/plugins/svn/commit.py", line 375, in _dir_process
    self._dir_process(new_child_path, child_ie.file_id, child_editor)
  File "/Library/Python/2.5/site-packages/bzrlib/plugins/svn/commit.py", line 375, in _dir_process
    self._dir_process(new_child_path, child_ie.file_id, child_editor)
  File "/Library/Python/2.5/site-packages/bzrlib/plugins/svn/commit.py", line 375, in _dir_process
    self._dir_process(new_child_path, child_ie.file_id, child_editor)
  File "/Library/Python/2.5/site-packages/bzrlib/plugins/svn/commit.py", line 377, in _dir_process
    child_editor.close()
SubversionException: ("Can't create directory '/home/svn/cms/db/transactions/2229-1.txn': Permission denied", 13)

bzr 1.10 on python 2.5.1 (darwin)
arguments: ['/usr/local/bin/bzr', 'commit', '-m', 'test']
encoding: 'ascii', fsenc: 'utf-8', lang: 'en_US.UTF-8'
plugins:
  bzrtools /Library/Python/2.5/site-packages/bzrlib/plugins/bzrtools [1.10]
  email /Library/Python/2.5/site-packages/bzrlib/plugins/email [unknown]
  extmerge /Library/Python/2.5/site-packages/bzrlib/plugins/extmerge [unknown]
  launchpad /Library/Python/2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  loom /Library/Python/2.5/site-packages/bzrlib/plugins/loom [1.4dev]
  qbzr /Library/Python/2.5/site-packages/bzrlib/plugins/qbzr [0.9.5]
  rebase /Library/Python/2.5/site-packages/bzrlib/plugins/rebase [0.4dev]
  search /Library/Python/2.5/site-packages/bzrlib/plugins/search [1.7dev]
  svn /Library/Python/2.5/site-packages/bzrlib/plugins/svn [0.4.16]
  upload /Library/Python/2.5/site-packages/bzrlib/plugins/upload [0.1.1]
  xmloutput /Users/slaven/.bazaar/plugins/xmloutput [0.8.2]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Subversion Plugin Edit question
Assignee:
No assignee Edit question
Solved by:
Slaven
Solved:
Last query:
Last reply:
Revision history for this message
Slaven (z-launchpad-el8-info) said :
#1

Never trust coworker :) SVN server wasn't set properly