Does /settings/admin/logging work for anyone else?
-
For me it just spins for ever and never loads anything
-
@jdaviescoates yes, this has always been the case. nextcloud's log view gets confused if you log to stdout/stderr . You have to use the Cloudron log viewer instead.
-
@girish said in Does /settings/admin/logging work for anyone else?:
if you log to stdout/stderr
That means nothing to me. But presumably that's what Nextcloud is trying to do when I visit /settings/admin/logging?
-
@jdaviescoates we almost always configure apps to send logs to (so called) stdout , as opposed to writing logs to some file . The idea is that apps should not write and manage log files. This system also allows cloudron to implement a generic log viewer which is just a stream of stuff output by the app.
Unfortunately, nextcloud does not work well when it's configured to send logs to stdout instead of a file. The nextcloud logging UI is designed to work when it logs to a file.
See also https://12factor.net/logs
-
According to https://github.com/nextcloud/logreader/pull/866/commits/20870c1225e32ca55eed4d87249f697f5d13fda8 you must see some better error message . Unfortunately, we hack the stuff to use logfile itself to log to stderr (sorry, technical mumbo jumob here...). Oh well.
-
@girish said in Does /settings/admin/logging work for anyone else?:
According to https://github.com/nextcloud/logreader/pull/866/commits/20870c1225e32ca55eed4d87249f697f5d13fda8 you must see some better error message
Well, I don't.
Oh well.