Posts tagged: nextcloud

All posts with the tag "nextcloud"

4 posts latest post 2025-07-17
Publishing rhythm
Jul 2025 | 2 posts

I am working on using gotify cli for notifying me of nextcloud uploads and I’ll start by running the gotify cli as my user so I’ll need to be able to see the directory in the filesystem that Nextcloud stores the data in.

That folder on disk is owned by www-data (see Nextcloud permissions with ZFS and Ansible-NAS

Turns out it’s my computer and I can do what I want so I just add myself to the www-data group instead of running the gotify cli as root

Bonus

You can remove users from groups with gpasswd -d username groupname

gotify cli for notifying me of nextcloud uploads

gotify cli for notifying me of nextcloud uploads

The Ask I was looking for a way to get notified from nextcloud when files were uploaded to a certain directory. This is because the upload is very spotty due to the physical environment of where the nextcloud client is, and once a file shows up I have a job to do. So I was hoping nextcloud had an easy way to say “if file shows up in X folder, notify me” but I can’t find it… Solution 2 # Since I already use gotify and they provide a DOPE CLI we can write a little bash script to work at the filesystem level rather than the nextcloud level. Permissions # We’ll need to make sure the user running this script has all the right read permissions… In my exact case the file upload happens in a group folder, which is easily found on the filesystem in the Nextcloud volume at. This was owned by on the host, see Add yourself to www-data to view your Nextcloud data on the filesystem if you want but a simple does the trick. The Script # With a little AI magic to spruce up the messaging, the script bas…
Nextcloud PHP Opache Memory Consumption

Nextcloud PHP Opache Memory Consumption

Intro Today I was combing through Nextcloud, just taking a gander at the apps, updates, etc. The OPcache buffer is nearly full. To assure that all scripts can be hold in cache, it is recommended to apply “opcache.memory_consumption” to your PHP configuration with a value higher than “128” So I know nothing about and I had no idea where to set this… Also I’m running Nextcloud in a container so any updates will be blown away when the container is removed (say next time I update Nextcloud)… After a little duckduckgoing I came across this reddit post where a guy had the same issue… The long and short of it is that on single instance nextcloud deployments this php memory consumption value can be too low for Nextcloud to keep up with the demand… You can see in the message they just recommend upping the value. So I had to think about how to persist the change and have it take effect now ideally without affecting any users too much… So here’s what I did - made the change in 2 places: In the co…