BlindWolf8 | Anyone up? | 08:39 |
---|---|---|
cheater__ | hi! | 11:01 |
cheater__ | i have a problem, i was commiting a (new) file to my repository and lost the internet connection. now this happens: bzr: ERROR: Cannot lock LockDir(sftp://bzr@aaa.dyndns.org/srv/bzr/aaa/.bzr/branch/lock): File exists: '/srv/bzr/aaa/.bzr/branch/lock': Failure: unable to mkdir | 11:02 |
cheater__ | (when i try to commit) | 11:02 |
cheater__ | what can i do now? | 11:02 |
cheater__ | halp! | 11:04 |
cheater__ | i've tried doing bzr break-lock to no avail | 11:05 |
LarstiQ | cheater__: hmm | 13:23 |
LarstiQ | cheater__: what url do you give to break-lock, and what does it say? | 13:23 |
cheater__ | LarstiQ, that's all it says! | 14:53 |
LarstiQ | cheater__: this is what break-lock says? | 14:54 |
cheater__ | break-lock says nothing | 14:59 |
LarstiQ | cheater__: what argument do you give to break-lock? | 15:01 |
cheater__ | none | 15:03 |
cheater__ | what should i be giving it? | 15:03 |
cheater__ | oh btw, the lock file that commit mentions changes every time | 15:03 |
LarstiQ | cheater__: (it helps if you address me so I get a highlight and check this channel) | 15:43 |
LarstiQ | cheater__: try `bzr break-lock sftp://bzr@aaa.dyndns.org/srv/bzr/aaa/`, possibly with 'aaa' replaced by the relevant information | 15:44 |
cheater__ | ok let me try | 15:48 |
cheater__ | LarstiQ, no improvement | 15:54 |
LarstiQ | cheater__: same error? | 15:55 |
LarstiQ | or, same nothing? | 15:55 |
cheater__ | same error | 15:55 |
cheater__ | cannot LockDir | 15:55 |
cheater__ | bzr: ERROR: Cannot lock LockDir(sftp://bzr@aaa.dyndns.org/srv/bzr/aaa/.bzr/branch/lock): File exists: '/srv/bzr/aaa/.bzr/branch/lock': Failure: unable to mkdir | 15:56 |
LarstiQ | cheater__: is /srv/bzr/aaa/.bzr/branch/lock a directory or a file? | 15:56 |
cheater__ | just a sec | 15:57 |
cheater__ | it's nothing. | 15:58 |
* LarstiQ blinks | 15:58 | |
cheater__ | it used to be a dir, but i was getting that error, so i moved it to lock-old | 15:58 |
cheater__ | and the error persists | 15:58 |
LarstiQ | euh | 15:58 |
LarstiQ | that is at least somewhat weird | 15:59 |
LarstiQ | cheater__: does ~/.bzr.log have more info? | 15:59 |
cheater__ | on the account i'm trying to commit from? | 15:59 |
LarstiQ | cheater__: yeah | 15:59 |
cheater__ | just a sec | 16:00 |
cheater__ | yeah | 16:02 |
cheater__ | in fact i think it's a lock that's on client side | 16:02 |
cheater__ | how does bzr do locking on the client side? | 16:02 |
* LarstiQ would need to read code for that | 16:04 | |
cheater__ | lockdir.py | 16:04 |
LarstiQ | among things :) | 16:04 |
cheater__ | that's where the exception happens | 16:04 |
LarstiQ | cheater__: I believe there are some traces of os locking left | 16:04 |
LarstiQ | cheater__: do you have a full traceback? | 16:04 |
cheater__ | http://pastebin.com/E3BREgAv | 16:10 |
cheater__ | LarstiQ, ^ | 16:11 |
LarstiQ | ah hm | 16:11 |
* LarstiQ looks at the code | 16:12 | |
LarstiQ | cheater__: the code notices .bzr/branch/lock doesn't exist and tries to make it, and that then fails | 16:15 |
LarstiQ | not sure why | 16:15 |
LarstiQ | cheater__: if you are in a position to make a backup of /srv/bzr/aaa that might aid future debugging as to what is going on here | 16:16 |
cheater__ | yeah i'm root on that server | 16:16 |
LarstiQ | cheater__: as to a workaround now, what happens if you create .bzr/branch/lock/ yourself? | 16:16 |
LarstiQ | cheater__: another idea is to use bzr+ssh:// instead of sftp:// | 16:17 |
LarstiQ | cheater__: you said earlier you had a problem so you moved it out of the way | 16:17 |
LarstiQ | cheater__: hm | 16:17 |
cheater__ | yeah i moved it on the server | 16:17 |
cheater__ | but this error seems to be happening on the client | 16:17 |
* LarstiQ wonders if something funky is going on with the filesystem | 16:17 | |
LarstiQ | cheater__: the client is reporting the error it gets from the transport | 16:18 |
LarstiQ | cheater__: but you could check if there is a /srv/bzr/aaa/.bzr/branch/lock on the client | 16:18 |
cheater__ | no, /srv is empty. | 16:20 |
LarstiQ | right, so I remain convinced then that it is reporting about the serverside situation | 16:21 |
* LarstiQ goes through the release-notes in the meantime | 16:21 | |
LarstiQ | cheater__: not the same bug, but https://bugs.launchpad.net/bzr/+bug/733350 got fixed in 2.3.2 | 16:21 |
ubot5 | Ubuntu bug 733350 in bzr (Ubuntu Natty) "LockContention error when pushing (with new tag) to a bound branch" [High,Fix committed] | 16:21 |
LarstiQ | cheater__: I need to run to the store before it closes | 16:22 |
cheater__ | let me have a look | 16:24 |
cheater__ | LarstiQ, thanks for your help. if you have time afterwards please give me a shout. | 16:24 |
LarstiQ | cheater__: yeah, I'll be back in 45 minutes or so | 16:25 |
cheater__ | LarstiQ, cool! | 16:28 |
LarstiQ | cheater__: messed up timing with dinner a bit, before I go back, did you try making the lock directory and seeing how that changed things? | 17:52 |
cheater__ | LarstiQ, actually no, let me try | 18:05 |
cheater__ | actually the lock dir has been created automatically. | 18:07 |
cheater__ | i tried committing again, and now it argued that a subdir of lock exists | 18:07 |
cheater__ | bzr: ERROR: Cannot lock LockDir(sftp://bzr@aaa.dyndns.org/srv/bzr/aaa/.bzr/branch/lock): File exists: '/srv/bzr/aaa/.bzr/branch/lock/gacus7hzmf.tmp': Failure: unable to mkdir | 18:07 |
LarstiQ | cheater__: it sounds like something weird with either the filesystem or ssh is going on | 18:22 |
cheater__ | i restarted ssh and it didn't help | 18:25 |
cheater__ | oh wait! | 18:26 |
cheater__ | it did! | 18:26 |
cheater__ | but not really. | 18:26 |
cheater__ | now, bzr forgot my name ?? | 18:26 |
cheater__ | i need to do whoami again on the client. wtf? | 18:26 |
cheater__ | hah it's uploading | 18:28 |
cheater__ | yay, restarting ssh did it | 18:29 |
cheater__ | but why did bzr forget who i am? | 18:29 |
cheater__ | that's just bizarre. | 18:29 |
LarstiQ | cheater__: *blink* | 18:32 |
LarstiQ | cheater__: did something happen to your bazaar config files? | 18:33 |
LarstiQ | strange indeed | 18:33 |
cheater__ | nope! | 18:33 |
cheater__ | the thing is i'm on a very faulty internet connection | 18:33 |
cheater__ | like 30% packet loss | 18:34 |
cheater__ | i've had to kill bzr a few times when trying to commit | 18:34 |
cheater__ | maybe it was in a half-open state or something | 18:34 |
LarstiQ | ah hmm | 18:37 |
LarstiQ | cheater__: amything weird in ~/.bazaar ? | 18:38 |
LarstiQ | leftover locks maybe | 18:38 |
cheater__ | let's see | 18:55 |
cheater__ | nope ~/.bazaar/lock is empty | 18:56 |
cheater__ | but of course it could have been non-empty before | 18:56 |
cheater__ | in FACT | 18:56 |
cheater__ | what i think might have happened is that i killed bzr by ctrl-c but somehow an ssh connection kept lingering | 18:56 |
cheater__ | i've noticed runaway processes when i do ctrl-c on bzr: i'll do ctrl-c while it's logging in, and it will later keep spamming my tty with ssh authentication challenge dialogs | 18:57 |
cheater__ | so i'm thinking maybe restarting openssh on the SERVER has taken that out | 18:57 |
cheater__ | i think that's fairly clunky. i was actually fairly disappointed. | 18:59 |
LarstiQ | cheater__: that ssh repeating is an openssh thing | 20:08 |
LarstiQ | don't know about serverside lingering processes | 20:09 |
=== yofel_ is now known as yofel | ||
cheater_ | LarstiQ, i think the process was lingering CLIENT-side | 23:52 |
cheater_ | except when the server quit, so has the client process | 23:52 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!