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

    Upgrade from 8.6 to .8.7 fails

    Kopano Groupware Core
    5
    25
    2221
    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.
    • thctlo
      thctlo last edited by thctlo

      Its not you, is bad packaging (again) from kopano.

      the new kopano-server contains »/usr/lib/kopano/userscripts/createcompany«
      which is also in : kopano-common

      quick fix:

      dpkg -i --force-all /tmp/apt-dpkg-install-v0Miy6/21-kopano-server_8.7.80.587.10057ac52-0+97.1_amd64.deb

      should work.

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

        @thctlo I already gave him the exact same recommendation in my first reply.

        @hispeed instead of editing your same post over and over again I would recommend to create separate replies. I just saw your first post and then I did not see all your updates since I already visited the topic (just editing a topic does not mark it as unread to others).

        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/

        1 Reply Last reply Reply Quote 0
        • hispeed
          hispeed last edited by

          Hi @fbartels @thctlo ,

          I have used this command and yes Kopano core will be installed. But then I can’t start the core:

          /usr/sbin/kopano-server: /usr/lib/libkcsoap.so.0: version `KC_8.7.80' not found (required by /usr/sbin/kopano-server
          /usr/lib/libkcserver.so.0: version `KC_8.7.80' not found (required by /usr/sbin/kopano-server
          /usr/lib/libkcutil.so.0: version `KC_8.7.80' not found (required by /usr/sbin/kopano-server
          

          So what can I do now? Reboot, stop, start doesn’t help anything.

          @fbartels How much (money) do you want for updating :D?

          1 Reply Last reply Reply Quote 0
          • thctlo
            thctlo last edited by thctlo

            @hispeed

            Your still missing files. I suggest copy this and run it.
            I’ve made it error free now, only someone needs to test it on Ubuntu 18.
            ** i removed the script code and did put it on github.

            Latest version can be found here.
            https://raw.githubusercontent.com/thctlo/Kopano/master/get-kopano-community.sh

            After you run the script just run :
            apt install kopano-server-packages

            That should fix the missing/not upgraded files, if still missing things run :
            apt dist-upgrade

            1 Reply Last reply Reply Quote 0
            • hispeed
              hispeed last edited by hispeed

              Hi @thctlo

              Thank you for your script, this finally worked.

              wget -O - https://raw.githubusercontent.com/thctlo/Kopano/master/get-kopano-community.sh | bash
              apt install kopano-server-packages
              apt dist-upgrade
              kopano-dbadm usmp
              

              How can I update Z-push the in the shell it’s telling me it’s up to date but when I look in the webapp I still see Z-Push:
              2.4.3+0-0 ?
              I want to use: Z-Push 2.4.5+0.0

              1 Reply Last reply Reply Quote 1
              • thctlo
                thctlo last edited by thctlo

                hai,

                you should see 2.4.5 at this time of writing.

                run : apt-cache policy z-push-kopano

                should give you :
                z-push-kopano:
                Installed: 2.4.5+0-0
                Candidate: 2.4.5+0-0
                Version table:
                2.4.5+0-0 500
                500 http://repo.z-hub.io/z-push:/final/Debian_9.0 Packages

                You need to remember this, which is in case of kopano updates most important.

                after running apt-get update and you ready to upgrade, follow these steps.

                apt-get update
                apt-get upgrade

                If you see the upgrade like this.

                The following packages will be upgraded:
                  kopano-webapp kopano-webapp-plugin-quickitems kopano-webapp-plugin-titlecounter
                3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                

                Then its ok, and you can upgrade, but if a new package is added, then you get the message packages are kept back.

                Reading state information... Done
                Calculating upgrade... Done
                The following packages have been kept back:
                  kopano-backup kopano-client kopano-common kopano-contacts kopano-dagent kopano-gateway kopano-ical kopano-monitor kopano-search kopano-server kopano-server-packages kopano-spooler kopano-utils
                  libkcserver0 libkcsoap0 libkcutil0 php7-mapi python-kopano python-mapi
                The following packages will be upgraded:
                  curl kopano-lang kopano-webapp kopano-webapp-plugin-quickitems libcurl3 libcurl3-gnutls libgd3 libkcarchiver0 libkcarchivercore0 libkcfreebusy0 libkcicalmapi0 libkcinetmapi0 libkcrosie0 libmapi1
                  openssh-client openssh-server openssh-sftp-server php-pear
                18 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.
                Need to get 6988 kB/8019 kB of archives.
                After this operation, 159 kB of additional disk space will be used.
                Do you want to continue? [Y/n]
                

                This is what cause you problem, Hit yes at this point and 1/2 kopano is upgraded, and fixing that with dpkg -i is not fun in general and for that, you can use dist-upgrade, as in :
                apt-get update
                apt-get dist-upgrade

                for the z-push packages install, asumming you run a apache weberser:
                apt-get install z-push-kopano z-push-config-apache

                Good luck.

                1 Reply Last reply Reply Quote 0
                • hispeed
                  hispeed last edited by

                  Hi it looks like a bug in the webapp.

                  https://framapic.org/cNpjUWra0crx/LQ7XNawUPPcZ.jpg
                  https://framapic.org/fA7LAYteeO1e/7C61htzKG7Em.jpg

                  Here is also a bug I can’t upload any pictures to this forum ^^.

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

                    @hispeed said in Upgrade from 8.6 to .8.7 fails:

                    Hi it looks like a bug in the webapp.

                    https://framapic.org/cNpjUWra0crx/LQ7XNawUPPcZ.jpg
                    https://framapic.org/fA7LAYteeO1e/7C61htzKG7Em.jpg

                    Here is also a bug I can’t upload any pictures to this forum ^^.

                    Maybe a bug in the MDM plugin…

                    Execute this and you should get the same version as shown in your image:

                    container.getSettingsModel().get(‘zarafa/v1/plugins/mdm/zpush-server-version’)

                    We make a call here:
                    https://stash.kopano.io/projects/KWA/repos/mobile-device-management/browse/php/class.pluginmdmmodule.php#43

                    What version do you see when you go to: <server>/Microsoft-Server-ActiveSync

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

                    1 Reply Last reply Reply Quote 0
                    • hispeed
                      hispeed last edited by

                      Hi @marty

                      I recieve this when i go on to the active sync website:

                      Z-Push - Open Source ActiveSync
                      Version 2.4.5+0-0
                      GET not supported
                      This is the Z-Push location and can only be accessed by Microsoft ActiveSync-capable devices
                      

                      How can I execute this?:

                      container.getSettingsModel().get(‘zarafa/v1/plugins/mdm/zpush-server-version’)
                      
                      marty 1 Reply Last reply Reply Quote 0
                      • marty
                        marty Kopano (Inactive) @hispeed last edited by

                        @hispeed said in Upgrade from 8.6 to .8.7 fails:

                        How can I execute this?:

                        In the console of your browser

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

                        1 Reply Last reply Reply Quote 0
                        • hispeed
                          hispeed last edited by

                          Hi @marty

                          I’m sorry I don’t understand that how this should work.

                          I have tried it in Firefox and Chrome. This path: “zarafa/v1/plugins/mdm/zpush-server-version” doesn’t exist on my server. I have an ubuntu 18.04 and i never had zarafa installed (just Kopano 8.6), just to tell you it’s a fresh install from last year June.

                          Why is it a bug in the MDM plugin I also don’t understand because it’s in the webapp wrong and for Z-Push, but you know that probably better than me.

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

                            @hispeed you can’t copy marty’s his command as the quotes are not correct

                            container.getSettingsModel().get('zarafa/v1/plugins/mdm/zpush-server-version')
                            
                            

                            93114348-d4cd-4568-b073-9a01cd05b7c9-image.png

                            Regards Robin,

                            Need support?
                            Have a look at https://kopano.com/support/ for options.

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

                            1 Reply Last reply Reply Quote 0
                            • hispeed
                              hispeed last edited by

                              Hi @robing

                              This worked, unfortunately I recieve:

                              container.getSettingsModel().get('zarafa/v1/plugins/mdm/zpush-server-version')
                              "2.4.3+0-0"
                              

                              can I update without any other issues?

                              1 Reply Last reply Reply Quote 0
                              • hispeed
                                hispeed last edited by

                                How buggy is that ^^… sorry I can’t write it in other words…

                                @thctlo I tried your script on my production server. It doesn’t work. I recieve this error. I don’t know what to do.

                                100 3936k  100 3936k    0     0  9791k      0 --:--:-- --:--:-- --:--:-- 9767k
                                mv: './kopano-archiver_8.7.80.587.10057ac52-0+100.1_amd64.deb' and 'amd64/kopano-archiver_8.7.80.587.10057ac52-0+100.1_amd64.deb' are the same file
                                Please wait, generating  amd64/Packages File
                                Please wait, running apt-get update
                                
                                The installed Kopano CORE apt-list file: /etc/apt/sources.list.d/kopano-community.list
                                
                                Checking for Z_PUSH Repo on Ubuntu.
                                The Kopano Z_PUSH repo was already setup.
                                
                                The z-push info : https://documentation.kopano.io/kopanocore_administrator_manual/configure_kc_components.html#configure-z-push-activesync-for-mobile-devices
                                Before you configure/install also read : https://wiki.z-hub.io/display/ZP/Installation
                                
                                Sorry, Your os and/or version not supported in this script.
                                Kopano core versions available on the repo now are :
                                kopano-server-packages:
                                  Installiert:           8.6.80.1248-0+176.1
                                  Installationskandidat: 8.6.80.1248-0+176.1
                                  Versionstabelle:
                                 *** 8.6.80.1248-0+176.1 100
                                        100 /var/lib/dpkg/status
                                
                                
                                1 Reply Last reply Reply Quote 0
                                • thctlo
                                  thctlo last edited by thctlo

                                  You are on Ubuntu i see.

                                  This can be ignored.
                                  mv: './kopano-archiver …..
                                  Somewhere archiver is double packaged.

                                  Sorry, Your os and/or version not supported in this script
                                  Ah.thats, you enabled libreoffice online and that one is not supported yet for Ubuntu 18.04.
                                  i’ll make that message better.

                                  Can you show me the content of the files in /etc/apt/sources.list.d/

                                  The file repo looks created.
                                  run apt-get update again, you tried that?
                                  Then apt-cache policy kopano-server-packages to check?

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

                                    @hispeed said in Upgrade from 8.6 to .8.7 fails:

                                    Hi @marty

                                    Why is it a bug in the MDM plugin I also don’t understand because it’s in the webapp wrong and for Z-Push, but you know that probably better than me.

                                    Because the MDM plugin is showing this z-push server version in WebApp.

                                    Is the mdm plugin installed or pointing to the same z-push server? (Check mdm config.php)

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

                                    1 Reply Last reply Reply Quote 0
                                    • hispeed
                                      hispeed last edited by

                                      hi @marty

                                      nano /etc/kopano/webapp/config-mdm.php

                                      <?php
                                      define(‘PLUGIN_MDM_USER_DEFAULT_ENABLE_MDM’, true);
                                      define(‘PLUGIN_MDM_SERVER’, ‘XXX.XXXXX.ch’);
                                      define(‘PLUGIN_MDM_SERVER_SSL’, true);
                                      ?>

                                      @thctlo

                                      /etc/apt/sources.list.d# dir
                                      kopano-com.list kopano-community.list kopano-z-push.list z-push.list

                                      and I found the mistake: in z-push.list I had the repo already added. So I commented that out and your script worked fine. It’s not always Kopano, also my mistakes :(. Now I’m up to date with the production server.

                                      WebApp:
                                      3.5.3.2161+1200.1
                                      Kopano Core:
                                      8.7.80
                                      Z-Push:
                                      2.4.3+0-0 -> Probably a bug in the MDM Plugin.

                                      Also the version in: Plugins are not correct. MDM is updated as well to the latest version and it’s showing Version: 0.1 but the file shows 2.1 and the backend for files: 0.1
                                      I don’t know what is correct, but it works and it looks good :).

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

                                        @hispeed

                                        The versions shown in the plugin tab are the version defined in the plugins manifest.xml, but we don’t do anything with it right now. Don’t worry about that. Package version is the important thing here.

                                        As for the z-push version in webapp settings, added by the mdm plugin:

                                        Again in the console can you change the setting to:

                                        container.getSettingsModel().set('zarafa/v1/plugins/mdm/zpush-server-version', '')
                                        

                                        Then logout + login

                                        And check what the setting is after login with

                                        container.getSettingsModel().get('zarafa/v1/plugins/mdm/zpush-server-version')
                                        

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

                                        1 Reply Last reply Reply Quote 0
                                        • hispeed
                                          hispeed last edited by

                                          When I do that I recieve:

                                          container.getSettingsModel().set('zarafa/v1/plugins/mdm/zpush-server-version', '')
                                          undefined
                                          

                                          After logout - login:

                                          container.getSettingsModel().get('zarafa/v1/plugins/mdm/zpush-server-version')
                                          "2.4.3+0-0"
                                          
                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post