[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
noreply at kolab.org
Fri Mar 27 18:48:04 CET 2015
Bug ID: 4925
Summary: PHP Warning: Error writing to log file logs//errors;
Please check permissions in
hp on line 1336
Classification: Kolab Server
Product: Kolab Server
OS: Debian Wheezy
Assignee: packaging-bugs at lists.kolabsys.com
Reporter: kretz at kde.org
Ticket Type: ---
- 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:
[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
[17:36] <Vir> so maybe the logging code needs a change to become independent of
[17:38] <timotheus> but it works on CentOS. so it is probably something related
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the packaging-bugs