Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • 1 Votes
    9 Posts
    294 Views
    firmansiF
    I have plugins regarding to this feature off for a while in Nextcloud, till the issue is found and hopefully resolved
  • 2 Votes
    7 Posts
    263 Views
    jamesJ
    Hello @i.fritz Thanks for providing these details. Inside you config I can see something shady: MinSpareServers 20 MaxSpareServers 20 But MaxSpareServers should be MaxSpareServers >= MinSpareServers+1 so at least 21. Just in case this could cause any issues. @i.fritz said in Nextcloud Talk CHAT very slow: I see CPU at a lot of Apache processes As expected when you start StartServers 50 and a minimum of MinSpareServers 20 so at least 70 processes. So maybe this config is already a bit shady. <!-- Disclaimer - the following contains partly AI generated content --!> I've done my due diligance to confirm that everything is correct and sane. Made the AI format my sloppy text into something readable. <!-- End of disclaimer --!> For a Nextcloud setup with 100+ users, the Apache prefork MPM settings should balance performance, stability, and resource efficiency. Below are recommended values based on typical production environments, alongside key considerations: Recommended Apache Prefork Settings <IfModule mpm_prefork_module> StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxRequestWorkers 100 # Previously "MaxClients" MaxConnectionsPerChild 5000 </IfModule> Explanation & Rationale StartServers 5 Initial processes to handle traffic spikes at startup. Why? Avoids delay in spawning processes during sudden load. MinSpareServers 5 MaxSpareServers 10 Maintains 5–10 idle processes to absorb traffic surges. Why? Prevents latency by keeping workers ready. For 100+ users, higher spares reduce wait times during concurrency peaks. MaxRequestWorkers 100 Maximum simultaneous requests. Why? Assumes 10–20% concurrent active users (10–20 requests at peak). Each user may open 2–5 connections (pages, syncs, uploads). Adjust based on RAM: Estimate RAM/process: Minimal: 30–50 MB (optimized PHP). Typical: 70–150 MB (with PHP modules). Formula: MaxRequestWorkers = (Available RAM for Apache) / (Average PHP process size) Example: 8 GB RAM server → Reserve 4 GB for Apache → 4000 MB / 50 MB ≈ 80 workers. Start with 100, monitor, and adjust. MaxConnectionsPerChild 5000 Recycle processes after 5000 requests. Why? Prevents memory leaks without excessive process recycling. Avoid values <1000 (causes frequent restart overhead). Values >10k are acceptable if leaks are minimal. Critical Considerations PHP Memory: Set php.ini values:max_execution_time = 300 ; For large uploads/ops Cloudron sets this for PHP by default: RUN crudini --set /etc/php/8.3/apache2/php.ini PHP upload_max_filesize 5G && \ crudini --set /etc/php/8.3/apache2/php.ini PHP post_max_size 5G && \ crudini --set /etc/php/8.3/apache2/php.ini PHP memory_limit 512M && \ crudini --set /etc/php/8.3/apache2/php.ini opcache opcache.enable 1 && \ crudini --set /etc/php/8.3/apache2/php.ini opcache opcache.enable_cli 1 && \ crudini --set /etc/php/8.3/apache2/php.ini opcache opcache.interned_strings_buffer 32 && \ crudini --set /etc/php/8.3/apache2/php.ini opcache opcache.max_accelerated_files 10000 && \ crudini --set /etc/php/8.3/apache2/php.ini opcache opcache.memory_consumption 128 && \ crudini --set /etc/php/8.3/apache2/php.ini opcache opcache.save_comments 1 && \ crudini --set /etc/php/8.3/apache2/php.ini opcache opcache.revalidate_freq 1 && \ crudini --set /etc/php/8.3/apache2/php.ini Session session.save_path /run/nextcloud/sessions && \ crudini --set /etc/php/8.3/apache2/php.ini Session session.gc_probability 1 && \ crudini --set /etc/php/8.3/apache2/php.ini Session session.gc_divisor 100 Adjustment Workflow Start with recommended values. Simulate load with tools like ab:ab -n 1000 -c 50 https://your-nextcloud.com/ Note: Do not start the load test from your desktop machine at home or the Nextcloud server itself. It should be a VM with enough power. Maybe rent a bigger Hetzner vServer for 30–60 minutes to do the load test against your Nextcloud. Monitor: RAM usage (avoid >70% total usage). Idle workers (should rarely hit 0). Queue length (via mod_status; requests waiting for workers). Scale incrementally: Increase MaxRequestWorkers if queues form. Reduce MaxSpareServers if idle processes waste RAM. With these setting your Nextcloud should at least be assigned 8GB RAM, but since you have 128 GB why not give it 12GB. This might already help.
  • 1 Votes
    5 Posts
    325 Views
    nottheendN
    Thanks! For now, rclone seems to be most promising. Syncthing doesn't fit my needs, because it has no S3 API, mentioning it for future reference. And btw, rclone GUI is on the wishlist.
  • 1 Votes
    5 Posts
    323 Views
    L
    @jdaviescoates Everywhere, basically. Would it be possible to setup Nextcloud so that people could inhabit and use it without ever seeing each other's emails? If you are on a nextcloud and you look at the Users list, even as a regular user, you will probably see everybody's email listed there. There might be some environments where you would not wish participants to have their emails disclosed to the rest of the nextcloud.
  • 0 Votes
    5 Posts
    338 Views
    BrutalBirdieB
    Also take in consideration that the base domain takes longer to propagate then a subdomain.
  • tarExtract pipeline error: Invalid tar header

    Solved Support restore nextcloud header tar
    21
    1 Votes
    21 Posts
    1k Views
    P
    @nottheend ok thanks a lot
  • Nextcloud Hub9 Launch September 14th

    Nextcloud nextcloud hub9
    6
    1 Votes
    6 Posts
    982 Views
    sponchS
    would be really great to have a beta package (alongside production) just for testing purposes
  • 2 Votes
    2 Posts
    541 Views
    David 0D
    I would also be interested in how to use clamav for nextcloud. is there some sort of anti virus pre-packaged?
  • 5 Votes
    3 Posts
    692 Views
    necrevistonnezrN
    @3246 said in [Guide] How to migrate an existing Nextcloud instance to Cloudron: Hi all, just moving back to Cloudron after a few months on Nextcloud AIO for reasons I leave to your imagination How was AIO though? Did fulltext search etc. really work out of the box?
  • Nextcloud Hub8 Launch Livestream about to start

    Nextcloud nextcloud hub8
    11
    1 Votes
    11 Posts
    2k Views
    L
    @necrevistonnezr I am just curious how you would go about attaching a static webpage to Nextcloud. Do you think there is a way to have the Nextcloud display one as a landing page instead of the login page?
  • 0 Votes
    9 Posts
    1k Views
    jdaviescoatesJ
    @LoudLemur said in How to record teleconference in Nextcloud Talk?: However, I imagine you have the same version, and that is why you are asking, in which case, I don't know. Correct, ok thanks.
  • Nextcloud and volumes: Backup

    Solved Support aws cloudron nextcloud backup volume
    3
    1
    1 Votes
    3 Posts
    661 Views
    nottheendN
    Great! Thank you so much for the detailed and helpful answer
  • Nextcloud not responding after disk full incident

    Solved Support disk space nextcloud
    7
    1 Votes
    7 Posts
    921 Views
    girishG
    @whitespace I see that earlier in the thread you said you had no backups. But just wanted to double check, if you had any (even ancient ones) ? The reason is config.php has passwordsalt and secret which is what is used to hash the db entries. https://github.com/nextcloud/server/issues/34780 has some suggestions which may or may not work . As for your question, not a nextcloud expert, but if I had to guess user settings and password will be reset since the data files is only the files.
  • 0 Votes
    9 Posts
    6k Views
    bmannB
    Setting up the sieve rule means I have to have the password and set all of that up. Using the "mailing list" settings means I don't have to do any of that, don't need to create an inbox, and it doesn't need to be owned by any accounts (and cloudron users with email admin / admin / superadmin can modify as needed). [image: 1702689032849-screen-shot-2023-12-15-at-5.08.26-pm-resized.png] So I guess I answered my own question I'll write it up. for people who ask in the future. "How do I set up email forwarding to external accounts without having to provision Cloudron accounts" == mailing list. @luckow thanks for the SoGo -- looks like that does take care of everything.
  • 0 Votes
    9 Posts
    1k Views
    jdaviescoatesJ
    @girish said in All previous folders and files have disappeared after migrating Nextcloud to a different Cloudron server: Alternately, you have to wait for us to investigate if the situation has changed wrt migrating users from uid based installations . Out of interest (because it came up again here did you ever get around to investigating this? And re "uid based installations" - is that some legacy thing? i.e. are there non-"uid based installations" - and were you referring to installations of Nextcloud or installations of Cloudron? I'm thinking/ hoping that perhaps you meant uid installations of Nextcloud and that was a legacy thing and now they aren't like that and perhaps Nextcloud is portable from one Cloudron server to another? But I'm not at all clear
  • Social Well Known

    Solved Nextcloud nextcloud social well-known
    9
    2
    2 Votes
    9 Posts
    1k Views
    mhgcicM
    @girish said in Social Well Known: I tested this out quickly. Indeed, the app auto creates an id of the form @nc.domain.com . After domain change, it doesn't adapt. But I don't think this is a bug in the app. Most of the federated apps (even outside nextcloud) cannot change their domain post installation. [image: 1694865974654-557dcf47-0cf0-4733-b650-a4ef66e64f6d-image-resized.png] I thought the same! It seems to be a bit of a bugger that, on the other hand, I located the folder for well-known but nowhere does it show the URL in the files in the well-known folder for the app. I have messaged the developer of the app to see if they could put in the description to only install on a URL that will not change or find a way around it but I don't think the developers of federated apps have it high on their priority to make domain name changes possible.
  • 0 Votes
    3 Posts
    627 Views
    L
    @marcusquinn Thanks. In the recent Hub5 presentation, NextCloud's CEO showed clear commitment to data sovereignty for users. I think it is great how Nextcloud could as easily help individuals and families as much as businesses.
  • Nextcloud Hub5 launch event live

    Nextcloud nextcloud hub5 hub launch
    24
    4 Votes
    24 Posts
    4k Views
    J
    @jagan And I restarted the whole cloudron server and lo and behold, the app came back online. I was watching the logs, it sputtered and crackled, but in the end, came through. Thank you Cloudron for all this magic.
  • Restore of app fails: Out of memory

    Solved Support nextcloud recovery failure memory
    2
    1 Votes
    2 Posts
    435 Views
    nottheendN
    This topic can be marked as closed. I decided to buy an instance with more memory and it worked well.
  • Secure Database suggestions

    Discuss database security nextcloud
    2
    0 Votes
    2 Posts
    518 Views
    humptydumptyH
    @LoudLemur I use cryptomator to encrypt sensitive files that I have on my nextcloud. Your use case is a bit trickier as you have multiple people working on the same file simultaneously. Take a look at the existing apps in the App Store like collabora, onlyoffice, and cryptpad. Cryptpad might be your best option though as it’s end to end encrypted. Edit: There’s also baserow and noco. I’m not sure if the databases are encrypted.