Notes about Bazaar: Difference between revisions

From OpenPetra Wiki
Jump to navigation Jump to search
(Could not understand response from smart server)
(9 intermediate revisions by 3 users not shown)
Line 4: Line 4:


= Administration =
= Administration =
* We used to have our own Bazaar server. The instructions are here: [[Administration of own bazaar server]]
* Today, we are using Launchpad, which allows everbody to create his own branch without involvement of any administrator


ChristianK and WolfgangB are the administrators for the bazaar server. New accounts are created by them, when they are given the corresponding public SSH key in OpenSSH format.
= Frequently asked questions =
== bzr: ERROR: Could not acquire lock (remote lock) ==
This can happen when cancelling during a commit, and probably in other situations too. You will get the error the next time your are attempting to commit.


Search terms: bzr unlock, Bazaar locked, Bazaar unlock


Mentor should request rights to change the branch configuration by them. They will add them to the corresponding group.
Solution: open the command line console (eg. cmd.exe), and change into the directory of your branch, and run:
bzr break-lock


== Add branch specific commit rights ==
== bzr: ERROR: paramiko.SSHException: lost ssh-agent ==
Mentor could add branches, the trainee is allowed to commit to. This is done with the following steps:
If you get such an error on Windows 7 64-bit then try to run pageant not as Administrator but as normal user.
* If the branch does not exist yet, then create it, e.g. <code>bzr branch bzr+ssh://bazaar@bzr.openpetra.org:2208/openpetra/trunk bzr+ssh://bazaar@bzr.openpetra.org:2208/openpetra/dev_id_whatever</code>
 
* Checkout <code>bzr+ssh://bazaar@bzr.openpetra.org:2208/config/</code>, e.g. <code> bzr checkout bzr+ssh://bazaar@bzr.openpetra.org:2208/config/</code>
== Could not open a connection to your authentication agent ==
* Edit <code>bazaar_acl.ini</code>. In the section <code>[Trainee]</code> add the allowed branches comma seperated behind the username
If you get such an error then please have a look [http://forum.slicehost.com/comments.php?DiscussionID=3385 here] or [http://www.finrik.at/content/sshadd-could-not-open-connection-your-authentication-agent here]
* Commit the change, e.g. <code>bzr commit</code>
 
Now the trainee is able to commit to the branch.
== bzr: ERROR: Cannot lock LockDir(...): Transport operation not possible: http does not support mkdir() ==
On getting such an error you've probably been trying to use something like lp:~username instead of bzr+ssh://  
 
Solution1: Make sure you have pageant running (not as admin) and a key loaded.
 
Solution2: Execute "bzr launchpad-login <username>" on a command line.
 
Solution3: Perhaps you reinstalled your system. Then you need to create a new public/private-keypair. Possibly you need to execute bzr checkout ... afterwards to apply the new key.
 
== bzr: ERROR: Failed to rename ... to ...: [Error 5] Access denied ==
If you get such en error on checking out a branch then please disable your antivirus program, delete the .bzr-folder from your local branch and try again. See [https://answers.launchpad.net/bzr/+question/133362 here] for further information.
 
== bzr: ERROR: Could not understand response from smart server ==
* see also https://bugs.launchpad.net/bzr/+bug/1046265
* This happens with Bazaar 2.5.1, and Bazaar Explorer 1.2.2
* seems the solution is to install Bazaar 2.4.1 instead, which comes with Bazaar Explorer 1.2.1
 
= Migration to Git =
* [[Migration of Bazaar to Git]]

Revision as of 14:47, 3 February 2017

General instructions

Administration

  • We used to have our own Bazaar server. The instructions are here: Administration of own bazaar server
  • Today, we are using Launchpad, which allows everbody to create his own branch without involvement of any administrator

Frequently asked questions

bzr: ERROR: Could not acquire lock (remote lock)

This can happen when cancelling during a commit, and probably in other situations too. You will get the error the next time your are attempting to commit.

Search terms: bzr unlock, Bazaar locked, Bazaar unlock

Solution: open the command line console (eg. cmd.exe), and change into the directory of your branch, and run:

bzr break-lock

bzr: ERROR: paramiko.SSHException: lost ssh-agent

If you get such an error on Windows 7 64-bit then try to run pageant not as Administrator but as normal user.

Could not open a connection to your authentication agent

If you get such an error then please have a look here or here

bzr: ERROR: Cannot lock LockDir(...): Transport operation not possible: http does not support mkdir()

On getting such an error you've probably been trying to use something like lp:~username instead of bzr+ssh://

Solution1: Make sure you have pageant running (not as admin) and a key loaded.

Solution2: Execute "bzr launchpad-login <username>" on a command line.

Solution3: Perhaps you reinstalled your system. Then you need to create a new public/private-keypair. Possibly you need to execute bzr checkout ... afterwards to apply the new key.

bzr: ERROR: Failed to rename ... to ...: [Error 5] Access denied

If you get such en error on checking out a branch then please disable your antivirus program, delete the .bzr-folder from your local branch and try again. See here for further information.

bzr: ERROR: Could not understand response from smart server

Migration to Git