core icon indicating copy to clipboard operation
core copied to clipboard

unlink() error in log after executing cronjob

Open edgeHB opened this issue 11 years ago • 10 comments

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

edgeHB avatar Feb 19 '15 19:02 edgeHB

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?

oparoz avatar Feb 23 '15 12:02 oparoz

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

edgeHB avatar Feb 24 '15 10:02 edgeHB

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

DeepDiver1975 avatar Feb 24 '15 10:02 DeepDiver1975

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

icewind1991 avatar Feb 24 '15 14:02 icewind1991

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

oparoz avatar Feb 24 '15 14:02 oparoz

Why does it put preferences in our tmp dir?

icewind1991 avatar Feb 24 '15 15:02 icewind1991

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.

oparoz avatar Feb 24 '15 19:02 oparoz

Let's keep open until fixed in stable8 branch

DeepDiver1975 avatar Feb 25 '15 14:02 DeepDiver1975

stable8: e82f30c

DeepDiver1975 avatar Feb 26 '15 15:02 DeepDiver1975

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.

lock[bot] avatar Aug 02 '19 18:08 lock[bot]