HELP (i'm a noob @ this)

So, i’m facing a problem that is really frustrating for me (got to be honest, i’m a noob about this things so bear with me.

I created a subdomain with NextCloud 13 installed on it, i am on a shared server with this specs (Just copying from CPanel as i don’t understand half of the things that are here):
Entry Processes
22 / 40 (55%)
Physical Memory Usage
1.64 GB / 6 GB (27.33%)
I/O Usage
818 KB/s / 4 MB/s (19.97%)
CPU Usage
2 / 100 (2%)
Number Of Processes
1 / 80 (1.25%)
2 / 4,000 (0.05%)
[Disk Usage]
47.3 GB / ∞
MySQL® Disk Usage
40.73 MB / ∞
85.44 GB / ∞
[Addon Domains]
4 / ∞
6 / ∞
0 / ∞
[Email Accounts]
11 / ∞
0 / ∞
1 / ∞
[Email Filters]
0 / ∞
[FTP Accounts]
3 / ∞
[MySQL® Databases]
7 / ∞

Nextcloud works like a charm most of the time, it’s fast and stable UNTIL… i upload/downlaod a file that is larger than, say 1 GB; after that everything just crashes; on the CPanel the I/O Usage Maxes out, reaches 100% and then the page becomes unresponsive, the whole thing just hangs… i was wondering if there could be a solution in order to improve speed and prevent the server form maxing aut on the I/O Usage which seems to be the reason as of why it crashes. I’m using a TMDHosting Shared Enterprise Cloud server,


Nextcloud version (eg, 12.0.2):
Operating system and version (eg, Ubuntu 17.04):
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.1):

The issue you are facing: The server Hangs when uploading/downloading big files because of high I/O Usage on a shared cloud server

Is this the first time you’ve seen this error? (Y/N): N

Steps to replicate it:

  1. Install Nextcloud through Softaculous on CPanel
  2. Log In to account
  3. Drag & Drop a big DCIM folder of a Canon DSLR canon (or any file that is >1GB)
  4. Wait for it…
  5. The page and server become unresponsive, and Cpanel marks the I/O Usage full with 4MBps/MBps
  6. Rage

The output of your Nextcloud log in Admin > Logging:


The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

$CONFIG = array (
  'instanceid' => '',
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' => 
  array (
    0 => '',
  'datadirectory' => '/home/x/xdata',
  'overwrite.cli.url' => '',
  'dbtype' => 'mysql',
  'version' => '',
  'dbname' => 'x',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'x',
  'dbpassword' => '2',
  'installed' => true,
  'maintenance' => false,
  'mail_from_address' => 'notificaciones',
  'mail_smtpmode' => 'php',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_domain' => 'x',

The output of your Apache/nginx/system log in /var/log/____:

I Have no access there because i am on a shared hosting, so i have no access to the APACHE files.

I faced similar situation in my one week or so experience with Nextcloud. I uploaded a file of 3G size and the NC logined webpage freezed. BTW, I have NC installed on my NAS, my smb server was still working when NC freezed.

To fix, I left it alone, for around two hours may be. I ssh to the root directory of NC’s website and run

$ sudo -u www-data php occ list

you will see a list of available occ command, then I run

$ sudo -u www-data php occ integrity:check-app
$ sudo -u www-data php occ integrity:check-core
$ sudo -u www-data php occ trashbin:cleanup
$ sudo -u www-data php occ maintenance:data-fingerprint
.... whatever seems related

Problem solved. :laughing:

If it is the hosting company helps you to install NC, should you ask them to run the above command for you too?

Hey vvong.

Thanks a whole lot, i sent them a message and they replied this,

Any idea?

Nextcloud uses more resources than a small webpage. It certainly depends on your usage of Nextcloud, but if you sync several devices with a few users you can quickly reach the limit of some web hosting packages. Only thing you can do is to use the caching which reduces the load, however I’m not sure which of these mechanism are provided by hosting packages (and they’ll probably only some time).

They don’t want you to use so many resources. Perhaps they have some offers where they give you more i/o performance, or chose a different company. On a long term, I’d recommend at least using a vserver where you have much more options to configure your environment, so even if you have limited resources you can use them as good as possible. If you never touched a linux system, you’d probably start small on a system at home (in a virtual machine or on a cheap ARM device, there are already Linux images for that) and gather some experience before putting anything online.

Well, what I get from the first paragraph (after the greeting) is that they are asking for more money. It is really hard to judge if that is a fair deal because different hosting company package their plan differently with different cost structure. I believe even experienced users need spending time to study, not to mention new comers.

I used Joomla and they have a recommended hosting company that tune their server/ tailor made for hosting Joomla website. Not sure if Nextcloud can do something similar, or at least start a corner/channel focusing on this topic (rate company base on hard facts) to facilitate new users.

I use an ARM SBC, adding(testing) new apps every one or two days all online, and never notice such issue. I will find helpless if I encounter the same situation.

The problem is you’re being artificially limited by your provider.

Find a new provider and migrate.