yesterday, I upgraded bitbucket server from 7.11.2 to 7.17.1 and it worked well so far.
only thing I mentioned was, that it didn't run with oracle jdk but opendjdk.
tonight, at midnight (0:00), the bitbucket home directory 'application' was renamed to 'application.deleted' and a new one was created.. but this was nearly empty. only share and log inside.
log sais nothing more that db couldn't connect.. (i suppose, it didn't really have one)
renaming the .deleted folder back solved this. I also took care that oracle jdk runs bitbucket.
But why did that happen and will it re-happen tonight?