Quantcast

[JIRA] (JENKINS-14248) DiskUsage dont show values.

classic Classic list List threaded Threaded
30 messages Options
12
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14248) DiskUsage dont show values.

JIRA noreply@jenkins-ci.org
Issue Type: Bug Bug
Affects Versions: current
Assignee: vjuranek
Attachments: err.png
Components: disk-usage
Created: 28/Jun/12 3:46 PM
Description:

No values are showed.

On log

Jun 28, 2012 12:41:14 PM hudson.model.AsyncPeriodicWork$1 run
INFO: Started Project disk usage
Jun 28, 2012 12:41:20 PM hudson.model.AsyncPeriodicWork$1 run
INFO: Finished Project disk usage. 729 ms

Environment: Ubuntu
Jenkins ver. 1.472

With w7 the same problem
Project: Jenkins
Labels: plugin
Priority: Major Major
Reporter: Mauricio Fenoglio
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14248) DiskUsage dont show values.

JIRA noreply@jenkins-ci.org
vjuranek commented on Bug JENKINS-14248

Hi,
could you please run following script via Jenkins script console ($JENKINS_URL/script):

jenkins.model.Jenkins.instance.getItem("MONITOR-SERVER").getAction(hudson.plugins.disk_usage.ProjectDiskUsageAction.class).getDiskUsage().getBuildUsage()
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14248) DiskUsage dont show values.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Hi, thanks for the quick response.
I ran the script on the console and this is output

Resultado

Result: 0

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14248) DiskUsage dont show values.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
vjuranek commented on Bug JENKINS-14248

Do you have any builds there? It seems that the disk usage run (project action exists), but it seems that the size of the project is 0 (and therefore it shows "-" in overview table)

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14248) DiskUsage dont show values.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Yes I have
For example the task CMS-MONITOR-SERVER

ls from $JENKINS_HOME/jobs/CMS-MONITOR-SERVER/builds

lrwxrwxrwx 1 cms cms 19 2012-06-28 12:44 18 -> 2012-06-28_12-44-16
lrwxrwxrwx 1 cms cms 19 2012-06-28 13:10 19 -> 2012-06-28_13-10-06
lrwxrwxrwx 1 cms cms 19 2012-06-28 14:44 20 -> 2012-06-28_14-44-00
drwxr-xr-x 3 cms cms 4096 2012-06-28 12:44 2012-06-28_12-44-16
drwxr-xr-x 3 cms cms 4096 2012-06-28 13:10 2012-06-28_13-10-06
drwxr-xr-x 3 cms cms 4096 2012-06-28 14:44 2012-06-28_14-44-00
drwxr-xr-x 3 cms cms 4096 2012-06-28 16:16 2012-06-28_16-15-16
drwxr-xr-x 3 cms cms 4096 2012-06-29 00:02 2012-06-29_00-01-14
lrwxrwxrwx 1 cms cms 19 2012-06-28 16:15 21 -> 2012-06-28_16-15-16
lrwxrwxrwx 1 cms cms 19 2012-06-29 00:01 22 -> 2012-06-29_00-01-14

Anything else you think should check?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14248) DiskUsage dont show values.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

I have exactly the same problem. Disk Usage ver. 0.17, Jenkins 1.458

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14248) DiskUsage dont show values.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

vjuranek
How do get the disk usage?.
Maybe there are a privileges problem.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14248) DiskUsage dont show values.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
vjuranek commented on Bug JENKINS-14248

@Mauricio Fenoglio
you just need to allow show graphs on project pages in Jenkins global config, but don't need any special privileges. If you are able to view overall disk usage page, you should be able to see the numbers as well, so I'm quite sure the problem is somewhere else than missing rights or something like this.

@Martin Stenderup
thanks for investigation. I'll try to re-check the changes made since rel. 0.12 if I spot any change which could cause such kind of problems. Obvious candidate is https://github.com/jenkinsci/disk-usage-plugin/pull/5 introduced in rel 0.15, but IIRC I tested this change quite carefully and it seemed to work fine. Anyway I'll re-check.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14248) DiskUsage dont show values.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

@vjuranek
Hi, I just had a crasy idea, and upgraded the plugin in steps.
First from 0.12 to 0.14 and then 0.17.
It now shows values even in 0.17, perhaps it has something to do with first time install of the plugin.
I haven't yet verified if it gathers values correctly in 0.17, or just shows the values cached by 0.12.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14248) DiskUsage dont show values.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
 
Martin Stenderup edited a comment on Bug JENKINS-14248

@vjuranek
Hi, I just had a crasy idea, and upgraded the plugin in steps.
First from 0.12 to 0.14 and then 0.17.
It now shows values even in 0.17, perhaps it has something to do with first time install of the plugin.
I haven't yet verified if it gathers values correctly in 0.17, or just shows the values cached by 0.12.

