IQSS logo

IRC log for #dataverse, 2015-12-08

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
00:34 axfelix joined #dataverse
01:03 iqlogbot joined #dataverse
01:03 Topic for #dataverse is now Dataverse: http://dataverse.org | logs at http://irclog.iq.harvard.edu/dataverse/today
01:05 garnett joined #dataverse
02:59 metamattj joined #dataverse
03:06 axfelix joined #dataverse
03:32 garnett joined #dataverse
05:01 garnett joined #dataverse
06:12 metamattj joined #dataverse
07:12 metamattj joined #dataverse
08:08 jri joined #dataverse
08:50 bencomp joined #dataverse
09:05 metamattj joined #dataverse
09:36 metamattj joined #dataverse
09:42 bencomp “Technical Debt Isn’t Technical.” Ample Code. Accessed December 7, 2015. https://einarwh.wordpress.com/2015/12/05/technical-debt-isnt-technical/.
09:43 bencomp to put what I said about technical debt earlier in a somewhat different perspective
10:01 metamattj joined #dataverse
12:43 donsizemore joined #dataverse
12:52 donsizemore pdurbin: morning! i've finally dug my way out of some other projects here, and would like to help with the travis builds. please let me know how i may help?
13:01 pdurbin bencomp: interesting! thanks! shared! http://or8.net/pipermail/codecraft/2015-December/000109.html
13:02 pdurbin donsizemore: I'd love some help with Travis builds! How hard do you think it would be to get https://github.com/IQSS/dataverse-ansible working on Ubuntu (which is what Travis uses)?
13:04 donsizemore pdurbin: not terrible. today i'm hoping to iron out the last of the installation using your phoenix install and glassfish-setup scripts, if you think that's a sound plan?
13:07 pdurbin donsizemore: sure. Do you see where I want to go with Travis? I want Travis to build a war file (any branch, which Travis is already set up to do), install Glassfish and the rest, deploy the war file (this is all within the Ubuntu Travis VM), and then run some integration (API) tests.
13:08 donsizemore pdurbin: yes, make sense. i can start on the ubuntu bit first if you think that'd be more helpful
13:08 pdurbin OpenScholar has shown this is possible. I'm just trying to mimic what they do: https://github.com/openscholar/openscholar/blob/SCHOLAR-3.x/.travis.yml
13:10 pdurbin donsizemore: up to you really. I'm thinking the Minimal Viable Product would be demonstrating that your Ansible code can get Dataverse installed within a Vagrant VM. Does that make sense?
13:10 donsizemore pdurbin: minimal is getting it installed, then within vagrant =)
13:11 pdurbin ok, maybe I'm jumping ahead :)
13:39 pdurbin donsizemore: Vagrant? Are you planning on adding a Vagrantfile to the dataverse-ansible repo?
13:41 donsizemore pdurbin: i would welcome one, or i can work on one
13:44 pdurbin it's probably worth having. I like Vagrant
13:44 pdurbin I wonder if I can get Travis to run Vagrant
13:46 pdurbin donsizemore: I'm sort of focused on writing more API tests with rest-assured. Did you see my post yesterday?
13:53 pdurbin this one: https://groups.google.com/d/msg/dataverse-community/X8OrRWbPimA/LT0OU_s5DQAJ
14:14 donsizemore joined #dataverse
14:16 donsizemore pdurbin: i did =)
14:17 pdurbin donsizemore: those rest-assured tests are written in Java. I'd also like to work with the developers of the R and Python client libraries to run their tests regularly against http://phoenix.dataverse.org
14:21 pdurbin donsizemore: I'm not dead set on you working on Ubuntu. I'm just throwing out ideas. You tell me what you think the next steps should be and how I can help.
14:23 donsizemore pdurbin: i'm just sticking in debian/redhat family checks, then i want to pull in your phoenix install and glassfish-setup scripts for a working playbook
14:24 pdurbin donsizemore: that makes sense. But how will you test that it's working? Should we use Vagrant for that? Or something else?
14:24 donsizemore i've got a non-production VM i'd like to see it working on =)
14:25 donsizemore for me, it'll be an additional component of https://github.com/DICE-UNC/de-ansible/tree/vmlab
14:25 pdurbin wow. Docker: https://github.com/DICE-UNC/de-ansible/blob/vmlab/doc/setup/Docker.md
14:26 pdurbin donsizemore: so you do your testing with Docker?
14:28 donsizemore some of the VMs outgrew docker... some of those services will run in docker in production
14:30 pdurbin interesting
14:30 pdurbin donsizemore: would you ever run Dataverse in Docker?
14:32 donsizemore the benefit (that i see) of dockerizing some of those services would be to simplify upgrades. dataverse is less temporal. it would be great for testing
14:33 pdurbin yeah
14:38 pdurbin donsizemore: but you can imagine running Dataverse in Docker for testing?
14:39 donsizemore oh, certainly. you can mount a data container for anything semi-permanent
14:40 pdurbin donsizemore: if you get Dataverse running in Docker please let me know!
14:43 pdurbin even as a test :)
16:22 axfelix joined #dataverse
16:56 metamattj joined #dataverse
17:17 axfelix joined #dataverse
18:03 pdurbin grr. I seem to be suffering from this issue: byte[] content is not repeatable? · Issue #507 · jayway/rest-assured - https://github.com/jayway/rest-assured/issues/507
18:27 donsizemore joined #dataverse
19:03 donsizemore joined #dataverse
20:09 donsizemore pdurbin: so, setup-all.sh hangs in the same place using your phoenix scripts as it did when i was trying the install.zip install script
20:11 donsizemore er, glassfish-setup.sh. "java -jar ./../glassfish/lib/client/appserver-cli.jar restart-domain domain1" waits forever. if i restart glassfish manually the script continues. nothing in server.log that stick out at me
20:14 pdurbin huh
20:14 pdurbin I never have a problem with glassfish-setup.sh
20:15 pdurbin appserver-cli.jar is somewhere in glassfish-4.1.zip apparently (according to grep)
20:24 donsizemore pdurbin: it's a standard way to restart glassfish. so you haven't seen any such problem. stracing it sees it in wait
20:26 pdurbin I'm not it the habit of running `asadmin restart-domain` in dev. I usually run a stop and then a start
20:26 pdurbin donsizemore: anything interesting in server.log when you do that restart?
20:27 pdurbin donsizemore: this is the kind of thing I'd like to have run automatically with Travis... the glassfish-setup.sh script
20:28 pdurbin but Travis is Ubuntu only I think
20:29 donsizemore pdurbin: whoops I just nuked everything to do another test run. nothing jumped out at me in the logs but i'll save it for you this time around
20:32 pdurbin donsizemore: sure. please pastebin it or whatever
20:34 donsizemore pdurbin: you're actually calling asadmin directly: ./asadmin $ASADMIN_OPTS restart-domain $GLASSFISH_DOMAIN
20:35 pdurbin who is? :)
20:35 donsizemore we is?
20:36 pdurbin :)
20:37 pdurbin donsizemore: rightt. I've never heard of appserver-cli.jar
20:37 pdurbin sounds like something deep in the bowels of glassfish
20:38 donsizemore the script output looks normal until things hang: http://pastebin.com/Tn8LbQDb
20:39 donsizemore if i manually restart glassfish while it's hung like this, things pick up and carry on
20:39 pdurbin weird
20:39 pdurbin donsizemore: have you compared it to what happens with `vagrant up`?
20:40 donsizemore i think it's a glassfish-inside-of-ansible thing, but haven't pinned down what or why
20:41 donsizemore yes, i tried running the install script with varying options per https://github.com/IQSS/dataverse/blob/4.3/scripts/vagrant/install-dataverse.sh
20:43 donsizemore here's the current playbook, in case anyone's curious: https://github.com/IQSS/dataverse-ansible/blob/master/tasks/dataverse-install.yaml
20:43 pdurbin oh. yeah. I added --force and stuff :)
20:46 pdurbin yeah. maybe an ansible thing. dunno. I haven't heard of similar trouble from https://github.com/IQSS/dataverse-puppet
20:57 pdurbin donsizemore: can you reproduce the problem with just ansible and glassfish? taking Dataverse out of the picture I mean
21:03 donsizemore will try that next. just noticed that if i wait a REALLY long time the ansible job doesn't through an error like it did when i was calling a modified version of the perl script
21:04 pdurbin not throwing an error is good
21:05 donsizemore since the ansible tasks wasn't returning an error and that was the last command in the script, i put in a second glassfish restart-domain directly from ansible
21:05 donsizemore will try that earlier in the playbook as you suggest next
21:06 donsizemore akio asked whether autodeploy was enabled, so i want to look into that as well
21:07 pdurbin I think it's enabled by default. Someone in #glassfish might know.
21:26 donsizemore joined #dataverse
21:28 donsizemore pdurbin: found it! it's systemd
21:28 donsizemore Dec  8 16:26:05 de-dataverse systemd: glassfish.service: main process exited, code=exited, status=10/n/a Dec  8 16:26:06 de-dataverse java: CLI306: Warning - The server located at /usr/local/glassfish4/glassfish/domains/domain1 is not running. Dec  8 16:26:06 de-dataverse java: Command stop-domain executed successfully. Dec  8 16:26:06 de-dataverse systemd: Unit glassfish.service entered failed state.
21:29 pdurbin huh
21:30 pdurbin donsizemore: the Dataverse Vagrantfile uses CentOS 6. Are you using CentOS 7?
21:30 donsizemore yes
21:30 pdurbin donsizemore: ok... if you feel like it... change the Vagrantfile to CentOS 7 and see what breaks. :)
23:53 metamattj joined #dataverse

| 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.