Open marija1705 opened 5 years ago
I've run into this issue too. In my case there were cron jobs on the same node that periodically cleared the contents of /tmp
.
Probably best to set java.io.tmpdir
, see https://github.com/OpenTSDB/opentsdb/blob/14ab3ef8a865816cf920aa69f2e019b7261a7847/src/tools/GnuplotInstaller.java#L42.
If you're running OpenTSDB on RedHat/CentOS, you can also change the behaviour of the cleanup by editing /etc/cron.daily/tmpwatch
(RHEL/CentOS 6) or /usr/lib/tmpfiles.d/tmp.conf
(RHEL/CentOS 7+) and prevent it from deleting the directory
GUI on one of the nodes is not working anymore and is producing the following error:
Request failed: Internal Server Error java.io.IOException: Cannot run program "/tmp/.tsdb/tsdb-gnuplot/mygnuplot.sh": error=2
Looking on the server, the /tmp/opentsdb has indeed disappeared. Recreating it manually is fixing the issue (temporarily).