Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    HTTP 500 Internal Server Error after Webapp update

    Kopano WebApp
    3
    8
    675
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • aikh
      aikh last edited by

      Hi Team,

      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

      /etc/kopano/webapp/config.php
      

      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: 5.0.0.172+1974 (which is in 5.0.0.172.1973 at download.kopano.io)

      I hope this helps others out who also ran into this problem.

      Cheers,
      aikh

      fbartels marty 2 Replies Last reply Reply Quote 0
      • fbartels
        fbartels Kopano @aikh last edited by

        Hi @aikh,

        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.php this seems to be your problem.

        This has meanwhile been corrected. So updating to the latest version should restore both plugins.

        Regards Felix

        Resources:
        https://kopano.com/blog/how-to-get-kopano/
        https://documentation.kopano.io/
        https://kb.kopano.io/

        Support overview:
        https://kopano.com/support/

        aikh 1 Reply Last reply Reply Quote 0
        • aikh
          aikh @fbartels last edited by

          @fbartels
          Hi,

          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

          Cheers,
          aikh

          fbartels 1 Reply Last reply Reply Quote 0
          • fbartels
            fbartels Kopano @aikh last edited by

            Hi @aikh,

            the better place to look at would be your packages manager. e.g. dpkg -l | grep kopano-webapp

            Regards Felix

            Resources:
            https://kopano.com/blog/how-to-get-kopano/
            https://documentation.kopano.io/
            https://kb.kopano.io/

            Support overview:
            https://kopano.com/support/

            aikh 2 Replies Last reply Reply Quote 0
            • aikh
              aikh @fbartels last edited by

              Hi @fbartels
              Same behaviour with the new downloaded source.
              Following packages were download with the latest nightly build (https://download.kopano.io/community/webapp%3A/webapp-5.0.0.172%2B1973.200f338-Debian_9.0-all.tar.gz):

              kopano-webapp_5.0.0.172+1974.1_all.deb
              kopano-webapp-plugin-contactfax_5.0.0.172+1974.1_all.de
              kopano-webapp-plugin-gmaps_5.0.0.172+1974.1_all.deb
              kopano-webapp-plugin-htmleditor-jodit_0.2.0.10+40.1_all
              kopano-webapp-plugin-htmleditor-minimal-tinymce_1.0.0.1
              kopano-webapp-plugin-htmleditor-minimal-tinymce_2.0.0+3
              kopano-webapp-plugin-intranet_1.0.1.21+76.1_all.deb
              kopano-webapp-plugin-intranet_1.0.1.4+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_5.0.0.172+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
              

              Cheers,
              aikh

              1 Reply Last reply Reply Quote 0
              • aikh
                aikh @fbartels last edited by

                Hi @fbartels
                whatsapp4deskapp and threema4deskapp is not listed in dpkg -l if I search for it.

                Cheers,
                aikh

                1 Reply Last reply Reply Quote 0
                • marty
                  marty Kopano (Inactive) @aikh last edited by

                  @aikh Thanks for the report. I’ve uploaded new builds. Please try again and the errors should be resolved.

                  https://documentation.kopano.io/deskapp_admin_manual
                  http://documentation.kopano.io/webapp_smime_manual
                  https://documentation.kopano.io/webapp_admin_manual

                  aikh 1 Reply Last reply Reply Quote 1
                  • aikh
                    aikh @marty last edited by

                    @marty
                    Sorry for the late reply. I’ve tested the new builds and it is working like a charm now.
                    Thank you

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post