IRC Chat : 2013-01-05 - OpenMRS

00:07:52 *** wyclif has joined #openmrs
00:10:47 *** nwilkie has quit IRC
00:11:50 *** nwilkie has joined #openmrs
00:25:37 *** andreapat has joined #openmrs
00:27:40 *** nwilkie has quit IRC
00:30:55 *** andreapat has quit IRC
00:36:31 *** nwilkie has joined #openmrs
00:44:41 *** travis-ci has joined #openmrs
00:44:41 <travis-ci> [travis-ci] [openmrs/openmrs-core] [42d4eb2] [djazayeri] The build was fixed. - http://travis-ci.org/openmrs/openmrs-core/builds/3962226
00:44:41 *** travis-ci has left #openmrs
00:44:44 <OpenMRSBot> <http://ln-s.net/+PHu> (at travis-ci.org)
00:45:41 <djazayeri> I didn't know the build was broken...
00:47:08 *** lh has quit IRC
00:54:47 *** mseaton has joined #openmrs
00:54:47 *** ChanServ sets mode: +v mseaton
02:55:20 *** nwilkie has quit IRC
03:20:29 *** nwilkie has joined #openmrs
03:23:13 *** djazayeri has quit IRC
04:46:49 *** mseaton has quit IRC
04:56:04 *** nwilkie has quit IRC
05:08:15 *** nwilkie has joined #openmrs
05:13:18 *** nwilkie has quit IRC
05:30:22 *** nwilkie has joined #openmrs
06:35:11 *** robbyoconnor has quit IRC
06:39:38 *** robbyoconnor has joined #openmrs
06:39:38 *** ChanServ sets mode: +v robbyoconnor
07:29:33 *** robbyoconnor is now known as robbyoconnorhey
07:29:37 *** robbyoconnorhey is now known as robbyoconnor
07:31:47 *** djazayeri has joined #openmrs
07:31:47 *** ChanServ sets mode: +o djazayeri
08:03:35 *** tobin_g has quit IRC
08:04:53 *** robbyoconnor has quit IRC
08:35:19 *** djazayeri has quit IRC
08:39:30 *** robbyoconnor has joined #openmrs
08:39:30 *** ChanServ sets mode: +v robbyoconnor
10:29:25 *** Meths_ has joined #openmrs
10:31:14 *** Meths has quit IRC
11:01:36 *** garvit_sop has joined #openmrs
11:15:36 *** nwilkie has quit IRC
11:28:24 *** nwilkie has joined #openmrs
11:29:15 *** nwilkie has quit IRC
11:33:22 *** garvit_sop has quit IRC
12:21:40 *** robbyoconnor has quit IRC
12:31:51 *** mseaton has joined #openmrs
12:31:51 *** ChanServ sets mode: +v mseaton
12:38:23 *** robbyoconnor has joined #openmrs
12:38:23 *** ChanServ sets mode: +v robbyoconnor
12:49:18 *** robbyoconnor has quit IRC
12:58:50 *** mseaton has quit IRC
13:30:54 *** garvitlnmiit has joined #openmrs
13:31:56 <garvitlnmiit> hello all
13:36:51 *** Meths_ is now known as Meths
13:48:47 *** garvitlnmiit has quit IRC
14:09:27 *** supun has joined #openmrs
14:15:24 *** kavuri has joined #openmrs
14:19:32 *** robbyoconnor has joined #openmrs
14:19:32 *** ChanServ sets mode: +v robbyoconnor
14:55:15 *** kavuri has quit IRC
15:10:53 *** robbyoconnor has quit IRC
15:16:56 *** robbyoconnor has joined #openmrs
15:16:56 *** ChanServ sets mode: +v robbyoconnor
15:35:51 *** robbyoconnor has quit IRC
15:55:11 *** basic` has quit IRC
15:57:23 *** basic has joined #openmrs
16:27:30 <supun> Hi devs
16:27:36 <supun> I am new to OpenMRS
16:28:05 <supun> I want to know where I can checkout the Module Maven Archetype project
16:28:30 <supun> I am trying to solve some introductory tickets
16:43:52 *** supun has quit IRC
16:45:38 *** supun has joined #openmrs
16:51:13 *** supun has quit IRC
16:54:53 *** tobin_g has joined #openmrs
17:00:58 *** tobin_g_ has joined #openmrs
17:04:51 *** tobin_g has quit IRC
17:04:52 *** tobin_g_ is now known as tobin_g
17:18:48 *** dkayiwa has joined #openmrs
17:23:17 *** supun has joined #openmrs
17:47:04 *** k-joseph has joined #openmrs
17:47:36 <k-joseph> dkayiwa: hi, welcome back
17:57:38 *** kavuri has joined #openmrs
18:02:20 <k-joseph> dkayiwa: hi
18:02:43 <dkayiwa> k-joseph: thanks
18:08:46 *** tobin_g has quit IRC
18:09:05 <k-joseph> dkayiwa: i have deleted the branch previous branch for TRUNK-3825 after doing a hard reset, then checkout master and created a fresh branch with the same name, and re-commited and made a pull request, but am still having this pull request open up in the previous pull requests for the previous branch, is there any thing i have done wrong? last pull request https://github.com/openmrs/openmrs-core/pull/183
18:09:09 <OpenMRSBot> <http://ln-s.net/+PTv> (at github.com)
18:09:59 <dkayiwa> k-joseph: change the branch name
18:10:13 <k-joseph> dkayiwa: ok
18:23:32 *** yony258 has joined #openmrs
18:24:00 <kavuri> dkayiwa: quick question. When I try to start a module that uses event module, I get an exception that the instance already exists. Is there some configuration that needs to be done for my module?
18:24:49 <dkayiwa> kavuri: remove it and reinstall
18:25:02 <kavuri> dkayiwa: remove event module?
18:25:09 <dkayiwa> kavuri: yes
18:25:14 <kavuri> dkayiwa: ok
18:31:48 *** nwilkie has joined #openmrs
18:34:59 <k-joseph> dkayiwa: am really not sure what am not doing right, i have done all those steps and am having that same problem again!!!
18:35:57 <dkayiwa> k-joseph: what branch name have you created?
18:36:18 <k-joseph> TRUNK-3825-0
18:36:37 <dkayiwa> k-joseph: did you first do a git checkout master
18:36:48 <k-joseph> dkayiwa: yes i did
18:37:04 <dkayiwa> k-joseph: immediately before creating the branch?
18:37:12 <k-joseph> dkayiwa: yes
18:37:27 <dkayiwa> k-joseph: how many hard resets did you do?
18:37:37 <k-joseph> dkayiwa: 1
18:37:53 <dkayiwa> k-joseph: can you do as many as you did the other time?
18:38:21 <k-joseph> dkayiwa: in master branch?
18:38:37 <dkayiwa> k-joseph: simply like you did the other time
18:38:47 <k-joseph> dkayiwa: ok
18:52:32 *** Adian has joined #openmrs
18:53:15 *** kavuri has quit IRC
19:55:41 <k-joseph> dkayiwa: what does it mean to have a pull request fail travis test
20:10:25 *** tobin_g has joined #openmrs
20:10:34 *** sujatro has joined #openmrs
20:20:01 *** tobin_g has quit IRC
20:38:30 *** supun_ has joined #openmrs
20:38:41 *** nwilkie has quit IRC
20:40:34 *** supun has quit IRC
20:40:41 *** supun_ is now known as supun
20:42:34 *** sujatro has left #openmrs
20:50:50 <k-joseph> dkayiwa:
20:53:00 *** dkayiwa has quit IRC
21:07:57 *** supun has quit IRC
21:41:46 *** yony258_ has joined #openmrs
21:47:00 *** mseaton has joined #openmrs
21:47:00 *** ChanServ sets mode: +v mseaton
22:03:51 *** k-joseph has quit IRC
22:21:44 <Adian> Greetings
22:21:53 <Adian> This is Tim, the guy doing the OWASP FLOSSHack event
22:22:34 <Adian> I'm trying to set up a small VM to distribute to participants. I'm using the WAR file, since the standalone installer has this bizarre requirement of X on Linux
22:23:00 <Adian> I've built a debian VM, added openjdk, tomcat7, and mysql 5.5
22:23:08 <Adian> then I loaded the demo data, accoring to the instructions for that
22:23:18 <Adian> finally, I dropped openmrs.war in /var/lib/tomcat7/webapps
22:23:29 <Adian> the app starts up fine. but after clicking the first page, I get:
22:23:42 <Adian> Error!
22:23:42 <Adian> A runtime properties file is needed for OpenMRS to start up consistently.
22:23:42 <Adian> OpenMRS is unable to create this file : /usr/share/tomcat7/.OpenMRS/openmrs-runtime.properties
22:23:44 <Adian> Because of this error : No such file or directory
22:23:46 <Adian>
22:23:48 <Adian> You must correct this before continuing.
22:24:25 <Adian> There's no reason why the system tomcat user should have access to write to that directory. I suspect you guys really want to write to /var/lib/tomcat7/webapps/openmrs/...
22:25:04 <Adian> so perhaps openmrs is relying on some environment path setting that works on windows (because who cares about permissions there?) but is not generally applicable to tomcat
22:25:54 <Adian> is there a setting I could change in tomcat config to convince openmrs to write that properties file in a sane location?
22:32:33 *** djazayeri has joined #openmrs
22:32:33 *** ChanServ sets mode: +o djazayeri
22:34:28 <Adian> Hi Darius. it's Tim, the OWASP FLOSSHack guy
22:34:38 <djazayeri> Adian: Hi Tim
22:34:39 <Adian> you have a minute to help me with something?
22:34:46 <djazayeri> sure, what's up?
22:34:57 <Adian> let me just paste the details again...
22:35:08 <Adian> I'm trying to set up a small VM to distribute to participants. I'm using the WAR file, since the standalone installer has this bizarre requirement of X on Linux
22:35:15 <Adian> I've built a debian VM, added openjdk, tomcat7, and mysql 5.5
22:35:20 <Adian> then I loaded the demo data, accoring to the instructions for that
22:35:23 <Adian> finally, I dropped openmrs.war in /var/lib/tomcat7/webapps
22:35:28 <Adian> the app starts up fine. but after clicking the first page, I get:
22:35:42 <Adian> Error!
22:35:42 <Adian> A runtime properties file is needed for OpenMRS to start up consistently.
22:35:42 <Adian> OpenMRS is unable to create this file : /usr/share/tomcat7/.OpenMRS/openmrs-runtime.properties
22:35:44 <Adian> Because of this error : No such file or directory
22:35:47 <Adian> You must correct this before continuing.
22:35:49 <Adian>
22:35:53 <Adian> There's no reason why the system tomcat user should have access to write to that directory. I suspect you guys really want to write to /var/lib/tomcat7/webapps/openmrs/...
22:35:58 <Adian> so perhaps openmrs is relying on some environment path setting that works on windows (because who cares about permissions there?) but is not generally applicable to tomcat
22:36:05 <Adian> is there a setting I could change in tomcat config to convince openmrs to write that properties file in a sane location?
22:36:10 <Adian> .
22:37:01 <djazayeri> Adian: https://wiki.openmrs.org/display/docs/Overriding+OpenMRS+Default+Runtime+Properties
22:37:02 <OpenMRSBot> <http://ln-s.net/8c91> (at wiki.openmrs.org)
22:37:20 <djazayeri> Adian: basically you can set an environment variable OPENMRS_RUNTIME_PROPERTIES_FILE
22:38:18 <djazayeri> Adian: and this overrides that location.
22:39:01 <Adian> ok, thanks.
22:39:08 <Adian> let me see if I can figure out the best place to set that
22:39:49 <Adian> I'm not a Java expert, but it seems like Java standards would have Tomcat/et.al. advertise a system property to the .../webapps directory
22:39:58 <Adian> which would probably be a better place for such things
22:40:04 <Adian> by default I mean
22:40:38 <djazayeri> Adian: that may be true, I've never looked into this. Someone chose ~/.OpenMRS years and years ago. :-)
22:43:28 <Adian> yeah. Windows creates bad habits =P
22:43:42 <Adian> I can just see a lot of users going on to their linux boxes and just doing:
22:43:53 <Adian> chown -R tomcat /usr/share/tomcat7
22:43:57 <Adian> which of course is quite unsafe
22:44:28 <djazayeri> Adian: if that comment comes back to us as part of the output of the hackathon, that'd be great. :-)
22:44:31 <Adian> one could argue that /usr/share/tomcat7 shouldn't be the tomcat7 user's home dir
22:44:42 <Adian> yeah, I'll make a note of it
22:44:53 <Adian> won't really consider it a vuln, but a bad practice
22:47:23 <Adian> ok, so I set: OPENMRS_RUNTIME_PROPERTIES_FILE=/var/lib/tomcat7/webapps/openmrs/openmrs-runtime.properties
22:47:45 <Adian> I did it in my /etc/default/tomcat7 file
22:47:56 <Adian> 'ps auxe' reports that the env variable is set
22:48:02 <Adian> (after I restarted tomcat)
22:48:08 <Adian> same error in openmrs
22:48:30 <Adian> so perhaps it wants to honor that new path, but the init scripts do not ?
23:02:07 <Adian> seems like adding demo data before runnign init fails catastrophically
23:02:14 <Adian> docs probably out of date
23:05:52 *** yony258_ has quit IRC
23:05:52 *** yony258 has quit IRC
23:06:50 <Adian> ok, finally have it set up I guess
23:21:22 <Adian> yeah....
23:21:35 <Adian> I like how that runtime properties file is created with world readable permissions
23:33:09 <Adian> hmm
23:33:18 <Adian> .../openmrs/admin/maintenance/settings.list
23:33:31 <Adian> page blows up with:
23:33:46 <Adian> org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [java.util.List]: Specified class is an interface
23:33:49 <Adian> ...
23:50:11 *** mseaton has quit IRC
23:55:50 <Adian> do you guys have a howto on setting up SSL? I'm guess it is pretty standard, but it would be good to see the docs if they are there
23:57:41 <Adian> I think i found it