IQSS logo

IRC log for #dataverse, 2019-01-10

Connect via chat.dataverse.org to discuss Dataverse (dataverse.org, an open source web application for sharing, citing, analyzing, and preserving research data) with users and developers.

| Channels | #dataverse index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
08:16 jri joined #dataverse
08:25 juancorr joined #dataverse
09:42 juancorr joined #dataverse
11:58 pmauduit thanks for the info about the password, I don't have the time to test it now but yeah it should help :)
12:19 pdurbin pmauduit: sure. If the password isn't "admin" please try "admin1".
13:09 pdurbin isullivan: good morning. Are you around? I just re-tested the OSF/Dataverse integration.
13:22 donsizemore joined #dataverse
15:04 pdurbin donsizemore: morning. looks like your commits to dataverse-ansible are in master. I'm running `ec2-create-instance.sh -b 4821-make-data-count` (takes a while).
15:05 donsizemore @pdurbin they are in master but disabled by default
15:19 pameyer joined #dataverse
15:20 isullivan joined #dataverse
16:02 pdurbin donsizemore: shoot. I can't log in. Hmm. Is the password "admin"? "admin1"?
16:05 pameyer pdurbin: neither of those work?
16:05 pdurbin pameyer: it's asking me to to math now. I can't remember if it's possible to lock oneself out or not.
16:06 pameyer huh.  I vaguely remember some work to limit password guessing a few summers back
16:07 donsizemore @pdurbin adminpass: notPr0d
16:07 donsizemore @pdurbin i should probably set that back to "admin" to match Dataverse proper
16:07 pameyer I'd guess that one wouldn't trigger a password reset ;)
16:14 pdurbin donsizemore: I'm in! With "notPr0d". Thanks!
16:14 donsizemore you'd better changed it now that i shared it in the chat masheen
16:14 pdurbin donsizemore: solid plan
16:15 pdurbin donsizemore: ok, but there's no counter-processor. Can I re-run ansible somehow? With it on?
16:15 pameyer if there are tags, you should be able to just rerun those
16:15 donsizemore yes. pass it dataverse.counter.enabled=True
16:15 donsizemore it has a "counter" tag
16:16 pameyer :)
16:16 donsizemore oh, poop. to pass it at the CLI that one will need to be dataverse_counter_enabled
16:38 pdurbin pameyer: so I should modify this line? ansible-playbook -v -i dataverse/inventory dataverse/dataverse.pb --connection=local --extra-vars "$extra_vars"
16:38 pdurbin and add dataverse_counter_enabled?
16:39 donsizemore joined #dataverse
16:40 donsizemore @pdurbin lemme make one change first.
16:40 pdurbin donsizemore: ok. If you can give me the complete command to paste in it would be helpful :)
16:41 donsizemore @pdurbin do a git pull
16:41 donsizemore you can now pass dataverse_counter_enable = true as an extra var
16:42 donsizemore ^enabled even
16:42 pdurbin ok, now I'm on https://github.com/IQSS/dataverse/releases/tag/v4.10.1
16:43 pdurbin whoops! that was for Sherry
16:44 pdurbin I'm on 50ed040 switch syntax on counter_enable to allow passing at CLI
16:45 pameyer @pdurbin if you're re-running, `--tags=counter` is the syntax for just one tag
16:45 pameyer otherwise it may try to do a full rebuild/reinstall
16:50 donsizemore joined #dataverse
16:51 pdurbin It's doing something but I'm worried I'm doing something wrong. I guess I'll put the output in the issue.
16:51 pdurbin This is what I ran: ansible-playbook -v -i dataverse/inventory dataverse/dataverse.pb --connection=local --extra-vars dataverse_counter_enable=true
16:52 donsizemore @pdurbin that looks right except for enable/enabled (my typo in chat, sorry).
16:52 pdurbin oh
16:52 pdurbin lemme try it again then
16:55 pdurbin I don't see it as a TASK when I scroll up. Is there a log I can grep?
16:55 donsizemore @pdurbin ansible spits everything to stdout, but i can make it log if you'd like
16:55 donsizemore it should be the last set of tasks anyway
16:56 pdurbin It isn't there. 99% confident.
16:59 donsizemore ansible booleans my not be totally case insensitive =(
17:00 pdurbin ok, trying "True" :)
17:01 pdurbin didn't help
17:02 donsizemore if you're just running the playbook you can set it to true in tests/group_vars/vagrant.html
17:02 pdurbin vagrant? I'm on ec2.
17:03 donsizemore if you're doing the ec2 script thing you'll need to pass it like the branch, and it _should_ work like the branch
17:03 donsizemore it definitely installs when I set it in the vagrant.yaml defaults file
17:06 pdurbin donsizemore: should I just email you the private key? :)
17:12 donsizemore i just need to flatten that variable if you want to pass it at the CLI as well
17:13 pdurbin donsizemore: I ended up spinning up a new ec2 instance. Edited  ~/.dataverse/ec2.env first to add 'dataverse_counter_enabled="True"'. Worked. Well, I see "TASK [dataverse : launch counter]" and friends at least. :)
17:13 donsizemore i think i have your private key. send me the branch etc?
17:13 pdurbin a new private key is generated each time we spin up an instance
17:17 pdurbin Oh, wait. Maybe it didn't work. I'm seeing stuff about skipping: TASK [dataverse : ensure counter user exists] ********************************** skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}
17:18 pdurbin `id glassfish` works but `id counter` doesn't
17:18 donsizemore it skipped the task
17:19 pdurbin :(
17:19 donsizemore by private key above i meant your .pem (so i should be able to play along at home)
17:19 pdurbin right, I'm saying it's a different pem every time
17:20 pdurbin maybe I should try the vagrant.yaml trick
17:21 donsizemore oh, i was conflating the pem with aws access keys. i'm in a job interview ATM
17:22 pdurbin I hope you get the job. ;)
17:23 donsizemore odum is hiring (x2) =)
17:23 pdurbin nice
17:24 donsizemore if you want i can bang on launching the counter through EC2 (after i address my growing case of Low Blood Pressure Theater)
17:26 donsizemore it's probably just a matter of syntax
17:26 pdurbin donsizemore: if you could spin up your own ec2 instance it would be awesome. I'm using "ec2-create-instance.sh -b 4821-make-data-count" and I'm not sure what to put in ~/.dataverse/ec2.env
17:28 donsizemore @pdurbin you're talking about stuff from last year, so i'll need to refresh my feeble memory =) but i still have your AWS key and will definitely test it out
17:28 pdurbin donsizemore: cool. thanks!
17:29 pdurbin changing dataverse/defaults/main.yml didn't help. Are you sure I'm supposed to edit vagrant.yml? Feels weird for an ec2 host.
17:29 donsizemore correct
17:31 pdurbin ok
17:31 pdurbin pameyer: I should have tried this yesterday when you were here :)
17:36 donsizemore i would welcome you to thaw out in chapel hill but we're supposed to get a "wintry mix" this weekend
17:36 pdurbin donsizemore: it would be fun to come visit sometime. Lemme know if Odum will fund it. :)
19:00 donsizemore joined #dataverse
19:11 pdurbin donsizemore: did you get something to eat? Should I keep bothering you? :)
19:14 pdurbin pameyer: I forget if you were at the all hands where this was announced: https://projects.iq.harvard.edu/peer-prereview
19:14 pameyer pdurbin: from the url, I was at that one
19:21 pdurbin I thought so.
19:24 donsizemore @pdurbin i'm back and ec2-creating -b 4821-make-data-count
19:25 pameyer @pdurbin any reason why you were wondering?
19:26 pdurbin pameyer: not really. I just think it's novel.
19:27 pdurbin donsizemore: hooray! Did you put anything counter related in your ~/.dataverse/ec2.env?
19:27 * pdurbin still think it's cool that Dataverse has dotfiles these days :)
19:32 donsizemore @pdurbin i see why it isn't happening... need to think about the best way to wend
19:32 pdurbin donsizemore: phew. Thanks!!
19:33 donsizemore the ec2-create script expects the branch and repo as arguments, but they wouldn't be parsed from the ENV file. need one more loop for that
19:35 pdurbin Huh. If you say so. It's still kind of a black box to me. Thanks for fixing.
19:36 donsizemore we made work what we needed work back in... october or whenever. but it'll need some rewriting to make it flexible per the conf file
19:39 donsizemore given the relatively low number of arguments we'd be passing this way, i'm considering just kicking the can
19:46 pdurbin donsizemore: ok. As you see fit. Does it work in Vagrant? Installing counter procesor? Should I try it?
20:04 pdurbin pameyer: I'm now getting files like /usr/local/glassfish4/glassfish/domai​ns/domain1/logs/edit-drafts/edit-draf​t-66-I5IL0Z-2019-01-10T14-58-24.txt on phoenix. :) Now that https://github.com/IQSS/dataverse/pull/5388 has been merged.
20:22 pameyer pdurbin: welcome to the exciting world of edit logs
20:23 pdurbin :)
20:32 pdurbin what are the chances that VirtualBox 6.0 will "just work"?
20:33 pameyer > 0%
20:33 pameyer right.  probably need to redo your vagrant setup after the os reinstall
20:33 pdurbin trying VirtualBox 5.2.22 instead
20:33 pdurbin yeah, Mohave
20:34 * pdurbin shakes fist
20:34 pdurbin hmm, still seeing "No usable default provider could be found for your system." I guess I'll upgrade Vagrant too.
20:43 pdurbin wow, it sounds scary but this may have helped: vagrant plugin expunge --reinstall
20:46 donsizemore @pdurbin yes the vagrant bit works. i know what i think i'm going to do with ec2-create. just had to wander off to break down cardboard boxes first =)
20:52 pdurbin Cool. Thanks. Meanwhile, "VirtualBox would like to access the microphone." Weird.
20:52 donsizemore @pdurbin put on some smooth jazz.
20:52 pdurbin the savage beast
20:57 pdurbin pameyer: oh, my thought is that I might rm -rf that edit-drafts directory in the phoenix rebuild script. Similiar to how I rm -rf the directory of files uploaded to Dataverse. Burn it down.
20:57 pdurbin donsizemore: TASK [Gathering Facts] ! Sounds promising
20:58 donsizemore @pdurbin testing some changes to dataverse-ansible, then a small change to ec2-create should get things in business
21:03 pdurbin donsizemore: cool. And I'm seeing counter processor stuff happening in Vagrant. I did tweak vagrant.yml to be true.
21:07 donsizemore @pdurbin testing ec2-create with counter_enabled=True now
21:07 donsizemore @pdurbin yeah, when Trevor refactored the role the defaults file got duplicated
21:31 donsizemore @pdurbin supposedly ansible extra-vars always win precedence. except this one.
21:35 pdurbin donsizemore: can't win. Don't try. And now I have to go. But! Counter Processor does seem to be installed. In /tmp?
23:08 pdurbin ah, all the /tmp stuff is from tasks/dataverse-counter.yml it looks like

| Channels | #dataverse index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

Connect via chat.dataverse.org to discuss Dataverse (dataverse.org, an open source web application for sharing, citing, analyzing, and preserving research data) with users and developers.