Skip to content

unlink() error in log after executing cronjob #14389

Closed

Description

@edgeHB

Steps to reproduce

  1. Can't say :(

Expected behaviour

No error after cronjob

Actual behaviour

Exactly 1 sec. after executing the 15min-cronjob, there appears the following error-msg:

(...)"unlink(\/tmp\/owncloud-ocpygo73d442\/user): Is a directory at \/var\/www\/owncloud\/lib\/private\/cache\/fileglobal.php#107","level":3,(...)

Server configuration

Operating system: Ubuntu 14.04.1 LTS

Web server: Apache/2.4.7

Database: MySQL 5.5.41

PHP version: PHP 5.5.9

ownCloud version: 8.0 (stable)

Updated from an older ownCloud or fresh install: fresh

List of activated apps:
Activity 1.2.0
Bookmarks 0.4
Deleted files 0.6.2
Documents 0.9.0
External storage support 0.2.3
File Locking
First Run Wizard 1.1
Full Text Search 0.6.0
Mail Template Editor 0.1
PDF Viewer 0.7
Pictures 0.6.0
Provisioning API 0.2
Server-side Encryption 0.7.1
Share Files 0.6.0
Text Editor 0.4
Updater 0.4
Versions 1.0.5
Video Viewer 0.1.3

The content of config/config.php:

  'instanceid' => '<edit>',
  'passwordsalt' => '*** Removed for security reasons',
  'secret' => '<edit>',
  'trusted_domains' =>
  array (
    0 => '<edit>.de',
    1 => 'www.<edit>.de',
  ),
  'datadirectory' => '/home/owncloud-data',
  'overwrite.cli.url' => 'https://<edit>.de',
  'dbtype' => 'mysql',
  'version' => '8.0.0.7',
  'dbname' => '<edit>',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => '<edit>',
  'dbpassword' => '*** Removed for security reasons',
  'installed' => true,
  'forcessl' => true,
  'forceSSLforSubdomains' => true,
  'loglevel' => 1,
  'preview_libreoffice_path' => '/usr/bin/libreoffice',
  'enabledPreviewProviders' =>
  array (
    0 => 'OC\\Preview\\Image',
    1 => 'OC\\Preview\\MP3',
    2 => 'OC\\Preview\\TXT',
    3 => 'OC\\Preview\\MarkDown',
    4 => 'OC\\Preview\\Movies',
    5 => 'OC\\Preview\\MSOffice2003',
    6 => 'OC\\Preview\\MSOffice2007',
    7 => 'OC\\Preview\\MSOfficeDoc',
    8 => 'OC\\Preview\\OpenDocument',
    9 => 'OC\\Preview\\PDF',
  ),
  'mail_from_address' => 'do-not-reply',
  'mail_smtpmode' => 'php',
  'mail_domain' => '<edit>.de',

Are you using external storage, if yes which one: activated but none connected

Are you using encryption: yes

Client configuration

Browser: Chrome 40

Operating system: Win8.1

Logs

Web server error log

no errors in apache.log or errors.log

ownCloud log (data/owncloud.log)

Last Lines:


{"reqId":"8e2a68323e78dddbc2e854c1191bcb5d","remoteAddr":"","app":"PHP","message":"unlink(\/tmp\/owncloud-ocpygo73d442\/user): Is a directory at \/var\/www\/owncloud\/lib\/private\/cache\/fileglobal.php#107","level":3,"time":"2015-02-19T17:45:02+00:00"}
{"reqId":"650e50a17936b468d66027fa65664f10","remoteAddr":"","app":"PHP","message":"unlink(\/tmp\/owncloud-ocpygo73d442\/user): Is a directory at \/var\/www\/owncloud\/lib\/private\/cache\/fileglobal.php#107","level":3,"time":"2015-02-19T18:00:02+00:00"}
{"reqId":"39f9533bb129cb4ea66636616f99cb0c","remoteAddr":"","app":"PHP","message":"unlink(\/tmp\/owncloud-ocpygo73d442\/user): Is a directory at \/var\/www\/owncloud\/lib\/private\/cache\/fileglobal.php#107","level":3,"time":"2015-02-19T18:15:02+00:00"}
{"reqId":"704fd1a9b059f21b7d122750aba8e449","remoteAddr":"","app":"PHP","message":"unlink(\/tmp\/owncloud-ocpygo73d442\/user): Is a directory at \/var\/www\/owncloud\/lib\/private\/cache\/fileglobal.php#107","level":3,"time":"2015-02-19T18:30:01+00:00"}
{"reqId":"cc53d7f685c9bd7562122648903c0303","remoteAddr":"<IP edited>","app":"core","message":"Invalid OCS content returned for app files_external","level":4,"time":"2015-02-19T18:37:49+00:00"}
{"reqId":"4dfe813a7218dbb47e97cfef2905b328","remoteAddr":"","app":"PHP","message":"unlink(\/tmp\/owncloud-ocpygo73d442\/user): Is a directory at \/var\/www\/owncloud\/lib\/private\/cache\/fileglobal.php#107","level":3,"time":"2015-02-19T18:45:01+00:00"}
{"reqId":"a42482d0601843687934526f98f9a15b","remoteAddr":"","app":"PHP","message":"unlink(\/tmp\/owncloud-ocpygo73d442\/user): Is a directory at \/var\/www\/owncloud\/lib\/private\/cache\/fileglobal.php#107","level":3,"time":"2015-02-19T19:00:02+00:00"}
{"reqId":"58add03c89ee620f72afad3bcea91245","remoteAddr":"","app":"PHP","message":"unlink(\/tmp\/owncloud-ocpygo73d442\/user): Is a directory at \/var\/www\/owncloud\/lib\/private\/cache\/fileglobal.php#107","level":3,"time":"2015-02-19T19:15:02+00:00"}

Activity

  1. oparoz commented on Feb 23, 2015

    @oparoz
    Contributor

    I'm affected as well, but never worried as Libreoffice stores its config in there.

    @edgeHB - Is there something in that folder besides the user folder?

  2. edgeHB commented on Feb 24, 2015

    @edgeHB
    Author

    Hey @oparoz there is nothing in that folder besides the "user" folder.

  3. DeepDiver1975 commented on Feb 24, 2015

    @DeepDiver1975
    Contributor

    @icewind1991 global file cache fun - mind taking a quick look? THX

  4. icewind1991 commented on Feb 24, 2015

    @icewind1991
    Contributor

    I cant find anyway a folder would be created in the cache folder..

  5. oparoz commented on Feb 24, 2015

    @oparoz
    Contributor

    Open/LibreOffice put their preferences there. It's not created by oC

  6. icewind1991 commented on Feb 24, 2015

    @icewind1991
    Contributor

    Why does it put preferences in our tmp dir?

  7. oparoz commented on Feb 24, 2015

    @oparoz
    Contributor

    Because otherwise, only the first oC instance which uses LibreOffice would be able to convert files, the others would not be able to access the user preferences and will fail. This is a problem for web hosts offering oC as part of their services.

  8. added this to the milestone on Feb 25, 2015
  9. DeepDiver1975 commented on Feb 25, 2015

    @DeepDiver1975
    Contributor

    Let's keep open until fixed in stable8 branch

  10. DeepDiver1975 commented on Feb 26, 2015

    @DeepDiver1975
    Contributor

    stable8: e82f30c

  11. lock commented on Aug 2, 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.

  12. locked as resolved and limited conversation to collaborators on Aug 2, 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

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions