Connection closed on shared hosting

I have a shared hosting account at Hostinger. I just installed Nextcloud there and it worked fine.

I’m able to upload small files with no problem, like 600kb, 1mb… But if I try to upload a 8mb file, it trows a Connection Closed error at around 4mb~, both via Nextcloud windows software and browser versions.

My host doesn’t allows more than 3 simultaneous connections - this can be an issue?

What can I do?

Without more detailed logs it is hard to tell. In your client you can limit the number of parallel connections, if you have more users that can be a real problem.

Hi Lucas,

I have exactly the same problem. Did you fix it?

Thkx

Hi,

The error I get in the screen sais

An exception occurred while executing ‘UPDATE oc_file_locks SET lock = -1, ttl = ? WHERE key = ? AND lock = 1’ with params [1570038422, “files/aa3e9ff62e866bcf2e46f5b831da386b”]: SQLSTATE[HY000]: General error: 2006 MySQL server

And the first error that appears in the register sais the following:

[no app in context] Error: Doctrine\DBAL\Exception\DriverException: An exception occurred while executing ‘SELECT fileid, storage, path, path_hash, parent, name, mimetype, mimepart, size, mtime,
storage_mtime, encrypted, etag, permissions, checksum
FROM oc_filecache WHERE storage = ? AND path_hash = ?’ with params [2, “20a263b8e072e5672e6f64ab490d8fdf”]:

SQLSTATE[HY000]: General error: 2006 MySQL server has gone away at <>

  1. /home/u688775261/domains/win2win-dpd.com/public_html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 184
    Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException(“An exception oc … y”, Doctrine\DBAL\Dr … ]})
  2. /home/u688775261/domains/win2win-dpd.com/public_html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 158
    Doctrine\DBAL\DBALException::wrapException(Doctrine\DBAL\Driver\PDOMySql\Driver {}, Doctrine\DBAL\Dr … ]}, “An exception oc … y”)
  3. /home/u688775261/domains/win2win-dpd.com/public_html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php line 938
    Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Doctrine\DBAL\Driver\PDOMySql\Driver {}, Doctrine\DBAL\Dr … ]}, “SELECT fileid … ?”, {1: 2,2: "20a263 … "})
  4. /home/u688775261/domains/win2win-dpd.com/public_html/nextcloud/lib/private/DB/Connection.php line 195
    Doctrine\DBAL\Connection->executeQuery(“SELECT fileid … ?”, [2,“20a263b8e072e5672e6f64ab490d8fdf”], , null)
  5. /home/u688775261/domains/win2win-dpd.com/public_html/nextcloud/lib/private/Files/Cache/Cache.php line 144
    OC\DB\Connection->executeQuery(“SELECT fileid … ?”, [2,“20a263b8e072e5672e6f64ab490d8fdf”])
  6. /home/u688775261/domains/win2win-dpd.com/public_html/nextcloud/lib/private/Files/Cache/HomeCache.php line 76
    OC\Files\Cache\Cache->get(“files/Pyrénées/ … f”)
  7. /home/u688775261/domains/win2win-dpd.com/public_html/nextcloud/lib/private/Files/View.php line 1321
    OC\Files\Cache\HomeCache->get(“files/Pyrénées/ … f”)
  8. /home/u688775261/domains/win2win-dpd.com/public_html/nextcloud/lib/private/Files/View.php line 1376
    OC\Files\View->getCacheEntry(OCA\Files_Trashb … l}, “files/Pyrénées/ … f”, “/Pyrénées/Contr … f”)
  9. /home/u688775261/domains/win2win-dpd.com/public_html/nextcloud/lib/private/Files/Node/HookConnector.php line 151
    OC\Files\View->getFileInfo(“/W2Wnextcloud-a … f”)
  10. /home/u688775261/domains/win2win-dpd.com/public_html/nextcloud/lib/private/Files/Node/HookConnector.php line 90
    OC\Files\Node\HookConnector->getNodeForPath(“/Pyrénées/Contr … f”)
  11. /home/u688775261/domains/win2win-dpd.com/public_html/nextcloud/lib/private/legacy/hook.php line 106
    OC\Files\Node\HookConnector->create({path: "/Pyrénée … e})
  12. /home/u688775261/domains/win2win-dpd.com/public_html/nextcloud/apps/dav/lib/Connector/Sabre/File.php line 326
    OC_Hook::emit(“OC_Filesystem”, “create”, {path: "/Pyrénée … e})
  13. /home/u688775261/domains/win2win-dpd.com/public_html/nextcloud/apps/dav/lib/Connector/Sabre/File.php line 236
    OCA\DAV\Connector\Sabre\File->emitPreHooks(false)
  14. /home/u688775261/domains/win2win-dpd.com/public_html/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php line 156
    OCA\DAV\Connector\Sabre\File->put(null)
  15. /home/u688775261/domains/win2win-dpd.com/public_html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1096
    OCA\DAV\Connector\Sabre\Directory->createFile(“CONTRACTE MULTIOPCIÓ - copia.pdf”, null)
  16. /home/u688775261/domains/win2win-dpd.com/public_html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 525
    Sabre\DAV\Server->createFile(“Pyrénées/Contra … f”, null, null)
  17. <>
    Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\Reque … "}, Sabre\HTTP\Response {})
  18. /home/u688775261/domains/win2win-dpd.com/public_html/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php line 105
    undefinedundefinedcall_user_func_array([Sabre\DAV\CorePlugin {},“httpPut”], [Sabre\HTTP\Requ … }])
  19. /home/u688775261/domains/win2win-dpd.com/public_html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 479
    Sabre\Event\EventEmitter->emit(“method:PUT”, [Sabre\HTTP\Requ … }])
  20. /home/u688775261/domains/win2win-dpd.com/public_html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 254
    Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Reque … "}, Sabre\HTTP\Response {})
  21. /home/u688775261/domains/win2win-dpd.com/public_html/nextcloud/apps/dav/appinfo/v1/webdav.php line 80
    Sabre\DAV\Server->exec()
  22. /home/u688775261/domains/win2win-dpd.com/public_html/nextcloud/remote.php line 163
    undefinedundefinedrequire_once(“/home/u68877526 … p”)

PUT /nextcloud/remote.php/webdav/Pyr%C3%A9n%C3%A9es/Contractes/CONTRACTE%20MULTIOPCI%C3%93%20-%20copia.pdf
from 91.187.80.190 by W2Wnextcloud-admin at 2019-10-02T17:07:42+00:00

I suppose you run into time or connection limits of the database. Is it shared hosting as well or can you check the database logs and settings?