OpenTSDB / opentsdb

A scalable, distributed Time Series Database.
http://opentsdb.net
GNU Lesser General Public License v2.1
5k stars 1.25k forks source link

Gnuplot error #1607

Open marija1705 opened 5 years ago

marija1705 commented 5 years ago

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).

spruisken commented 4 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.

muffix commented 4 years ago

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