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

Illegal offset type at /var/www/nextcloud/lib/private/Cache/CappedMemoryCache.php#53 #11690

Closed
ggeorgg opened this issue Oct 8, 2018 · 2 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug

Comments

@ggeorgg
Copy link

ggeorgg commented Oct 8, 2018

Steps to reproduce

I don't know how it comes to this error.

Expected behaviour

No Errors

Actual behaviour

Errors in log file

Server configuration detail

Operating system: Linux 4.15.0-36-generic #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018 x86_64

Webserver: Apache/2.4.29 (Ubuntu) (fpm-fcgi)

Database: pgsql PostgreSQL 10.5 (Ubuntu 10.5-0ubuntu0.18.04) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0, 64-bit

PHP version:

7.2.10-0ubuntu0.18.04.1
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, sodium, session, standard, cgi-fcgi, redis, PDO, xml, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, json, ldap, exif, pdo_pgsql, pgsql, Phar, posix, readline, shmop, SimpleXML, smbclient, soap, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, libsmbclient, Zend OPcache

Nextcloud version: 14.0.1 - 14.0.1.1

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from: Official nextcloud vm script

Signing status
List of activated apps
Enabled:
 - accessibility: 1.0.1
 - activity: 2.7.0
 - calendar: 1.6.2
 - caniupdate: 0.2.0
 - cloud_federation_api: 0.0.1
 - comments: 1.4.0
 - contacts: 2.1.6
 - dav: 1.6.0
 - federatedfilesharing: 1.4.0
 - federation: 1.4.0
 - files: 1.9.0
 - files_fulltextsearch: 1.0.1
 - files_pdfviewer: 1.3.2
 - files_sharing: 1.6.2
 - files_texteditor: 2.6.0
 - files_trashbin: 1.4.1
 - files_versions: 1.7.1
 - files_videoplayer: 1.3.0
 - firstrunwizard: 2.3.0
 - fulltextsearch: 1.0.1
 - fulltextsearch_elasticsearch: 1.0.1
 - gallery: 18.1.0
 - issuetemplate: 0.4.0
 - logreader: 2.0.0
 - lookup_server_connector: 1.2.0
 - nextcloud_announcements: 1.3.0
 - notifications: 2.2.1
 - oauth2: 1.2.1
 - onlyoffice: 2.0.4
 - password_policy: 1.4.0
 - previewgenerator: 1.1.0
 - provisioning_api: 1.4.0
 - serverinfo: 1.4.0
 - sharebymail: 1.4.0
 - support: 1.0.0
 - survey_client: 1.2.0
 - systemtags: 1.4.0
 - tasks: 0.9.7
 - theming: 1.5.0
 - twofactor_backupcodes: 1.3.1
 - updatenotification: 1.4.1
 - workflowengine: 1.4.0
Disabled:
 - admin_audit
 - encryption
 - files_external
 - user_external
 - user_ldap

Configuration (config/config.php)
{
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "localhost",
        "XXX.XXX.XXX.XX",
        "cloud.example.de",
        "cloud.example.de"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "pgsql",
    "version": "14.0.1.1",
    "overwrite.cli.url": "https:\/\/cloud.georggrossmann.de\/",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpmode": "smtp",
    "log_rotate_size": "10485760",
    "memcache.local": "\\OC\\Memcache\\Redis",
    "filelocking.enabled": true,
    "memcache.distributed": "\\OC\\Memcache\\Redis",
    "memcache.locking": "\\OC\\Memcache\\Redis",
    "redis": {
        "host": "***REMOVED SENSITIVE VALUE***",
        "port": 0,
        "timeout": 0.5,
        "dbindex": 0,
        "password": "***REMOVED SENSITIVE VALUE***"
    },
    "htaccess.RewriteBase": "\/",
    "loglevel": "2",
    "log_type": "file",
    "logfile": "\/mnt\/ncdata\/nextcloud.log",
    "logtimezone": "Etc\/UTC",
    "enable_previews": true,
    "preview_libreoffice_path": "\/usr\/bin\/libreoffice",
    "maintenance": false,
    "onlyoffice": {
        "verify_peer_off": true
    },
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpauthtype": "LOGIN",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "587",
    "mail_smtpauth": 1,
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpsecure": "tls"
}

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

