[packaging] [Bug 4925] New: PHP Warning: Error writing to log file logs//errors; Please check permissions in /usr/share/roundcubemail/program/lib/Roundcube/rcube.php on line 1336

Kolab Bugzilla noreply at kolab.org
Fri Mar 27 18:48:04 CET 2015


https://issues.kolab.org/show_bug.cgi?id=4925

            Bug ID: 4925
           Summary: PHP Warning:  Error writing to log file logs//errors;
                    Please check permissions in
                    /usr/share/roundcubemail/program/lib/Roundcube/rcube.p
                    hp on line 1336
    Classification: Kolab Server
           Product: Kolab Server
           Version: unspecified
          Hardware: PC
                OS: Debian Wheezy
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: packaging
          Assignee: packaging-bugs at lists.kolabsys.com
          Reporter: kretz at kde.org
       Ticket Type: ---

Setup:
- Ubuntu LTS 14.04.2 Host system
- Debian 7.8 LXC container
- Debian packages from http://obs.kolabsys.com/repositories/Kolab:/

The log file /var/log/roundcubemail/error is correctly created but logs:
PHP Warning:  Error writing to log file logs//errors; Please check permissions
in /usr/share/roundcubemail/program/lib/Roundcube/rcube.php on line 1336

After setting $config['log_dir'] in /etc/roundcubemail/config.inc.php to
'/var/log/roundcubemail/' instead of 'logs/' the error message goes away and I
got more files in /var/log/roundcubemail/ besides 'error' and 'userlogins'.
After an IRC chat with timotheus, it appears to be a packaging issue.

IRC log for reference:
[17:27] <Vir> I needed the following diff for roundcube to log correctly:
https://paste.kde.org/pizjbwhhp 
[17:28] <Vir> is there a way to fix this upstream? I guess hardcoding /var/log/
is not the way to go?
[17:28] <timotheus> for me logs is a symbolic link to /var/log/roundcube
[17:28] <timotheus> mail
[17:29] <Vir> after normal installation via packages?
[17:29] <Vir> so it's a debian packaging issue?
[17:29] <timotheus> on CentOS7
[17:29] <timotheus> I can have a quick look on my debian test machine
[17:30] <timotheus> on Development it works the same, symbolic link to
/usr/share/roundcubemail/logs => /var/log/roundcubemail
[17:31] <timotheus> on Debian
[17:31] <timotheus> I guess for Kolab3.4 it should be the same
[17:31] <timotheus> what is your /usr/share/roundcubemail/logs?
[17:31] <timotheus> does it exist?
[17:31] <Vir> you're right, the link is there
[17:31] <Vir> still, logging didn't completely work. The error file was there
and logged that the logs directory wasn't usable
[17:32] <Vir> PHP Warning:  Error writing to log file logs//errors; Please
check permissions in /usr/share/roundcubemail/program/lib/Roundcube/rcube.php
on line 1336
[17:32] <timotheus> I think I needed to chown the errors file
[17:32] <Vir> it's all www-data here
[17:34] <Vir> i.e. errors and userlogins were there and logging. But I enabled
sendmail and smtp logging and they didn't show up until I changed the path
[17:35] <Vir> and the error message about the path was fixed with it. Seems
like the CWD is not /usr/share/roundcubemail then.
[17:35] <timotheus> sometimes it is /usr/share/roundcubemail/public_html I
think
[17:36] <Vir> so maybe the logging code needs a change to become independent of
the CWD
[17:38] <timotheus> but it works on CentOS. so it is probably something related
to packaging

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kolabsys.com/pipermail/packaging-bugs/attachments/20150327/0e0aebfd/attachment.htm>


More information about the packaging-bugs mailing list