When asking for random things of the webserver it replies 404 error but there is extra data in replies when overloaded with a burst of requests.
(Better search results summary)
The Basics
- Nextcloud Server version (e.g., 29.x.x):
31.0.4.1snap
- Operating system and version (e.g., Ubuntu 24.04):
Ubuntu 24.04 Desktop
- Web server and version (e.g, Apache 2.4.25):
Apache/2.4.63
- Reverse proxy and version _(e.g. nginx 1.27.2)
replace me
- PHP version (e.g, 8.3):
8.319
- Is this the first time you’ve seen this error? (Yes / No):
yes
- When did this problem seem to first start?
13/05/2025The first time I tested.
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
snap
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
no
Summary of the issue you are facing:
When asking for random things of the webserver it replies 404 error but there is extra data in replies when overloaded with a burst of requests.
[…]
Steps to replicate it (hint: details matter!):
- Run python script This script to overload web server.
- log client response eg pipe output > 404log.txt on linux
- examining client log file. check for extra data
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 nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.
Server logs bursting 404
Client bursting 404 logs
burstlog20khz1k.txt burst at 20 khz with 1 k threads in python script.
burstlog10khz1k16.txt burst at 10 khz 1 k threads on second server older in age.
burstlog10khz1.8k.txt burst at 10 khz 1.8 k threads.
Could I have faulty hardware?
contents /etc/sysctl.conf
kernel.sem = 250 32000 100 128
vm.max_map_count=262144
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_sack = 1
net.core.netdev_max_backlog = 5000
net.ipv4.tcp_max_syn_backlog = 2048
net.core.somaxconn = 2048
net.ipv4.ip_local_port_range = 10000 65535
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_syncookies = 0
net.ipv4.tcp_tw_reuse = 0
net.ipv4.tcp_keepalive_time = 890
net.ipv4.tcp_keepalive_intvl = 30
net.ipv4.tcp_keepalive_probes = 20
vm.swappiness = 10
After burst testing error 404.
The trashbin or deleted files is empty now in web interface..The data is still on server.
server log empty deleted files
sudo nextcloud.occ app:list
Enabled:
- activity: 4.0.0
- admin_audit: 1.21.0
- app_api: 5.0.2
- audioplayer: 3.4.1
- bruteforcesettings: 4.0.0
- calendar: 5.2.3
- circles: 31.0.0
- cloud_federation_api: 1.14.0
- comments: 1.21.0
- contacts: 7.1.0
- contactsinteraction: 1.12.0
- dashboard: 7.11.0
- dav: 1.33.0
- dicomviewer: 2.3.1
- drawio: 3.1.0
- external: 6.0.2
- 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
- fileslibreofficeedit: 2.0.1
- firstrunwizard: 4.0.0
- folderplayer: 14.0.0
- logreader: 4.0.0
- lookup_server_connector: 1.19.0
- mail: 5.0.7
- music: 2.1.4
- nextcloud_announcements: 3.0.0
- notes: 4.12.0
- notifications: 4.0.0
- oauth2: 1.19.1
- password_policy: 3.0.0
- phonetrack: 0.8.2
- photos: 4.0.0-dev.1
- podcast: 0.3.1
- previewgenerator: 5.8.0
- privacy: 3.0.0
- profile: 1.0.0
- provisioning_api: 1.21.0
- ransomware_protection: 1.14.0
- recommendations: 4.0.0
- related_resources: 2.0.0
- richdocuments: 8.6.5
- richdocumentscode: 24.4.1303
- serverinfo: 3.0.0
- settings: 1.14.0
- sharebymail: 1.21.0
- socialsharing_diaspora: 3.3.0
- socialsharing_email: 3.3.0
- socialsharing_facebook: 3.3.0
- socialsharing_twitter: 3.3.0
- spreed: 21.0.4
- support: 3.0.0
- survey_client: 3.0.0
- suspicious_login: 9.0.1
- systemtags: 1.21.1
- tasks: 0.16.1
- text: 5.0.0
- theming: 2.6.1
- twofactor_backupcodes: 1.20.0
- user_status: 1.11.0
- viewer: 4.0.0
- weather_status: 1.11.0
- webhook_listeners: 1.2.0
- whereami: 0.0.37
- whiteboard: 1.0.5
- workflow_pdf_converter: 2.0.0
- workflowengine: 2.13.0
Disabled:
- camerarawpreviews: 0.8.7 (installed 0.8.7)
- documents: 0.16.0
- encryption: 2.19.0
- files_external: 1.23.0
- keeporsweep: 0.3.0 (installed 0.3.0)
- maps: 1.5.0 (installed 1.5.0)
- solitaire: 1.0.0 (installed 1.0.0)
- twofactor_nextcloud_notification: 5.0.0
- twofactor_totp: 13.0.0-dev.0
- user_ldap: 1.22.0
root@ProLiant-DL360p-Gen8:~#
Configuration
{
"system": {
"apps_paths": [
{
"path": "\/snap\/nextcloud\/current\/htdocs\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/snap\/nextcloud\/current\/nextcloud\/extra-apps",
"url": "\/extra-apps",
"writable": true
}
],
"supportedDatabases": [
"mysql"
],
"memcache.locking": "\\OC\\Memcache\\Redis",
"memcache.local": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 0
},
"log_type": "file",
"logfile": "\/var\/snap\/nextcloud\/current\/logs\/nextcloud.log",
"logfilemode": 416,
"maintenance_window_start": 1,
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"192.168.1.55",
"*.*.*.*"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "31.0.4.1",
"overwrite.cli.url": "http:\/\/192.168.1.55",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"app_install_overwrite": [
"ransomware_protection",
"files_ebookreader",
"folderplayer",
"ocsms",
"podcast",
"documents"
],
"maintenance": false,
"theme": "",
"loglevel": 2
}
}
sudo nextcloud.occ trashbin:size yacy
Failed to parse input size
root@ProLiant-DL360p-Gen8:~#
Thanks



