lemonzone2010 / javamelody

Automatically exported from code.google.com/p/javamelody
0 stars 0 forks source link

usedMemory.rrd (Permission denied) #249

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

2012-09-05 20:40:09,652 [81145955]   WARN -            net.bull.javamelody - 
exception while collecting data 
java.io.FileNotFoundException: 
/export/home/tomcat/domains/sss/temp/javamelody/_BP-YZH-1-31.text.com/usedMemory
.rrd (Permission denied)
    at java.io.RandomAccessFile.open(Native Method)
    at java.io.RandomAccessFile.<init>(RandomAccessFile.java:216)
    at java.io.RandomAccessFile.<init>(RandomAccessFile.java:101)
    at org.jrobin.core.RrdFileBackend.<init>(Unknown Source)
    at org.jrobin.core.RrdNioBackend.<init>(Unknown Source)
    at org.jrobin.core.RrdNioBackendFactory.open(Unknown Source)
    at org.jrobin.core.RrdDb.<init>(Unknown Source)
    at org.jrobin.core.RrdDb.<init>(Unknown Source)
    at org.jrobin.core.RrdDb.<init>(Unknown Source)
    at org.jrobin.core.RrdDbPool.requestRrdDb(Unknown Source)
    at net.bull.javamelody.JRobin.addValue(JRobin.java:294)
    at net.bull.javamelody.Collector.collectJRobinValues(Collector.java:395)
    at net.bull.javamelody.Collector.collectJavaInformations(Collector.java:337)
    at net.bull.javamelody.Collector.collect(Collector.java:257)
    at net.bull.javamelody.Collector.collectWithoutErrors(Collector.java:243)
    at net.bull.javamelody.Collector.collectLocalContextWithoutErrors(Collector.java:233)
    at net.bull.javamelody.FilterContext$CollectTimerTask.run(FilterContext.java:52)
    at java.util.TimerThread.mainLoop(Timer.java:512)
    at java.util.TimerThread.run(Timer.java:462)

Can you please help me out with this?

Original issue reported on code.google.com by zhms999@gmail.com on 6 Sep 2012 at 8:50

GoogleCodeExporter commented 9 years ago
Is it the same problem with two different users as said in issue 240 ?

Anyway, you can probably fix this for your current case, by doing in linux/unix 
something like "chown -R ...... 
/export/home/tomcat/domains/sss/temp/javamelody" for your current tomcat user.

Original comment by evernat@free.fr on 6 Sep 2012 at 12:53

GoogleCodeExporter commented 9 years ago
This happens to me as well, but with RRD's temporary files:

08:41:19,268 WARN    [javamelody]      exception while collecting data
java.io.FileNotFoundException: Could not open 
/tmp/javamelody/DOMAIN/sqld0a4fea25af13aea1b8b8c336bea426faf7b54c7.rrd [non 
existent]

I also suspected permission problems, and for now I chmodded the folder for 
everyone to write into. But I don't know yet if this solves the problem, as new 
files probably won't have the o+w permission.

Original comment by b.her...@gmail.com on 7 Sep 2012 at 7:33

GoogleCodeExporter commented 9 years ago
Evernat, please change the default temporary path to 
(File)servletContext.getAttribute("javax.servlet.context.tempdir") instead of 
using "java.io.tmpdir" property - this will solve all of these kind of problems.

Original comment by mineral_...@gmx.de on 7 Sep 2012 at 7:56

GoogleCodeExporter commented 9 years ago
@b.herlig
Your issue is the same as issue 255 (fixed), and not the same as this one.

Original comment by evernat@free.fr on 30 Sep 2012 at 1:31

GoogleCodeExporter commented 9 years ago
No response from the reporter ("zhms999"), so I suppose that some "chown ..." 
or "chmod ..." command on the temp directory has fix his/her issue.

And so resolving this issue as incomplete/invalid.

@mineral_wasser
You comment is tracked in issue 240

Original comment by evernat@free.fr on 15 Dec 2012 at 2:48