HTTP 500 Internal Server Error after Webapp update
a few days ago, I made an update of my kopano server and webapp from the nightly builds.
After that update, there was a really strange problem:
Opening webapp worked as expected and I was able to login. After Login, I received the message “HTTP 500 Internal Server Error” and a blank page.
Login with wrong credentials gave me the message “username or password incorrect”.
Everything else worked fine, e.g. sending or receiving mails with z-push
PHP parsing of config file gave no errors back.
So far so bad
After enabling error logging in
I found the PHP Fatal Error log
# tail -f /var/log/apache2/error.log [Fri Mar 12 08:15:52.805324 2021] [:error] [pid 371] [client xx.xx.xx.xx:20023] PHP Notice: Constant PLUGIN_THREEMA4DESKAPP_USER_DEFAULT_ENABLE already defined in /etc/kopano/webapp/config-whatsapp4deskapp.php on line 3, referer: https://public.test.com [Fri Mar 12 08:15:52.805400 2021] [:error] [pid 371] [client xx.xx.xx.xx:20023] PHP Notice: Constant PLUGIN_THREEMA4DESKAPP_BUTTON_TITLE already defined in /etc/kopano/webapp/config-whatsapp4deskapp.php on line 5, referer: https://public.test.com [Fri Mar 12 08:15:52.805410 2021] [:error] [pid 371] [client xx.xx.xx.xx:20023] PHP Notice: Constant PLUGIN_THREEMA4DESKAPP_URL already defined in /etc/kopano/webapp/config-whatsapp4deskapp.php on line 6, referer: https://public.test.com [Fri Mar 12 08:15:52.805441 2021] [:error] [pid 371] [client xx.xx.xx.xx:20023] PHP Fatal error: Cannot declare class Pluginthreema4deskapp, because the name is already in use in /usr/share/kopano-webapp/plugins/whatsapp4deskapp/php/plugin.threema4deskapp.php on line 0, referer: https://public.test.com
So the last line opened my eyes.
I uninstalled the Threema Plugin with
dpkg -r threema4deskapp
et voila, no errors and everything is working fine again.
Some additional information:
Version of Kopano core: 10.0.1.42
Version of Webapp: 184.108.40.206+1974 (which is in 220.127.116.11.1973 at download.kopano.io)
I hope this helps others out who also ran into this problem.
can you also post the version of the “whatsapp4deskapp” plugin you have currently installed? While doing some maintenance a few days ago it seems the source repository of the whatsapp plugin was updated to point to the source of the threema one. And looking at your logs and especially
because the name is already in use in /usr/share/kopano-webapp/plugins/whatsapp4deskapp/php/plugin.threema4deskapp.phpthis seems to be your problem.
This has meanwhile been corrected. So updating to the latest version should restore both plugins.
sure, see cut from /usr/share/kopano-webapp/plugins/whatsapp4deskapp/manifest.xml
<info> <version>0.1+19.1</version> <name>threema4deskapp</name> <title>Threema for DeskApp</title> <author>Michael Kromer</author> <authorURL>http://www.kopano.com</authorURL> <description>The Threema4DeskApp plugin adds a button to the top menu bar that opens Threema inside DeskApp</description> </info>
Thank you for the information, I will download the latest version from download.kopano.io and come back to you with the results
the better place to look at would be your packages manager. e.g.
dpkg -l | grep kopano-webapp
Same behaviour with the new downloaded source.
Following packages were download with the latest nightly build (https://download.kopano.io/community/webapp%3A/webapp-18.104.22.168%2B1973.200f338-Debian_9.0-all.tar.gz):
kopano-webapp_22.214.171.124+1974.1_all.deb kopano-webapp-plugin-contactfax_126.96.36.199+1974.1_all.de kopano-webapp-plugin-gmaps_188.8.131.52+1974.1_all.deb kopano-webapp-plugin-htmleditor-jodit_0.2.0.10+40.1_all kopano-webapp-plugin-htmleditor-minimal-tinymce_184.108.40.206 kopano-webapp-plugin-htmleditor-minimal-tinymce_2.0.0+3 kopano-webapp-plugin-intranet_220.127.116.11+76.1_all.deb kopano-webapp-plugin-intranet_18.104.22.168+45.1_all.deb kopano-webapp-plugin-mattermost_1.0.1+32.1_all.deb kopano-webapp-plugin-mattermost_1.0.1+43.1_all.deb kopano-webapp-plugin-meet_0.2.1+0+1.2_all.deb kopano-webapp-plugin-pimfolder_22.214.171.124+1974.1_all.deb threema4deskapp_0.1+13.1_all.deb threema4deskapp_0.1+5.14_all.deb whatsapp4deskapp_0.1+11.1_all.deb whatsapp4deskapp_0.1+19.1_all.deb
whatsapp4deskapp and threema4deskapp is not listed in dpkg -l if I search for it.
@aikh Thanks for the report. I’ve uploaded new builds. Please try again and the errors should be resolved.
Sorry for the late reply. I’ve tested the new builds and it is working like a charm now.