Hello!
I was wondering if the following situation is a bug, or just something I am doing wrong.
Regarding a Linux dynaTrace install: our client has a policy to mount the different subfolders of dynaTrace onto logical volumes.
e.g. /dev/mapper/vg_root-lv_opt_dynatrace5.0.0_server_temp is mounted on dynatrace-5.0.0/server/temp.
Unfortunately dynaTrace seems to try to delete the temp folder upon startup, and actually crashes because Linux does not allow for the deletion of mount points (you must first unmount the volume).
So I had an idea: use following command to modify the server.config.xml in order to configure dynaTrace to build a subdirectory "temp/temp" to make sure it doesn't try to delete the mount point.
I used:
sed -i 's/temp\ path=\"temp\"/temp\ path=\"temp/temp\"/g' server.config.xml
This works on our older dynaTrace servers, but on a fresh install the server.config.xml does not seem to exist.
Is this by design?
Thanks for your help!
Answer by Dominik S. ·
Hi,
yes, that is by design, the file is created during the first startup.
For cases where you need one, we have ways to create the file, see at the bottom at https://apmcommunity.compuware.com/community/display/DOCDT50/server.config.xml
Dominik
Dominik,
Thank you so much, following your link I found the following line of code which was exactly what the doctor ordered:
./dtserver -Dcom.dynatrace.diagnostics.server.init_config_and_exit=true
It will start the dynaTrace server just long enough to generate a server.config.xml then shut it down.
-Dave
JANUARY 15, 3:00 PM GMT / 10:00 AM ET