Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unlink() error in log after executing cronjob #14389

Closed
edgeHB opened this issue Feb 19, 2015 · 10 comments · Fixed by #14500
Closed

unlink() error in log after executing cronjob #14389

edgeHB opened this issue Feb 19, 2015 · 10 comments · Fixed by #14500
Labels
Milestone

Comments

@edgeHB
Copy link

edgeHB commented Feb 19, 2015

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

@oparoz
Copy link
Contributor

oparoz commented Feb 23, 2015

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?

@edgeHB
Copy link
Author

edgeHB commented Feb 24, 2015

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

@DeepDiver1975
Copy link
Member

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

@icewind1991
Copy link
Contributor

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

@oparoz
Copy link
Contributor

oparoz commented Feb 24, 2015

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

@icewind1991
Copy link
Contributor

Why does it put preferences in our tmp dir?

@oparoz
Copy link
Contributor

oparoz commented Feb 24, 2015

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.

@DeepDiver1975
Copy link
Member

Let's keep open until fixed in stable8 branch

@DeepDiver1975
Copy link
Member

stable8: e82f30c

@lock
Copy link

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

@lock lock bot locked as resolved and limited conversation to collaborators Aug 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants