Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can.
- Nextcloud Server version:
Nextcloud 31.0.5
- Operating system and version:
#1 SMP PREEMPT Debian 1:6.12.25-1+rpt1 (2025-04-30)
- Web server and version:
Server version: Apache/2.4.62 (Debian)
- Reverse proxy and version:
nginx version: openresty/1.27.1.1
- PHP version:
PHP 8.3.21 (cli) (built: May 22 2025 00:45:17) (NTS)
- Is this the first time you’ve seen this error? (Yes / No):
yes
- When did this problem seem to first start?
prob direct after installation
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
OMV Container
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
nope
Configuration
Nextcloud
{
"system": {
"htaccess.RewriteBase": "\/",
"memcache.local": "\\OC\\Memcache\\APCu",
"apps_paths": [
{
"path": "\/var\/www\/html\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/www\/html\/custom_apps",
"url": "\/custom_apps",
"writable": true
}
],
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"password": "***REMOVED SENSITIVE VALUE***",
"port": 6379
},
"upgrade.disable-web": true,
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"srv-nas-pi.kingma:8080",
"office.kingma.ch",
"office.king.ma"
],
"overwrite.cli.url": "http:\/\/srv-nas-pi.kingma:8080",
"overwriteprotocol": "https",
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "31.0.5.1",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"mail_smtpmode": "smtp",
"mail_sendmailmode": "smtp",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "465",
"mail_smpttimeout": 30,
"mail_smtpsecure": "ssl",
"loglevel": 3,
"maintenance": false,
"maintenance_window_start": 3,
"default_phone_region": "CH",
"app_install_overwrite": [],
"ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory"
}
}
Apps
Enabled:
- activity: 4.0.0
- admin_audit: 1.21.0
- app_api: 5.0.2
- bruteforcesettings: 4.0.0
- calendar: 5.2.4
- circles: 31.0.0
- cloud_federation_api: 1.14.0
- comments: 1.21.0
- contacts: 7.1.1
- contactsinteraction: 1.12.0
- cookbook: 0.11.3
- dashboard: 7.11.0
- dav: 1.33.0
- federatedfilesharing: 1.21.0
- federation: 1.21.0
- files: 2.3.1
- files_antivirus: 6.0.2
- files_downloadlimit: 4.0.0
- files_pdfviewer: 4.0.0
- files_reminders: 1.4.0
- files_sharing: 1.23.1
- files_trashbin: 1.21.0
- files_versions: 1.24.0
- firstrunwizard: 4.0.0
- fulltextsearch: 31.0.0
- groupfolders: 19.0.4
- logcleaner: 1.1.4
- logreader: 4.0.0
- lookup_server_connector: 1.19.0
- nextcloud_announcements: 3.0.0
- notes: 4.12.0
- notifications: 4.0.0
- oauth2: 1.19.1
- password_policy: 3.0.0
- photos: 4.0.0-dev.1
- privacy: 3.0.0
- profile: 1.0.0
- provisioning_api: 1.21.0
- recommendations: 4.0.0
- related_resources: 2.0.0
- serverinfo: 3.0.0
- settings: 1.14.0
- sharebymail: 1.21.0
- support: 3.0.0
- survey_client: 3.0.0
- suspicious_login: 9.0.1
- systemtags: 1.21.1
- text: 5.0.0
- theming: 2.6.1
- twofactor_backupcodes: 1.20.0
- twofactor_nextcloud_notification: 5.0.0
- twofactor_totp: 13.0.0-dev.0
- updatenotification: 1.21.0
- user_ldap: 1.22.0
- user_status: 1.11.0
- viewer: 4.0.0
- weather_status: 1.11.0
- webhook_listeners: 1.2.0
- workflowengine: 2.13.0
Disabled:- encryption: 2.19.0
- files_external: 1.23.0
- richdocumentscode: 24.4.1303
./get_nextcloud_version: line 57: nextcloud.log: command not found
Summary of the issue you are facing:
Unsported Mediatype error
Steps to replicate it (hint: details matter!):
1.Log on as admin
2.Look at the log files
3.See there message
Log entries
Nextcloud
Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your located in your data directory). Feel free to use a pastebin/gist service if necessary.
{"reqId":"akF65evVbehTpsYLYKzw","level":3,"time":"2025-05-24T13:47:48+00:00","remoteAddr":"83.97.87.43","user":"johannes","app":"webdav","method":"PUT","url":"/remote.php/dav/files/johannes/.appdata_roaming/Thunderbird/Profiles/s57b7msy.default-esr/ImapMail/cicero.metanet.ch/INBOX.sbd/Bestellingen.sbd/overig","message":"Virus Heuristics.Phishing.Email.SpoofedDomain is gedetecteerd in het bestand. Upload kan niet worden afgerond.","userAgent":"Mozilla/5.0 (Windows) mirall/3.16.2 (build 20250319) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"31.0.5.1","exception":{"Exception":"OCA\\DAV\\Connector\\Sabre\\Exception\\UnsupportedMediaType","Message":"Virus Heuristics.Phishing.Email.SpoofedDomain is gedetecteerd in het bestand. Upload kan niet worden afgerond.","Code":0,"Trace":[{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/File.php","line":275,"function":"convertToSabreException","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[{"__class__":"OCP\\Files\\InvalidContentException"}]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Directory.php","line":116,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:PUT",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Server.php","line":49,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/apps/dav/lib/Server.php","line":400,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":21,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/remote.php","line":145,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/apps/dav/lib/Connector/Sabre/File.php","Line":576,"Previous":{"Exception":"OCP\\Files\\InvalidContentException","Message":"Virus Heuristics.Phishing.Email.SpoofedDomain is gedetecteerd in het bestand. Upload kan niet worden afgerond.","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/files_antivirus/lib/AvirWrapper.php","line":108,"function":"handleInfected","class":"OCA\\Files_Antivirus\\AvirWrapper","type":"->","args":["files/.appdata_roaming/Thunderbird/Profiles/s57b7msy.default-esr/ImapMail/cicero.metanet.ch/INBOX.sbd/Bestellingen.sbd/93c6eaa548944c9093b804aa5c69af2b.ocTransferId2135942546.part",{"__class__":"OCA\\Files_Antivirus\\Status"}]},{"function":"OCA\\Files_Antivirus\\{closure}","class":"OCA\\Files_Antivirus\\AvirWrapper","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/icewind/streams/src/CallbackWrapper.php","line":119,"function":"call_user_func","args":[{"__class__":"Closure"}]},{"function":"stream_close","class":"Icewind\\Streams\\CallbackWrapper","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/Files/Storage/Local.php","line":586,"function":"fclose","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php","line":322,"function":"writeStream","class":"OC\\Files\\Storage\\Local","type":"->","args":["files/.appdata_roaming/Thunderbird/Profiles/s57b7msy.default-esr/ImapMail/cicero.metanet.ch/INBOX.sbd/Bestellingen.sbd/93c6eaa548944c9093b804aa5c69af2b.ocTransferId2135942546.part","*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php","line":322,"function":"writeStream","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["files/.appdata_roaming/Thunderbird/Profiles/s57b7msy.default-esr/ImapMail/cicero.metanet.ch/INBOX.sbd/Bestellingen.sbd/93c6eaa548944c9093b804aa5c69af2b.ocTransferId2135942546.part","*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/files_antivirus/lib/AvirWrapper.php","line":82,"function":"writeStream","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["files/.appdata_roaming/Thunderbird/Profiles/s57b7msy.default-esr/ImapMail/cicero.metanet.ch/INBOX.sbd/Bestellingen.sbd/93c6eaa548944c9093b804aa5c69af2b.ocTransferId2135942546.part","*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php","line":322,"function":"writeStream","class":"OCA\\Files_Antivirus\\AvirWrapper","type":"->","args":["files/.appdata_roaming/Thunderbird/Profiles/s57b7msy.default-esr/ImapMail/cicero.metanet.ch/INBOX.sbd/Bestellingen.sbd/93c6eaa548944c9093b804aa5c69af2b.ocTransferId2135942546.part","*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/File.php","line":215,"function":"writeStream","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["files/.appdata_roaming/Thunderbird/Profiles/s57b7msy.default-esr/ImapMail/cicero.metanet.ch/INBOX.sbd/Bestellingen.sbd/93c6eaa548944c9093b804aa5c69af2b.ocTransferId2135942546.part",null]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Directory.php","line":116,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:PUT",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Server.php","line":49,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/apps/dav/lib/Server.php","line":400,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":21,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/remote.php","line":145,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/custom_apps/files_antivirus/lib/AvirWrapper.php","Line":193},"message":"Virus Heuristics.Phishing.Email.SpoofedDomain is gedetecteerd in het bestand. Upload kan niet worden afgerond.","exception":[],"CustomMessage":"Virus Heuristics.Phishing.Email.SpoofedDomain is gedetecteerd in het bestand. Upload kan niet worden afgerond."},"id":"6831ce0b76340"}