Hi there,
I have had a server failure (Debian 8), because I did not realize 3 log files were not being rotated, and filesystem was full. Namely:
/usr/share/nginx/spotipo/logs/spotipo.log
/usr/share/nginx/spotipo/logs/access.log
/usr/share/nginx/spotipo/logs/error.log
I have managed to create an entry into logrotate.conf as follows:
/usr/share/nginx/spotipo/logs/access.log {
rotate 30
daily
compress
missingok
notifempty
}
/usr/share/nginx/spotipo/logs/spotipo.log {
rotate 30
daily
compress
missingok
notifempty
}
/usr/share/nginx/spotipo/logs/error.log {
rotate 30
daily
compress
missingok
notifempty
}
You can try different settings there. These work for me. YMMV.
While inspecting the logs, I realized there were some errors (quite a few, every few seconds). Any hints on whats happening ?
Thanks, all the best, Luis.
[pid: 845|app: 0|req: 1664/2193] 86.45.49.91 () {42 vars in 981 bytes} [Fri Sep 7 21:44:21 2018] GET /email/guest/f45ea273-c498-465d-bd10-eba066895a3e => generated 305 bytes in 31 msecs (HTTP/1.1 302) 4 headers in 278 bytes (1 switches on core 0)
DEBUG:requests.packages.urllib3.util.retry:Converted retries value: 4 -> Retry(total=4, connect=None, read=None, redirect=None)
DEBUG:requests.packages.urllib3.util.retry:Converted retries value: 4 -> Retry(total=4, connect=None, read=None, redirect=None)
[2018-09-07 21:44:21,975] ERROR in controller: Error while trying to authorize guest:88:6b:6e:3a:ba:de for controller:https://localhost:8443/
Traceback (most recent call last):
File "/usr/share/nginx/spotipo/unifispot/modules/unifi/controller.py", line 225, in authorize_guest
self.run_command(cmd, params=js)
File "/usr/share/nginx/spotipo/unifispot/modules/unifi/controller.py", line 190, in run_command
return self.read(api_url+ 'cmd/' + mgr, params,method='post')
File "/usr/share/nginx/spotipo/unifispot/modules/unifi/controller.py", line 150, in read
if not self.load_cookies() :
File "/usr/share/nginx/spotipo/unifispot/modules/unifi/controller.py", line 108, in load_cookies
cookies = pickle.load(f)
File "/usr/lib/python2.7/pickle.py", line 1378, in load
return Unpickler(file).load()
File "/usr/lib/python2.7/pickle.py", line 858, in load
dispatchkey
File "/usr/lib/python2.7/pickle.py", line 880, in load_eof
raise EOFError
EOFError