Indeed, you can take a look in etc/karaf-wrapper.conf about the JAVA_HOME definition.
Regards JB On 14/10/2018 07:26, Michael Ghen wrote: > Ok, cool. That looks nice, our preference is to put everything into > kubernetes so that'll help. > > Java version: > > root@unomi:/opt/unomi# java -versionopenjdk version "1.8.0_181"OpenJDK > Runtime Environment (build > 1.8.0_181-8u181-b13-0ubuntu0.18.04.1-b13)OpenJDK 64-Bit Server VM (build > 25.181-b13, mixed mode) > > Looks like it can't find the JVM. I'm thinking I might not have > JAVA_HOME set right? From wrapper.log: > > STATUS | wrapper | 2018/10/14 04:57:19 | --> Wrapper Started as > DaemonSTATUS | wrapper | 2018/10/14 04:57:19 | Launching a JVM...ERROR | > wrapper | 2018/10/14 04:57:19 | Unable to start JVM: No such file or > directory (2)ERROR | wrapper | 2018/10/14 04:57:19 | JVM exited while > loading the application.STATUS | wrapper | 2018/10/14 04:57:23 | > Launching a JVM...ERROR | wrapper | 2018/10/14 04:57:23 | Unable to > start JVM: No such file or directory (2)ERROR | wrapper | 2018/10/14 > 04:57:23 | JVM exited while loading the application.....FATAL | wrapper > | 2018/10/14 04:57:35 | There were 5 failed launches in a row, each > lasting less than 300 seconds. Giving up.FATAL | wrapper | 2018/10/14 > 04:57:35 | There may be a configuration problem: please check the > logs.STATUS | wrapper | 2018/10/14 04:57:36 | <-- Wrapper Stopped > > > > On Sun, Oct 14, 2018 at 1:21 AM Jean-Baptiste Onofré <j...@nanthrax.net > <mailto:j...@nanthrax.net>> wrote: > > Can you check in the wrapper.log ? What Java version are you using ? > > By the way, you can find the blog about Karaf and Docker there: > http://blog.nanthrax.net/?p=839 > > Basically, you just have to do: > > docker/build.sh --from-local-dist --archive /path/to/unomi.tar.gz > --image-name unomi > > Then you will have a Docker image (don't forget to expose the 8181 port > number). > > Regards > JB > > On 14/10/2018 07:00, Michael Ghen wrote: > > Ok, so the wrapper:install looked promising, I followed the steps to > > install it for Ubuntu and then tried running it with the init.d. > Then it > > reports a running status, then it tells me its not running: > > > > root@unomi:/opt/unomi# /etc/init.d/karaf-service statuskaraf is > running > > (27138).root@unomi:/opt/unomi# /etc/init.d/karaf-service > statuskaraf is > > running (27138).root@unomi:/opt/unomi# /etc/init.d/karaf-service > > statuskaraf is not running. > > > > Could you share that docker blog post? I think I'd rather go that > route. > > > > On Sun, Oct 14, 2018 at 12:46 AM Michael Ghen <m...@mikeghen.com > <mailto:m...@mikeghen.com> > > <mailto:m...@mikeghen.com <mailto:m...@mikeghen.com>>> wrote: > > > > Ok, good to know. Thanks! Next week I will probably have some > > question about how to get this all running on Kubernetes but I'm > > still working on figuring out some of the basic features of Unomi > > like conditions for searching, rules, and actions. > > > > On Sun, Oct 14, 2018 at 12:44 AM Jean-Baptiste Onofré > > <j...@nanthrax.net <mailto:j...@nanthrax.net> > <mailto:j...@nanthrax.net <mailto:j...@nanthrax.net>>> wrote: > > > > Hi Michael, > > > > You can use Karaf on docker as well (I blogged recently > about that). > > > > Please let me know if you have any question about Karaf. > > > > Regards > > JB > > > > On 14/10/2018 06:38, Michael Ghen wrote: > > > Thanks I will give this a try. > > > > > > Karaf is new to me, I use mostly docker and kubernetes or > > install right > > > on a VM. > > > > > > I guess I should be looking more into how to administer > Karaf > > than Unomi > > > specifically. > > > > > > On Sun, Oct 14, 2018 at 12:35 AM Jean-Baptiste Onofré > > <j...@nanthrax.net <mailto:j...@nanthrax.net> > <mailto:j...@nanthrax.net <mailto:j...@nanthrax.net>> > > > <mailto:j...@nanthrax.net <mailto:j...@nanthrax.net> > <mailto:j...@nanthrax.net <mailto:j...@nanthrax.net>>>> wrote: > > > > > > Hi, > > > > > > You can use the Karaf service wrapper: > > > > > > feature:install wrapper > > > wrapper:install > > > > > > It will detect your OS and register Karaf Unomi as > service. > > > > > > You can take a look on: > > > http://karaf.apache.org/manual/latest/#_service_wrapper > > > > > > Regards > > > JB > > > > > > On 13/10/2018 21:24, Michael Ghen wrote: > > > > Does anyone have any instructions for running > Unomi as a > > service > > > on a VM? > > > > > > > > I tried running it as a service using systemd but was > > getting an > > > error: > > > > > > > > Oct 13 19:09:52 unomi karaf[11710]: Error in > > initialization script: > > > > /opt/unomi/etc/shell.init.script: String indexOct 13 > > 19:09:52 unomi > > > > karaf[11710]: karaf@root()> Error executing command: > > > > java.lang.NullPointerException > > > > > > > > I'm just trying to get it running in my development > > environment, right > > > > now I can only keep it running by opening a > terminal and > > running > > > > ./bin/karaf from there. > > > > > > > > Here's the systemd config file I made that doesn't > seem > > to be working: > > > > > > > > [Unit] > > > > Description=Unomi Server > > > > After=network.target > > > > > > > > [Service] > > > > WorkingDirectory=/opt/unomi > > > > User=root > > > > Group=root > > > > Type=simple > > > > ExecStart=/opt/unomi/bin/karaf > > > > Restart=on-failure > > > > RestartSec=5s > > > > PrivateTmp=true > > > > > > > > [Install] > > > > WantedBy=multi-user.target > > > > > > > > > > -- > > > Jean-Baptiste Onofré > > > jbono...@apache.org <mailto:jbono...@apache.org> > <mailto:jbono...@apache.org <mailto:jbono...@apache.org>> > > <mailto:jbono...@apache.org <mailto:jbono...@apache.org> > <mailto:jbono...@apache.org <mailto:jbono...@apache.org>>> > > > http://blog.nanthrax.net > > > Talend - http://www.talend.com > > > > > > > -- > > Jean-Baptiste Onofré > > jbono...@apache.org <mailto:jbono...@apache.org> > <mailto:jbono...@apache.org <mailto:jbono...@apache.org>> > > http://blog.nanthrax.net > > Talend - http://www.talend.com > > > > -- > Jean-Baptiste Onofré > jbono...@apache.org <mailto:jbono...@apache.org> > http://blog.nanthrax.net > Talend - http://www.talend.com > -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com