nextcloud-keeweb icon indicating copy to clipboard operation
nextcloud-keeweb copied to clipboard

Nextcloud 23

Open MiRei777 opened this issue 4 years ago • 6 comments

In NC23 the errorlog generate permanaent massive warnings:

"app":"keeweb","method":"POST","url":"/settings/apps/disable","message":"/appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36","version":"23.0.0.10","id":"61b9d873cd6c7"}

MiRei777 avatar Dec 15 '21 11:12 MiRei777

It is the same for me: "app":"keeweb","method":"GET","url":"/ocs/v2.php/search/providers/settings_apps/search?term=mail&from=%2Fsettings%2Fadmin%2Flogging","message":"/appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0","version":"23.0.0.10"}

Potemkinkuliss avatar Jan 29 '22 09:01 Potemkinkuliss

It seems this is a warning message which is only logged when debug messages are enabled in the log. The application still works fine though - Nextcloud just warns about using a deprecated implementation.

The reason is, that this was the implementation needed for older Nextcloud versions (<20) - and Keeweb started long before Nextcloud 20.

I'll work migrating the code newer Application class structure as it is recommended for Nextcloud 20 or newer, but this may take some time. Until then you may just disable the debug messages to get rid of those warnings.

arnowelzel avatar Feb 26 '22 14:02 arnowelzel

As of Nextcloud 23.0.3 this add on seems to be completely broken. Once it is loaded, every Nextcloud page shows "Bad Gateway" until I disable it using the occ tool.

Webxorcist avatar Mar 28 '22 13:03 Webxorcist

Sorry to hear that - but for me it works fine even with NC 23.0.3. Can you provide server logs for this?

arnowelzel avatar Mar 28 '22 13:03 arnowelzel

I have the loglevel on 0, according to the documentation this is the highest possible level, but all I am getting in the log is this:

{"reqId":"iEUr61Bh1J4M1uykep9w","level":0,"time":"2022-03-28T13:40:01+00:00","remoteAddr":"","user":"--","app":"keeweb","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"23.0.3.2"}

But I think I found something, and if that is true you can ignore my post. It seems I had a rights problem in the appdata cache for the /appinfo/app.php. Somehow this triggers way more when keeweb is loaded. I fixed this and now I can't reproduce.

Maybe this is also a cache issue, it seems Keeweb is ignoring the dark mode theme.

Thanks for your fast reply.

Webxorcist avatar Mar 28 '22 14:03 Webxorcist

Please do not use log level 0 for production systems! This means to log everything including debug and info messages.

For regular use you should only use level 2 to get warnings, errors and fatal errors.

In config/config.php of your Nextcloud installation make sure that the loglevel is set to 2:

  'loglevel' => 2,

Also see https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/logging_configuration.html.

Quote:

By default the log level is set to 2 (WARN). Use DEBUG when you have a problem to diagnose, and then reset your log level to a less-verbose level as DEBUG outputs a lot of information, and can affect your server performance.

arnowelzel avatar May 17 '22 12:05 arnowelzel