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

    The configured LOGFILE can not be modified.

    Synchronising (mobile) devices via Z-Push
    6
    24
    2371
    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.
    • fbartels
      fbartels Kopano last edited by

      needs more info:

      • how did you try to install?
      • which os?

      the obvious thing should be to allow your webserver write access to /var/log/z-push, but this should have been done by the packages automatically.

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

        Thank you for your reply and Merry Christmas :-)

        OS: Debian 9

        I installed it over apt-get as described here: https://wiki.z-hub.io/display/ZP/Installation

        I was wondering also why the Rights are not assigned after i installed it over the packet manager (apt-get).

        Best Regards

        Daniel

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

          So the issue is gone after using packages? In case you are using Apache, did you install the Apache config package?

          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/

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

            @fbartels no, sorry for the bad explanation. I installed it over apt-get but have this problem (still).

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

              Can you show which packages you have actually installed? (e.g. dpkg - l | grep z-push)

              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/

              BMWfan 1 Reply Last reply Reply Quote 0
              • itserv
                itserv last edited by itserv

                This should be a simple one.

                Make sure the directory defined in /etc/z-push/z-push.conf.php is writeable by your webserver, and remove (or chown) the files in the directory to www-data:www-data.

                Here is my setting:

                root@exchange64:~# grep -n LOGFILE /etc/z-push/z-push.conf.php 
                110:    // The data will be saved into a dedicated file per user in the LOGFILEDIR
                121:    define('LOGFILEDIR', '/var/log/z-push/');
                122:    define('LOGFILE', LOGFILEDIR . 'z-push.log');
                123:    define('LOGERRORFILE', LOGFILEDIR . 'z-push-error.log');
                

                and

                root@exchange64:~# ls -al /var/log/z-push/
                total 213396
                drwx------  2 www-data www-data      4096 Oct  5 09:33 .                       <---- This is critical
                drwxr-xr-x 12 root     root          4096 Aug 30 06:25 ..
                -rwx------  1 www-data www-data      2131 Nov  6 10:53 autodiscover-error.log
                -rwx------  1 www-data www-data     17162 Nov  6 10:53 autodiscover.log
                -rwx------  1 www-data www-data  56271690 Oct  5 15:31 spam-54b5b86d397d4a7285ff1f6ee601b834.log
                -rwx------  1 www-data www-data   8397562 Nov 12 10:29 spam.log
                -rwx------  1 www-data www-data 112765363 Dec 28 11:59 spam-nine0c2f371d7682.log
                -rwx------  1 www-data www-data    245208 Dec 28 11:58 z-push-error.log
                -rwx------  1 www-data www-data       786 Aug 30 06:07 z-push-error.log.1.gz
                -rwx------  1 www-data www-data       649 Aug 28 14:31 z-push-error.log.2.gz
                -rwx------  1 www-data www-data       534 Aug 27 14:33 z-push-error.log.3.gz
                -rwx------  1 www-data www-data      1400 Aug 25 17:31 z-push-error.log.4.gz
                -rwx------  1 www-data www-data  40485152 Dec 28 12:02 z-push.log
                -rwx------  1 www-data www-data     50794 Aug 30 06:24 z-push.log.1.gz
                -rwx------  1 www-data www-data     61992 Aug 29 06:22 z-push.log.2.gz
                -rwx------  1 www-data www-data     55466 Aug 28 06:24 z-push.log.3.gz
                -rwx------  1 www-data www-data     24586 Aug 27 06:24 z-push.log.4.gz
                
                1 Reply Last reply Reply Quote 0
                • BMWfan
                  BMWfan @fbartels last edited by

                  @fbartels said in The configured LOGFILE can not be modified.:

                  dpkg - l | grep z-push

                  ii  z-push-autodiscover                        2.4.5+0-0                                  all          Z-Push autodiscover
                  ii  z-push-backend-kopano                      2.4.5+0-0                                  all          Z-Push Kopano backend
                  ii  z-push-common                              2.4.5+0-0                                  all          open source implementation of the ActiveSync protocol
                  ii  z-push-config-apache                       2.4.5+0-0                                  all          Z-Push apache configuration
                  ii  z-push-ipc-sharedmemory                    2.4.5+0-0                                  all          Z-Push ipc shared memory provider
                  ii  z-push-kopano                              2.4.5+0-0                                  all          Z-Push for Kopano
                  
                  1 Reply Last reply Reply Quote 0
                  • A Former User
                    A Former User last edited by

                    Daniel,

                    try to run this commands:

                    chmod 755 /var/lib/z-push /var/log/z-push
                    chown www-data:www-data /var/lib/z-push /var/log/z-push

                    Now restart apache2 and see if it works.

                    BMWfan 1 Reply Last reply Reply Quote 0
                    • BMWfan
                      BMWfan @Guest last edited by BMWfan

                      @WalterHof i’ve already done this and it works, but i think fbartels wants to find out the reason why its not setting the rights automatically.

                      Nevertheless, thanks for your help.

                      1 Reply Last reply Reply Quote 0
                      • A Former User
                        A Former User last edited by

                        Daniel,

                        this is an already known bug, I reported this bug many months ago - but it was not fixed up to today. I see this bug on every new installation and sometimes with upgrades.

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

                          I have to disagree on the “known bug”. I see no problems with our packaging when deploying a fresh test system. I was therefore more searching for the “bug” in user behaviour ;-)

                          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
                          • A Former User
                            A Former User last edited by

                            I see this on most installations and sometimes with upgrades.

                            1 Reply Last reply Reply Quote 0
                            • A Former User
                              A Former User last edited by

                              Forgotten,
                              I fix this with the two lines mentioned above, so for me it is not longer an issue.

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

                                This is btw the place where the packaging sets these permissions (for Debian based platforms): https://stash.z-hub.io/projects/ZP/repos/z-push/browse/build/deb/debian.z-push-config-apache.postinst#27-36,43-44

                                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/

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

                                  For me is the problem fixed, but nevertheless it was not functioning inbetween of the installation process.

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

                                    @WalterHof said in The configured LOGFILE can not be modified.:

                                    chown www-data:www-data /var/lib/z-push /var/log/z-push

                                    same for me : new installation -> Debian 9

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

                                      @mcdaniels Can you show which packages you have actually installed? (e.g. dpkg - l | grep z-push)

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

                                        @fbartels
                                        sure:
                                        z-push-backend-kopano 2.5.1+0-0
                                        z-push-common 2.5.1+0-0
                                        z-push-config-apache 2.5.1+0-0
                                        z-push-ipc-sharedmemory 2.5.1+0-0
                                        z-push-kopano 2.5.1+0-0

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

                                          @mcdaniels in that case you should not have had the need to chown the directory, as this action is part of the postinst action of z-push-config-apache.

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

                                            @fbartels: Strange, but the errormessage while installing via apt-get was the same as mentioned in this thread. Did the chown. It is working now.

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