Disappearing brilliant server log

I'm trying to run a Shiny app on Digital Ocean, and it looks like I still have space on the machine:

free total used free shared buff/cache available Mem: 500096 78316 54188 5712 367592 385688 Swap: 0 0 0 

These are the settings of my OS:

 eliavs:/srv/shiny-server# uname -a Linux ubuntu-eliavs 4.4.0-64-generic #85-Ubuntu SMP Mon Feb 20 11:50:30 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux 

After trying to connect to the App, I can see the log in the directory:

 eliavs:/var/log/shiny-server# ls -la total 12 drwxrwxrwx+ 2 shiny shiny 4096 Feb 27 08:35 . drwxrwxrwx 8 root syslog 4096 Feb 27 06:25 .. -rw-r----- 1 shiny shiny 362 Feb 27 08:35 shiny-server-shiny-20170227-083550-38332.log 

When I try to look at the log, it looks like the file is not there:

 cat shiny-server-shiny-20170227-083550-38332.log cat: shiny-server-shiny-20170227-083550-38332.log: No such file or directory root@ubuntu-eliavs :/var/log/shiny-server# 

and then when I check again, he left:

  ls -la total 8 drwxrwxrwx+ 2 shiny shiny 4096 Feb 27 08:35 . drwxrwxrwx 8 root syslog 4096 Feb 27 06:25 .. 
+5
source share
2 answers

I ran into this problem yesterday after upgrading to brilliant v1.5.3.838. I had to change the permissions on the log directories to match the β€œbrilliant” user. While trying to solve some errors in some old applications, I noticed that the log files just disappear. To fix this, I added the line:

  preserve_logs true; 

to the shiny-server.conf file at the top level.

This was enough to correct my mistakes and continue, so I do not know why they disappear.

+3
source

The same thing happened to me. I fixed this by modifying my Shiny application so that it belongs to a brilliant server process, i.e.

 cd /srv/shiny-server sudo chown -R shiny:shiny myAppFolder 

Before I changed myAppFolder to belong to brilliant: brilliant, myAppFolder belong to root: root and I had a problem with the log disappearing. After I changed myAppFolder so that it belongs to brilliant: brilliant, the logs stopped disappearing and I was able to view them.

0
source

Source: https://habr.com/ru/post/1264769/