/srv/irclogs.ubuntu.com/2010/02/16/#ubuntuone.txt

jamestaitHi all.00:00
jamestaitApologies for the join/leave spam - having a spot of bother with Empathy tonight.00:01
jamestaitbueno: Are you around? I wanted to talk to you about Thunderbird contacts and Ubuntu One.00:02
beunojamestait, hey00:48
jamestaitHey!00:49
jamestaitPleasant flight?00:49
beunowell, as pleasant as a flight can be  :)00:49
jamestaitMuch as I enjoy my trips to South Africa, 10 hours in cattle class does test the soul!00:50
jamestaitI wanted to pick your brains about contact syncing and Ubuntu One.00:51
beunosure00:51
beunoI thought about it a bit00:51
jamestaitI think I mentioned I'm working on an extension for Thunderbird to sync contacts with DesktopCouch.00:51
beunoright00:51
beunoif you do that00:51
beunoI think we can make tb sync without a plugin00:52
beunowhich is fantastic00:52
beunowhat I used right now is a plugin00:52
jamestaitAnd by extension, due to CouchDB replication, it should also therefore end up in Ubuntu One, right?00:52
beunothat talks syncml00:52
beunocorrect00:52
beunoonce you get it working with couchdb, making it sync the right db should be pretty simple00:52
beunorodrigo will know the details, although he's not around right now00:53
jamestaitThat's the bit I need to talk to you about really. :)00:53
beunoso, your work will actually streamline this, which is great news for me!00:53
jamestaitI added the "me" contact in U1 and it's sync'd down to my DesktopCouch.  All fine and dandy.00:54
beunojamestait, and you're working in tb3?00:54
jamestaitBut I don't notice anything really special about it that makes it appear in U1...00:54
jamestaitTB2 right now, TB3 is on the roadmap though.00:54
beunoI think it's just the name of the db00:55
jamestaitWhat's the default for Lucid?00:55
beunoI'm pretty sure tb3 will be default in Lucid00:55
beuno(it should be, it's a gazillion times faster!)00:55
jamestaitI'd better get my skates on then! :-P00:55
beunojamestait, I'll be happy to test things out, and help you where I can00:55
jamestaitI haven't yet installed the Lucid alpha, I wanted to get something working with this extension first.00:56
beunoemail will likely work best, but feel free to ping me here as well00:56
beunoI upgraded to Lucid on Fri00:56
beunoit was flawless!00:56
jamestaitWe're pretty spoiled actually - I think we've come to expect an exceptionally high level of quality.00:57
beunoI think you're right, I'm happy we've made so much progress00:58
jamestaitI'm currently working from my "development" partition, which is actually running Karmic so is clearly now stable.00:58
jamestaitMy stable partition is still on Jaunty, so I'll nuke that and get Lucid on there very soon.00:59
beunocool00:59
beunoI was using tb3 on karmic just fine00:59
beunoso you can also use that00:59
beunoyou can get it from: https://edge.launchpad.net/~ubuntu-mozilla-daily/+archive/ppa00:59
jamestaitThere'll be some major refactoring required for TB3, and some code clean-up even for a production quality TB2 release.01:00
jamestaitIt's still very hairy!01:00
beunowell, it's a start, you can polish once it's out there01:00
jamestaitBut I'm about to push my first code branch up to launchpad.01:00
beunothat's great news01:01
beunoI have to run to dinner, third time I promised "1 more minute"01:02
jamestaitIt's not *that* useful yet - it only pushes contacts to couch and doesn't do anything with the ones it gets back yet, and it avoids anything to do with MergeableList (URLs, e-mail addresses, phone numbers)01:02
beunojamestait, great talking to you, looking forward to your work01:02
beunolet me know if there's anything I can do to help01:02
jamestaitThanks for your time. :)01:02
jamestaitAnd my horrible code is now visible to the world at lp:hedera01:26
EmryIs there a command to tell UbuntuOne to sync my folder?09:15
* Emry made changes in his Ubuntu One directory, and it is not syncing.. And there is now a folder that is refusing to update/upload period. :/ ^^;; And the report a problem button does not function. :P09:16
ryeOk, the web ui for files indeed does not work with Opera09:30
ryeEmry, are you experiencing the problem at the moment?09:30
Emryrye, Yes.  I have been since yesterday.,  It started when I copied the directory into the Ubuntu One folder, then moved it to another folder less than a minute later.  The system uploaded part of the folder in the first place, then renamed the folder as a comflict in my local director.09:35
EmryI deleted the files from the website, then renamed the folder back to Classes in the local directory, and the program just ignored it after that.09:36
EmrySo, I moved the directory back to its original location, waited a bit, and moved it back where I wanted it in the directory tree, and still nothing. ^^;09:36
ryeEmry, ok, could you run the following in the terminal? dbus-send --session --print-reply --dest=com.ubuntuone.SyncDaemon --type=method_call /status com.ubuntuone.SyncDaemon.Status.current_status09:36
ryeEmry, and paste the contents to https://paste.ubuntu.com09:37
ryeEmry, http://paste.ubuntu.com (not SSL)09:37
EmryThe results are not promicing.  Will it react differently if I do it from a terminal than from the actual computer? (I am in the next room.  I know it should not make a difference, but it is worth asking.)09:40
ryeEmry, yes, it requires the correct environment, i am testing this behavior right now so if i not succeed, then I will need to ask you to post the results of that call and ~/.cache/ubuntuonel/log/syncdaemon.log to paste.ubuntu.com09:41
EmryOk, I will go to the next room real quick. :)09:42
ryeEmry, thanks!09:44
Emry2http://paste.ubuntu.com/377475/09:46
Emry2Saddly the result was not so different from when I tried from the other room. ^^;09:46
Emry2What was the file you wanted to see?09:47
duanedesignhello rye ,  Emry209:50
ryeEmry, hm... ok, let's get back to the setup, so, you are now at the computer that is having sync issues, right?09:51
ryeEmry, when you opened a terminal (e.g. gnome-terminal) and executed the dbus-send line you received ChildExited error, right?09:52
Emry2Yes.  I am physicially at the machine.09:52
Emry2Yes.09:52
Emry2Which I assume is a bad thing.09:52
ryeEmry, ok. then the file we are interested most is ~/.cache/ubuntuone/log/syncdaemon-exceptions.log (and if it is empty, then ~/.cache/ubuntuone/log/syncdaemon.log)09:52
ryeEmry2, basically it is the sign that syncdaemon tried to start but then encountered something really bad and killed itself09:53
ryeEmry2, syncdaemon is the application that actually performs the file sync09:54
Emry2I think I found part of the problem.  when it didn't work from the other room, I tried sudo.. Then I used sudo again in here.  The log says it doesn't like that.  I did it again as my regular user and got different results which I will paste real quick.09:56
Emry2http://paste.ubuntu.com/377481/09:57
ryeEmry2, ok, just to make sure we are clear of errors that are known - could you download the diagnose script to make sure you have file permissions right before we restart the service?09:58
ryeEmry2, wget http://ubuntuone-client-diagnose.googlecode.com/svn/trunk/ubuntuone-client-diagnose.py; python ubuntuone-client-diagnose.py09:59
Emry2It tells me I am not using network manager. I am flooking at the bug report that it pointed me to now ^^;10:02
ryeEmry2, hm, is that the only bug mentioned?10:02
* rye needs to update the script, the fix for that is already released in 1.0.3-ubuntu110:03
Emry2The last line is Warning: 1 issues were found.10:03
Emry2rye, How does one tell which version they have?10:06
ryeEmry2, ok, then there is nothing wrong with file permissions, ok, let's do the following - could you please paste the contents of ~/.cache/ubuntuone/log/syncdaemon.log10:06
ryeEmry2, apt-cache policy ubuntuone-client10:06
Emry2Do you want the exceptions log too?10:08
Emry2http://paste.ubuntu.com/377488/10:09
ryeEmry2, if it is not empty, then it may be helpful10:09
Emry2http://paste.ubuntu.com/377489/   < Exception log10:10
ryeEmry2, hm, it looks like it did not account for the possiblity of directory move during upload. Grrr, it seems that I can reproduce it even on the latest version (i.e. unreleased). Will need to file a big bug report about that10:11
ryeEmry2, ok, in my case it even renamed the folder to the old name. Not good :-(10:12
Emry2I deleted the file from the server, and it still does not seem to unjam it.  Is there a way to access the local DB directly to try a purge there?10:13
ryeEmry2, so, when can be done - Could you bring the Classes folder out of UbuntuOne folder?10:13
ryeEmry2, so that syncdaemon will not try to rename it or mark as conflict..10:13
Emry2I was able to remove it from the Ubuntu One folder.10:13
ryeEmry2, ok, now we need you to restart syncdaemon so that it drops its internal queue of operations. u1sdtool -q - this will stop syncdaemon10:14
Emry2As root?10:14
ryeEmry2, and if you have an applet running, click 'Connect' in the applet and syncdaemon should be automatically restarted10:14
ryeEmry2, no, syncdaemon does not elevate the privileges so no actions need to be performed as root10:15
Emry2The applete still shows the option to disconnect. ^^10:15
Emry2Ok I was able to tell it to disconnect.  Told it to connect now.10:16
Emry2Bad timing.  Wife is calling me for dinner. ^^10:16
ryeEmry2, you may now see in syncdaemon.log that it does something...10:16
ryeI believe syncdaemon does not react to connect right after autolaunch :( it should at least have some queue for requested states or smth like this10:18
ryeEmry2, sure, dinner is much more important than this, I guess you will be able to see the logs after the dinner :)10:21
duanedesignrye: what does /home/duanedesign/Ubuntu One/.scripts-wrong-path mean? was that the clue in his exception log that led you to conclude it did not account for the possiblity of  directory move during upload10:28
ryeduanedesign, i just performed the same locally, syncdaemon stopped uploading, then resumed uploading then it just disconnected. Upon reconnect my folder renamed itself to the original one (which I don't think is an intended behavior)10:29
duanedesignahhh, ok10:30
duanedesignmust go get some breakfast and some coffee. Be right back :)10:32
beunogooooooooood morning ubuntuoners10:32
ryebeuno, good mornin.gz!10:33
duanedesigndid some work on the wiki over the weekend. Moved some stuff to its own page and made a menu to make navigation easier. https://wiki.ubuntu.com/duanedesign/sandbox310:34
duanedesignalso wanted to add a FAQ based on feedback from users. Any input is appreciated. AFK and a BRB10:35
ryeduanedesign, nice!10:35
ryebeuno, btw, if I want to create a feature-request for wiki.ubuntu.com, whom should I ping?10:36
Emry2http://paste.ubuntu.com/377504/   <-- Log   http://paste.ubuntu.com/377505/  <-- Exception Log10:40
Emry2rye10:40
Emry2:)10:40
beunorye, it's usually an RT10:40
beunorye, talk to a sysadmin10:41
ryeEmry2, yep, it now performs file unlinking for every file it remembers, and since it does not exist, then it gives a WARNING.10:42
ryeEmry2, you may run dbus-send --session --print-reply --dest=com.ubuntuone.SyncDaemon --type=method_call /status com.ubuntuone.SyncDaemon.Status.current_status periodically to see whether it is in IDLE state. After this cleanup is finished10:42
ryeUnlinks take more time than needed, this is registered as an issue with syncdaemon speed10:43
Emry2Hehe10:45
Emry2One thing that is getting used too, is that Konversation and Konsole behave differently copy and paste wise from every other IRC client and terminal. :P10:45
Emry2So, once all the unlinking is done, should it sink files it does not find online/recognize?10:46
Emry2Rye, Yay! It seems to be working now.  What info do I need to submit a bug report, or did you do that already? *:)10:49
ryeEmry2, If you provide me with your launchpad ID i can subscribe you to the bug report, I am now gathering the required logs to file a big one.10:50
ryeEmry2, ok, so when the bug report is complete I will add you to the list of subscribers.10:54
=== teknico is now known as teknico_away
ryeGreat, it turned my testing folder which I renamed during upload into .u1conflict :)11:42
ryeERROR - StorageRequestError during OAuth: TRY_AGAIN - trunk, what does that mean?11:49
duanedesignrye: when performing a strace on Ubuntu One what command should i use to launch U1 EX: strace -Ff -tt ubuntuone-client 2>&1 | tee strace-ubuntuone-client.log ?11:51
ryeduanedesign, depends on what you are trying to do, are you debugging the applet itself or syncdaemon?11:52
rye'cause they are all python and pdb might be a better choice11:52
duanedesignhmm, ok11:54
ryeduanedesign, also, since applet talks to syncdaemon over dbus, dbus-monitor might be helpful11:58
duanedesignrye: for dbus i have been using: dbus-monitor type=signal interface="com.ubuntuone.SyncDaemon.Status"12:22
=== teknico_away is now known as teknico
ryeduanedesign, re bug 522581 - was that applet crashing or syncdaemon? I believe that's applet, right?13:07
ubottuLaunchpad bug 522581 in ubuntuone-client "Started Ubuntu One Selected Connect, Crash. Files have not been syncing" [Undecided,New] https://launchpad.net/bugs/52258113:07
beunohi channel!13:17
beunoif everyone could test the notes webui on edge for me, I'd be grateful13:17
beunohttps://edge.one.ubuntu.com/notes13:17
beunoand would also have some confidence in rolling it out to production  :)13:18
duanedesignrye: correct13:18
duanedesignrye: i can not get the crash to happen reliably. However i cant seem to get it to sync. Working on debugging it.13:19
kklimondabeuno, it would be great if it converted lines that start with dash to bullet lists like Tomboy does.13:20
kklimondabeuno, also the whole ubuntu one web interface feels heavy13:21
beunokklimonda, agreed13:21
beunothat's the second step13:21
ryebeuno, is that going to save notest in XML to server-side couch ?13:21
beunostep 1) was to make it work  :)13:21
beunorye, kklimonda, for formats, I will defer to rodrigo_13:21
kklimondabtw, I get really scared when I try to sync tomboy with ubuntu one and get asked to add my computer to Ubuntu One account as it's already added..13:22
rodrigo_rye, yes, we now save notes in XML on the server13:22
rodrigo_rye, not sure if it's deployed, I think so13:23
kklimondacan I just press "Add this computer" and not fear for my data? :)13:23
beunokklimonda, correct13:23
ryerodrigo_, /me is extremely happy about this change :)13:23
ryewow, gwibber is in couchdb13:24
* rodrigo_ too13:24
beunoI really need to add a spinner while it saves13:24
kklimondabtw - are you guys already thinking how to integrate gsettings/dconf with ubuntu one?13:24
aquariuskklimonda, I have done some thinking about that.13:25
aquariusIt's not as obviously easy as you might expect; there's no way to tell, for example, which settings are machine-specific :(13:25
kklimondaaquarius, I don't expect it to be easy at all :)13:26
ryebeuno, yep, the spinner might be useful, so far I clicked 3 times on save before I realized that it is "Loading..."13:26
aquariuskklimonda, so, in answer, yes, I've done some thinking. If you've got thoughts I'd be eager to hear them!13:26
ryerodrigo_, note-format = xml - is it server-side setting or if it is not xml then it will be converted?13:26
* rye is happy to see that notes are REALLY in XML format.... *went jumping*13:27
aquariusbeuno, https://edge.one.ubuntu.com/notes/ throws a 500 with OOPS-ID-1508appserver5731313:28
ubottuhttps://lp-oops.canonical.com/oops.py/?oopsid=ID13:28
ryerodrigo_, because it means that gnote implementation for local couch sync becomes magnitude simpler13:28
* rye has no oops13:28
beunoaquarius, hrm, wfm13:28
beunohow do I see oopses?13:29
aquariussee ubottu :)13:29
beunooh, I was sure he was lying13:29
urbanapemorning, all13:29
aquariusalthough he is lying, becuas ethat's for LP oopses.13:30
aquariusI don't know how you see ours :)13:30
beunomornin urbanape13:30
urbanapeso, beuno: on make start-funambol, I'm getting a 404 on /sapi/login. Is there anything else I need to do to get it up and running?13:31
kklimondaaquarius, I don't really see any way to distinguish machine-specific settings (other than marking them as such by developers) but shouldn't it be considered to be a bug and fixed? what kind of settings do you have in mind? I know that evolution uses gconf in a very.. weird way but other than that the worst abuse I can think of right now is storing window size there.13:32
aquariuskklimonda, the problem is stuff that doesn't necessarily translate between machines, as well as actual machine-specific stuff like window position. Take, for example, Banshee, which stores last_file_chooser_uri, which will point to a folder which almost certainly doesn't exist on the target machine13:34
aquariusa silly example (and Banshee will be handling that folder not existing, in case you've since deleted it, even in the single-machine case), but it illustrates that most apps are not really geared up for anyone other than themselves editing their preferences.13:34
aquariusRhythmbox stores the locations of your music libraries in gconf, for example; a path that will likely not exist on other machines.13:35
beunourbanape, me too13:35
beunolucid, right?13:35
urbanapeyup13:35
kklimondaaquarius, sure - but I simply assume that such abuse of gconf is a bug and should be fixed during gconf->gsettings transition13:35
aquariuskklimonda, well...in theory.13:35
beunourbanape, it's broken that way in Lucid13:35
urbanapegood thing that's, like, four or five distro releases away, huh.13:36
aquariuskklimonda, but if "fix all uses of gconf" is a prerequisite for storing gconf settings in Ubuntu One, then, well, get back to me when all gconf users are fixed :)13:36
beunourbanape, heh13:36
beunowell13:36
beunowe have something to start our call with  :)13:36
aquariuskklimonda, actually storing things in U1 is pretty trivial; we just implement a desktopcouch backend to gconf to replace the XML backend. That'd take about two hours.13:36
ryerodrigo_, is it ok that note-format uses dash while all other fields use underscore ?13:37
kklimondaaquarius, you take some kind of cache into account? other than gconf one - after all we can't really assume that user is going to have any kind of connection. But that's great that writing the backend is so easy.13:39
aquariuskklimonda, ah, we'd write the data to desktopcouch, the CouchDB on your desktop, which is then later replicated with Ubuntu One13:40
aquariuskklimonda, we wouldn't store the data direct to Ubuntu One13:40
kklimondaaquarius, oh, right - I've forgotten about it completely.13:40
kklimondawhich is funny because I can never forget that there is a piece of erlang running on my computer ;)13:42
beunourbanape, jblount, I'd suggest you guys grab https://launchpad.net/~teknico.net/ubuntuone-servers/minimal-phone-setup-web-ui/+merge/1938513:42
beunobefore our call13:42
urbanapebeuno, snarfing it up now.13:49
ryedo i need to supply _rev when adding new document to couchdb?13:57
ryeaha, no13:57
ryemy bug13:57
beunojblount, are you on Lucid?14:01
beunoand, ready for our call?  :)14:02
* beuno warns up skype14:02
urbanapeI'm all skyped up.14:02
jblountbeuno: Yes, to both.14:03
beunoteknico, we'll leave you with deployment scripts, right?14:04
teknicobeuno, it's a bit sad, but no news from ops+, therefore I guess so14:05
teknico(it smacks a bit of "cannot go outside and play with my pals because I didn't finish my homework" ;-) )14:06
ryebeuno, rodrigo_ BUG: create_date is no longer filled in for tomboy notes14:06
beunoteknico, no worries14:08
ryerodrigo_, also, http://www.freedesktop.org/wiki/Specifications/desktopcouch/note will need to be updated with note-format and I guess the version for record-type will need to be incremented as well14:09
ryebeuno, rodrigo_ should I file a bug report regarding this?14:11
beunorodrigo_, should he?14:14
ryeSelect a problem to proceed: 1. note-format is spelled with dash, not underscore, 2. create_date is not filled in by server side, 3. recordtype info needs to be updated14:15
jblountbeuno, urbanape: I couldn't hear you guys, so I'm going to restart my phone and see if that helps14:15
beunojblount, sure, I should do the same14:15
=== CardinalFang_ is now known as CardinalFang
rodrigo_rye, yes, please14:19
=== CardinalFang_ is now known as CardinalFang
urbanapeupdated my sourcedeps and still get the 404 on /sapi/login on lucid on teknico's branch.14:25
teknicourbanape, try running the last command manually:14:26
teknicoPYTHONPATH=lib python lib/utilities/funambol_config.py create_user14:26
urbanapetrying14:28
beunojblount, you ready?14:28
urbanapethat seems to have worked.14:28
beunoteknico, I think that still doesn't bring up funambol14:29
urbanapethat works, but make start-funambol still gets a 40414:29
teknicourbanape, with what user are you logging in?14:30
urbanapeI'm not logging in as anything.14:31
urbanapejust make start-funambol14:31
urbanapedies with a RuntimeError14:32
teknicourbanape, right, you're not at the web interface yet14:32
urbanapealso, it's trying to run create_users, not create_user14:32
teknicohuh? let me check14:32
urbanapehttps://pastebin.canonical.com/27958/14:33
teknicourbanape, right, sorry, the command should end with "create_users" plural14:33
urbanapeokay, and when I do that, I also get the RuntimeError 404 on /sapi/login14:34
jblountbeuno: We're having some network weirdness at this cafe14:36
teknicourbanape, please run "bzr revno" in  sourcecode/funambol_cared, it should yield 3914:38
urbanapestatik, mind if we borrow your conference line for a bit?14:38
beunojblount, change of plans, dial into statik's conf line14:39
jblountbeuno: k14:39
beunourbanape, do you know the secret leader code?14:40
urbanapeI do not14:41
* beuno sighs14:41
beunook14:41
beunoso14:41
beunohow about IRC?14:41
teknicobeuno, https://wiki.canonical.com/ConferenceCalls14:42
beunoteknico, yeah, that doesn't tell us the leader code to start the call  :)14:42
teknicobeuno, statik's one *is* in there :-)14:42
urbanapebut not the leader code14:42
urbanapewhich is needed to start the conference14:42
teknicooh, it's not anymore14:42
urbanapeteknico, my funambol_cared revno is 39, yes14:44
teknicourbanape, I forgot to mention one thing that we didn't yet manage to script:14:45
teknicohttps://wiki.canonical.com/UbuntuOne/Funambol/CarrierEdition8.0#Database14:46
urbanapeokay, I've got the symlink, but not the changes to the config.properties.14:46
urbanapethanks14:46
urbanapeam I supposed to have /opt/Funambol/bin already?14:47
teknicourbanape, those changes should be done by the scripts run by "make start-funambol"14:47
teknicourbanape, you don't need to do all that's on that page, and no, the /opt paths are wrong14:49
urbanapewheeeeee14:49
beunourbanape, works?14:51
urbanapeno, just commenting on the wiki page14:51
urbanapeteknico, so which of those things is not yet scripted?14:52
teknicourbanape, only the database link, please pretend that the rest of the page does not exist :-)14:52
urbanapehmm, guess I didn't have that symlink.14:55
ryejoshuahoover, i believe the https://wiki.ubuntu.com/UbuntuOne/Bugs?#Which%20files%20are%20not%20yet%20synced%20on%20my%20computer? is about the local files that are not yet synced, i have no idea how to list the server-side (remote) files at the moment15:02
joshuahooverrye: ah, ok, i'll correct that :)15:02
ryejoshuahoover, thanks :)15:02
joshuahooverrye: i noticed yesterday that syncing seemed to be much speedier than before...adding new files (like 250 MB worth of mp3s), updating existing files, and deleting files from the client all were much speedier than i've ever seen them before...have you noticed this?15:10
Gilesif I create a softlink in /home/giles/Ubuntu One/   to a folder with the files in that folder be propagated into the ubuntu one storage cloud?15:10
ryejoshuahoover, i am about to stuff in my 100 mb folder with lots of files and see what happens15:10
dobeyGiles: no, but soon you will be able to set any folder under your home directory to synchronize to u115:11
ryebut it is much, much, much^255 faster than on 10-th->12th of Feb15:11
aquariusGiles, no. To do that, you can either move the folder into Ubuntu One and put a symlink where it used to be, or, in the 10.04 release, you'll be able to set any folder to be propagated to Ubuntu One.15:11
Gilesdobey: would something like lndir do it?15:11
Gilesaquarius: oh yeah didn't think of that.15:11
Gilesdobey: a la http://www.xfree86.org/4.3.0/lndir.1.html15:12
joshuahooverrye: cool, i'm curious to hear the results15:12
dobeyGiles: no. we do not follow symlinks15:13
dobeyGiles: we just ignore symlinks15:13
GilesI guess I will have to wait for 10.04 then, or do what aquarius said.15:13
sanderqdhi, i'm trying to get started with couchdb using desktopcouch. when doing 'curl -X get http://localhost:47793/', i get an unauthorized error. is there an easy way to authenticate using curl?15:26
ryesanderqd, you need to get info about the authorization15:27
ryesanderqd, the proper way is to query gnome-keyring15:27
aquariussanderqd, URLs for desktopcouch need to be OAuth-signed. Is there a reason that you're using curl rather than one of the existing desktopcouch libraries, like desktopcouch.records (Python) or couchdb-glib (C) ?15:28
aquariussanderqd, these libraries take care of all the signing stuff for you so you don't have to.15:29
sanderqdaquarius: no, just trying to learn a bit about couchdb using books.couchdb.org15:29
aquariussanderqd, ah, OK, yeah. desktopcouch uses OAuth for security, which makes it a little more difficult (but also more secure) than a default CouchDB install (which is what the relax book describes).15:30
sanderqdok, so for the brief part using curl, i'll just use the authentication as put in ~/.local/share/desktop-couch/couchdb.html15:31
sanderqdthe http://<user>:<password>@localhost:<port>/ urls15:31
aquariussanderqd, you can do that, yes, that will also work. Don't build any applications using Basic Auth, or I'll wag the waggy finger of disapproval at you, but it's certainly useful for testing ;-)15:32
ryesanderqd, yep, just make sure that the port that is written in couchdb.html is actually the port for couchdb15:32
sanderqdyeah, seems to work for now!15:32
aquariussanderqd, excellent!15:36
aquariusrye, ping15:44
ryeaquarius, pong15:45
aquariusrye, I have a script which allows people to query their Ubuntu One CouchDB, so they can see if syncing has worked, read the data therein, etc15:45
aquariusrye, where do you think we should put it so people can have it? In the ubuntuone-client package? On the wiki? both?15:45
=== jamalta-afk is now known as jamalta
aquariusrye, it is a Python script.15:45
ryeaquarius, wow, awesomeawesomeawesome, need script...15:46
aquariusrye, this is why I'm mentioning it ;)15:46
ryeaquarius, I'd go on the wiki first, then we'll need to find out whether it belongs to ubuntuone-client package or desktopcouch15:46
aquariusrye, it belongs to ubuntuone-client -- it's U1-specific, so it doesn't belong in desktopcouch15:47
aquariusrye, http://paste.ubuntu.com/377677/ - try it out15:47
ryeaquarius, hm, ah, it tests for management db, etc?15:47
aquariusrye, no. it talks to Ubuntu One, not to desktopcouch.15:48
thisfredrye: I think it does belong in the client as an awesome tool that can be used for diagnosing, but also to interact in interesting ways with your couch in the clouds15:48
ryeaquarius, quick fix - g_application_name needs to be set (can be set via import gtk, though it seems to be an overkill) - otherwise all python scripts will get access to gnome-keyring15:48
dobeyno you just need gobject, not gtk+ for that15:49
dobeygobjet.set_application_name()15:49
aquariusrye, feel free to take it and do what you want with it :)15:49
ryeaquarius, heeeey!15:49
bigpigMy files are not syncing to my ubuntuone account.15:50
bigpigI may have messed something up while doing this.15:51
bigpigCan I just remove my ubuntuone account and start over from scratch?15:51
ryeaquarius, next time please tell me to read the sources before proposing changes...15:53
aquariusrye, :)15:53
ryebigpig, could you please paste the contents of ~/.cache/ubuntuone/log/syncdaemon.log to http://paste.ubuntu.com and give us the URL15:55
ryebigpig, you might not need any account resent to resolve the issue15:55
bigpigrye: http://paste.ubuntu.com/377683/15:57
ryebigpig, this looks like bug 517361, let me read it to see what needs to be done15:59
ubottuLaunchpad bug 517361 in ubuntuone-client "syncdaemon hung in WORKING_ON_METADATA_WITH_CONTQ" [Medium,Fix committed] https://launchpad.net/bugs/51736115:59
bigpigrye: Okay, thanks. Let me know if you need more information.16:00
ryefacundobatista, is it possible to trigger trash clean on local rescan to unfreeze syncdaemon stuck in  WORKING_ON_METADATA_WITH_CONTQ state?16:01
facundobatistarye, the trash clean I commited does not care about States16:02
facundobatistarye, so, yes, it's possible: it's already done! :)16:03
ryefacundobatista, but what if user already having the problem?16:03
facundobatistarye, not following you16:03
ryebigpig, what version of ubuntuone-client are you running? "apt-cache policy ubuntuone-client" in the terminal16:04
ryefacundobatista, the log: http://paste.ubuntu.com/377683/16:04
bigpigrye: "Installed: 1.0.3-0ubuntu1"16:04
ryebigpig, ok, thanks!16:04
facundobatistarye, that log is not very useful, :)16:05
ryefacundobatista, ah, ok, let's restart syncdaemon :)16:05
facundobatistarye, in debug mode, please16:05
ryebigpig, ok, lets restart syncdaemon, u1sdtool -q16:05
ryebigpig, this will shut down the service that is responsible for file sync.16:06
bigpigrye: "ubuntuone-syncdaemon stopped."16:06
ryebigpig, then we will need to start syncdaemon with debug output in logs enabled:16:06
ryebigpig, /usr/lib/ubuntuone-client/ubuntuone-syncdaemon --debug > ~/syncdaemon-debug.log16:07
ryebigpig, when syncdaemon starts, click on the applet and 'Connect' it to ubuntuone cloud service16:07
bigpigrye: Should I have put that in the bg?16:08
ryebigpig, you will stop syncdaemon later so it is ok for it to run in the fg16:09
bigpigrye: (It is running, by the way.)16:09
ryebigpig, ok, so have you connected it via the applet ?16:10
bigpigrye: yes.16:10
ryebigpig, ok, now try putting some file in Ubuntu One folder and give it a minute or so, then check with web ui that the file is there16:11
ryebigpig, ah, wait16:11
bigpigrye: waiting...16:11
ryebigpig, could you please also run this in another terminal: bus-send --session --print-reply --dest=com.ubuntuone.SyncDaemon --type=method_call /status com.ubuntuone.SyncDaemon.Status.current_status16:11
bigpigrye: path to bus-send?16:12
ryedbus-send --session --print-reply --dest=com.ubuntuone.SyncDaemon --type=method_call /status com.ubuntuone.SyncDaemon.Status.current_status16:12
ryebigpig, ^16:12
* rye really needs to find out why I don't copy first character when selecting lines :-/16:13
bigpigrye: oh... "bad clipboard"16:13
bigpigpaste-bin, or here?16:13
ryebigpig, no, bad mouse or bad me, to paste.ubuntu.com, please16:13
* rye wants to find out how much files can it hold :)16:14
bigpigrye: http://paste.ubuntu.com/377697/16:14
ryebigpig, ok, it is starting to work only, not ready to upload files right now. Could you please do "watch dbus-send --session --print-reply --dest=com.ubuntuone.SyncDaemon --type=method_call /status com.ubuntuone.SyncDaemon.Status.current_status" and see whether state changes to IDLE or WORKING_ON_METADATA_WITH_CONTQ ? If it changes, could you please ping me?16:17
bigpigrye: which entry do I need to be watching?16:19
bigpigrye: "name" or "description?"16:20
ryebigpig, name - it gives you the state name16:20
ryebigpig, description is a human readable form. We don't read human-readable forms here :)16:20
bigpigrye: ;)16:20
bigpigrye: is there anything I need to do other than wait for this?16:35
ryebigpig, what's the current status?16:35
bigpigrye: "START_WORKING_ON_BOTH"16:35
ryebigpig, and it does not switch to anything for past 15 minutes?16:36
bigpigrye: I haven't seen it switch.16:36
ryebigpig, ok, could you please post the content of syncdaemon.log to paste.ubuntu.com ?16:37
bigpigrye: I wrote a script bot to watch it and give me a pop-up on status change.16:37
bigpigrye: sure.16:37
ryebigpig, hmmm... awesome idea!16:38
bigpigI'll pastebin that for you also.16:38
bigpigrye: syncdaemon.log: http://paste.ubuntu.com/377710/16:39
dobeybbiab, lunch16:40
bigpigrye: status-watcher scriptbot: http://paste.ubuntu.com/377712/16:40
ryebigpig, erm... is that all? I mean this is the log that is in ~/syncdaemon-debug.log ?16:40
ryebigpig, wow16:40
bigpigrye: cat .cache/ubuntuone/log/syncdaemon.log | xclip16:40
bigpigrye: did you want the -debug log?16:40
bigpigrye:  AH!16:41
bigpigrye: http://paste.ubuntu.com/377714/ (sorry.)16:42
ryefacundobatista, i believe I don't know what's happening: http://paste.ubuntu.com/377714/16:45
bigpigrye: I may have very well screwed something up. I'm good at that. My tomboy notes are syncing, but not my "Ubuntu One" folder.16:46
bigpigrye: is it normal for the "Ubuntu One" folder and the Tomboy notes to show up as two different "machines" on the one.ubuntu.com account?16:47
ryebigpig, tomboy notes sync and Ubuntu One file folder sync are separate processes, so that they don't break each other16:47
=== beuno is now known as beuno-lunch
ryebigpig, yes, there are plans to allow per-application access so that you can control precisely what application you want to grant the access to your ubuntuone folder16:48
rye*ubuntuone account16:48
bigpigrye: Okay. This is not documented (at least not immediately obvious), and removed the two accounts and re-created them when I first started using u1.16:49
facundobatistarye, a ver...16:49
ryebigpig, so, do you have authentication token for your syncdaemon right now?16:49
bigpigrye: How do I verify that? the website says I have two tokens.16:50
facundobatistarye, yes, it's the same problem I fixed16:50
facundobatistarye, if you want, I can tell you how to identify it16:50
bigpigrye: the u1 client appears to connect without problems.16:50
ryefacundobatista, i'd be very glad to know how to identify it :)16:51
ryefacundobatista, I am also trying hard in order not to give out the patch (which may break things even more) from the version you've committed16:53
facundobatistarye, see, the point is to see the last ActionQueue action before it got stuck16:55
facundobatistarye, that is line 239 in the pastebing16:55
facundobatista*pastebin16:55
ryefacundobatista, waiting until we know the real value of 541a8b41-4c7e-45e0-b4d8-9e10efb7285116:55
facundobatistarye, there we can see that the unrolled Unlink is waiting to know the real value of that16:56
facundobatistarye, so, we go back searching how that Unlink got in metaqueue16:56
facundobatistarye, line 70, in the pastebin16:56
facundobatistarye, and in line 69 we see who called AQ for the Unlink16:57
ryefacundobatista, aha, node_id="'None'"16:57
facundobatistarye, actually, its not easy to see that the 541a8b41-4c7e-45e0-b4d8-9e10efb72851 is not a real node_id, but a marker16:57
facundobatistarye, I know that it's a marker because AQ is waiting for it16:57
facundobatistarye, last week I also commited a patch to make markers explicit in the logs16:58
facundobatistarye, so that's it... if AQ get's stuck waiting for something never comes, and that something got from trash, 99% of chances that I fixed it last week16:58
ryefacundobatista, hm, but this is Unlink, right, i.e. file removal queue?16:58
facundobatistarye, it's an Unlink operation, from the Meta Queue16:59
ryefacundobatista, i'm just thinking, what if we unlink it for syncdaemon, just to make syncdaemon work?16:59
facundobatistarye, you can't "unlink it for syncdaemon", you need to clean up the trash17:01
ryefacundobatista, and trash is physically the file system17:01
ryefacundobatista, ... file system object, so it is either file... or file?17:02
facundobatistarye, nop, trash is not physically the file system17:02
facundobatistarye, trash is metadata in .local/share/ubuntuone/syncdaemon/trash/17:02
ryefacundobatista, aha, ./e/a/c/eac-uuid , right ?17:04
facundobatistarye, it depends17:04
facundobatistarye, you may have a lot of trash17:04
facundobatistarye, mmm...17:04
facundobatistarye, who's the user with this issue?17:06
ryebigpig, just for curiosity, could you please stat ~/.local/share/ubuntuone/syncdaemon/trash/5/4/1/541a8b41-4c7e-45e0-b4d8-9e10efb7285* ?17:06
ryefacundobatista, it is bigpig17:06
facundobatistarye, ok17:06
facundobatistarye, if he has that node, I'd remove it by hand, but with all stopped17:07
ryefacundobatista, that's what I was thinking about17:07
bigpigrye, facundobatista: there is no ..../5/4....17:08
facundobatistabigpig, go to  ~/.local/share/ubuntuone/syncdaemon/trash/17:09
bigpigrye, facundobatista: 5/ [1,8,9,b,d]17:09
ryebigpig, ok, could you then post the output of 'find -type f ~/.local/share/ubuntuone/syncdaemon/trash/' to the pastebin ?17:09
facundobatistabigpig, and do "find -type f"17:09
bigpigrye, facundobatista: no files under ..../517:10
bigpiglet me list all files to pastebin....17:10
facundobatistabigpig, ok17:11
bigpigrye, facundobatista: http://paste.ubuntu.com/377732/17:11
rye/home/bigpig/.local/share/ubuntuone/syncdaemon/trash/N/o/n/None O_O17:12
ryeah, i have the same17:12
facundobatistabigpig, yes, kill that /home/bigpig/.local/share/ubuntuone/syncdaemon/trash/N/o/n/None17:12
ryefacundobatista, so it means that the file is no longer in trash, right?17:12
facundobatistarye, that is it17:13
ryewow17:13
facundobatistarye, we shouldn't have searched for the other uuid17:13
facundobatistarye, because that uuid is the parent id17:13
facundobatistaand it has node_id in None17:13
bigpigrye, facundobatista: rm -rf ~/.local/share/ubuntuone/syncdaemon/trash/N ?17:13
bigpigor just that one file?17:14
ryebigpig, the directory structure will be recreated when needed17:14
facundobatistabigpig, what rye said17:14
ryebigpig, but I guess you might want to exit syncdaemon before that - u1sdtool -q17:14
bigpigheh... too late know.17:15
bigpigs/know/now/17:15
bigpigrye: my little scriptbot failed.17:16
bigpigfiles seem to be syncing now.17:17
ryebigpig, what state is syncdaemon now in?17:17
facundobatistabigpig, great!17:17
bigpig"IDLE"17:17
ryebigpig, ok, now try adding files to see what happens17:18
bigpigrye, facundobatista: symlinks don't get synced with u1?17:18
=== beuno-lunch is now known as beuno
ryebigpig, no, they are not, there will be support for user-designated folders in future versions17:18
bigpigrye: WORKING_ON_METADATA_WITH_CONTQ17:20
ryebigpig, actually, the support is already committed so it will be available in PPA versions (not sure about the SRU, though)17:20
bigpigrye: .... back to "IDLE"17:20
ryebigpig, congrats, now check the file online :)17:21
bigpigrye, facundobatista: Yay! a whole directory backed up.17:21
bigpigrye: facundobatista: thanks!17:21
bigpigrye, facundobatista: so it was that "None" file in trash that was stuck?17:22
ryefacundobatista, thanks for explanation and resolution, bigpig thanks for triggering this talk :)17:22
bigpigrye: I'm always happy to break something. ;)17:23
ryebigpig, and by reporting that you help the software. Ok, I will check this and add to my diagnose script so that it would be easier to pick this thing up...17:24
bigpigrye: I think the script would be helpful for many users, but I completely hosed the logic.17:24
duanedesignWOOT rye that was my issue too17:50
duanedesignthanks bigpig17:50
ryeduanedesign, hm... 2 in one day, this must be a real showstopper17:51
duanedesigni have been trying to debug it all morning, lol. But i learned some doing it so..17:51
ryeduanedesign, so you had N/o/n/None file ?17:52
duanedesignrye: yes sir17:58
ryeduanedesign, wow17:58
duanedesignrye: just replicatted to my VM \o/17:59
duanedesignrye: no need for a bug report since the problem is known and a patch has already been made. So i will set my bug to 'invalid'18:05
ryeduanedesign, I guess you might want to set it as a duplicate18:05
duanedesignrye: ahh18:06
duanedesigndo you know the master # right away18:06
ryeduanedesign, this is bug 51736118:06
ubottuLaunchpad bug 517361 in ubuntuone-client "syncdaemon hung in WORKING_ON_METADATA_WITH_CONTQ" [Medium,Fix committed] https://launchpad.net/bugs/51736118:06
ryeguys18:38
ryei did a slight change to Ubuntu wiki - [[LP:12345]] will link to https://launchpad.net/bugs/1234518:38
ubottuUbuntu bug 12345 in isdnutils "isdn does not work, fritz avm (pnp?)" [Medium,Fix released]18:39
ryeThe following errors were encountered:18:56
rye    * Server error, please contact an administrator. OOPS ID:OOPS-1508D197118:56
ryeOK18:56
ubottuhttps://lp-oops.canonical.com/oops.py/?oopsid=1508D197118:56
ryeWhile trying to make 'Affects me too' for bug #118:56
ubottuhttps://bugs.launchpad.net/ubuntu/+bug/1 (Timeout)18:56
ryeah18:56
ryeubottu, thanks18:56
ubottuYou're welcome! But keep in mind I'm just a bot ;-)18:56
ryefacundobatista, quick question - is it safe to assume that if there is a None file in trash when syncdaemon is not running then it is something that may cause problems and it is better to get rid of it?20:01
facundobatistarye, yes20:02
ryefacundobatista, woo hoo!20:02
ryefacundobatista, thanks!20:02
sanderqdthis couchdb stuff is cool - any chance that ubuntuone.com will support hosting user-installed CouchApps in the future?20:40
mhall119|worksanderqd: I think it syncs everything in couchdb20:43
mhall119|workwell, anything in desktop couch that is20:44
sanderqdmhall119|work: maybe i don't know enough about couchdb yet, but it seems that you can use the desktop couch to actually host webapps. so those should work when accessing it through http://localhost:<port>/, but would it also work through https://one.ubuntu.com/?20:45
mhall119|workI don't think so, one.ubuntu.com doesn't present a couchdb server for you to access20:47
=== sanderqd is now known as sanderqd|afk
mhall119|workit just syncs the content20:47
sanderqd|afkok, thanks20:47
sanderqd|afkwould be awesome if it did20:47
sanderqd|afkgot go go, bye20:47
statikmhall119|work, your couchdb server is on couchdb.one.ubuntu.com, thats what desktopcouch replicates to :)21:07
statikOAuth only at the moment though, we haven't turned on couchapps yet21:07
statiki definitely want to figure out how to support that though21:07
kjollerWhen add a list of strings to a desktopcouch.records.record.Record, the result is a complicated dict i CouchDB with an _order key among others. Why is that?21:26
kjoller(please insert an 'I' between first and second word and add a 'n' after the 'i' before the word CouchDB))21:27
kjollerand more importantly - is there a way to get around that?21:28
kjoller(feel free to answer in #desktopcouch, if that is an offical channel)21:29
=== gnomefreak76 is now known as gnomefreak
ryekjoller, it becomes a mergeable list22:10
kjollerrye: yes, thanks22:11
ryekjoller, http://www.themacaque.com/?p=47822:11
kjollerrye: nice reading!22:12
rye:)22:12
ryeok, i am off for today, happy syncing!22:12
=== jamalta is now known as jamalta-afk

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