Update:
It seems it uses the cached values. Sizes of builds started after upgrade to 0.17 are not calculated.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14248) DiskUsage dont show values.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
 
Martin Stenderup edited a comment on Bug JENKINS-14248

@vjuranek
Hi, I just had a crasy idea, and upgraded the plugin in steps.
First from 0.12 to 0.14 and then 0.17.
It now shows values even in 0.17, perhaps it has something to do with first time install of the plugin.
I haven't yet verified if it gathers values correctly in 0.17, or just shows the values cached by 0.12.

Update:
It seems it uses the cached values. Sizes of builds started after upgrade to 0.17 are not shown.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14248) DiskUsage dont show values.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Hi guys,

Just to confirm I experience same issue:

  • Ubuntu 12.4 LTS
  • Jenkins 1.474
  • Disk-usage plugin 0.17

No special configuration made.
Logs contain no more than shown here in description.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14248) DiskUsage dont show values.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
skybird commented on Bug JENKINS-14248

Hi,
I have the same Problem with RHEL5, Tomcat 6.0.32, Jenkins 1.471, after upgrading du-plugin from 0.14 to 0.17,
and with Windows 2000, Tomcat 5.5.27, Jenkins 1.471, after upgrading du-plugin from 0.14 to 0.17

On
jenkins.model.Jenkins.instance.getItem("MONITOR-SERVER").getAction(hudson.plugins.disk_usage.ProjectDiskUsageAction.class).getDiskUsage().getBuildUsage()
I get on both servers:
java.lang.NullPointerException: Cannot invoke method getAction() on null object

The Plugin seems to run, from Windows:
INFO: Started Project disk usage
10.08.2012 07:39:36 hudson.model.AsyncPeriodicWork$1 run
INFO: Finished Project disk usage. 300389 ms

From Linux:
INFO: Started Project disk usage
[...]
Aug 10, 2012 1:07:16 PM hudson.model.AsyncPeriodicWork$1 run
INFO: Finished Project disk usage. 793397 ms

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14248) DiskUsage dont show values.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
vjuranek commented on Bug JENKINS-14248

Sorry for not being fixed yet, but I'm still not able to reproduce to find out what is wrong. Any pointer how to reproduce it? I manage to reproduce it only when I install the plugin without restart, but after Jenkins restart, it started to work correctly. In this case it was probably caused some problem in hot deploy mechanism for plugin. But I guess this is not your case and you restart doesn't help.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14248) DiskUsage dont show values.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Same problem here, with Jenkins v.1.466.

I'm using jenkins-maven-plugin to generate the jobs. Should it be the cause?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14248) DiskUsage dont show values.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
vjuranek commented on Bug JENKINS-14248

@Thiago Colbert: I don't think so, how the jobs are generated shouldn't affect disk usage plugin.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14248) DiskUsage dont show values.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

I've played around a little bit with the source code today, but still can't figure out what the problem is.
I've added a few lines of code at the end of the method DiskUsageThread.calculateWorkspaceDiskUsage() to verify everything is properly stored:

lastBuild.save();
// load the values that have been saved to verify
BuildDiskUsageAction loaded = lastBuild.getAction(BuildDiskUsageAction.class);
DiskUsage duTmp = loaded.getDiskUsage();

Everything seems to be ok here as I can see the expected values in "duTmp".
However, when loading the values in ProjectDiskUsageAction.getDiskUsage() there is no data found to display. "project.getBuilds().iterator()" iterates over all builds found, but none of these builds has an action (always null).
Any suggestions how I could investigate any further?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14248) DiskUsage dont show values.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
vjuranek commented on Bug JENKINS-14248

@Sebastian Möller - thanks for debugging! Could you please check via groovy console ($JENKINS_URL/script) if the projects action exists, by executing following script:

jenkins.model.Jenkins.instance.getItem("$PROJECT_NAME").getAction(hudson.plugins.disk_usage.ProjectDiskUsageAction.class)

(of course replacing $PROJECT_NAME by name of any project you have configured on your instance) if there is an ProjectDiskUsageAction assigned to the projects? If the disk usage is calculated and then it seems that transient project action are not created during the startup for some reason - this is just for verification if the transient project actions exists or not.
Thanks in advance.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14248) DiskUsage dont show values.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Seems that the object is created:

-- jenkins.model.Jenkins.instance.getItem("pms-trunk small").getAction(hudson.plugins.disk_usage.ProjectDiskUsageAction.class)

Result: hudson.plugins.disk_usage.ProjectDiskUsageAction@736e788c
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14248) DiskUsage dont show values.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Kai Virkki commented on Bug JENKINS-14248

We're using CloudBees dev@cloud Jenkins service and have the same problem; Disk Usage doesn't show any values . The plugin version there is 0.17.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12
Loading...