Bzr Error Could Not Acquire Lock
Contents |
Status Importance Assigned to Milestone Bazaar Explorer Edit Fix Released High Jonathan Riddell Edit Bazaar Explorer 1.2.1 could not acquire lock remote lock You need to log in to change this bug's status. Affecting:
Bazaar Remote Lock
Bazaar Explorer Filed here by: IWATA Hidetaka When: 2011-07-22 Confirmed: 2011-07-22 Assigned: 2011-08-02 Started work: 2011-08-02 bzr error could not acquire lock (local) Completed: 2011-08-02 Target Distribution Baltix BOSS Juju Charms Collection Elbuntu Guadalinex Guadalinex Edu Kiwi Linux nUbuntu PLD Linux Tilix tuXlab Ubuntu Ubuntu Linaro Evaluation Build Ubuntu RTM Package (Find…) Project (Find…) Status Importance Milestone Fix Released High Bazaar Explorer 1.2.1 Assigned to Me Jonathan Riddell (jr) Comment on this change (optional) Email me about changes to this bug report Also affects project (?) Also affects distribution/package Nominate for series Bug Description By newest release(1.2.0), I see exception dialog very very often, which says "bzr: ERROR: Could not acquire lock". It occurs after executing commit, push, pull, and other many commands. Turning off 'Automatically refresh status report' does not solve it. (BTW, I doubt that this preference does not work, because bzr-explorer still puts "QFileSystemWatcher: failed to add paths. ・・・" to console after turning off this.) TRACEBACK(In .bzr.log) ------------------------ 60.548 Traceback (most recent call last): File "***\explorer\lib\view_workingtree.py", line 124, in refresh_view self.status_view.refresh_view() File "***\explorer\lib\html_report_view.py", line 56, in refresh_view lines = self.report_text() File "***\explorer\lib\view_workingtree.py", line 138, in report_text model.relpath) File "***\explorer\lib\status_report.py", line 196, in __init__ self._collect_data() File "***\explorer\lib\status_report.py", line 210, in _collect_data pending_merges = status_data.get_pending_merges(wt) File "***\explorer\lib\status_data.py", line 90, in get_pending_merges status.show_pending_merges(wt, to_file=sio, verbose=verbose) File "***\\lib\site-packages\bzrlib\status.py", line 261, in show_pending_merges parents = new.get_parent_ids() File "***\\lib\site-packages\bzrlib\decorators.py", line 152, in read_locked self.lock_read() File "***\\lib\site-packages\bzrlib\workingtree_4.py", line 613, in lock_read state.lock_read() File "***\\lib\site-packages\bzrlib\dirstate.py", line 3349, in lock_read self._lock_token = lock.ReadLock(self._filename) File "***\\lib\site-packages\bzrlib\lock.py", line 380, in __init__ win32file.FILE_SHARE_READ, os.O_RDONLY, "rb") File "***\\lib\site-packages\bzrlib\lock.py", line 365, in _open raise errors.LockContention(filename, e) LockConten
Assigned to Milestone Bazaar Edit Confirmed High Unassigned Edit You need to log in to change this bug's status. Affecting: Bazaar Filed here by: Amir Eldor When: 2013-04-25 Confirmed: 2013-07-16 Target Distribution Baltix BOSS Juju Charms Collection Elbuntu Guadalinex Guadalinex Edu Kiwi Linux nUbuntu PLD Linux Tilix tuXlab Ubuntu Ubuntu Linaro Evaluation Build Ubuntu RTM Package (Find…) Project (Find…) Status Importance Confirmed High Assigned to Nobody Me Comment on this https://bugs.launchpad.net/bugs/814408 change (optional) Email me about changes to this bug report Also affects project (?) Also affects distribution/package Nominate for series Bug Description I've just installed the Bazaar Explorer on my Windows 7, tried to setup my configuration details such as my name and email and once I clicked 'ok' it hung up and gave https://bugs.launchpad.net/bugs/1172533 me a nice error dialog that wanted me to post the error on Launchpad. So here it is! The traceback: bzr: ERROR: Could not acquire lock "(local)": file:///C:/Users/Amir%20Eldor/AppData/Roaming/bazaar/2.0/lock Must be something with the space (%20) in my Windows username. Add tags Tag help Amir Eldor (amireldor) wrote on 2013-04-25: #1 Hmm, well it DID set up my changes to the name, name and editor despite the crash. The editor path I used is: C:/Program Files (x86)/Notepad++/notepad++.exe summary: - Cannot acquire lock on Windows 7 when configuring mydetails+ Cannot acquire lock on Windows 7 when configuring my details Alexander Belchenko (bialix) wrote on 2013-07-10: #2 That looks like a problem in bzr core for me. affects: qbzr → bzr Stephane Tremblay (stephane-tremblay-2) wrote on 2013-07-16: #3 I also have this problem, even though there are no spaces or %20 in my user name. I can't get bazaar to work correctly in Windows 7 for the life of me. I keep get
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss http://askubuntu.com/questions/819022/how-can-i-solve-the-problem-that-bzr-cannot-acquire-lock the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions http://lucasmanual.com/mywiki/Bazaar Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's could not how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top How can I solve the problem that bzr cannot acquire lock? up vote 2 down vote favorite I executed the following command: bzr push lp:~orschiro/+junk/audio-recorder It produces the following error: bzr: ERROR: Could not acquire lock "(remote lock)": could not acquire bzr+ssh://bazaar.launchpad.net/~orschiro/%2Bjunk/audio-recorder/ I tried to remove the lock as follows: bzr break-lock https://code.launchpad.net/~orschiro/+junk/audio-recorder However, I still do the same error. How do I properly remove the break-lock? bazaar share|improve this question asked Aug 31 at 8:02 orschiro 2,137627 1 Possible bug? see: bugs.launchpad.net/bzr/+bug/1110065 –Kevin Bowen Aug 31 at 8:30 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted Break the lock over ssh rather than http (which doesn't provide write access on launchpad): bzr break-lock lp:~orschiro/+junk/audio-recorder share|improve this answer answered Aug 31 at 14:56 jelmer 1,8441116 That worked. Thank you very much, @jelmer! :-) –orschiro Aug 31 at 17:25 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged bazaar or ask your own questi
Pages Local Site Map ------------------------ Rename Page Delete Page ------------------------ Subscribe User ------------------------ Remove Spam Revert to this revision Package Pages Sync Pages ------------------------ Load Save SlideShow Contents Bazaar and launchpad Install bazaar Launchpad Create a project Upload the project Using Bazaar bzr info/log bzr diff Deleting, removing, renaming files Undoing changes Tagging Checkout Convert to Bazaar csv to bzr From Subversion to Bazaar repository Using bazaar with svn bzr vs mercurial vs git bzr and git Work with bazaar References Troubleshooting Keywords: launchpad bazaar first time, bzr, host project Bazaar and launchpad Install bazaar aptitude install python-pyrex aptitude install bzrAlternative is to use python easy_install script to install bazaar if you cannot find the right version in your debian repository. easy_install bzr easy_install pyrexIf you want to experiment first your could install it in a virtual environment: cd virtualenv --no-site-packages bzrENV cd bzrENV source bin/activateYou should see: (bzrENV) in front of your command line Install bzr into your virtualenv easy_install bzr or easy_install "bzr==1.9" Launchpad Create and then register your ssh key cd ssh-keygen -t rsaYous should see: Generating public/private rsa key pair. Enter file in which to save the key (/home/lucas/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/lucas/.ssh/id_rsa. Your public key has been saved in /home/lucas/.ssh/id_rsa.pub. The key fingerprint is: b4:...............2d username@yourmachineUpload your ssh key to launchpad. Under your username click change details, paste the key and say import key. cat .ssh/id_rsa.pubAnd copy and paste the resulting key See if you can loginto launchpad using bazaar bzr launchpad-login myusernameIf everything went ok you should see no message. Tell bazaar who you are. bzr whoamiUpdate the information bzr whoami "Lucas mylastname