Module 'apcu' already loaded at Unknown#0

10

#1

Hello, my log contains a lot of these:
{“reqId”:“3fc84600-0e0e-4add-a455-051e0cadce5b”,“level”:3,“time”:“2018-10-02T20:27:47+02:00”,“remoteAddr”:“192.168.2.1”,“user”:“raspy”,“app”:“PHP”,“method”:“PROPFIND”,“url”:"/owncloud/remote.php/dav/files/raspy/",“message”:“Module ‘apcu’ already loaded at Unknown#0”}

Is this supposed to happen?

Server configuration

Operating system:

Web server:
Server version: Apache/2.4.25 (Raspbian)

Database:
mysql Ver 15.1 Distrib 10.1.23-MariaDB, for debian-linux-gnueabihf (armv7l) using readline 5.2

PHP version:
PHP 7.0.30-0+deb9u1

ownCloud version: (see ownCloud admin page)
ownCloud 10.0.10 (stable)

Updated from an older ownCloud or fresh install:
fresh install

Where did you install ownCloud from:
https://download.owncloud.org/download/repositories/10.0/Debian_9.0/

Signing status (ownCloud 9.0 and above):

No errors have been found.

The content of config/config.php:

<?php
$CONFIG = array (
  'updatechecker' => false,
  'instanceid' => '***REMOVED SENSITIVE VALUE***',
  'passwordsalt' => '***REMOVED SENSITIVE VALUE***',
  'secret' => '***REMOVED SENSITIVE VALUE***',
  'trusted_domains' =>
  array (
    0 => 'myhostname',
  ),
  'datadirectory' => '/var/local/owncloud_data',
  'overwrite.cli.url' => 'https://myhostname/owncloud',
  'htaccess.RewriteBase' => '/owncloud',
  'dbtype' => 'mysql',
  'version' => '10.0.10.4',
  'dbname' => 'owncloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'Admin',
  'dbpassword' => '***REMOVED SENSITIVE VALUE***',
  'logtimezone' => 'Europe/Berlin',
  'installed' => true,
  'maintenance' => false,
  'enable_previews' => false,
  'filelocking.enabled' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\APCu',
  'updater.secret' => '***REMOVED SENSITIVE VALUE***',
  'loglevel' => 2,
);

List of activated apps:

  - configreport: 0.1.1
  - dav: 0.4.0
  - encryption: 1.3.1
  - federatedfilesharing: 0.3.1
  - files: 1.5.1
  - files_external: 0.7.1
  - files_sharing: 0.11.0
  - files_trashbin: 0.9.1
  - files_versions: 1.3.0
  - firstrunwizard: 1.1
  - market: 0.2.5
  - notifications: 0.3.5
  - updatenotification: 0.2.1

Are you using external storage, if yes which one:
no

Are you using encryption:
yes

Are you using an external user-backend, if yes which one:
I don’t think so.

Client configuration

Browser:
Firefox 62.0.2 (64-bit)

Operating system:
Windows 10

Logs

Web server error log

Insert your webserver log here

ownCloud log (data/owncloud.log)

{"reqId":"0469eeae-6773-4e08-ae42-d8a3c3b39e29","level":3,"time":"2018-10-03T13:51:52+02:00","remoteAddr":"192.168.1.4","user":"--","app":"PHP","method":"GET","url":"\/owncloud\/status.php","message":"Module 'apcu' already loaded at Unknown#0"}
{"reqId":"6ea74006-e2ea-4827-b680-6acf520ecae3","level":3,"time":"2018-10-03T13:51:54+02:00","remoteAddr":"192.168.1.4","user":"User1","app":"PHP","method":"GET","url":"\/owncloud\/ocs\/v1.php\/config?format=json","message":"Module 'apcu' already loaded at Unknown#0"}
{"reqId":"e68d6773-1c3d-49c5-8eea-5267d3322b39","level":3,"time":"2018-10-03T13:52:23+02:00","remoteAddr":"192.168.1.4","user":"User1","app":"PHP","method":"PROPFIND","url":"\/owncloud\/remote.php\/dav\/files\/User1\/","message":"Module 'apcu' already loaded at Unknown#0"}
{"reqId":"3dae9c31-e6ff-46be-8abc-884072880068","level":3,"time":"2018-10-03T13:52:49+02:00","remoteAddr":"192.168.1.4","user":"User1","app":"PHP","method":"PROPFIND","url":"\/owncloud\/remote.php\/dav\/files\/User1\/","message":"Module 'apcu' already loaded at Unknown#0"}
{"reqId":"08b5349f-d49a-4227-a4d5-e058c54cff3a","level":3,"time":"2018-10-03T13:53:19+02:00","remoteAddr":"192.168.1.4","user":"User1","app":"PHP","method":"PROPFIND","url":"\/owncloud\/remote.php\/dav\/files\/User1\/","message":"Module 'apcu' already loaded at Unknown#0"}
{"reqId":"083808e0-ada1-4478-8be1-15c71e798dc8","level":3,"time":"2018-10-03T13:53:49+02:00","remoteAddr":"192.168.1.4","user":"User1","app":"PHP","method":"PROPFIND","url":"\/owncloud\/remote.php\/dav\/files\/User1\/","message":"Module 'apcu' already loaded at Unknown#0"}
{"reqId":"121cff83-6b6e-4892-b994-4ec54a1059ee","level":3,"time":"2018-10-03T13:54:19+02:00","remoteAddr":"192.168.1.4","user":"User1","app":"PHP","method":"PROPFIND","url":"\/owncloud\/remote.php\/dav\/files\/User1\/","message":"Module 'apcu' already loaded at Unknown#0"}
{"reqId":"4b0bcec6-24c7-4596-a37f-d9c2cc5878ca","level":3,"time":"2018-10-03T14:24:19+02:00","remoteAddr":"192.168.1.4","user":"User1","app":"PHP","method":"PROPFIND","url":"\/owncloud\/remote.php\/dav\/files\/User1\/","message":"Module 'apcu' already loaded at Unknown#0"}
{"reqId":"Ppias2Vi8Hwc0vnQOevc","level":3,"time":"2018-10-03T14:24:30+02:00","remoteAddr":"192.168.1.4","user":"Admin","app":"PHP","method":"POST","url":"\/owncloud\/login","message":"Module 'apcu' already loaded at Unknown#0"}
{"reqId":"y07x8H0ueSa2n6LdHglq","level":3,"time":"2018-10-03T14:24:31+02:00","remoteAddr":"192.168.1.4","user":"Admin","app":"PHP","method":"GET","url":"\/owncloud\/core\/js\/oc.js?v=8232ddba4e98d8a686382a7a48209433","message":"Module 'apcu' already loaded at Unknown#0"}
{"reqId":"lJqrJnZXYliQh0hk38eR","level":3,"time":"2018-10-03T14:24:37+02:00","remoteAddr":"192.168.1.4","user":"Admin","app":"PHP","method":"GET","url":"\/owncloud\/avatar\/Admin\/145","message":"Module 'apcu' already loaded at Unknown#0"}

Browser log

I do not know where to find it.


#2

Hey,

i think this could be something which is wrong in your PHP configuration where the named module is loaded twice.


#3

Thank you tom42,

I added

[APC]
apc.enabled=1

to /etc/php/7.0/apache2/php.ini (/etc/php/7.0/cli/php.ini does not have this entry).

but only after I found these log entries. These are the only entries with ‘apc’ in it.

Do you have any suggestions as to where the module might be loaded?


#4

Hey,

personally when having such issue it would have a look at the PHP manual to get the knowledge how PHP is loading its modules and then apply that knowledge to see where and why it is loading it twice.

It could be also possible that it is something specific to your used linux, then it could be also possible that you can find some background information when using a search engine to search for this error.


#5

Got it: If you have a problem, don’t ask, read a book. Thank you, I’ll pass on that wisdom.


#6

Hey,

i think the main problem is that every environment is different and this issue can have that much origins that it is hard to tell specifically what you need to do. :confused:

With the knowledge in mind that the main topic of this forum is user support for ownCloud and not PHP i’m not sure if there are that much people able to tell you exactly what to do. :confused:

But as PHP is widely used searching a little bit around brings various topics like: