mkdir error with push to launchpad

Asked by Pascal Wolkotte

I am trying to upload my files to a new Launchpad project using:

bzr push lp:~p-t-wolkotte/pgfgraph/trunk

I receive the following error, but I have not found an answer to this problem.

I lp:~p-t-wolkotte/pgfgraph/trunk is redirected to http://bazaar.launchpad.net/~p-t-wolkotte/pgfgraph/trunk/
bzr: ERROR: Cannot lock LockDir(http://bazaar.launchpad.net/%7Ep-t-wolkotte/pgfgraph/trunk/.bzr/branch/lock): Transport operation not possible: http does not support mkdir()

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Pascal Wolkotte
Solved:
Last query:
Last reply:
Revision history for this message
Martin Albisetti (beuno) said :
#1

Have you set your user name with: "bzr launchpad-login username"?

This will use bzr+ssh instead of http which cannot do write operations (push)

Revision history for this message
Pascal Wolkotte (p-t-wolkotte) said :
#2

Thank you. That solved the problem.

Revision history for this message
Dustin Kirkland  (kirkland) said :
#3

It would be nice if bzr's error message "http does not support mkdir()" would suggest that the user needs to "bzr launchpad-login username".

:-Dustin

Revision history for this message
Martin Albisetti (beuno) said :
#4

Newer versions of bzr actually do this. Thanks for the suggestion.

Revision history for this message
Ashish Bhatia (asb-tiny) said :
#5

i am still not able to commit thru windows

Revision history for this message
Wouter van Heyst (larstiq) said :
#6

On Thu, Nov 20, 2008 at 11:10:51AM -0000, AshishSingh Bhatia wrote:
> Question #24695 on Bazaar changed:
> https://answers.launchpad.net/bzr/+question/24695
>
> AshishSingh Bhatia posted a new comment:
> i am still not able to commit thru windows

If you have the same problem as Pascal Wolkotte had, what is not clear
from Martin's answer?

If you do not have the same problem, please file a seperate question.

Wouter

Revision history for this message
ThomasRutter (trr) said :
#7

I had this problem recently in 2.0.4

"bzr launchpad-login trr" was not enough to fix it.

I had to do a "bzr launchpad-login trr" and then also a "bzr bind lp:~trr/projectname/branchname" to fix it.

What had happened is that when I had previously checked out a branch from launchpad, it set up my local branch as being bound to an http address of launchpad instead of bzr+ssh.

So when I did launchpad-login it didn't change the bind address as that had already been set.

Anyway, hope this helps someone.

Revision history for this message
Shah Japan (jsh.axelor) said :
#8

can anyone tell me what ths solution for following error,
I'm not able to revert using bzr

bzr: ERROR: Cannot lock LockDir(http://bazaar.launchpad.net/~openerp/openobject-client-web/5.0/.bzr/branch/lock): Transport operation not possible: http does not
support mkdir()

E:\tiny\stable\web>bzr version
Bazaar (bzr) 2.1.0
  Python interpreter: C:\Python26\python.exe 2.6.4
  Python standard library: C:\Python26\lib
  Platform: Windows-post2008Server-6.1.7600
  bzrlib: C:\Python26\lib\site-packages\bzrlib
  Bazaar configuration: C:\Users\japan\AppData\Roaming\bazaar\2.0
  Bazaar log file: C:\Users\japan\Documents\.bzr.log

Copyright 2005, 2006, 2007, 2008, 2009 Canonical Ltd.
http://bazaar-vcs.org/

bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.

Bazaar is part of the GNU Project to produce a free operating system.

Revision history for this message
Jelmer Vernooij (jelmer) said :
#9

jsh.axelor, you need to tell Bazaar about your Launchpad login so that it will try to access Launchpad using bzr+ssh rather than over http (the latter does not support writes). You can tell Bazaar about your login using:

$ bzr lp-login <username>

Revision history for this message
Leo Arias (elopio) said :
#10

I got the same error.
I tried bzr lp-login and bzr bind and neither of those worked.

I manually edited the file .bzr/branch/branch.conf and changed the push_location to use bzr+ssh instead of http and it worked.

Revision history for this message
Denero Team (deneroteam) said :
#11

Thanks Leo,

I am getting same problem of Transport operation not possible: http does not support mkdir()

I follow as following and is worked.

-- bzr launchpad-login <username>
-- open .bzr/branch/branch.conf and changed push_location url from http to bzr+ssh

Thanks,
Dhaval Patel
Denero Team

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

> open .bzr/branch/branch.conf and changed push_location url from http to bzr+ssh

bzr push --remember <bzr+ssh url> would have the same effect and doesn't require hand-editing.

Revision history for this message
Roel Van de Paar (roel11) said :
#13

Sometimes you may get this particular error if you branched using a different username (for example: root) then the one you're trying to push with etc.

Simply re-branch in a new/fresh directory using your own username (I usually mv <origdir> <origdir.old> then bzr branch)

Revision history for this message
Roel Van de Paar (roel11) said :
#14

Hmm, I wonder if #13 was the real cause for the issue I was seeing. I tried bzr push lp:parent, which did not work. However, bzr push lp:real_project_name worked fine. In any case, executing items in #13 may help as well if you're using different user names.

Revision history for this message
ramadhan (gadurama8) said :
#15

ERROR: Cannot lock LockDir(http://bazaar.launchpad.net/~udsmprogrammers/is282-2014/trunk/.bzr/branch/lock): Transport operation not possible: http does not support mkdir()
please guys can you help me from the above error i can not commit to launchpad

Revision history for this message
anatoly techtonik (techtonik) said :
#16

Google led me here, but it is quite sad to see this is not fixed over 5 years.

https://code.launchpad.net/~techtonik/ubuntu-dev-tools/minor-python3-fix/+merge/247538

Revision history for this message
anatoly techtonik (techtonik) said :
#17

Oh no, it is 7 years since message #3. =)

Revision history for this message
anatoly techtonik (techtonik) said :
#18

Comment #3?

Revision history for this message
anatoly techtonik (techtonik) said :
#19

Damn, I can't link to comment and there is no help. This totally suxx. =/

Revision history for this message
moma (osmoma) said :
#20

$ cd trunk
$ bzr merge ..

$ bzr commit -m "New version. Merge to trunk."

bzr: ERROR: Cannot lock LockDir(http://bazaar.launchpad.net/~audio-recorder/audio-recorder/trunk/.bzr/branch/lock): Transport operation not possible: http does not support mkdir()

Revision history for this message
moma (osmoma) said :
#21

I have:

$ bzr --version
Bazaar (bzr) 2.7.0
  Python interpreter: /usr/bin/python 2.7.11
  Python standard library: /usr/lib/python2.7
  Platform: Linux-4.4.0-34-generic-x86_64-with-Ubuntu-16.04-xenial
  bzrlib: /usr/lib/python2.7/dist-packages/bzrlib
  Bazaar configuration: /home/moma/.bazaar
  Bazaar log file: /home/moma/.bzr.log

Copyright 2005-2012 Canonical Ltd.
http://bazaar.canonical.com/

bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.

Bazaar is part of the GNU Project to produce a free operating syst