Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-17408

Monitoring error 500 with Mac OS X master

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Component/s: monitoring-plugin
    • Labels:
      None
    • Environment:
      Master is Mac OS X 10.8.2, Java 1.7.0_17-b02, jenkins 1.505, Monitoring plugin used is 1.43.0 and 1.42.0.
    • Similar Issues:

      Description

      When I go into the monitoring page via http://jenkins:port/monitoring, I get a Status Code 500 back:

      Status Code: 500

      Exception:
      Stacktrace:
      java.lang.InternalError: errno: 2 error: host_statistics failed

      at com.sun.management.UnixOperatingSystem.getFreePhysicalMemorySize(Native Method)
      at net.bull.javamelody.MemoryInformations.<init>(MemoryInformations.java:76)
      at net.bull.javamelody.JavaInformations.<init>(JavaInformations.java:140)
      at net.bull.javamelody.MonitoringController.doActionIfNeededAndReport(MonitoringController.java:136)
      at net.bull.javamelody.MonitoringFilter.doMonitoring(MonitoringFilter.java:340)
      at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:170)
      at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:86)
      at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:84)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98)
      at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98)
      at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:66)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:124)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:64)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:331)
      at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:227)
      at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:722)

      Generated by Winstone Servlet Engine v0.9.10 at Fri Mar 29 14:31:34 CET 2013

        Attachments

          Activity

          Hide
          evernat evernat added a comment -

          As the author of the plugin, it is the first time that I see this issue in com.sun.management.UnixOperatingSystem.getFreePhysicalMemorySize.
          I do not use Mac OS X myself, but many users of the plugin certainly have Mac OS X and do not have reported this.

          Do you have something special in the environment except the recent Java 1.7.0_17-b02 and Mac OS X 10.8.2 ?
          Do you reproduce the issue with another java version or with another Mac OS X version ?

          For what it's worth, this error has been coded in the following commit specifically for "APPLE":
          http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/869f53f58692

          Show
          evernat evernat added a comment - As the author of the plugin, it is the first time that I see this issue in com.sun.management.UnixOperatingSystem.getFreePhysicalMemorySize. I do not use Mac OS X myself, but many users of the plugin certainly have Mac OS X and do not have reported this. Do you have something special in the environment except the recent Java 1.7.0_17-b02 and Mac OS X 10.8.2 ? Do you reproduce the issue with another java version or with another Mac OS X version ? For what it's worth, this error has been coded in the following commit specifically for "APPLE": http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/869f53f58692
          Hide
          evernat evernat added a comment -

          Any news on this issue after my previous comment?

          Show
          evernat evernat added a comment - Any news on this issue after my previous comment?
          Hide
          wbauer wbauer added a comment -

          I tried various things that didn't help, but in the end got the problem resolved by:
          1. Completely removing the monitoring plugin, then reinstalling it
          2. Ran a disk permission check (that only revealed a couple of issues in system folders, but not Jenkins)

          Show
          wbauer wbauer added a comment - I tried various things that didn't help, but in the end got the problem resolved by: 1. Completely removing the monitoring plugin, then reinstalling it 2. Ran a disk permission check (that only revealed a couple of issues in system folders, but not Jenkins)
          Hide
          wbauer wbauer added a comment -

          Ran a disk permission repair and removed the monitoring plugin and reinstalled it from within the Jenkins web UI.

          Show
          wbauer wbauer added a comment - Ran a disk permission repair and removed the monitoring plugin and reinstalled it from within the Jenkins web UI.

            People

            • Assignee:
              Unassigned
              Reporter:
              wbauer wbauer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: