Owncloud 10.11.0 - Apps web - Class 'GuzzleHttp\\\\Mimetypes' not found

Steps to reproduce

  1. config.php kopiert von vorhergehender Version 10.10.0
  2. config.json kopiert von vorhergehender Version 10.10.0
  3. mimetypealiases.json kopiert von vorhergehender Version 10.10.0
  4. web app wurde über den Update Prozess neu heruntergeladen
  5. Erneute Prüfung der Installationsschritte (Dokumentation zur Verwendung der Web App)

Expected behaviour

Kein Zugriff auf die Web App

Actual behaviour

Tell us what happens instead
Ich sehe einen 500er und 404er Fehler im Apache Log. Habt Ihr einen Tipp, woher dies kommen könnte?

Server configuration

Operating system:
Debian Bullseye
Web server:
Apache2 - 2.4.52-1~deb11u2
Database:
MariaDB 10.5.15-0+deb11u1
PHP version:
7.4-76
ownCloud version: (see ownCloud admin page)
10.11.0
Updated from an older ownCloud or fresh install:
Update von 10.10.1 zu 10.11.0
Where did you install ownCloud from:

Signing status (ownCloud 9.0 and above):

No errors have been found.

The content of config/config.php:

<?php
$CONFIG = array (
  'instanceid' => 'ID',
  'passwordsalt' => 'SALT',
  'datadirectory' => '/DIR/owncloud/data',
  'dbtype' => 'mysql',
  'version' => '10.11.0.6',
  'dbname' => 'DB',
  'dbhost' => '127.0.0.1',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'DBUSER',
  'dbpassword' => 'PASS',
  'mysql.utf8mb4' => true,
  'installed' => true,
  'theme' => '',
  'maintenance' => false,
  'forcessl' => true,
  'trusted_domains' => 
  array (
    0 => 'DOMAIN',
  ),
  'mail_domain' => 'DOMAIN',
  'mail_smtpmode' => 'php',
  'secret' => 'SECRET',
  'mail_from_address' => 'no-reply',
  'log_type' => 'owncloud',
  'logfile' => '/DIR/owncloud/data/owncloud.log',
  'log_rotate_size' => 104857600,
  'loglevel' => 2,
  'logtimezone' => 'Europe/Berlin',
  'web.baseUrl' => 'https://URL/index.php/apps/web',
  'web.rewriteLinks' => true,
  'enable_previews' => true,
  'previews_path' => '',
  'preview_max_x' => 2048,
  'preview_max_y' => 2048,
  'preview_max_scale_factor' => 10,
  'preview_max_filesize_image' => 50,
  'preview_libreoffice_path' => '/usr/bin/libreoffice',
  'preview_office_cl_parameters' => '--headless --nologo --nofirststartwizard --invisible --norestore ',
  0 => '--convert-to pdf --outdir ',
  'enabledPreviewProviders' => 
  array (
    0 => 'OC\\Preview\\PDF',
    1 => 'OC\\Preview\\SGI',
    2 => 'OC\\Preview\\Heic',
    3 => 'OC\\Preview\\PNG',
    4 => 'OC\\Preview\\JPEG',
    5 => 'OC\\Preview\\GIF',
    6 => 'OC\\Preview\\BMP',
    7 => 'OC\\Preview\\XBitmap',
    8 => 'OC\\Preview\\MP3',
    9 => 'OC\\Preview\\TXT',
    10 => 'OC\\Preview\\MarkDown',
  ),
  'previewJPEGImageDisplayQuality' => -1,
  'updatechecker' => false,
  'trashbin_retention_obligation' => 'auto',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => 'true',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
    'timeout' => 0,
    'dbindex' => 0,
  ),
  'session_lifetime' => 120,
  'session_keepalive' => true,
  'session_forced_logout_timeout' => 10,
  'allow_user_to_change_mail_address' => '',
);

Log in to the web-UI with an administrator account and click on
‘admin’ → ‘Generate Config Report’ → ‘Download ownCloud config report’
This report includes the config.php settings, the list of activated apps
and other details in a well sanitized form.

or

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your ownCloud installation folder