Are you using encryption:

Are you using an external user-backend, if yes which one: Webdav

Client configuration

Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0

Operating system: Windows 10

Logs

Browser log

Nextcloud log
{"reqId":"Wd4AujtiU1qDqUzU3wTv","level":3,"time":"2018-10-08T21:30:02+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Illegal offset type in isset or empty at \/var\/www\/nextcloud\/lib\/private\/Cache\/CappedMemoryCache.php#42","userAgent":"--","version":"14.0.1.1"}
{"reqId":"Wd4AujtiU1qDqUzU3wTv","level":3,"time":"2018-10-08T21:30:02+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Array to string conversion at \/var\/www\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/PDOStatement.php#105","userAgent":"--","version":"14.0.1.1"}
{"reqId":"Wd4AujtiU1qDqUzU3wTv","level":3,"time":"2018-10-08T21:30:02+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Illegal offset type at \/var\/www\/nextcloud\/lib\/private\/Cache\/CappedMemoryCache.php#53","userAgent":"--","version":"14.0.1.1"}
{"reqId":"Wd4AujtiU1qDqUzU3wTv","level":3,"time":"2018-10-08T21:30:02+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Illegal offset type in isset or empty at \/var\/www\/nextcloud\/lib\/private\/Cache\/CappedMemoryCache.php#42","userAgent":"--","version":"14.0.1.1"}
{"reqId":"Wd4AujtiU1qDqUzU3wTv","level":3,"time":"2018-10-08T21:30:02+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Array to string conversion at \/var\/www\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/PDOStatement.php#105","userAgent":"--","version":"14.0.1.1"}
{"reqId":"Wd4AujtiU1qDqUzU3wTv","level":3,"time":"2018-10-08T21:30:02+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Illegal offset type at \/var\/www\/nextcloud\/lib\/private\/Cache\/CappedMemoryCache.php#53","userAgent":"--","version":"14.0.1.1"}
{"reqId":"Wd4AujtiU1qDqUzU3wTv","level":3,"time":"2018-10-08T21:30:02+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Illegal offset type at \/var\/www\/nextcloud\/lib\/private\/User\/Manager.php#161","userAgent":"--","version":"14.0.1.1"}
{"reqId":"Wd4AujtiU1qDqUzU3wTv","level":3,"time":"2018-10-08T21:30:02+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Illegal offset type in isset or empty at \/var\/www\/nextcloud\/lib\/private\/User\/Manager.php#135","userAgent":"--","version":"14.0.1.1"}
{"reqId":"Wd4AujtiU1qDqUzU3wTv","level":3,"time":"2018-10-08T21:30:02+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Array to string conversion at \/var\/www\/nextcloud\/lib\/private\/User\/Database.php#336","userAgent":"--","version":"14.0.1.1"}
{"reqId":"Wd4AujtiU1qDqUzU3wTv","level":3,"time":"2018-10-08T21:30:02+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Illegal offset type at \/var\/www\/nextcloud\/lib\/private\/Cache\/CappedMemoryCache.php#73","userAgent":"--","version":"14.0.1.1"}
{"reqId":"Wd4AujtiU1qDqUzU3wTv","level":3,"time":"2018-10-08T21:30:02+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Illegal offset type in isset or empty at \/var\/www\/nextcloud\/lib\/private\/User\/Manager.php#155","userAgent":"--","version":"14.0.1.1"}
{"reqId":"Wd4AujtiU1qDqUzU3wTv","level":3,"time":"2018-10-08T21:30:02+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Illegal offset type in isset or empty at \/var\/www\/nextcloud\/lib\/private\/Cache\/CappedMemoryCache.php#42","userAgent":"--","version":"14.0.1.1"}
{"reqId":"Wd4AujtiU1qDqUzU3wTv","level":3,"time":"2018-10-08T21:30:02+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Array to string conversion at \/var\/www\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/PDOStatement.php#105","userAgent":"--","version":"14.0.1.1"}
{"reqId":"Wd4AujtiU1qDqUzU3wTv","level":3,"time":"2018-10-08T21:30:02+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Illegal offset type at \/var\/www\/nextcloud\/lib\/private\/Cache\/CappedMemoryCache.php#53","userAgent":"--","version":"14.0.1.1"}
{"reqId":"Wd4AujtiU1qDqUzU3wTv","level":3,"time":"2018-10-08T21:30:02+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Illegal offset type in isset or empty at \/var\/www\/nextcloud\/lib\/private\/Cache\/CappedMemoryCache.php#42","userAgent":"--","version":"14.0.1.1"}
{"reqId":"Wd4AujtiU1qDqUzU3wTv","level":3,"time":"2018-10-08T21:30:02+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Array to string conversion at \/var\/www\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/PDOStatement.php#105","userAgent":"--","version":"14.0.1.1"}
{"reqId":"Wd4AujtiU1qDqUzU3wTv","level":3,"time":"2018-10-08T21:30:02+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Illegal offset type at \/var\/www\/nextcloud\/lib\/private\/Cache\/CappedMemoryCache.php#53","userAgent":"--","version":"14.0.1.1"}
{"reqId":"Wd4AujtiU1qDqUzU3wTv","level":3,"time":"2018-10-08T21:30:02+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Illegal offset type at \/var\/www\/nextcloud\/lib\/private\/User\/Manager.php#161","userAgent":"--","version":"14.0.1.1"}
{"reqId":"Wd4AujtiU1qDqUzU3wTv","level":3,"time":"2018-10-08T21:30:03+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Illegal offset type in isset or empty at \/var\/www\/nextcloud\/lib\/private\/User\/Manager.php#135","userAgent":"--","version":"14.0.1.1"}
{"reqId":"Wd4AujtiU1qDqUzU3wTv","level":3,"time":"2018-10-08T21:30:03+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Array to string conversion at \/var\/www\/nextcloud\/lib\/private\/User\/Database.php#336","userAgent":"--","version":"14.0.1.1"}

