You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Misleading log message in logfile after setup: touch() unabe to create file owncloud.log #12893
Operating system: Ubuntu Server 14.04.1 LTS Web server: Apache 2.4.9 (Ubuntu) Database: MariaDB 10.0.14 PHP version: 5.5.9 ownCloud version: 7.0.3 / 7.0.4 Updated from an older ownCloud or fresh install: fresh install
List of activated apps:
default apps from community edition
The content of config/config.php:
Pristine config.php as written by setup
Are you using external storage, if yes which one: none
Are you using encryption: no
Client configuration
(among others): Browser: Firefox 34.05 Operating system: Windows 8.1
Logs
Web server error log
nothing related
ownCloud log (data/owncloud.log)
{"app":"PHP","message":"touch(): Unable to create file \/www\/owncloud\/data\/owncloud.log because No such file or directory at \/www\/owncloud\/lib\/private\/log\/owncloud.php#49","level":3,"time":"2014-11-19T18:36:08+00:00"}
I agree that it's not important, just wanted to have it documented. Maybe a junior job? Or maybe I'll get around to look into this myself at some point ;)
The solution is to create a "data" directory within your Windows owncloud directory. For whatever reason, that directory doesn't exist but it's the directory where Owncloud expects to find the log.
I am also seeing this issue, it seems to happen when I have any logging settings (like log type or log file) in the config.php -- if I just remove them entirely (so as to use the defaults) it seems to work -- most of the time at least.
Activity
karlitschek commentedon Dec 17, 2014
@icewind1991 What do you think?
DeepDiver1975 commentedon Dec 17, 2014
while this is not really meaningful - not really a critical issue. let's have a look at this some point in time.
RandolfCarter commentedon Dec 17, 2014
I agree that it's not important, just wanted to have it documented. Maybe a junior job? Or maybe I'll get around to look into this myself at some point ;)
Redbot commentedon Feb 17, 2015
I fixed it by moving the log file off of my external drive.
in config.php,
'logfile' => '/var/www/owncloud/log/owncloud.log',
chown www-data:www-data to the log directory as well.
I believe this may be due to "touch" returning permission denied on external drives. Moving to an internal drive fixed the problem.
l3iggs commentedon Mar 23, 2015
I'm seeing this issue. I'm not using an external drive.
mobamoba commentedon May 9, 2015
The solution is to create a "data" directory within your Windows owncloud directory. For whatever reason, that directory doesn't exist but it's the directory where Owncloud expects to find the log.
extide commentedon Jun 19, 2015
I am also seeing this issue, it seems to happen when I have any logging settings (like log type or log file) in the config.php -- if I just remove them entirely (so as to use the defaults) it seems to work -- most of the time at least.
MorrisJobke commentedon Jan 20, 2016
This error is gone, but there is now a new one - see #13736
MartinMajewski commentedon Feb 2, 2016
Seeing this issue as well on my Qnap TS453S Pro with MariaDB and owncloud installed from AppCenter repository
lock commentedon Aug 6, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.