{
    "system": {
        "instanceid": "ID",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "datadirectory": "\/DIR\/owncloud\/data",
        "dbtype": "mysql",
        "version": "10.11.0.6",
        "dbname": "DB",
        "dbhost": "127.0.0.1",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "mysql.utf8mb4": true,
        "installed": true,
        "theme": "",
        "maintenance": false,
        "forcessl": true,
        "trusted_domains": [
            "DOMAIN"
        ],
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "php",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "log_type": "owncloud",
        "logfile": "\/DIR\/owncloud\/data\/owncloud.log",
        "log_rotate_size": 104857600,
        "loglevel": 2,
        "logtimezone": "Europe\/Berlin",
        "web.baseUrl": "https:\/\/URL\/index.php\/apps\/web",
        "web.rewriteLinks": true,
        "enable_previews": true,
        "previews_path": "",
        "preview_max_x": 2048,
        "preview_max_y": 2048,
        "preview_max_scale_factor": 10,
        "preview_max_filesize_image": 50,
        "preview_libreoffice_path": "\/usr\/bin\/libreoffice",
        "preview_office_cl_parameters": "--headless --nologo --nofirststartwizard --invisible --norestore ",
        "0": "--convert-to pdf --outdir ",
        "enabledPreviewProviders": [
            "OC\\Preview\\PDF",
            "OC\\Preview\\SGI",
            "OC\\Preview\\Heic",
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown"
        ],
        "previewJPEGImageDisplayQuality": -1,
        "updatechecker": false,
        "trashbin_retention_obligation": "auto",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "filelocking.enabled": "true",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "localhost",
            "port": 6379,
            "timeout": 0,
            "dbindex": 0
        },
        "session_lifetime": 120,
        "session_keepalive": true,
        "session_forced_logout_timeout": 10,
        "allow_user_to_change_mail_address": ""
    }
}

List of activated apps:

Enabled:
  - activity:
    - Version: 2.7.1
    - Path: /var/www/owncloud/apps/activity
  - camerarawpreviews:
    - Version: 0.7.13
    - Path: /var/www/owncloud/apps/camerarawpreviews
  - comments:
    - Version: 0.3.0
    - Path: /var/www/owncloud/apps/comments
  - configreport:
    - Version: 0.2.1
    - Path: /var/www/owncloud/apps/configreport
  - customgroups:
    - Version: 0.7.0
    - Path: /var/www/owncloud/apps/customgroups
  - dav:
    - Version: 0.7.0
    - Path: /var/www/owncloud/apps/dav
  - federatedfilesharing:
    - Version: 0.5.0
    - Path: /var/www/owncloud/apps/federatedfilesharing
  - federation:
    - Version: 0.1.0
    - Path: /var/www/owncloud/apps/federation
  - files:
    - Version: 1.5.2
    - Path: /var/www/owncloud/apps/files
  - files_external:
    - Version: 0.9.0
    - Path: /var/www/owncloud/apps/files_external
  - files_mediaviewer:
    - Version: 1.0.5
    - Path: /var/www/owncloud/apps/files_mediaviewer
  - files_pdfviewer:
    - Version: 1.0.1
    - Path: /var/www/owncloud/apps/files_pdfviewer
  - files_sharing:
    - Version: 0.14.0
    - Path: /var/www/owncloud/apps/files_sharing
  - files_texteditor:
    - Version: 2.4.1
    - Path: /var/www/owncloud/apps/files_texteditor
  - files_trashbin:
    - Version: 0.9.1
    - Path: /var/www/owncloud/apps/files_trashbin
  - files_versions:
    - Version: 1.3.0
    - Path: /var/www/owncloud/apps/files_versions
  - firstrunwizard:
    - Version: 1.2.0
    - Path: /var/www/owncloud/apps/firstrunwizard
  - gallery:
    - Version: 16.1.2
    - Path: /var/www/owncloud/apps/gallery
  - market:
    - Version: 0.7.0
    - Path: /var/www/owncloud/apps/market
  - music:
    - Version: 1.6.0
    - Path: /var/www/owncloud/apps/music
  - notes:
    - Version: 2.0.6
    - Path: /var/www/owncloud/apps/notes
  - notifications:
    - Version: 0.5.4
    - Path: /var/www/owncloud/apps/notifications
  - oauth2:
    - Version: 0.5.3
    - Path: /var/www/owncloud/apps/oauth2
  - onlyoffice:
    - Version: 7.5.4
    - Path: /var/www/owncloud/apps/onlyoffice
  - password_policy:
    - Version: 2.1.4
    - Path: /var/www/owncloud/apps/password_policy
  - provisioning_api:
    - Version: 0.5.0
    - Path: /var/www/owncloud/apps/provisioning_api
  - systemtags:
    - Version: 0.3.0
    - Path: /var/www/owncloud/apps/systemtags
  - templateeditor:
    - Version: 0.4.0
    - Path: /var/www/owncloud/apps/templateeditor
  - twofactor_totp:
    - Version: 0.7.4
    - Path: /var/www/owncloud/apps/twofactor_totp
  - updatenotification:
    - Version: 0.2.1
    - Path: /var/www/owncloud/apps/updatenotification
  - web:
    - Version: 5.6.1
    - Path: /var/www/owncloud/apps/web
