Skip to content

lib/private/Log.php#318 Class 'OC\Log\ExceptionSerializer' not found #24558

@GieltjE

Description

@GieltjE

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Upload a large file that will exceed the php timeout

Expected behaviour

Probably should find the class?

Actual behaviour

Exceptions about a missing class

Server configuration

Operating system: Gentoo
Web server: Apache 2.4.46
Database: Mariadb 10.5.8
PHP version: 7.4.13
Nextcloud version: 20.0.2
Updated from an older Nextcloud/ownCloud or fresh install: Updated from OC a long time ago.
Where did you install Nextcloud from: tarball from the nextcloud.com site
Signing status: No errors have been found.
List of activated apps:

Enabled:
  - accessibility: 1.6.0
  - activity: 2.13.3
  - admin_audit: 1.10.0
  - apporder: 0.11.0
  - bookmarks: 4.0.5
  - bruteforcesettings: 2.0.1
  - calendar: 2.1.2
  - cloud_federation_api: 1.3.0
  - comments: 1.10.0
  - contacts: 3.4.2
  - contactsinteraction: 1.1.0
  - dashboard: 7.0.0
  - dav: 1.16.1
  - deck: 1.2.2
  - federatedfilesharing: 1.10.1
  - federation: 1.10.1
  - files: 1.15.0
  - files_accesscontrol: 1.10.1
  - files_downloadactivity: 1.9.0
  - files_external: 1.11.1
  - files_pdfviewer: 2.0.1
  - files_rightclick: 0.17.0
  - files_sharing: 1.12.0
  - files_trashbin: 1.10.1
  - files_versions: 1.13.0
  - files_videoplayer: 1.9.0
  - firstrunwizard: 2.9.0
  - logreader: 2.5.0
  - lookup_server_connector: 1.8.0
  - maps: 0.1.8
  - nextcloud_announcements: 1.9.0
  - notes: 4.0.1
  - notifications: 2.8.0
  - oauth2: 1.8.0
  - password_policy: 1.10.1
  - photos: 1.2.0
  - privacy: 1.4.0
  - provisioning_api: 1.10.0
  - ransomware_detection: 0.9.0
  - ransomware_protection: 1.8.0
  - serverinfo: 1.10.0
  - settings: 1.2.0
  - sharebymail: 1.10.0
  - spreed: 10.0.3
  - support: 1.3.0
  - systemtags: 1.10.0
  - tasks: 0.13.6
  - text: 3.1.0
  - theming: 1.11.0
  - twofactor_backupcodes: 1.9.0
  - twofactor_totp: 5.0.0
  - updatenotification: 1.10.0
  - user_status: 1.0.1
  - viewer: 1.4.0
  - weather_status: 1.0.0
  - workflowengine: 2.2.0

Nextcloud configuration:

Enabled:
  - accessibility: 1.6.0
  - activity: 2.13.3
  - admin_audit: 1.10.0
  - apporder: 0.11.0
  - bookmarks: 4.0.5
  - bruteforcesettings: 2.0.1
  - calendar: 2.1.2
  - cloud_federation_api: 1.3.0
  - comments: 1.10.0
  - contacts: 3.4.2
  - contactsinteraction: 1.1.0
  - dashboard: 7.0.0
  - dav: 1.16.1
  - deck: 1.2.2
  - federatedfilesharing: 1.10.1
  - federation: 1.10.1
  - files: 1.15.0
  - files_accesscontrol: 1.10.1
  - files_downloadactivity: 1.9.0
  - files_external: 1.11.1
  - files_pdfviewer: 2.0.1
  - files_rightclick: 0.17.0
  - files_sharing: 1.12.0
  - files_trashbin: 1.10.1
  - files_versions: 1.13.0
  - files_videoplayer: 1.9.0
  - firstrunwizard: 2.9.0
  - logreader: 2.5.0
  - lookup_server_connector: 1.8.0
  - maps: 0.1.8
  - nextcloud_announcements: 1.9.0
  - notes: 4.0.1
  - notifications: 2.8.0
  - oauth2: 1.8.0
  - password_policy: 1.10.1
  - photos: 1.2.0
  - privacy: 1.4.0
  - provisioning_api: 1.10.0
  - ransomware_detection: 0.9.0
  - ransomware_protection: 1.8.0
  - serverinfo: 1.10.0
  - settings: 1.2.0
  - sharebymail: 1.10.0
  - spreed: 10.0.3
  - support: 1.3.0
  - systemtags: 1.10.0
  - tasks: 0.13.6
  - text: 3.1.0
  - theming: 1.11.0
  - twofactor_backupcodes: 1.9.0
  - twofactor_totp: 5.0.0
  - updatenotification: 1.10.0
  - user_status: 1.0.1
  - viewer: 1.4.0
  - weather_status: 1.0.0
  - workflowengine: 2.2.0
