Support intro
Sorry to hear you’re facing problems. 
The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.
If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.
Getting help
In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.
Before clicking submit: Please check if your query is already addressed via the following resources:
- Official documentation (searchable and regularly updated)
- How to topics and FAQs
- Forum search
(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).
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. ![]()
The Basics
- Nextcloud Server version (e.g., 29.x.x):
33.0.7.1
- Operating system and version (e.g., Ubuntu 24.04):
Raspberry Pi OS 12
- Web server and version (e.g, Apache 2.4.25):
nginx 1.22.1
- Reverse proxy and version _(e.g. nginx 1.27.2)
nginx 1.22.1
- PHP version (e.g, 8.3):
8.4.23
- Is this the first time you’ve seen this error? (Yes / No):
Yes
- When did this problem seem to first start?
When a public link share expired
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
Bare Metal
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
No
Summary of the issue you are facing:
A public link share expired as planned right at midnight. Shortly after, php-fpm load increased massively which took down the whole server roughly 25 minutes later due to being rebooted by the system watchdog (load too high). A second reboot happened 10 to 15 minutes later for the same reason, which was right at the time I started investigating the incident. I also discovered:
- activities app: created a ton of entries regarding the public link share expiration, dozens a second (in total according to the database: 254.429


- if the server reboots and my PHP-FPM service stop / NC maintenance mode activation would not have been there, this would for sure had increased even more, potentially endless) - when trying to access the share settings from the web Ui or the Windows desktop client or page
/apps/files/sharinglinks, it times out (neverending load time) - nextcloud.log.1 increased to a massive size of 24 GB (instead of max. 100 MB)
I fixed this this way:
- Deleted affected shared folder physically from server and ran
occ files:scan --all - Then
sudo -u www-data php /var/www/nextcloud/occ share:list --owner Usernamenoted
In Share.php line 171:
Node for share not found, fileid: 1431041
- Therefore I identified and deleted this ID from
nc_sharetable. - Then I identified (
SELECT COUNT(*) AS cnt FROM nc_activity WHERE subject LIKE '%link_expired%' AND file LIKE "/foldername";) and deleted all activity entries innc_activityexcept the very first one withselect activity_id from nc_activity where subject like "%link_expired%" and file like "/foldername" ORDER BY activity_id ASC LIMIT 1;anddelete from nc_activity where subject like "%link_expired%" and file like "/foldername" and activity_id <> 340198;.
This fixedocc share:list --owner Usernameand/apps/files/sharinglinksalso was loading fine again. Still existing problems:
- Re-creating the folder at the same place with the same name was impossible, no matter if via Web or desktop client (which indicated some kind of locked state)
- One PHP-FPM process was still running at 100 % shortly after PHP-FPM got restarted, so something from NC side still was not alright
- Purged all entries from
nc_file_lockstable occ files:cleanupgave no deletion results- Restarted php-fpm and nginx.
Now no more cpu spikes anymore by PHP-FPM - finally silence on the server as regular. Also creating the folder at the same location with the very same name was possible again. - Finally I took care of the massive
nextcloud.log.1by simplysudo truncate -s 0 /...nextcloud.log.1.
This was pretty much a nightmare, taking me 2 to 2,5 hours for investigation and fixing, only on the NC side. I let AI search for GitHub and forums issues related to what I experienced, but there were no non-halucinated results so I decided to precisely report what I experienced here.
Please note: everything is fixed, I need absolutely no support on this anymore. I’m more interested in understanding what was causing this and how to prevent this in future from happening again. For now I won’t use automatic expiration for any shares/shared links anymore.
In my theory, the share expiration background job went crazy and everything else like the activity app spam and the nextcloud.log spam as well as the massive server load were a result of PHP-FPM trying to work on the share expiration triggered by NC’s cron.
Steps to replicate it (hint: details matter!):
- Create a public link share and set expiration date (in my case 2026-07-30 00:00 so midnight)
- Shortly after 00:00 (I guess the cron started few minutes later, running every 5 minutes) I discovered the above mentioned symptoms.
For what it’s worth (complete picture): note I updated NC from 33.0.6.2 to 33.0.7.1 a few hours before the planned share expiration. No apps got updated during that process. A few more hours before, apps got updated manually - but the activities app wasn’t.
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.
Had to be truncated, impossible to handle 24 GB files.
Web Browser
If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.
PASTE HERE
Web server / Reverse Proxy
The output of your Apache/nginx/system log in /var/log/____:
PASTE HERE
Configuration
Nextcloud
The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):
PASTE HERE
Apps
The output of occ app:list (if possible).
Tips for increasing the likelihood of a response
- Use the
preformatted textformatting option in the editor for all log entries and configuration output. - If screenshots are useful, feel free to include them.
- If possible, also include key error output in text form so it can be searched for.
- Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.