Disabled:
  - encryption:
    - Path: /var/www/owncloud/apps/encryption
  - external:
    - Path: /var/www/owncloud/apps/external
  - user_external:
    - Path: /var/www/owncloud/apps/user_external

Are you using external storage, if yes which one: local/smb/sftp/…
local
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…

Client configuration

Browser:
FF/Edge/Chrome
Operating system:
Windows 10

Logs

Web server error log

Insert your webserver log here
xxx.xxx.xxx.xxx - - [04/Oct/2022:17:01:59 +0200] "POST /index.php/heartbeat HTTP/1.1" 200 1042 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0"
xxx.xxx.xxx.xxx - - [04/Oct/2022:17:01:59 +0200] "GET /index.php/apps/web/index.html HTTP/1.1" 500 11283 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0"
xxx.xxx.xxx.xxx - - [04/Oct/2022:17:01:59 +0200] "POST /index.php/heartbeat HTTP/1.1" 200 1042 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0"
xxx.xxx.xxx.xxx - - [04/Oct/2022:17:02:00 +0200] "GET /index.php/apps/web/undefined/img/notifications.svg HTTP/1.1" 404 1098 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0"
xxx.xxx.xxx.xxx - - [04/Oct/2022:17:02:00 +0200] "GET /ocs/v2.php/apps/notifications/api/v1/notifications?format=json HTTP/1.1" 200 932 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0"
xxx.xxx.xxx.xxx - - [04/Oct/2022:17:02:00 +0200] "GET /index.php/apps/web/undefined/img/notifications.svg HTTP/1.1" 404 1098 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0"

ownCloud log (data/owncloud.log)

{"reqId":"zCnq3wkC6KcmD7nnE2Ak","level":3,"time":"2022-10-04T16:35:00+02:00","remoteAddr":"195.200.70.52","user":"rWaGnEr","app":"index","method":"GET","url":"\/index.php\/apps\/web\/index.html","message":"Exception: {\"Exception\":\"Error\",\"Message\":\"Class 'GuzzleHttp\\\\Mimetypes' not found\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/apps\\\/web\\\/lib\\\/Controller\\\/FilesController.php(107): OCA\\\\Web\\\\Controller\\\\FilesController->getMimeType()\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(170): OCA\\\\Web\\\\Controller\\\\FilesController->getFile()\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController()\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(100): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch()\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main()\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Route\\\/Router.php(344): OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke()\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(914): OC\\\\Route\\\\Router->match()\\n#7 \\\/var\\\/www\\\/owncloud\\\/index.php(54): OC::handleRequest()\\n#8 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps\\\/web\\\/lib\\\/Controller\\\/FilesController.php\",\"Line\":136}"}

I’ve fixed your code blocks.

Die verwendete Version 5.6.1 der Web app ist nicht kompatible mit ownCloud 10.11. Die GuzzleHttp Abhängigkeit wurde in Version 5.7.0 entfernt (siehe Changelog).

Das sollte helfen:

occ market:upgrade web

Leider scheint es kein aktuelleres als 5.6.1 auf dem marketplace zu geben.

Die Ausgabe lautet:
web: No update available.

Mein Fehler, das habe ich übersehen. Ich gebe das an das entsprechende Team weiter.

Der Marketplace upload wurde behoben, jetzt sollte das occ upgrade klappen.

Super, top, klappt!

Vielen Dank

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.