Skip to content

Misleading log message in logfile after setup: touch() unabe to create file owncloud.log #12893

Closed

Description

@RandolfCarter

Steps to reproduce

  1. Set up a new owncloud installation
  2. Check the owncloud.log

Expected behaviour

No log entries, or at least none indicating any problem if everything went ok.

Actual behaviour

Even if everything went perfectly, there is a message stating that the log file could not be written (in the logfile itself) - quite the paradox ;) (see below for message).
Also reported here: https://forum.owncloud.org/viewtopic.php?f=21&t=25393

Server configuration

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"}

Browser log

nothing relevant

Activity

  1. karlitschek commented on Dec 17, 2014

    @karlitschek
    Contributor

    @icewind1991 What do you think?

  2. DeepDiver1975 commented on Dec 17, 2014

    @DeepDiver1975
    Contributor

    while this is not really meaningful - not really a critical issue. let's have a look at this some point in time.

  3. RandolfCarter commented on Dec 17, 2014

    @RandolfCarter
    ContributorAuthor

    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 ;)

  4. Redbot commented on Feb 17, 2015

    @Redbot

    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.

  5. l3iggs commented on Mar 23, 2015

    @l3iggs

    I'm seeing this issue. I'm not using an external drive.

  6. mobamoba commented on May 9, 2015

    @mobamoba

    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.

  7. extide commented on Jun 19, 2015

    @extide

    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.

  8. MorrisJobke commented on Jan 20, 2016

    @MorrisJobke
    Contributor

    This error is gone, but there is now a new one - see #13736

  9. MartinMajewski commented on Feb 2, 2016

    @MartinMajewski

    Seeing this issue as well on my Qnap TS453S Pro with MariaDB and owncloud installed from AppCenter repository

  10. lock commented on Aug 6, 2019

    @lock

    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.

  11. locked as resolved and limited conversation to collaborators on Aug 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions