/srv/irclogs.ubuntu.com/2011/06/27/#ubuntuone.txt

saammhello, is it possible to add this functionality to ubuntu one http://www.guidingtech.com/6757/create-share-screenshots-screencasts-simpleshare-box-net/09:27
ralsinamorning!10:16
ralsinamandel: ping?11:30
mandelralsina: pong11:31
ralsinabuen dia!11:31
ralsinaCould I get a review for https://code.launchpad.net/~ralsina/ubuntuone-windows-installer/fix_800359/+merge/65703 ?11:31
mandelralsina: claro!11:32
ralsinagracias!11:32
hrwcan someone tell me what for desktopcouch is used by U1?11:42
hrwand what it is?11:42
hrwI just uninstalled it after having it using 100% of cpu time (which equals to 1.5h battery time loose)11:43
mandelhrw: desktopcouch is a library build on top of couchdb that allows you to have a document base database that is synced over all your machines, atm it is used by the contacts (evolution contacts) and there is a copy of your notes11:43
mandelhrw: as more developers use it you will have your todo list, recepies, calendar etc...11:44
teknicoand the weather applet too11:44
mandelteknico: is it? when was that added?11:45
mandelteknico: why the hell do we use desktopcouch for that?!11:45
teknicomandel, I heard that it uses desktopcouch at the london sprint, I don't know what for :-)11:45
mandelteknico: whoa! I had no idea11:45
ralsinamandel: that's what everyone said at london11:47
mandelralsina: hahaha11:47
mandelralsina: question, the setButtonLayout is used so that the dialog does not have the crazy back button at the top on Windows Vista/7 right?11:48
mandelralsina: in your merge proposal11:48
teknicomandel, it's not "we" (for some def of "we"), the weather applet is made by someone else11:48
ralsinamandel: no, it's to ensure the order of the custom buttons and so on11:48
ralsinathe back button at the top you have to set the wizard to modern style or something11:48
mandelralsina: ok, true, I forgot about that, is that set anywhere?11:49
hrwmandel: so no waste for me with uninstallation of that. no plans of keeping contacts on u111:49
ralsinamandel: nope. Could be a trivial branch later11:49
mandelralsina: ok, can we add a bug for that so we do not forget?11:49
ralsinaGotta do school run. Will be back in 60 or so.11:49
ralsinamandel: sure, assign to me11:49
mandelhrw: I suppose you wont have any issues, but take a look at the software that depends on it11:50
mandelteknico: I wonder why is desktopcouch used there at all… what do they sync?11:50
hrwmandel: indicator-weather (which do not work in xfce), evolution-couchdb (which is u1 only so no use here too)11:51
teknicomandel, as I said, no idea11:51
mandelhrw: then feel free to remove it, all the data you have in there is secured anyway11:51
mandelhrw: wait, the evo-contacts is used to provide the contacts you create shares in u1 with11:52
mandelhrw: so you might loose that, but I'm not 100% I've never worked in that part of the code11:52
hrwmandel: no problem for me.11:53
mandelhrw: ok then :)11:53
mandelralsina: take a look at line 666 in the diff11:56
ralsinamandel: whoa :-)11:56
mandelhehe11:56
ralsinamandel: copied that from the sso-client tests11:56
ralsinamandel: can't import it because tests are not installed11:56
mandelralsina: are those safe to be there?11:56
mandelI dont remember, but I hope so, because if you copied them they are mine hehehe11:57
ralsinawhy not? They are dummy values, aren't they?11:57
mandel:P11:57
mandelralsina: lets say the are :)11:57
ralsinamandel: well, I copied them from your code in bzr, so if they are yours, it's your fault ;-)11:57
hrwhave a nice time guys11:57
mandelralsina: hehe I'm sure they are fake or outdate, which is the same :)12:00
duanedesignmorning all12:01
mandelralsina: code looks good12:04
mandelralsina: I'm going to walk the dog and will do a IRL to see how it looks and will give a _112:04
mandel+112:04
ralsina  good, I don't know what to do with a _1 :-)12:06
mandelralsina: haha12:08
* mandel walks dog12:09
faganralsina: ill be starting after standup today my landlord is around and checking my house12:12
nessitahello everyone!12:31
=== clarita_ is now known as clarita
* mandel back12:46
nessitamandel: hey there. How is it going?12:46
mandelnessita: fine, updates the sdtool branch and added the script there for you to take a look12:47
mandelnessita: feel free to re-review, and the start method is nearly done, I'm thinking what is the best way to return the subprocess popen as a deferred so that the operation is asyn12:47
nessitamandel: what about bug #801734? it has more priority than sdtool12:48
ubot4nessita: Bug 801734 on http://launchpad.net/bugs/801734 is private12:48
mandelnessita: I have also taken a look at that, is very interesting… I'm running sd on my machine to see if I can reproduce it12:50
mandelnessita: looks like it cannot find the path when performing a lstat and that brakes things in a terrible way12:50
mandelnessita: I also noticed that xdg is wrong, local internet files should not be used...12:51
nessitamandel: yeah, alecu mentioned that, it should be Temp12:51
=== teknico is now known as teknico_away
nessitamandel: so, I need you to please work on the Critical bug as top priority, before moving on with anything else. As soon as you have a diagnose, please let me know.12:52
mandelnessita: yes, should be very easy to solve… but I think that the best thing to do, rather than having that junk branch with that is too move it to platform… what do you think?12:53
nessitamandel: xdg? let's discuss that once syncdaemon is working on w :-)12:53
mandelok12:54
mandelnessita: where did you find the sd logs on windows 7?13:01
mandelI'm having a hard time finding them13:01
nessitamandel: C:\Users\Test\AppData\Local\Temporary Internet Files\UbuntuOnelog13:02
nessitamandel: C:\Users\Test\AppData\Local\Temporary Internet Files\UbuntuOne\log13:02
nessitamandel: you need to cd to that in the cmd.exe, you will not be able to browse it13:02
mandelnessita: ok13:02
* ralsina is back13:06
ralsinamorning nessita!13:06
nessitahi ralsina13:07
nessitaralsina, mandel: I missed a lot your reports last Friday13:07
nessitacould you please send them before our stand up?13:07
mandelnessita: sorry, I felt really really bad.. will do13:07
ralsinanessita: ouch, sorry. Basically, I worked on the branch you reviewed late friday13:07
nessitaralsina: I know, but is important that all of us know :-)13:08
ralsinanessita: the good news are, I fixed the style tests so they actually run correctly on windows, so I should do better with that area13:08
nessitaralsina: nice13:08
nessitaralsina: did you notice you have a needs fixing in https://code.launchpad.net/~ralsina/ubuntuone-windows-installer/fix_800381/+merge/65502?13:12
ralsinanessita: yes, but that branch has to be fixed to work with the sso one13:12
ralsinanessita: and in fact, that's the wizard page we are not sure we really really want13:13
ralsinanessita: report sent! (again, sorry, today will send it on time)13:16
karniHi nessita :)13:16
nessitaralsina: thanks!!!13:16
nessitahi karni, how is it going?13:17
karninessita: Could you remind me (I can't find it ;> ) what did the token look like when authenticating, "Ubuntu One @ host" ? or "UbuntuOne @ host" ?13:17
karninessita: Good thanks :) How are you?13:17
nessitakarni: Ubuntu One @ something13:18
ralsinanessita: when you have 5' I should talk to you about how to use u1cp to implement the wireframe for the wizard13:18
karninessita: coolio :) thank you!13:18
nessitakarni: good!13:18
nessitaralsina: ok, in 3 minutes13:18
karninessita: :)13:18
nessita:-P13:18
ralsinanessita: cool13:18
mandelnessita: I'm going to be splitting bug 801734 in diff smaller ones like bug  80249813:20
ubot4mandel: Bug 801734 on http://launchpad.net/bugs/801734 is private13:20
ubot4Launchpad bug 802498 in ubuntuone-client "Error when doing a partial commit on windows (affects: 1) (heat: 6)" [Critical,In progress] https://launchpad.net/bugs/80249813:20
nessitamandel: ok, please add all the new ones in the "master" one (inside a comment)13:21
mandelok13:22
nessitaralsina: let me put some "abrigo" that I'm freezing and I'm right back with you13:22
nessita-3 C here!!!!13:22
ralsinanessita: he, I had to walk my kid to school in -1C :-)13:22
mandelralsina, nessita: dont complain in Madrid is 39 and in barna 25 with crazy humidity13:24
* mandel early lunck13:24
ralsinamandel: I *love* the cold, actually.13:24
mandelralsina: well, cold is easier to fix :)13:24
ralsinamandel: precisely :-)13:24
ralsinamandel: before you go eat, did you try my branch? Any problems?13:25
=== teknico_away is now known as teknico
mandelralsina: no really, I'm ready to approve, althoguh the irl instrctuions are confusing13:28
ralsinamandel: hmmm I would love someone other than me to actually run this irl13:28
ralsinamandel: I'll wait for you and help you through it after lunch13:28
ralsinamandel: if that's ok13:28
nessitamandel: I prefer the hot, by far, since I usually I'm colder than everyone else by 5 degrees ~13:33
nessitaralsina: I'm ready, shoot!13:33
ralsinanessita: that's the one stereotype about women that's actually true :-)13:34
ralsinanessita: ok, open the wireframes fr the wizard, version 2.513:34
nessitaralsina: link pliz?13:34
ralsinahttps://docs.google.com/a/canonical.com/drawings/d/1vRvN30wnSkyt6UdYnUkgJWBIg803P7yXo9NMqbf-NGk/edit?hl=en_US13:34
nessitaralsina: there13:34
ralsinathe control panel widget I want seems to be the folders tab, for the page with the "Syncing your computerwith the cloud" title13:35
nessitaloading... is very slow to draw the text13:35
ralsinanessita: yes it is.13:36
ralsinaI will also need the "services" tab for another page, but that one seems easier13:36
nessitaralsina: ok, so, the folder sizes, are those local or from the cloud?13:36
ralsinaThey are local13:37
ralsinaAnd that means they are expensive to calculate :-(13:37
nessitaralsina: but not impossible, like if they were from the cloud13:37
ralsinayeah, at least that13:38
ralsinaI can even do it in background13:38
ralsinabut anyway, I am not sure using the u1cp widget for this is a good idea... it's not the same thing, really13:38
ralsinaor yes, I am just not sure13:38
nessitaralsina: ok, so, the folders panel do not have a widget to do that, only a button that right now is embedded but can be easily isolated into it's on widget13:38
ralsinaright13:38
ralsinaIn any case, all I want is a widget to show a list of local folders, I can do that on my own.13:39
ralsinaAnd then I need to set them as UDFs, which means contacting syncdaemon via sdtool. Right?13:39
nessitaralsina: yes and no13:39
nessitaralsina: please note that in control panel we have a backend of our own, and you should be hitting that, *always*.13:40
ralsinanessita: ok, will hit that.13:40
ralsinaneed to activate it first, then13:40
nessitaralsina: activate it?13:40
ralsinalaunch the backend? Oh, no it's in-process on windows. Sorry.13:41
nessitaright, is just an import13:41
ralsinaok then. Piece of cake. Will work on that page now.13:41
nessitaralsina: wait!13:41
nessitaralsina: for this particular case, adding a folder is a complex thing (lots of checks for the to-be-path)13:41
nessitawe already have a button that does this, like I mentioned. I will isolated it into a widget for you to reuse. In the mean time, you have plenty to work on: load the local folder list, calculate size, build the folder list13:42
nessitaralsina: just leave the button placeholder in place13:42
nessitamakes sense?13:43
nessitaralsina: makes sense?13:43
nessitajeeze, how fast I lost him13:44
nessitaralsina: don't start coding yet!!! :-)13:44
ralsinasorry, phone call :-)13:47
ralsinanessita: yes, was going to use the button! I was going to code the folder list only13:47
ralsinaso, you want to isolate that button? we can parallelize a bit13:48
nessitaralsina: ko, the button as a widget is not in place, I'm starting a branch for that13:48
ralsinanessita: cool.13:48
* mandel back13:53
nessitastand up in 6, crowd!13:54
* thisfred flexes legs13:55
* nessita freezes13:58
thisfredWomen are scientifically proven to be better at withstanding physical pain, but have less bloodflow to the extremities, so have worse temperature regulation than men.14:00
ralsinamandel: it would probably be useful to have ubuntu-sso-client work with qt on linux. I am taking a quick look and it seems it's mostly that we don't have the right main() for that combination14:00
thisfredNote I took care not to use the adjectives 'cold' and 'insensitive'14:00
ralsinamandel: does that sound right?14:00
mandelralsina: yes, it does14:00
alecuhello #ubuntuone!14:00
nessitathisfred: lol14:00
nessitame14:00
nessitahi alecu14:00
thisfredme14:00
thisfredholalecu14:00
nessitamandel, ralsina, dobey?14:01
nessitaalecu ?14:01
nessitasay me please! :-)14:01
mandelme14:01
dobeyme14:01
* alecu needs to write some notes14:01
ralsiname14:01
nessitaDONE: got ussoc and syncdaemon running on a W7 VM: found out and reported a couple of Criticals in the process. Meetings.14:02
nessitaTODO: bug #802517, keep testing syncdaemon in windows14:02
nessitaBLOCKED: no14:02
nessitaNEXT: thisfred14:02
thisfredDONE: Bug #801736 (needs reviews!) | Fixing launcher integration issues between u1cp and u1client TODO: wrap up fixes BLOCKED: no NEXT: mandel14:02
ubot4Launchpad bug 802517 in ubuntuone-control-panel "QT UI: Split the "add folder" button out from the folders panel (affects: 1) (heat: 6)" [Undecided,New] https://launchpad.net/bugs/80251714:02
ubot4Launchpad bug 801736 in ubuntuone-client "Handle None reported as 'deflated_size' (affects: 1) (heat: 6)" [High,In progress] https://launchpad.net/bugs/80173614:02
=== m_conley_away is now known as m_conley
mandelDONE: Recovered from migraine. Finished sdtool changes proposed by alecu on Friday. Started working on 801734 by splitting it in diff bugs. It looks like there are places where os_helper is not used.14:02
mandelTODO: finish splitting 801734. Fix at least 2 or three subbugs.14:02
mandelBLOCKED: no14:02
mandeldobey, please14:02
nessitaubot4: you're crazy! bug #80251714:02
dobeyλ DONE: testing on oneiric, bug #800723, triage, releases, uploads14:02
ubot4nessita: Error: I am only a bot, please don't think I'm intelligent :)14:02
dobeyλ TODO: more bug fixing/triage14:02
dobeyλ BLCK: None.14:02
ubot4Launchpad bug 800723 in ubuntuone-client (Ubuntu Oneiric) (and 2 other projects) "Install plug-ins to correct ABI directories (affects: 1) (dups: 1) (heat: 14)" [High,Fix released] https://launchpad.net/bugs/80072314:02
dobeyralsina: go14:02
ralsinaDONE: Fixed needs-fixing on branch fix_800359 (need one more review). Fixed run-tests so it runs style checks properly on windows14:02
ralsinaTODO: bug #800376, maybe make sso-client-qt run on linux14:02
ralsinaBLOCKED: no14:02
ubot4Launchpad bug 800376 in ubuntuone-windows-installer "Add "syncing your computer to the cloud" page to the installer (affects: 1) (heat: 6)" [Undecided,Triaged] https://launchpad.net/bugs/80037614:02
alecume14:03
nessitaubot4: bug #80251714:03
nessitaalecu: go!14:03
alecuDONE: debugging control-panel speaking txnamedpipes with sso14:03
alecuTODO: finish finding the bug, and do a branch to fix this14:03
alecuBLOCKED: no14:03
nessitaalecu: any clues? can we help?14:03
ralsinanessita: the point of making sso-client-qt run on linux is so that: a) it's easier to test b) someone on loan from web can do the CSS14:03
mandelalecu: what is the issue?14:04
nessitaralsina: makes sense. I would like to have this running on windows first, though, so we can *actually show something* to the bosses14:04
nessitaralsina: can we file a bug for the ussoc on linux and fix it once the rest is running on w?14:04
ralsinanessita: it does run on windows, for everyone that has tried it (me ;-). +1 on the bug14:04
nessitaralsina: when I said "it runs" I was referring to the whole combo wizard + ussoc + sdtool + controlpanel :-)14:05
ralsinanessita: oh, THAT "runs" :-)14:05
alecumandel, right now it's stuck, with no errors, but the callback is not received. I found something I think was related to namedpipes, but I need to debug further.14:05
nessitayeap :-)14:06
nessitaalecu: did you resgiter to signals on control panel as well?14:06
mandelalecu: ouch...14:06
alecunessita, yes14:06
mandelnessita: when do we mumble?14:06
nessitaalecu: for both services? (sorry, I need to ask)14:06
alecumandel, give me a few minutes, since I'm on my desktop and I have not used it in a few weeks; I need to copy the vm from my laptop.14:06
nessitamandel: at half past this hour14:06
alecunessita, what are "both" ?14:06
mandelnessita: ok14:06
nessitaalecu: CredentialsManagementTool on one hand, and SYncDaemonTool (you may not care about the later though)14:07
nessitalatter*14:07
alecunessita, I am not caring about the latter. But I'm guessing that the txnamedpipes error that the second throws is somehow affecting the first.14:08
nessita:-/14:10
thisfredCOMMENTS: could use (pretty simple) reviews please on: https://code.launchpad.net/~thisfred/ubuntuone-client/fix-progressbar-tests-on-windows/+merge/6583814:10
thisfredthe branchname is misleading14:10
ralsinathisfred: on it!14:10
thisfredshould read: fix-broken-progressbar-on-all-platforms14:10
dobeymake-it-so-tests-fail-because-the-path-name-will-be-way-too-long-for-unix-sockets-to-work-correctly14:13
pmatulisis it possible to use u1sdtool on a CLI-only system?14:13
ralsinadobey: what's the limit on the branch name length, roughly?14:13
ralsinapmatulis: you need to start a DBUS session somehow and set its ID in an envvar14:14
dobeypmatulis: not easily, no14:15
thisfredralsina: I think full path name <= 25614:15
dobeyralsina: just keep them as short as possible. the unix socket path limit is 112 i think14:15
thisfredso it depends on the length of you username even ;)14:15
dobeythisfred: i think it's 11214:16
thisfredah14:16
dobeythisfred: for unix sockets14:16
pmatulisdobey: that's a shame14:16
thisfreddobey: wasn't it only a problem with the server tests though?14:16
dobeypmatulis: well, ubuntu server isn't our target market :)14:16
dobeythisfred: no, dbus uses unix sockets14:16
thisfredah, different problem then14:17
dobeythisfred: but we first experienced it with postgres, yes :)14:17
thisfredmaybe server tests have the 256 limit :)14:17
dobeydon't think so14:17
pmatulisdobey: realize that.  but it's a shame to lock out thousands of systems14:18
dobeybut i guess there's lots of stuff to keep some filenames short14:18
thisfredI know there was something where the length of the full path mattered, which was different on pqm than on users' systems, and between users, so it was fun to debug14:18
ralsinaThe problem is that unix socket's paths have to fit in the same field as a DNS address! Kinky!14:19
dobeypmatulis: they're not locked out, they're just a pain to configure, because we decided to use existing technologies in ubuntu rather than developing yet another message bus system, that only we'd be using14:19
ralsinapmatulis: should be doable using dbus-launch and some ingenuity. We would love a script to do it automatically (wink wink)14:20
nessitamandel, alecu, Chipaca, ralsina: mumble in 9 minutes14:21
mandelack14:21
ralsinaack14:22
Chipacanessita: gack14:22
Chipaca(GNU ack!)14:22
nessitalol14:23
alecuack14:23
alecuboy, my office is cold14:24
nessitaalecu: I agree. I'm wearing, literally, 3 coats and the USB slippers14:24
alecumandel, http://pastebin.ubuntu.com/633632/14:26
alecumandel, does that ring a bell?14:26
alecumandel, the bit that puzzles me the most is: """d = self.waitingForAnswers[requestID]14:27
alecuexceptions.KeyError: 2"""14:27
mandelalecu: let me take a look14:27
mandelalecu: first thing I'd like to know is what is the type of sd_client it complains it is a module and not an object, weird… since we should be using SyncDaemonTool, right?14:29
mandelalecu: unless there is a linux.py and a windows.py and the windows part does not have that method, but sdtool does has it14:29
=== kklimonda^ is now known as kklimonda
=== kklimonda is now known as Guest43465
alecumandel, I'm trying to debug the credmantool; on this branch there's no sdtool usage yet.14:30
=== Guest43465 is now known as kklimonda^
alecumandel, in fact, I'll try commenting out the sd calls.14:30
mandelalecu: oh, ok, I'd try to remove the sd calls to see the errors as clean as possible14:31
mandelalecu: but certainly the keyerror is very weird...14:31
=== kklimonda^ is now known as kklimonda
=== hallyn is now known as hallyn_afk
nessitamandel, ralsina, Chipaca: mumble?14:34
ralsinanessita: starting it!14:34
alecumandel, so: the keyerror looks like the second call failing after the first one somehow closed the channel.14:34
alecumandel, or something like that.14:34
mandelalecu: yes, that is my mpression too, the cleaner we get the error the better14:35
nessitaChipaca: ping?14:36
Chipacanessita: ah!14:36
Chipacagoing...14:36
alecumandel, but this looks like a txnamedpipes thing, right?14:37
mandelalecu: yes, I dont think that any other reactor would have this problem...14:37
alecumandel, or at least something in pb that's breaking, but does not look like something our code could be breaking... :P14:37
mandelalecu: no, it looks like something very very dirty...14:38
alecuhttp://pastebin.ubuntu.com/633632/15:04
mandelalecu, ralsina: can you review this: https://code.launchpad.net/~mandel/ubuntuone-client/inline_windows_sdtool/+merge/6597015:11
ralsinamandel: sure15:11
ralsinathisfred: forgot to mention I +1d your branch a while ago15:26
dobeywhy doesn't u1cp clear the token and fetch a new one if it gets AUTH_FAILED?15:26
thisfredralsina: saw that, thx15:27
thisfreddobey: care to do a second review real quick like?15:27
ralsinamandel: what kind of review do you suggest for that branch? Just tests and code review?15:27
mandelralsina: ups, I forgot to write which tests to run, give me a min and I''ll do so15:28
ralsinamandel: ok15:28
dobeythisfred: that's a trick question15:28
thisfreddobey: It always is: https://code.launchpad.net/~thisfred/ubuntuone-client/fix-progressbar-tests-on-windows/+merge/6583815:28
dobeyalso, nobody paid attention to my e-mail about tarmac a few months ago15:28
mandelralsina: done, you can find instrcutions about the tests15:30
mandelralsina: code review is very welcome15:30
ralsinamandel: cool, reading15:30
dobeyis it lunch time yet, i'm hungry15:31
nessitadobey: u1cp *does* that15:31
alecumandel, I think the prefix test_* is kinda reserved for unit tests to be run by the test runner. Perhaps it makes more sense to name your test_tools_irl.py script some other way.15:32
nessitadobey: do you see another behavior?15:32
mandelalecu: good point15:32
dobeynessita: i have seen a lot of people with "auth failed" issues15:32
faganok so sorry my landlord was being a real pai15:33
dobeynessita: bug #80183615:33
fagan*pain15:33
ubot4Launchpad bug 801836 in ubuntuone-control-panel "cannot log into ubuntu one app (affects: 1) (heat: 6)" [Undecided,Incomplete] https://launchpad.net/bugs/80183615:33
faganme15:33
nessitamandel: you can name it run_sdtool15:33
thisfreddobey: what email was that?15:33
alecumandel, typo: "Uplaods"15:33
nessitamandel: also, please move it to inside the tests directory15:33
nessitamandel: so we don't provide as "API"15:33
alecumandel, and perhaps you can call reactor.stop at the end of print_test15:34
dobeynessita: i can only presume he meant the cp there, but there isn't enough info to determine if that's true15:34
mandelalecu, nessita: ok15:34
faganDONE * first round of wiki ports TODO * second round of ports15:34
alecunessita, mandel, it is already inside tests.15:34
dobeythisfred: oh i guess it was one month ago. titled "Some tarmac changes"15:35
nessitadobey: maybe the user has an old version?15:35
nessitaalecu, mandel: True, sorry15:35
alecufagan, "was being" or "was having" ? :-)15:35
dobeynessita: you mean "old style token" ?15:35
ralsinafagan: what happened?15:35
faganalecu: was being a real pain15:35
fagan:D15:35
alecuhahaha15:36
faganralsina: she just was snooping around for an inspection checking everything out and needed me to follow her around to explain what was broken and who did it15:36
thisfreddobey: ah so you mean 1 approve is sufficient? I still as a rule like to have two, as I don't trust myself very far15:36
nessitadobey: I mean he may be running old u1-preferences, for example. Or even the windows preferences panel. I would ask for a screenshot, at least.15:36
thisfredI appreciate people are very busy right now though, so I'll risk it15:37
faganralsina: I couldnt really get back any earlier since she insisted on checking ever corner of the house15:37
dobeythisfred: i mean, for trivial stuff 1 is fine, but for larger changes you expleicitly make a second review request on launchpad15:37
ralsinafagan: ok15:37
dobeynessita: well that's why i marked it incomplete, and asked for some more info15:37
thisfreddobey: ah, explicitly request it. And then you request it of desktop+ ?15:38
faganralsina: could you give me that link you gave me on friday for that live checker of rst15:38
ralsinafagan: let me google it again...15:38
dobeythisfred: no no. when you submit a merge proposal, it already has one review requested of ubuntuone-hackers15:38
faganralsina: cool thanks15:38
thisfreddobey: reread your mail, get it now. that is all15:39
dobeythisfred: after you submit the proposal, it goes to the merge page, and at the top under the list of reviewers there is a "Request a review" link. you click that and add another request of ubuntuone-hackers15:39
ralsinafagan: http://rst.ninjs.org/15:39
faganralsina: thanks15:39
nessitadobey: ack, my point was that the user may not know what the control panel is, so he may not know how to answer your question :-)15:40
dobeynessita: well my questions were about removing the token.15:40
dobeynessita: but i have seen several other people also complain about similar issues, where they had a token in the keyring still that was failing.15:41
dobeyhmm15:41
dobeyand wtf is wrong with my weather applet? :(15:42
nessitadobey: well, I can confirm the backend code of the control panel handles the exception when the server reports 401 for a request. IN that case, we delete the current token and present the user with the overview screen15:42
nessitaso s/he can login/register again15:42
nessitadobey: the web rest call *may* not be returning 401 though15:43
nessitathere was a bug where it was returning 400 instead of 40115:43
dobeyyes, i know. because python-oauth sucks :)15:44
ralsinamandel: when running tests from test_tools.py I get lots of "can't connect to syncdaemon": https://pastebin.canonical.com/49050/15:44
nessitaralsina: do you have syncdaemon running?15:44
mandelralsina: hm.. that exception does not give much info, I'll add the actual one with the extra info15:45
ralsinanessita: well, tests should not require me to run syncdaemon, should they?15:46
nessitaralsina: hum, maybe I'm confused. The failure is from test_tools or test_tools_irl ?15:46
nessitaralsina: if it's the former, then you're right. If it's the second, then we need something that we still don't have, and is starting syncdaemon by "activation"(ish)15:47
nessitaso for testing test_tools_irl, you need to previously run syncdaemon in another terminal15:48
ralsinanessita: it's from python C:\Python27\Scripts\u1trial --reactor=txnp tests\platform\windows\test_tools.py15:48
nessitaralsina: oh, then you are right! :-/15:49
ralsinaOk, there is no way to do the folder size thing non-blocking without either a thread15:56
dobeyfolder size?15:57
ralsinadobey: yes.15:59
ralsinaoops. "either a thread or making it very very slow"15:59
mandelralsina: can yu tru with the version I've just pushed?16:00
ralsinamandel: sure!16:00
ralsinamandel: 50 successes!16:00
mandelhe..16:01
ralsinamandel: tests_ipc.py also succeeds but never stops16:02
dobeyralsina: but is that correct to do, given that the local file size is not the same as the storage space used in u1?16:02
ralsinadobey: well, it's close, isn't it? It's just to warn the user not to set UDFs with 90GB in them16:03
dobeyralsina: i suppose it depends on how many text files you have, vs. pre-compressed binary files16:04
mandelralsina: that sounds like a thread being stupid.. I wonder where...16:04
ralsinadobey: the quota es compared to the *compressed* size? Didn't know that.16:05
dobeyralsina: afaik, yes16:05
ralsinadobey: then this *may* be pretty useless. Then again, most large files will be in some compressed format, unless it's source code.16:05
alecudobey, ralsina: the quota is compared to the non-compressed size.16:05
ralsinaso it's not useless16:06
dobeyralsina: also, where are you shoing this?16:06
ralsinadobey: setup wizard, it gives the user a screen to set a set of initial udfs16:06
dobeyralsina: so you're showing all the user's personal folders?16:06
ralsinadobey: right16:07
dobeyralsina: so you should do it asynchronously as nautilus does, and just keep updating the display until each is finished16:07
dobeyprobably doing the stat calls in a thread16:07
dobeybut it's going to be slow no matter what16:08
dobeyunless it's on an SSD, then it might be fast :)16:08
ralsinadobey: not *really* slow, it's 20 seconds for a largish folder (90K files)16:09
ralsinabut if I do it by interleaving the calls in the event loop instead of a thread, it takes like 200 seconds instead16:09
dobeyralsina: 20 seconds is really slow, especially if i'm trying to get through a process already happening :)16:09
ralsinadobey: of course it won't be in the foreground ;-)16:10
mandelralsina, nessita: I just got the same exception that alecu got but between sd and sso16:10
nessitamandel: guh16:11
mandelnessita: yep, this: http://paste.ubuntu.com/633682/16:13
Monotokohey guys...if I cancel my subscription to Ubuntu One, will it just drop the 20GB package I bought (currently using 450mb...so I'm in my free quota), or will it drop everything?16:18
dobeyrye, joshuahoover: ^^ can you answer Monotoko please? :)16:20
alecumandel, ping16:20
alecumandel, there's an unused reply_handler inside get_shares16:21
mandelalecu: pong16:21
mandelalecu: I got the same error between sso and sd: http://paste.ubuntu.com/633682/16:21
alecumandel, ouch16:22
mandelalecu: doble ouch a lo homero16:23
alecumandel, the rest of the code looks fine (minus that little unused reply_handler)16:24
mandelalecu: oh, I'll remove that guy, which line is it in the diff?16:24
alecumandel, line 170 in the diff16:25
mandelok16:26
dobeylunch time, bbiab :)16:26
alecumandel, one more thing... when printing "No more downloads", the return value is True16:28
mandelalecu: excuse me?16:28
alecumandel, sorry, in wait_all_downloads16:28
alecumandel, (it's not touched by this branch, but it's in the same file)16:29
alecumandel, self.log.debug('wait_all_downloads: No more downloads')16:29
alecu                return True16:29
alecumandel, so, the weird thing is that True is returned in one case, or a list of downloads is returned in the other case.16:29
mandelalecu: I think is the same on linux… let me check16:30
alecumandel, ok, just checking.16:30
joshuahooverMonotoko: we don't delete files when you drop subscriptions...if you're over your quota when you drop a subscription we don't allow more uploads16:34
joshuahooverMonotoko: and, as alecu reminded me (thank you!), we may change how we handle quota and dropping subscriptions in the future...it's likely a ways off, but will likely change in the future16:39
* Mandrew is away: I'm in the Hammock dont disturb16:49
hallyn_afkso has anyone seen the ubuntu one client hanging a natty machine?  (or am i special?)16:50
* Mandrew is away: I'm in the Hammock dont disturb16:50
ryehallyn_afk, what operations are hanging?16:56
hallyn_afkrye: not operations.  The whole laptop hangs, cpu tops out, fan goes berzerk, a few leds blink nonstop.  Stays like that until i power-off.  NOthin gin the logs.16:56
hallyn_afkIt's been happening for months.  i thought it was the video driver, bc it was only when i logged in on console.16:57
ryehallyn_afk, leds as in caps lock, scroll lock?16:57
hallyn_afkyeah16:57
ryehallyn_afk, that's kernel panic16:57
hallyn_afkbut this weekend i started u1sdtool -s from vnc, and it did again the next night16:57
hallyn_afkyes16:57
ryehallyn_afk, i.e. the kernel has encountered some bug and cannot proceed16:57
hallyn_afkyes, but it only happens when u1 is going16:57
hallyn_afki dont' knwo how to go about diagnosing since it seems to be a middle of night affair, and there's nothing in logs...16:58
ryehallyn_afk, uh, that can mean that either network adapter is causing that or something on the file system (though unlikely). Ubuntu One does not use any different kernel features than any other application (inotify, mmap, etc.)16:58
hallyn_afki figured it might just be memory pressure16:59
hallyn_afkok, so noone else has ever mentioned anything like this16:59
hallyn_afk?16:59
ryehallyn_afk, if you can reproduce this with your console being in the foreground it should be able to print the OOPS message16:59
=== hallyn_afk is now known as hallyn
hallyni can't make it happen.  Once it happens, video does not respond16:59
ryehallyn, i mean that when you are in virtual terminal already and do some actions from remote side... how often can you reproduce this?17:00
hallynnot inconceivable that it's actually xfs related, but just walking the fs with find doesn't do it17:00
hallyni can't make it happen.  it generally happens in the middle of the night, when i'm sleeping.  tends t obe a few times per week.17:01
hallynif noone else has reproduced this, then i'm not sure i care to waste your time or my data17:01
hallynrye: thanks17:03
hallyn(if i ever get more concrete data, i'll file a bug)17:03
ryehallyn, thanks!17:04
rmcbrideinteresting. I just had a similar event with my new laptop. I have yet to configure U1 on it. Fan went nuts, system locked.17:06
rmcbrideI didn't look at the indicator LEDs17:06
* rmcbride goes looking for a core dump17:06
faganrmcbride: did you get it working eventually?17:06
rmcbridefagan: had to power it off17:07
rmcbridefagan: I had suspected a compiz issue actually. Still tracking it17:07
faganrmcbride: compiz does still have some issues in 11.0417:07
mandelalecu: I just pushed a new version without the reply handler17:07
hallynrmcbride: right, i had been suspecting compiz/unity.  but now that i've reproduced it without those, something else must be going on with mine17:08
rmcbridehallyn: interesting. I was about ot try a differnt desktop just to see if that helped.17:09
hallynrmcbride: if it happened to you pretty quickly it well may be video card still.  I did have a lot of crashes esp with nouveau in the past17:09
rmcbridehallyn: it seems to happen afte rthe system has been idle a bit. This is a sandybridge system with integrated video, so I might be on the bleeding-ish edge or something17:11
nessitaralsina: ping17:11
ralsinanessita: pong17:11
nessitaralsina: can't find the "emit  signa code in windows-installer trunk17:11
nessitaralsina: is that landed?17:11
ralsinanessita: no, it's in the branch that's stuck... let me find the link17:12
ralsinahttps://code.launchpad.net/~ralsina/ubuntuone-windows-installer/fix_800359/+merge/65703 lines 462 and nearby17:13
ralsinaand then you can call self.loginSuccess.emit(blah)17:13
ralsinaof course using your own signal name17:13
nessitaralsina: why is it stuck? it has 2 approves17:14
ralsinabecause I didn't get mandel's approve mail somehow :-(17:14
* ralsina lands it17:14
nessitaralsina: ;-)17:14
ralsinaalecu's review is "pending"17:14
nessitaralsina: ?17:15
ralsinaargh, looked at the wrong branch17:15
ralsinathere, set to approve17:16
alecumandel, I was able to execute run_sdtool.py. Success!!!!17:20
alecumandel, one thing: http://pastebin.ubuntu.com/633717/17:20
mandelalecu: toma ya!17:20
alecumandel, the shares dir does not start with17:20
alecu\\?\17:21
mandelalecu: ok, I'll file a bug for that, it should17:21
alecumandel, perhaps that has to do with something?17:21
alecumandel, the issue you were discussing during the meeting, I mean.17:21
mandelalecu: there is an issue, but is a diff one, nessita has problems with the root dir, which does have the \\?\17:22
alecuoh, ok.17:22
mandelalecu: nevertheless is a great thing you have spotted that :)17:22
gordjust fyi, had a fun time stress testing ubuntu one today. downloading 20gb+ at 2MB/s or so, syncdaemon likes to eat up about 50% of my cpu17:23
dobeyhmm17:24
alecugord, is that using 100% of a dual core?17:24
dobeygord: how many files makes up that 20GB?17:24
alecumandel, approved with A+17:25
dobeyralsina: are you guys still in zomg mode?17:25
mandeldobey: until we die17:26
ralsinadobey: what's zomg mode?17:26
dobeyralsina: rushing/stressing to get specific set of work done where you use a tag containing "zomg" on all the related bugs?17:27
ralsinadobey: then yes17:27
gordalecu, no - measured with top so  50% of a single core17:40
gorddobey, lots and lots, music so 5-10 mb a file17:40
gordits hitting IO enough to make the entire system sluggish and unresponsive though it seems17:41
dobeygord: that's probably why. That many files on a connection that fast is going to hit disk a LOT, and open()/close() constantly is going to eat resources :-/17:42
dobeygord: heck, my system sometimes gets sluggish when i check for new mail in evolution. and this is a quad-core with virtual threading magical pony stuff17:43
dobey:(17:43
gordjust another reason i need an SSD in this laptop :)17:43
dobeyit is the future damnit. where is my quartz disk?17:45
ralsinatip for the next one: if you copy text into designer, and it has any sort of unicode stuff in it, our "setup.py build" breaks with error "must be str, not unicode"18:37
dobeyfix it ;)18:37
nessitaalecu, mandel: I tried to run syncdaemon a second time in the same environment, so I had to kill sso by killing the process and then re run it. That attempt (running syncdaemon for the second time) failed with the txnamedpipe error18:38
alecunessita, that's lovely18:38
alecunessita, and a good pointer too18:39
nessitaalecu, mandel: the same one that alecu had. And sso will not retrieve credentials at all, so syncdaemon failed with AuthorizationDenied18:39
mandelalecu, nessita: so it happens in the second run after we killed it, that might be because the buffer of the pipe is dirty18:39
nessitamandel: that was my case, not sure if it was alecu's or your's. Was it?18:40
alecumandel, ooooh!18:40
mandelthe handle does not get closed properly and the next time we use it we go bannannas18:40
alecumandel, that sounds veeeeeery reasonable18:40
alecumandel, that also means that no more than two process can use the pipe at once.18:40
nessitathat last bit sounds terrible18:41
alecumandel, for instance, if both control panel and sd try to talk to sso, then this error may happen18:41
nessitaspecially since we may be hitting sso from several processes18:41
mandelalecu: well, you cannot have more than two servers using the same pipe, but you can have more than one client, right?18:41
alecumandel, I don't know, you tell me :-)18:41
alecunessita, exactly18:41
mandelalecu: there are two ways, server namedpipe and client, the listenPipe is creating a server so the second server we create brakes, but that is reasonable18:42
mandelalecu: I'd say lets add a test in the txnamedpipes where more than one client connects and gets something back, at least we remove the fear of not being able to have more than one client18:42
mandelalso, I dont think there is any test of that type18:42
alecujuas18:43
alecumandel, ok, I'll fetch a sandwich and give it a go.18:43
Monotokojoshuahoover, just wanted to say thank you for your great answer earlier...sorry for the late reply, I went AFK ^_^18:43
joshuahooverMonotoko: ah, np...happy i was able to answer :)18:43
nessitaalecu: good luck!18:43
mandelalecu: me love u :)18:43
nessitamandel: aboiut to your your extra_foo bracnh18:44
mandelnessita: yes18:45
mandel?18:46
mandelnessita: are you there?18:49
nessitamandel: on mumble, sorry18:50
nessitamandel: I'm back, about to run syncdaemon18:50
nessitamandel: guh, WIndowsError on other end18:51
nessitamandel: I'll report the bug and start over :-/18:51
mandelnessita: ok, add me to the bug, maybe is an easy one..18:52
nessitamandel: syncdaemon should be able to handle cases like this: http://pastebin.ubuntu.com/633762/ (filling report now)18:53
nessitamandel: bug #80267018:54
ubot4Launchpad bug 802670 in ubuntuone-client "WIndowsError when trying to create an existent dir (affects: 1) (heat: 6)" [High,Triaged] https://launchpad.net/bugs/80267018:54
mandelnessita: that one is simple enough, just ensure that error 183 is handled correctly… bloody windows fs...18:54
nessitamandel: yeah. I need to clean everything up again and reboot and re test :-D18:54
nessitamandel, alecu: can I clean the txn pipe somehow, to avoid restarting?18:55
mandelnessita: if you have process explorer installed you can force the handle to be closed18:56
mandelwhich might leave your system unstable and blah blah blah18:56
nessitamandel: ok, I'll reboot...18:56
mandelhaha18:56
nessitamandel: before, when we did the step together on mumble, we forgot to remove AppData\Local\ubuntuone18:56
mandelwhat does that think have?18:57
nessitamandel: in english please? :-P18:58
mandelnessita: que es lo que hay en ese dir?18:58
nessitadon't know, I nucked it18:58
nessitamandel: syncdaemon running, same errors than before on the terminal19:02
nessitamandel: in a few minutes I'll kill and send logs19:02
mandelnessita: perfect19:03
mandelnessita: at least it is always happening19:03
nessitamandel: in that branch you didnot fix the ascci can't decode error, right?19:04
mandelnessita: no, I added logging to see what we are getting in the os_helper layer19:06
nessitamandel: http://pastebin.ubuntu.com/633772/19:11
nessitaKeyError: '\\\\?\\C:\\Users\\Test\\Ubuntu One\\'19:12
nessitaline 360 from the diff19:12
nessitathe paste, I mean19:12
* mandel looks19:12
mandelnessita, alecu: please take a look at this tiny branch: https://code.launchpad.net/~mandel/ubuntuone-client/fix-802670/+merge/6603919:12
nessitamandel: looking19:13
nessitamandel: tests pliz?19:13
nessitamandel: in particular we need tests to avoid regressions19:14
mandelnessita: already present in the test_os_helper which test for that case19:14
mandelnessita: and rename in linux is os.rename19:14
mandelnessita: found the issue, there is an extra \ at the end of the path19:14
nessitamandel: no, I mean we need tests to ensure that volume manager calls rename and not os.rename19:15
mandelnessita: hm…. I wonder how I can test that...19:15
mandelnessita: I'll think about a smart way to do that19:15
nessitamandel: patch your rename and test that is being called19:15
nessitaand test that os.rename is not being called19:15
nessitawhich is exactly "the bug" here :-)19:16
mandelok19:16
nessitamandel: regarding my paste, you're that the problem is the ending \\ in  '\\\\?\\C:\\Users\\Test\\Ubuntu One\\' ?19:16
mandelnessita: yes, look at the line just above19:17
mandelnessita: you can see the _idx which has the dir but without the \\19:17
nessitamandel: that should work, with the extra \\19:18
nessitamandel: I mean:19:18
nessitawe should be normalizing paths before keyring our metadata in fsm, that is not the case?19:18
nessitaalso, dirname in linux leaves the ending / as well, or no? /me tries19:19
mandelnessita: try normpath which is what is called just before19:20
nessitahum, dirname does not have an ending \19:20
nessita>>> os.path.dirname('/home/nessita/Ubuntu One/logging.conf')19:20
nessita'/home/nessita/Ubuntu One'19:20
nessitalet's see windows19:20
mandelnessita: try os.path.normpath please19:21
nessitamandel: I'll check, but FYI os.path.dirname on windows does not append \\ at the end (ie, they work the same in linux and windows)19:23
nessitamandel: what test with normpath you need?19:23
nessitamandel: os.path.normpath applied to os.path.dirname results in the exact path19:24
nessitaon both OSes19:24
nessitamandel: what next?19:24
mandelnessita: I'd like to see what happens when you do os.path,normpath with the extra \\ in that exact path19:25
nessitaok19:25
nessitamandel: it removes the ending \\. Anyways, why are we having the ending \\ anyways?19:25
mandelnessita: that I don't know, wht I really want to uderstand is why line 774 in filesystem_manager is not removing the \\19:27
mandelis doing path = os.path.normpath(path)19:27
mandelnessita: line 77319:27
nessitamandel: pulling trunk to confirm19:27
nessitano idea19:30
nessitamandel: you should request some debugging help from facundobatista...19:30
mandelnessita: so.. windows is fucked up big time19:30
nessitaI would go, for now, with PICNIC19:30
nessitaI'm making a branch to have better debug there19:31
mandelnessita: what is PICNIC?19:31
nessitasince we have 2 nested calls to fsm19:31
nessitamandel: Problem In Chair Not In Computer19:31
mandelhahaha19:31
mandelnessita: I'm going to get dinner ready and will be back to add the tests, let me know if you find anything19:34
nessitaack19:34
ralsinaany preferences on the pythonic way to make a bunch of threads stop?19:38
* ralsina is thinking about reading a module-global variable, but that may be considered impolite ;-)19:38
dobeythread.join()19:39
dobey?19:39
ralsinadobey: that waits for the thread to end, doesn't tell the thread to end19:39
ralsinadobey: I want to notify an indeterminate number of threads "guys, time to stop"19:40
facundobatistaralsina, you can not make a thread stop19:41
facundobatistaralsina, you can tell them to stop :)19:41
facundobatistanormally, with a token in a Queue19:41
ralsinafacundobatista: I know. But it's  in a pretty fast loop, so once I tell it to stop, it will stop in ~5ms19:41
ralsinafacundobatista: but if I have N threads, I need N queues19:41
ralsinafacundobatista: not that I mind, that's just fine if it's the "right" way19:41
facundobatistaralsina, the problem in these cases is if the thread is waiting for something... for example, stuck in a socket.read(), or queue.get(), etc19:42
=== beuno is now known as bueno
ralsinafacundobatista: it's just a loop over stat() so shouldn't happen (yeah, right ;-)19:42
facundobatistaralsina, you can always access the object in the other thread and do something like other_object.should_stop = True19:42
ralsinafacundobatista: ok, makes sense19:43
* ralsina implements19:43
dobeywell, just telling it to stop should be fine, you just need to keep a list of the Thread objects somewhere19:43
alecuralsina, is it an os.walk +stat?19:43
ralsinaalecu: yes19:43
ralsinadobey: have the list, so yes, doing what facundobatista said19:43
=== bueno is now known as beuno
nessitafacundobatista: would you please do a quick review for sync https://code.launchpad.net/~nataliabidart/ubuntuone-client/clearer-handle_AQ_DELTA_OK/+merge/66044? is pretty trivial, but windows is exploding there and I want to check exactly where and why19:45
facundobatistanessita, exploding how?19:45
alecuralsina, http://stackoverflow.com/questions/190010/daemon-threads-explanation19:46
alecuralsina, so, don't stop it: set thread.daemon = True19:46
nessitafacundobatista: line 384 http://pastebin.ubuntu.com/633772/, fsm.get_by_path fails with a KeyError for a directory that is there. Mandel's theory is that the trailing \\ is messing around, but fsm call normpath before accessing its own cache, so that makes eveyrhing senseless19:46
ralsinaalecu: but if we are using 100% I/O, that means it will continue after we close the program until it finishes19:47
ralsinaalecu: not polite ;-)19:47
nessitafacundobatista: since, os.path.normapth('\\\\?\\C:\\Users\\Test\\Ubuntu One\\') trims the ending \\19:47
nessitafacundobatista: (I just tested it)(19:47
ralsinaalecu: correction "while we move onto the next pages"19:48
nessitaralsina: all this thread madness is to calculate the folder sizes?19:48
facundobatistanessita, yes, AFAIK paths in the indexes are without the trailing path separator19:48
alecuralsina, oh, "move onto the next page" makes sense.19:48
ralsinanessita: it's done already19:48
nessitaralsina: then what is all this threading stopping for?19:48
nessita(curious)19:49
nessitafacundobatista: right, but we still are getting the KeyError...19:49
ralsinanessita: just trying to do it the right way. Since I got the explanation it's already implemented19:49
nessitaralsina: with tests? :-)19:49
ralsinanessita: yes. Not tests that pass because I need a better setUp, but yes ;-)19:49
nessitafacundobatista: so, something is odd since the inner implementation of get_by_path calls normapth itseld19:50
nessitaitself19:50
ralsinanessita: tests should be up in 15 minutes or so, modulo getting coffee19:50
nessitanice19:50
* ralsina is being a good boy19:50
* nessita gives away a trick19:50
=== lborda is now known as lborda_afk
alecumandel, should we set this branch to approved? https://code.launchpad.net/~mandel/ubuntuone-client/inline_windows_sdtool/+merge/6597019:53
nessitafacundobatista: so, any thoughts/ideas?19:55
facundobatistanessita, working on it19:55
nessitafacundobatista: thanks19:56
nessitaralsina: can't find (still) your custom signal code. I pulled installer trunk and grepping for -i emit gives nothing19:58
ralsinanessita: the emit is not there, just the signal declaration. To emit, call signalName.emit(arg1,...)19:59
nessitaralsina: shall I be using __pyqtSignals__ or something like argumentSig = pyqtSignal(int, list)?19:59
ralsinathe second one19:59
facundobatistanessita, with "I just tested it", what do you mean specifically?19:59
nessitaralsina: just curious, why would you define a signal if you don't emit it? :-)19:59
ralsinanessita: because it's emitted by code in sso that has a reference to an instance of that class. That's also why I can't change its name :-)20:00
nessitafacundobatista: I opened a cmd.exe, typed python, <enter>, import os; os.path.normpath('\\\\C:\\Users\\Test\\Ubuntu One\\')20:00
nessitathe result of running that is '\\\\C:\\Users\\Test\\Ubuntu One'20:00
nessitafacundobatista: I can share a screenshot20:01
nessitaralsina: ah, tricky. Thanks, I will browse  the code20:01
facundobatistanessita, but that's now what is happening20:01
nessitanow == not?20:01
facundobatistanessita, "not", yes20:01
facundobatistanessita, line 360, KeyError: '\\\\?\\C:\\Users\\Test\\Ubuntu One\\'20:02
nessitafacundobatista: not following20:02
ralsinanessita: http://stackoverflow.com/questions/4523006/pyqt-signal-with-arguments-of-arbitrary-type-pyqt-pyobject-equivalent-for-new-s the first response20:02
facundobatista>>> os.path.normpath("\\\\?\\C:\\Users\\Test\\Ubuntu One\\")20:02
facundobatista'\\\\?\\C:\\Users\\Test\\Ubuntu One\\'20:02
facundobatistanessita, ^20:02
nessitafacundobatista: is that a linux terminal?20:02
facundobatistanessita, windows20:03
facundobatistanessita, xp20:03
facundobatistanessita, where I'm fighting to see how the f*#k I change the keyboard settings20:03
ralsinaagree with facundobatista on windows 720:03
facundobatistabloody unusable systems20:03
ralsinafacundobatista: if you have a keyboard icon or the words "ES" or "EN" in the bottom-right, that's where20:04
nessitafacundobatista, ralsina: you're both right for path beginning with \\\\?\\C:\\... I was testing \\\\\C:\\...20:05
nessita:-(20:05
nessitamandel: ^20:05
ralsinalooks like a bug with normpath to me20:05
facundobatistaralsina, great, thanks!20:06
nessitaralsina: I still don't understand where the \\\\?\\ came from. Is it "standard" and "official"?20:06
facundobatistaralsina, nessita, "la culpa la tiene windows" (tm)20:06
nessitafacundobatista: anyways, can you approve my branch? I think the code now is cleaner and more understandable20:06
facundobatistanessita, it's a trick to support not-stupidly-short paths, IIRC20:06
nessitafacundobatista: yeah, but I wonder how "standard" is20:07
nessitafacundobatista: if, for example, the python os.path library does not handle that properly, we're screwed20:07
facundobatistanessita, I don't have a clue about that20:07
facundobatistanessita, is that new debug line really needed?20:07
facundobatistanessita, it's really followable what happens to paths in the code20:08
nessitafacundobatista: I think so, yes. handle_AQ_DELTA_OK is not called that often...20:08
facundobatistanessita, yes, handle_AQ_DELTA_OK is called on each delta, and you're adding a debug line inside the for20:08
facundobatistanessita, I'm -0 to a TRACE line (since I really think it's not needed), -1 to a DEBUG one20:09
nessitafacundobatista: ok, removing the debug line then20:09
nessitaremoving debug and not adding anything20:09
facundobatistanessita, ok, let me know and I'll branch20:10
nessitafacundobatista: Pushed up to revision 1024.20:11
facundobatistanessita, it's a special handled case: http://pastebin.lugmen.org.ar/664220:13
nessitaguuuuh20:14
nessitawhy would they do that?20:14
dobeyhaha windows20:15
dobeywindows + logic == does_not_compute20:17
facundobatistanessita, maybe what you can do is to move os.path.normpath to platform.normpath20:17
facundobatistanessita, other solution: avoid getting the \\\\?\\ into SD, as it's a windows specific hack20:18
nessitafacundobatista: maybe, but I would like to understand why python devs decided that, in that case20:18
nessitafacundobatista: right, that makes sense, \\\\?\\ should never leave the os_helper layer20:18
nessitabut that can be a huge branch, I think. I will ask mandel when he returns20:19
dobeyi think it's a special hack in windows that MS did, not Python20:24
dobeyie, python is just exploiting it in their API as well20:25
nessitadobey: but why would they specifically ignoring?20:25
nessitaignoring it*20:25
dobeynessita: why would Python ignore it? so that it gets passed on to the OS probably?20:25
nessitabut why not treating it like a path and perform normalization on it?20:26
dobeywhat sort of normalization?20:27
nessitaremoving the trailing \\20:27
facundobatistanessita, because it says it's a "literal path"20:28
nessitathat goes beyond my understanding of windows. What is a literal path?20:28
* nessita googles20:29
dobeynessita: because the other stuff it does, breaks the special magic parts, it seems; looking at the code20:30
facundobatistanessita, don't know... I pinged Georg Brandal in #python-dev (the author of those lines), he didn't answer yet20:30
dobeynessita: literal means shouldn't be changed. like a string literal in code20:30
alecunessita, literal path in windows is a way of working around limitations in some apis20:30
alecunessita, paths that start with "c:\...." are not literal paths, and have some size limitations20:31
dobeynessita: windows has a lot of path-shortening magic for 8.3 name compatibility20:31
alecunessita, paths that start with "\\?\c:..." are literal paths, and can be much longer20:31
dobeyie C:\Progra~1\ stuff20:31
alecudobey, this is post DOS limitations, it's for win32 limitations.20:32
nessitaalecu: right, thing is that our code relies in literal path "normalization" and that is blowing in our faces20:32
dobeyalecu: well, it's FAT limitations also20:32
dobeybut yes, windows is a billion limitations from 30 years ago, rolled up into a massive ball of wtf20:33
nessitaalecu, dobey: I understand, thanks. What looks blurry is what to suggest to mandel as a proper fix, since as discussed we need to prefix \\\\?\\ to handle long path names, but we also need to normalize. Having out custom normalizer for windows smells bug time20:33
alecunessita, if I understood that correctly, the problem is a "\" at the end of a path20:33
nessitabig*20:33
dobeyand linux is more like a ball of tetrahydrachloride20:34
alecunessita, "... at the end of a folder name"20:34
nessitaalecu: yeah, fsm is KeyError-ing because there is and extra ending \\ that normpath will not remove20:34
alecunessita, wait a minute. there's an extra \, not a \\. and literal paths are \\?\, not \\\\?\\20:35
facundobatistanessita, now that we're talking, in the log you show me, it's logging the full index... I guess that's not permament, right?20:35
alecunessita, all those doubling slashes are for python20:35
nessitaalecu: yes20:36
nessitafacundobatista: what exactly, sorrt?20:36
nessitafacundobatista: not sure what you're pointing out20:36
alecunessita, ok. now, having a custom normpath sounds reasonable for our use case.20:36
nessitaalecu: I'm not that sure, but so far I can't think of a better option20:36
nessitahow the heck this is working for others? :-)20:37
nessitaalecu: you're not having this issue in SD logs @ win?20:37
nessitaralsina: how can I connect to a signal that sends a unicode as parameter? "folderCreated(unicode)" will not work20:37
facundobatistanessita, see for example line 377 of the pastebin20:37
ralsinause object as the type20:38
alecunessita, probably not that many people need to use literal paths.20:38
nessitaalecu: but right now syncdaemon (windows version) prefixes the \\\\?\\ for every path20:38
nessitaralsina: not QString?20:39
alecunessita, and that sounds reasonable, for our use case. And probably also for dropbox, since their client is python too.20:39
facundobatistanessita, and, more important: the index has mixed unicode and non-unicode paths... that's a recipe to future issues20:39
ralsinanessita: nope. object lets you pass anything. Use the duck typing20:39
nessitafacundobatista: I think that was added on a custom branch from mandel for me to debug on windows. That run is from lp:~mandel//ubuntuone-client/extra_os_helper_logging, not trunk20:39
facundobatistanessita, ok20:40
alecunessita, probably my SD logs have some error like that, but I have not paid too much attention to them yet.20:40
nessitaalecu: is reasonable, but since normapth will not normalize paths starting with \\\\?\\, how come our syncdaemon is giving only KeyErrors to me? (as far as we know)20:40
nessitaalecu: it should be failing for everyone running it on W, read ralsina and you. So I'm puzzled about that.20:41
nessitaalecu, ralsina: is the KeyError in your syncdaemon.log?20:41
nessitaspecifically: KeyError: '\\\\?\\C:\\Users\\Test\\Ubuntu One\\'20:41
ralsinanessita: let me check20:41
alecunessita, SD starts fine once, then the next time it throws some errors, then I go and remove all SD folders and metadata, and I restart it again.20:42
nessitaalecu: have you checked the logs? can you confirm you have (or not have) the KeyError?20:42
alecunessita, exceptions.KeyError: u'\\\\?\\C:\\Users\\user7\\Ubuntu One\\caracteres raros\\ab20:43
alecuc2\\\u200b\u203d\u200b \u200b\u26b9\u200b '20:43
nessitaalecu: do you have any file (not dir) inside Ubuntu One/?20:43
ralsinaI can't even start it:   File "bin\ubuntuone-syncdaemon", line 77, in main20:43
ralsina    logger.configure_logging(options.logging_level,20:43
ralsinaAttributeError: Values instance has no attribute 'logging_level'20:43
alecuralsina: copy the logging.conf from linux20:44
ralsinaalecu: ok20:44
nessitaralsina: you need the logging.conf file built from source tree. I usually do make on linux and copy that over20:44
nessitaralsina: logging.conf -> http://ubuntuone.com/p/110a/20:44
nessitaralsina: copy that to data/ inside u1client tree20:44
nessitaralsina: and copy http://ubuntuone.com/p/110Z/ as clientdefs.py inside ubuntuone/ (inside u1client tree)20:45
ralsinaI have a clientdefs already20:45
ralsinaok, it started20:46
ralsinaNow I have to stop it and then open the log, right?20:46
facundobatistaralsina, no logging.conf? first time you try the SD in windows?20:47
* facundobatista never tried it yet20:47
ralsinafacundobatista: I delete everything in my canonical folder every few days20:47
facundobatistaralsina, :o20:47
ralsinafacundobatista: bzr on windows makes me do it :-(20:47
nessitaralsina: do not stop it yet20:47
dobeyhmm20:47
facundobatistaralsina, what?20:47
ralsinanessita: ok20:47
ralsinafacundobatista: files get stuck on limbo and I have to delete one folder higher than the local branch for it to unstuck20:48
dobeyi wonder how we deal with localedir/libexecdir on windows20:48
facundobatistawow20:48
dobeyralsina: in bzr? are you using a shared repo?20:49
nessitaralsina: wait a few minutes, ideally, until syncdaemon finishing syncing. Are you syncing your real U1 account?20:49
ralsinadobey: nope, just me here20:49
ralsinanessita: yes, it's the real one20:49
nessitaralsina: before killing it, can you tell if the sync is completed? (by browsing the file system and opening files)20:49
ralsinanessita: I can look at least20:50
dobeyralsina: shared repo doesn't mean "shared with other people"20:50
dobeybut that is weird20:50
dobeyare you sure you know how to use bzr? :)20:51
ralsinadobey: ok, dont  knw what you mean then, and I am only a social bzr user ;-)20:51
alecudobey, if ralsina has to delete the parent folder, it sounds like a shared repo20:51
dobeyalecu: that is why i asked :)20:51
ralsinaI have only an empty "shared with me"20:51
dobeyalecu: but if he doesn't know what one is, then i have no idea what he's talking about, either :)20:51
alecuralsina, if you do "bzr init-repo ." on the parent folder before checking out trunk in the child folder, then it is a shared repo.20:52
ralsinaalecu: no, nothing like that20:52
nessitaralsina: direct question: have you ever run syncdaemon and have all you data synced properly?20:52
nessita(in windows, that is)20:52
ralsinanessita: nope20:52
ralsinaOk, doesn't seem to sync anything20:53
nessitaralsina: ok. I think you can now kill SD and check the logs20:53
nessitaralsina: logs are located at: C:\\Users\Test\AppData\Local\Temporary Internet Files\UbuntuOne\log20:54
nessitaralsina: replaces "Test" as per your user name20:54
ralsinaDon't have an Ubuntu One folder in there20:54
nessitaralsina: no space, UbuntuOne20:54
ralsinaoops, I do20:54
nessitaralsina: and do not dir on it20:54
nessitait will say there is nothing in it, but is lying20:54
ralsinaNo KeyError20:55
nessitaralsina: can you pastebin your log and share the url please?20:55
alecuralsina, has syncdaemon connected? ie, does it have the proper credentials?20:55
nessitasyncdaemon.log20:55
ralsinahttps://pastebin.canonical.com/49068/20:55
nessitaalecu: good question20:55
ralsinaalecu: looks like it, yes20:56
nessitaralsina: did you run sso before running SD?20:56
ralsinanessita: yes20:56
nessitaralsina: SYS_AUTH_ERROR, kwargs: {'error': 'AUTHENTICATION_FAILED'}20:56
ralsinaThere is an auth error...20:56
ralsinayeah20:56
ralsinaI may have wrong credentials, I suppose20:57
nessitaralsina: also, before retrying please cleaned up everything in your system, and by all I mean:20:57
nessita* c:\Users\Test\AppData\Local\xdg20:57
nessita* c:\Users\Test\AppData\Local\ubuntuone20:57
nessita* c:\Users\Test\AppData\Local\Temporary Internet Files\UbuntuOne20:57
nessita* c:\Users\Test\Ubuntu One20:57
nessitarestart your system20:57
nessitastart ussoc, then SD, then please let us know20:58
alecuralsina, also, to make sso get the credentials, try starting ubuntu_sso/qt/tests/show_gui.py20:58
alecuralsina, but first change the line that says20:59
ralsinawait, I have to delete the credentials first20:59
nessitaalecu: right, ideally he should clean them first, shouldn't he?20:59
alecunessita, right20:59
alecuyield client.sso_cred.login_or_register_to_get_credentials('Ubuntu One',20:59
nessitaralsina: do you know how? I don't :-)20:59
alecuI do.... just a sec.20:59
ralsinanessita: COntrol panel, search for credentials, look around :-)20:59
nessitaralsina: eh?20:59
alecuralsina, in windows? what control panel?21:00
ralsinaalecu: yes, windows control panel. It's the equivalent of linux's keyring21:00
nessitaralsina: clear_credentials from code does not work, you have to do it "by hand"21:00
ralsinacleared them already21:00
nessitaralsina: control panel in this namespace is U1 control panels :-D21:00
alecuralsina, cool. Did not know it has the credentials there... I used python :P21:00
* nessita too21:00
nessitaralsina: also, when you can: exceptions.TypeError: C++ type 'object' is not supported as a slot argument type21:01
nessitaI'm trying to connect to a signal, from a test. The signal was declared as: folderCreated = QtCore.pyqtSignal(unicode)21:01
alecu"Control Panel\User Accounts and Family Safety\Credential Manager"21:01
alecucool!21:01
ralsinanessita: after we do this, push and I'll take a look21:01
nessitaralsina: ack21:01
ralsinaalecu: you said I have to change that line. What to?21:02
alecuralsina, change the string to "Ubuntu One"21:02
ralsinaIt says that here :-)21:02
ralsinaOk, starting show_gui to get creds21:02
alecuralsina, oh, right. I changed it many times for testing, sorry.21:03
ralsinaok, got credentials, trying syncdaemon now21:04
nessitaralsina: did you clean up everything and rebooted? sorry to insist, but is needed21:04
nessitato ensure the first run to be the same as mine21:05
ralsinaI cleaned up everything21:05
nessitaand rebooted?21:05
ralsinadidn't reboot because this is my "real" machine. Will reboot now then. See you in a few seconds.21:05
nessitathat last part is needed to have a working txnamedpipes21:05
ralsinaok21:05
thisfredreviews appreciated on: https://code.launchpad.net/~thisfred/ubuntuone-client/add-counter/+merge/66050 (non-urgent, non-windows)21:06
alecunessita, are you sure about rebooting? I have not rebooted my windows vm in many many days.21:06
nessitaalecu: well, if I don't reboot, I can have syncdaemon getting the credentials the second run21:06
nessitaalecu: the txn reactor will go crazy with the error you got (error 2)21:07
nessitaI can't* :-)21:07
nessitaalecu: maybe is my system only?21:07
nessitaverterok: how can I run syncdaemon from the command line writing all the log info into stdout? was it --debug?21:11
verteroknessita: yes21:11
verterok--debug should do the trick21:11
nessitait works on windows as well!!!21:12
nessitaverterok: thanks21:12
ralsinawindows atill shutting down...21:12
nessitamandel: ping21:12
verteroknessita: you can also set an env var...but not sure if that will work on windows :)21:13
nessitaverterok: --debug is great, thanks21:13
ralsinastarting windows...21:16
ralsinaargh, windows lost my whole session, starting stuff up :-(21:19
nessitaalecu: you sure you don't have a KeyError on Ubuntu One (root folder)? I'm puzzled if you don't21:20
alecunessita, the last SD I ran gave me a KeyError on another folder, like I pasted above.21:21
alecunessita, right now I've removed everything, and I'm doing txnamedpipes testing, I'll test SD later.21:22
ralsinasyncdaemon running at last21:22
dobeycan i get a quick fairly trivial review for https://code.launchpad.net/~dobey/ubuntuone-client/fix-802702/+merge/66051 ?21:22
nessitaalecu: right, but I wonder why not a KeyError on the root folder. According to what we found out re normpath, you should be having that. Do you have files inside Ubuntu One/ (not dirs, but files)?21:22
ralsinasyncdaemon logged in, doing a server rescan21:23
alecunessita, last week SD in the VM created files in many of my folders, it downloaded 2Gb, so it synced all of my files. I didn't look to see if everything was there, but the size looked right.21:24
alecunessita, I don't recall if there were files on the root folder.21:24
ralsinasyncing stuff...21:24
alecunessita, but I don't have any *big* file on the root folder, so I might have missed it.21:25
nessitaalecu: right, size is reported properly, but files are (apparently, at least my images are) corrupted21:25
alecunessita, oh, ok.21:25
ralsinanessita: the corrupted images happened before and it was a file open without the b flag on syncdaemon21:25
alecunessita, anyway, I need to pick up Amelia in 5 minutes, and I'll return to work on this in a few hours21:25
nessitaalecu: ack21:26
nessitaralsina: anyways, you can see my log file how is crowded with exceptions21:26
nessitaralsina: so it does not look like a (only) 'b' missing....21:26
ralsinanessita: yep21:26
ralsinaI am getting these now: https://pastebin.canonical.com/49071/21:27
* alecu will return later. Like Ballmer said "Hasta la Vista!"21:27
nessitaralsina: I've seen those, are caused by a bug that mandel needs to fix, but in theory those are harmless21:27
nessitaralsina: can you please you whole log in pastebin? (can be in a few minutes)21:28
ralsinanessita: yes, I will let it sync a bit21:28
nessitasounds good21:29
ralsinaat least one file downloaded but it's corrupted21:31
nessitaralsina: is it binary or text?21:31
ralsinanessita: binary, an .epub file (basically a .zip_21:31
ralsinafiles are syncing, all corrupted21:32
* ralsina looks a bit harder21:32
ralsinaAll files are slightly larger on windows. Seems to me the old b flag again.21:35
nessitaralsina: if you can confirm a text file corrupted, it will be interesting21:35
ralsinasure thing!21:35
nessitaand by interesting I mean worrying, but I'm trying to be euphemistic here :-P21:35
ralsinanessita: it will take a while21:35
nessitaack21:36
ralsinanessita: confirmed, it's changing the EOLs21:39
nessitaguh21:39
ralsinaon windows: >>> print repr(open('test.txt','rb').read())21:39
ralsina'Line 1\r\nLine 2\r\n'21:39
ralsinaOn Linux: print repr(open('test.txt','rb').read())21:39
ralsina'Line 1\nLine 2\n'21:39
nessitaralsina: can you please report a bug and share the link to it?21:40
ralsinanessita: sure!21:40
nessitathanks :-)21:40
ralsinaagainst ubuntuone-client?21:40
nessitayes please, https://bugs.launchpad.net/ubuntuone-client/+filebug21:40
ralsinaon it21:41
ralsinanessita: filed https://bugs.launchpad.net/ubuntuone-client/+bug/80272821:44
ubot4Launchpad bug 802728 in ubuntuone-client "Files are not written as binary (affects: 1) (heat: 6)" [Undecided,New]21:44
nessitathanks!21:44
ralsinaother than every file being broken, syncdaemon seems to work just fine here21:44
dobeyanyone? :)21:45
ralsinadobey: the review you mentioned earlier? Can you repaste it?21:46
thisfredI can do one as well. dobey: you have my permission to *always* use my nick in review requests (as does everyone else on desktop+) I on the other hand reserve the right to say no/ignore, but at least I will see the request, whereas I don't read the channel all day long.21:47
nessitaralsina: can you please paste the whole log?21:49
ralsinanessita: sure, in 1'21:49
ralsinanessita: I have a syncdaemon-deug.log of 8MB, that's not ging to pastebin well. Is  syncdaemon-exceptions.log enough?21:52
nessitaralsina: guuuuh that smelld21:52
nessitasmells21:52
nessitaralsina: bzr revno on u1client what does it say?21:53
nessitaralsina: there should not be any -debug log file21:53
nessitanot from today, at least21:53
dobeythisfred, ralsina: https://code.launchpad.net/~dobey/ubuntuone-client/fix-802702/+merge/6605121:54
ralsinanessita: 102221:54
thisfredon it21:54
dobeythisfred: that doesn't work if you refuse though. (unless you go on there and choose "abstain" as your vote)21:55
nessitaralsina: what modification date has the -debug log file?21:55
ralsinanessita: 5 minutes ago21:55
ralsinanessita: I may have an old logger.conf though21:55
ralsinabecause I cpoied that from Linux21:55
nessitaralsina: do you have some special setting? how did you run syncdaemon?21:55
ralsinapython bin\ubuntuone-syncdaemon --debug (which of course explains it)21:56
nessitaah!21:56
ralsinabecause I wanted to see what it was doing :-(21:56
thisfreddobey: I don't mean in the lp request, I mean on here, so I get dinged.21:56
dobeyoh21:56
nessitaralsina: can you email me the log file, even if it's big? of course that 7zippping it wil compress it a lot21:57
ralsinanessita: sure thing, doing it right now21:57
dobeythisfred: does your irc client support regex for matching hilights?21:57
nessitaralsina: please send it to my canonical email address21:57
thisfreddobey: quite possibly21:57
dobeythisfred: if so, you could maybe add a regex to match on merge proposal urls :)21:58
thisfredtrying now21:58
thisfredhttps://code.launchpad.net/~dobey/ubuntuone-client/fix-802702/+merge/6605121:58
thisfredthisfred: test21:58
dobeydid it work?21:59
thisfredno, but my own messages don't alert me anyway21:59
dobeyoh21:59
thisfredhttp://www.control-d.com/?p=8122:00
ralsinanessita: sending22:00
thisfredhmm, that does only phrases, but I can hack on from there22:01
thisfredat some point22:01
ralsinadobey: my Lucid is broken so I can only test it visually :-(22:01
dobeyeh22:01
dobeyralsina: no big deal, thisfred already approved :)22:01
ralsinadobey: ok then22:02
nessitaralsina: you have some WindowsError: [Error 2] The system cannot find the file specified:22:04
dobeyok, i am off then. have a good evening all. :)22:05
nessitaralsina: and also, KeyError: '\\\\?\\C:\\Users\\ROBERTO\\Ubuntu One\\'22:05
ralsinanessita: the "cannot find the file specified" I saw for files that later downloaded22:05
ralsinaHad not seen the KeyErrors, that may explain why the files in "Ubuntu One" didn't sync22:06
nessitaralsina: well, the exception should not be there22:06
ralsinanessita: agreed22:06
nessita16 KeyError on Ubuntu One. I'll file the bug, and explain that normpath issue22:07
ralsinaOk, EOD for me (report sent! ;-). I will either be a few hours again late, or very early tomorrow, so ask me for reviews or whatever.22:11
nessitaralsina: ok, enjoy22:12
ralsinanessita: will try!22:13
=== m_conley is now known as m_conley_away
thisfreddobey: can you paste a merge prop?22:24
thisfredthe problem with this is going to be I'm going to be alerted about all proposals in all channels, unless I make per project regexps22:25
nessitaI'm about to EOD22:30
thisfredoh, me too! Have to walk the dog, no idea it was this late22:30
thisfredping me for reviews and I'll get to them after the walk22:30
thisfredbbiab22:30
nessitaok, I'm off22:34
nessitabye all22:34
facundobatistanessita, chau22:40
=== DanRabbit is now known as DanRabbit|Futbol
=== DanRabbit|Futbol is now known as DanRabbit|HeatDe
=== DanRabbit|HeatDe is now known as DanRabbit

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!