Disabled:
  - checksum
  - encryption
  - end_to_end_encryption
  - external
  - files_retention
  - files_snapshots
  - onlyoffice
  - quicknotes
  - recommendations
  - survey_client
  - user_ldap
beast /var/www/nextcloud # sudo -u apache php occ config:list system
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "thuis.hazelhof.nl"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/thuis.hazelhof.nl:224\/",
        "dbtype": "mysql",
        "version": "20.0.2.2",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "Europe\/Amsterdam",
        "installed": true,
        "maintenance": false,
        "loglevel": 3,
        "mail_smtpmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "616",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "tls",
        "appstore.experimental.enabled": true,
        "theme": "",
        "trashbin_retention_obligation": "5, 20",
        "versions_retention_obligation": "20, 30",
        "activity_expire_days": 365,
        "appcodechecker": true,
        "updater.release.channel": "stable",
        "filelocking.enabled": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redimemcache.distributed": "\\OC\\Memcache\\Redis",
        "htaccess.RewriteBase": "\/",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 1.5,
            "dbindex": 1
        },
        "app_install_overwrite": [
            "contacts",
            "ransomware_detection"
        ],
        "onlyoffice": {
            "verify_peer_off": true,
            "jwt_secret": "testtest",
            "jwt_header": "Authorization"
        },
        "allow_local_remote_servers": true
    }
}

Are you using external storage, if yes which one: none
Are you using encryption: no
Are you using an external user-backend, if yes which one: no

Client configuration

Browser: None, desktop client 3.0.3
Operating system: Win 10 X64 20H2

Logs

Web server error log

[Fri Dec 04 14:16:18.339830 2020] [proxy_fcgi:error] [pid 6240:tid 140059504252480] [client 84.105.68.208:65395] AH01071: Got error 'PHP message: PHP Warning:  spl_autoload(): open_basedir restriction in effect. File(oc/log/exceptionserializer.inc) is not within the allowed path(s): (/var/www/nextcloud:/tmp:/mnt/storage/temp:/mnt/storage/data:/dev/urandom:/mnt/storage/backup/) in /var/www/nextcloud/lib/private/Log.php on line 318PHP message: PHP Warning:  spl_autoload(): open_basedir restriction in effect. File(oc/log/exceptionserializer.php) is not within the allowed path(s): (/var/www/nextcloud:/tmp:/mnt/storage/temp:/mnt/storage/data:/dev/urandom:/mnt/storage/backup/) in /var/www/nextcloud/lib/private/Log.php on line 318PHP message: PHP Fatal error:  Uncaught Error: Class 'OC\\Log\\ExceptionSerializer' not found in /var/www/nextcloud/lib/private/Log.php:318\nStack trace:\n#0 /var/www/nextcloud/lib/private/Log/ErrorHandler.php(92): OC\\Log->logException(Object(Error), Array)\n#1 [internal function]: OC\\Log\\ErrorHandler::onError(2, 'Cannot modify h...', '/var/www/nextcl...', 691, Array)\n#2 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php(691): header('X-Hash-SHA256: ...')\n#3 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php(195): OCA\\DAV\\Connector\\Sabre\\File->header('X-Hash-SHA256: ...')\n#4 [internal function]: OCA\\DAV\\Connector\\Sabre\\File->OCA\\DAV\\Connector\\Sabre\\{closure}('1b3e323637bec63...')\n#5 /var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php(71): call_user_func(Object(Closure), '1b3e323637bec63...')\n#6 [internal function]: OC\\Files\\Stream\\HashWrapper->stream_close()\n#7 {main}\n  thrown in /var/www/nextcloud/lib/private/Log.php on line 318'

Nextcloud log (data/nextcloud.log)

Uncaught Error: Class 'OC\Log\ExceptionSerializer' not found in /var/www/nextcloud/lib/private/Log.php:318 Stack trace: #0 /var/www/nextcloud/lib/private/Log/ErrorHandler.php(92): OC\Log->logException(Object(Error), Array) #1 [internal function]: OC\Log\ErrorHandler::onError(2, 'Cannot modify h...', '/var/www/nextcl...', 691, Array) #2 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php(691): header('X-Hash-SHA256: ...') #3 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php(195): OCA\DAV\Connector\Sabre\File->header('X-Hash-SHA256: ...') #4 [internal function]: OCA\DAV\Connector\Sabre\File->OCA\DAV\Connector\Sabre\{closure}('3312561ebdb9ccf...') #5 /var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php(71): call_user_func(Object(Closure), '3312561ebdb9ccf...') #6 [internal function]: OC\Files\Stream\HashWrapper->stream_close() #7 {main} thrown at /var/www/nextcloud/lib/private/Log.php#318

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmapbugneeds info

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions