Uploaded image for project: 'Pentaho Reporting and Pentaho Report Designer'
  1. Pentaho Reporting and Pentaho Report Designer
  2. PRD-5964

Karaf is not started with PRD on MacOS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Severity: High
    • Resolution: Cannot Reproduce
    • Affects Version/s: 7.1.0 GA, 8.0.0 GA
    • Fix Version/s: Backlog
    • Component/s: None
    • Labels:
    • Story Points:
      0
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.
    • Steps to Reproduce:
      Hide

      1. Install PRD on MacOS by unpacking prd-ee-mac-8.0.0.0-28.zip
      2. Launch Report Designer
      3. Look to the logs <user_home>/.pentaho/logs/prd.log

      2017-12-22 14:20:52,403 [      0]   WARN - org.pentaho.platform.osgi.KarafBoot                - Karaf not found in standard dir of './system/karaf' 
      2017-12-22 14:20:52,428 [     25]   WARN - org.pentaho.platform.osgi.KarafBoot                - Given that the system property 'osx.app.root.dir' is set, we are in a OSX .app context; we'll try looking for Karaf in the app's root dir '/Applications/Pentaho_7.1_GA/design-tools/Pentaho Report Designer.app' 
      2017-12-22 14:20:52,429 [     26]   WARN - org.pentaho.platform.osgi.KarafBoot                - file:/Users/user/./system/osgi/log4j.xml file not exist
      2017-12-22 14:23:02,878 [ 130475]  ERROR - org.pentaho.di.osgi.KarafLifecycleListener         - Error in Feature Watcher
      org.pentaho.osgi.api.IKarafFeatureWatcher$FeatureWatcherException: Unknown error in KarafWatcher
      	at org.pentaho.osgi.impl.KarafFeatureWatcherImpl.waitForFeatures(KarafFeatureWatcherImpl.java:125)
      	at org.pentaho.di.osgi.KarafLifecycleListener$2.run(KarafLifecycleListener.java:144)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: org.pentaho.osgi.api.IKarafFeatureWatcher$FeatureWatcherException: Timed out waiting for Karaf features to install: config,pentaho-base,pentaho-fasterxml,pdi-dataservice-client,pentaho-big-data-ee-plugin-osgi-obf
      	at org.pentaho.osgi.impl.KarafFeatureWatcherImpl.waitForFeatures(KarafFeatureWatcherImpl.java:154)
      	at org.pentaho.osgi.impl.KarafFeatureWatcherImpl.waitForFeatures(KarafFeatureWatcherImpl.java:97)
      	... 2 more
      
      Show
      1. Install PRD on MacOS by unpacking prd-ee-mac-8.0.0.0-28.zip 2. Launch Report Designer 3. Look to the logs <user_home>/.pentaho/logs/prd.log 2017-12-22 14:20:52,403 [ 0] WARN - org.pentaho.platform.osgi.KarafBoot - Karaf not found in standard dir of './system/karaf' 2017-12-22 14:20:52,428 [ 25] WARN - org.pentaho.platform.osgi.KarafBoot - Given that the system property 'osx.app.root.dir' is set, we are in a OSX .app context; we'll try looking for Karaf in the app's root dir '/Applications/Pentaho_7.1_GA/design-tools/Pentaho Report Designer.app' 2017-12-22 14:20:52,429 [ 26] WARN - org.pentaho.platform.osgi.KarafBoot - file:/Users/user/./system/osgi/log4j.xml file not exist 2017-12-22 14:23:02,878 [ 130475] ERROR - org.pentaho.di.osgi.KarafLifecycleListener - Error in Feature Watcher org.pentaho.osgi.api.IKarafFeatureWatcher$FeatureWatcherException: Unknown error in KarafWatcher at org.pentaho.osgi.impl.KarafFeatureWatcherImpl.waitForFeatures(KarafFeatureWatcherImpl.java:125) at org.pentaho.di.osgi.KarafLifecycleListener$2.run(KarafLifecycleListener.java:144) at java.lang.Thread.run(Thread.java:745) Caused by: org.pentaho.osgi.api.IKarafFeatureWatcher$FeatureWatcherException: Timed out waiting for Karaf features to install: config,pentaho-base,pentaho-fasterxml,pdi-dataservice-client,pentaho-big-data-ee-plugin-osgi-obf at org.pentaho.osgi.impl.KarafFeatureWatcherImpl.waitForFeatures(KarafFeatureWatcherImpl.java:154) at org.pentaho.osgi.impl.KarafFeatureWatcherImpl.waitForFeatures(KarafFeatureWatcherImpl.java:97) ... 2 more

      Description

      Feedback from Thomas Morgner:

      Ideally Karaf should not depend on the current working directory to locate its system directory. In MacOS, the working directory is whatever the app launcher thinks it is. We are using the embedded JDK mode, so I would suspect we use the JavaFX launcher and that one does not support setting a working directory. (I have no clue where the EE part of PRD lives these days, so I cant check the sources. Nor do I have a Mac to test this).

      Karaf is initialized via kettle, if I remember right. Well, Kettle has a curious way of seeing the world and assumes the world is kettle and thus never uses a working directory that is not pointing to Kettle. I doubt that this is configurable right now.

      File a JIRA case to investigate the problem. However, not being able to see Karaf is not a deadly problem – heck I always delete Karaf before starting PRD to reduce the startup time from minutes to seconds. All you loose is the big-data JDBC drivers and some arcane Kettle plugins if Karaf is not here.

      This is a regression issue from 6.1

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            pavel_hrakovich Pavel Hrakovich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: