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 2.4.0 - nginx configuration file

    General usage of Z-Push
    5
    24
    6721
    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.
    • milauria
      milauria last edited by milauria

      Hi manfred,
      seems to be the file owner the problem, not the file group

      The /var/lib/z-push owner needs to be “nginx”. The z-push install I think defaults the owner as “root” and in that case I get the below fatal error. After I did the “chown nginx” the error went away.

      [FATAL] Exception: (FatalMisconfigurationException) - Not possible to write to the configured state directory.
      [FATAL] FatalMisconfigurationException: Not possible to write to the configured state directory. - code: 0 - file: /usr/share/z-push/lib/default/filestatemachine.php:63

      Similarly /var/log/z-push needs to owned by nginx AND needs to be writable only by the user.
      The error I get: “parent directory has insecure permissions (It’s world writable or writable by group which is not “root”)”
      I also removed altogether the “create” statement in the z-push.lr so that every new log is created with the same folder permission

      Cheers

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

        Hi milauria,

        could you post the output of

        groups nginx
        

        ?

        With the current spec file configuration it’s not so trivial to change the ownership to user nginx. That’s why we introduced the z-push group which has the right permissions.

        Manfred

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

          groups nginx
          nginx : nginx z-push

          thanks for looking into this

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

            Just to report that I have installed 2.4.1 final and all works fine with the only modification needed for the /var/log that I had to change as follow:

            drwxr-x—. 2 nginx z-push 4096 Apr 11 19:21 z-push

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