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

    Z-Push delivers only empty responses

    Z-Push when using Kopano
    3
    3
    211
    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.
    • A Former User
      A Former User last edited by

      Hello everyone,

      my Z-Push installation with Kopano backend delivers only empty responses. Kopano (inkl. WebApp) works perfectly fine for me.

      Request URL: https://domain.com/Microsoft-Server-ActiveSync
      Request Method: GET
      Status Code: 200 OK
      Remote Address: ip:443
      Referrer Policy: no-referrer-when-downgrade
      Connection: keep-alive
      Content-Encoding: gzip
      Content-Type: text/html; charset=UTF-8
      Date: Wed, 08 Jan 2020 11:50:16 GMT
      Server: nginx/1.16.1
      Transfer-Encoding: chunked
      

      I installed Kopano and Z-Push via apt (Buster testing = Bullseye) on Debian, the following packages are installed:

      kopano-archiver/testing,now 8.7.0-5+b1 amd64 [installed]
      kopano-backup/testing,now 8.7.0-5 all [installed]
      kopano-common/testing,now 8.7.0-5 all [installed]
      kopano-contacts/testing,now 8.7.0-5+b1 amd64 [installed,automatic]
      kopano-core/testing,now 8.7.0-5 all [installed]
      kopano-dagent/testing,now 8.7.0-5+b1 amd64 [installed,automatic]
      kopano-gateway/testing,now 8.7.0-5+b1 amd64 [installed,automatic]
      kopano-ical/testing,now 8.7.0-5+b1 amd64 [installed,automatic]
      kopano-libs/testing,now 8.7.0-5+b1 amd64 [installed,automatic]
      kopano-monitor/testing,now 8.7.0-5+b1 amd64 [installed]
      kopano-search/testing,now 8.7.0-5 all [installed]
      kopano-server/testing,now 8.7.0-5+b1 amd64 [installed,automatic]
      kopano-spamd/testing,now 8.7.0-5 all [installed]
      kopano-spooler/testing,now 8.7.0-5+b1 amd64 [installed,automatic]
      kopano-utils/testing,now 8.7.0-5+b1 amd64 [installed,automatic]
      kopano-webapp-common/testing,now 3.5.14+dfsg1.orig-1 all [installed,automatic]
      kopano-webapp-files/testing,now 2.1.5+dfsg1-1 all [installed]
      kopano-webapp-folderwidgets/testing,now 3.5.14+dfsg1.orig-1 all [installed]
      kopano-webapp-nginx/testing,now 3.5.14+dfsg1.orig-1 all [installed]
      kopano-webapp-pimfolder/testing,now 3.5.14+dfsg1.orig-1 all [installed]
      kopano-webapp-zdeveloper/testing,now 3.5.14+dfsg1.orig-1 all [installed]
      python3-kopano/testing,now 8.7.0-5 all [installed,automatic]
      z-push-backend-kopano/testing,now 2.5.1-1 all [installed]
      z-push-common/testing,now 2.5.1-1 all [installed]
      

      /etc/z-push/z-push.conf.php standard settings except

      define('BACKEND_PROVIDER', 'BackendKopano');
      

      /etc/z-push/kopano.conf.php standard settings except

      define('MAPI_SERVER', 'http://localhost:236/kopano');
      

      /etc/z-push/autodiscover.conf.php standard settings except

      define('BACKEND_PROVIDER', 'BackendKopano');
      

      The requests are logged in /var/log/nginx/z-push-access.log with HTTP status 200. /var/log/nginx/z-push-error.log is empty.
      z-push.log and z-push-error.log in /var/log/z-push are empty.

      /etc/nginx/sites-available/kopano-webapp.conf

      server {
          listen 443 ssl;
          [... Kopano and Kopano Konnect configuration ...]
          location /Microsoft-Server-ActiveSync {
              alias       /usr/share/z-push/index.php;
      
              access_log  /var/log/nginx/z-push-access.log;
              error_log   /var/log/nginx/z-push-error.log;
      
              # Attachments ca 15MB max (since binary data needs to be base64 encoded in mine, which results in in about 33% overhead)
              client_max_body_size 20m;
              client_body_buffer_size 128k;
      
              # Select one of the fastcgi_pass values or adapt to your configuration
              include /etc/nginx/snippets/z-push-php.conf;
          }
      
          location /AutoDiscover/AutoDiscover.xml {
              include /etc/nginx/snippets/z-push-autodiscover.conf;
              include /etc/nginx/snippets/z-push-php.conf;
          }
          location /Autodiscover/Autodiscover.xml {
              include /etc/nginx/snippets/z-push-autodiscover.conf;
              include /etc/nginx/snippets/z-push-php.conf;
          }
          location /autodiscover/autodiscover.xml {
              include /etc/nginx/snippets/z-push-autodiscover.conf;
              include /etc/nginx/snippets/z-push-php.conf;
          }
      }
      

      I have no idea how to proceed from here as there is no error or anything giving me any guidance. Hopefully someone has a hint for me.

      1 Reply Last reply Reply Quote 0
      • Manfred
        Manfred Kopano last edited by

        Hi @faulix,

        just to be sure - you are using debian’s repositories for both kopano and z-push, not kopano’s and z-hub’s?

        Besides the empty email responses - does the email, calendar, contacts sync work correctly?

        What is the LOGLEVEL value in /etc/z-push/z-push.conf.php? For the debug purposes you should set it to LOGLEVEL_WBXML and post the contents of z-push.log after responding an email.

        Which PHP version is on the system? Are you using PHP-FPM?

        Manfred

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

          There is a post of me where this is exactly explained on the forum.
          All you need todo is translate it to nginx, mine is based on apache.
          (sorry, i cant look it up atm).

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