I know there are also quite a lot of other errors. Maybe they are connected in some way.
I have also tried to trace this error. Therefor I added

if (!is_numeric($key)) {
\OC::$server->getLogger()->logException(new \Exception(), ['app' => 'CappedMemoryCacheLine53']);
}

in line 53 in /var/www/nextcloud/lib/private/Cache/CappedMemoryCache.php

Here is an image of the admin log section:
grafik

Browser log

I am not sure if this is a bug or a misconfiguration of my system (installed with the official nextcloud vm install_nextcloud_production.sh script). I have never worked with a cache before. I think this is what all these errors are related to.

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #4930 (Undefined offset: 0 at /var/www/html/lib/private/Preview/GeneratorHelper.php#69 ), #2978 (After upgrade PHP5.5.9 to 5.6.29: An exception occured in driver: could not find driver' in /var/www/nextcloud/lib/private/DB/Connection.php), #7967 (Undefined index: extension at /var/www/nextcloud/apps/files_versions/lib/Storage.php#466), #7610 (ldap_control_paged_result_response(): No server controls in result at /var/www/html/nextcloud/apps/user_ldap/lib/LDAP.php#74), and #1411 (Undefined variable: vendor at /var/www/html/lib/private/Updater.php#195 ).

@skjnldsv skjnldsv added the 0. Needs triage Pending check for reproducibility or if it fits our roadmap label Jun 12, 2019
@skjnldsv
Copy link
Member

As the version of the software you've reported this for has reached end of life, I will close this ticket. If this is still happening after an upgrade to the latest version, feel free to reopen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug
Projects
None yet
Development

No branches or pull requests

3 participants