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

    Unable to export mail

    Kopano WebApp
    4
    31
    1906
    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.
    • jasgggit
      jasgggit last edited by

      @fbartels , Hi

      I tried to comment out those two options on the /etc/kopano/gateway.cfg file but didn’t solve my problem :

      root@k4ucs:~# systemctl status kopano-gateway.service 
      ● kopano-gateway.service - Kopano Groupware Core IMAP/POP3 Gateway
         Loaded: loaded (/lib/systemd/system/kopano-gateway.service; enabled; vendor preset: enabled)
         Active: active (running) since Fri 2019-04-26 14:26:23 WEST; 13min ago
           Docs: man:kopano-gateway(8)
                 man:kopano-gateway.cfg(5)
       Main PID: 549 (kopano-gateway)
          Tasks: 1 (limit: 9830)
         Memory: 7.4M
            CPU: 67ms
         CGroup: /system.slice/kopano-gateway.service
                 └─549 /usr/sbin/kopano-gateway -F
      
      abr 26 14:26:23 k4ucs systemd[1]: Started Kopano Groupware Core IMAP/POP3 Gateway.
      abr 26 14:26:32 k4ucs kopano-gateway[549]: Starting kopano-gateway version 8.7.0 (pid 549 uid 0)
      abr 26 14:26:32 k4ucs kopano-gateway[549]: Starting kopano-gateway version 8.7.0 (pid 549 uid 998)
      

      I can’t see anything on the log (syslog) regarding why is stuck.

      Hope you can shine some light.

      Regards.
      JG

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

        @fbartels said in Unable to export mail:

        /usr/share/kopano4ucs/kopano4ucs-update-settings870.sh

        @fbartels its seems not working.

        root@k4ucs:/etc/kopano# /usr/share/kopano4ucs/kopano4ucs-update-settings870.sh  
        Installation with Kopano Groupware Core 8.7 detected
        configuring kopano-gateway
        Not updating kopano/cfg/gateway/pop3s_listen
        Not updating kopano/cfg/gateway/imaps_listen
        Not updating kopano/cfg/gateway/ssl_private_key_file
        Not updating kopano/cfg/gateway/ssl_certificate_file
        removing obsolete options from kopano-gateway configuration
        W: The config registry variable 'kopano/cfg/gateway/imap_enable' does not exist
        W: The config registry variable 'kopano/cfg/gateway/imap_generate_utf8' does not exist
        W: The config registry variable 'kopano/cfg/gateway/imap_port' does not exist
        W: The config registry variable 'kopano/cfg/gateway/imap_store_rfc822' does not exist
        W: The config registry variable 'kopano/cfg/gateway/imaps_port' does not exist
        W: The config registry variable 'kopano/cfg/gateway/pop3_enable' does not exist
        W: The config registry variable 'kopano/cfg/gateway/pop3_port' does not exist
        W: The config registry variable 'kopano/cfg/gateway/pop3s_port' does not exist
        configuring kopano-ical
        Not updating kopano/cfg/ical/icals_listen
        Not updating kopano/cfg/ical/server_timezone
        Not updating kopano/cfg/ical/ssl_private_key_file
        Not updating kopano/cfg/ical/ssl_certificate_file
        removing obsolete options from kopano-ical configuration
        W: The config registry variable 'kopano/cfg/ical/icals_enable' does not exist
        W: The config registry variable 'kopano/cfg/ical/ical_enable' does not exist
        W: The config registry variable 'kopano/cfg/ical/ical_port' does not exist
        W: The config registry variable 'kopano/cfg/ical/icals_port' does not exist
        

        Before doing this I reverted to the saved config file prior my manual changes.

        Regards.
        JG

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

          @jasgggit why do you think its stuck? according to your systemctl output the service is running.

          I would really recommend to run the existing script. while these two options prevent the service from starting, there are some other things that need to be updated as well.

          Alternatively have a look at the release announcement for other changed configuration options: https://forum.kopano.io/topic/2110/kopano-groupware-core-8-7-final-available

          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
          • jasgggit
            jasgggit last edited by jasgggit

            @fbartels ,

            It seems NOT to work, from my post above and prior to your last one, but as I said, after reading the one that mentioned the scrip, that BTW was upgraded using CLI, and no message displayed, but thank you for your input regarding the script, I have reverted the config file to the state when it was upgraded.

            I run the script, but gave me the above messages, regarding not finding the variables needed, but, a check using the GUI tels me that they are there.

            root@k4ucs:/etc/kopano# ucr search kopano/cfg/gateway/*                                                                                                                             
            kopano/cfg/gateway/imaps_enable: yes
            kopano/cfg/gateway/imaps_listen: *:993
            kopano/cfg/gateway/pop3s_enable: no
            kopano/cfg/gateway/pop3s_listen: *:995
            kopano/cfg/gateway/ssl_certificate_file: /etc/univention/letsencrypt/signed_chain.crt
            kopano/cfg/gateway/ssl_private_key_file: /etc/univention/letsencrypt/domain.key
            

            Regards.
            JG

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

              @jasgggit yes, the script is a bit chatty, but if you check your output you will see it complained about other values missing.

              The important question is: does gateway work now?

              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
              • jasgggit
                jasgggit last edited by

                @fbartels

                It does not.

                Step 1: Reverting to config file after the upgrade process and started the service, fails

                root@k4ucs:/etc/kopano# systemctl status kopano-gateway.service                                                                                                                     
                ● kopano-gateway.service - Kopano Groupware Core IMAP/POP3 Gateway
                   Loaded: loaded (/lib/systemd/system/kopano-gateway.service; enabled; vendor preset: enabled)
                   Active: failed (Result: exit-code) since Fri 2019-04-26 15:54:32 WEST; 3s ago
                     Docs: man:kopano-gateway(8)
                           man:kopano-gateway.cfg(5)
                  Process: 20184 ExecStart=/usr/sbin/kopano-gateway -F (code=exited, status=1/FAILURE)
                 Main PID: 20184 (code=exited, status=1/FAILURE)
                      CPU: 23ms
                
                abr 26 15:54:32 k4ucs systemd[1]: Started Kopano Groupware Core IMAP/POP3 Gateway.
                abr 26 15:54:32 k4ucs kopano-gateway[20184]: [crit   ] Config error: Unknown option "pop3s_enable" found!
                abr 26 15:54:32 k4ucs kopano-gateway[20184]: [crit   ] Config error: Unknown option "imaps_enable" found!
                abr 26 15:54:32 k4ucs kopano-gateway[20184]: /usr/sbin/kopano-gateway: Startup failed: call failed (80004005). Please check the logfile () for details.
                abr 26 15:54:32 k4ucs systemd[1]: kopano-gateway.service: Main process exited, code=exited, status=1/FAILURE
                abr 26 15:54:32 k4ucs systemd[1]: kopano-gateway.service: Unit entered failed state.
                abr 26 15:54:32 k4ucs systemd[1]: kopano-gateway.service: Failed with result 'exit-code'.
                

                Step2: Running the script and started the service, failed too

                root@k4ucs:/etc/kopano# systemctl status kopano-gateway.service                 
                ● kopano-gateway.service - Kopano Groupware Core IMAP/POP3 Gateway
                   Loaded: loaded (/lib/systemd/system/kopano-gateway.service; enabled; vendor preset: enabled)
                   Active: failed (Result: exit-code) since Fri 2019-04-26 15:56:58 WEST; 2s ago
                     Docs: man:kopano-gateway(8)
                           man:kopano-gateway.cfg(5)
                  Process: 20242 ExecStart=/usr/sbin/kopano-gateway -F (code=exited, status=1/FAILURE)
                 Main PID: 20242 (code=exited, status=1/FAILURE)
                      CPU: 23ms
                
                abr 26 15:56:58 k4ucs systemd[1]: Started Kopano Groupware Core IMAP/POP3 Gateway.
                abr 26 15:56:58 k4ucs kopano-gateway[20242]: [crit   ] Config error: Unknown option "pop3s_enable" found!
                abr 26 15:56:58 k4ucs kopano-gateway[20242]: [crit   ] Config error: Unknown option "imaps_enable" found!
                abr 26 15:56:58 k4ucs kopano-gateway[20242]: /usr/sbin/kopano-gateway: Startup failed: call failed (80004005). Please check the logfile () for details.
                abr 26 15:56:58 k4ucs systemd[1]: kopano-gateway.service: Main process exited, code=exited, status=1/FAILURE
                abr 26 15:56:58 k4ucs systemd[1]: kopano-gateway.service: Unit entered failed state.
                abr 26 15:56:58 k4ucs systemd[1]: kopano-gateway.service: Failed with result 'exit-code'.
                

                Rebboting the server, as been done before but going to do it again …

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

                  @fbartels , ok nothing seems to work, so I’m reverting the VM to a previous restore point, and going to do it all over …

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

                    @fbartels ,

                    Just a very quick update !!!

                    It seems that everything I try fails.

                    I’ve reverted the VM to a previous state, on 8.6.x, all working.

                    I’ve run the ‘kopano-dbadm k-1216’ , previously and after the upgrade, got some issues with Kopano-Server, and run ‘kopano-dbadm usmp’ , and the kopano-server started, but kopano-gateway it won’t, even after running the script.

                    If you have some ‘steps’ that I should run to give you more info about this upgrade, please let me know.

                    I’ll continue this on Monday, please have a nice weekend.

                    Regards.
                    JG

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

                      Hi @jasgggit ,

                      as you’ve already been in contact with our support please sort this out with them. It’s not entirely clear to me which steps you are taking.

                      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
                      • jasgggit
                        jasgggit last edited by

                        @fbartels
                        Thank you for your reply.

                        I’ve tried today with the new version 8.7.1 but still with no luck of making the ‘kopano-gateway’ to start.

                        As per your suggestion, I’ve sent an email to info at kopano dot com, let’s see if they reply.

                        Regards.

                        JG

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