Sharing Disappeared

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

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 :heart:

Nextcloud version (eg, 18.0.2): 19.0.0
Operating system and version (eg, Ubuntu 20.04): Linux 4.19.107-Unraid x86_64
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.1):

The issue you are facing:
I just installed nextcloud on my unraid docker yesterday and got it all up and running. I was able to share some files. All was fine. Today when accessing Nextcloud, I am not able to share any files or photos. The sharing option is gone. I can’t figure this out and not able to see where I can renable this or what happened.

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

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:

Error	index	OCP\Files\NotPermittedException: Could not create folder		2020-06-25T11:56:14-0400
	OCP\Files\NotPermittedException: Could not create folder
/config/www/nextcloud/lib/private/Files/AppData/AppData.php - line 157:

OC\Files\Node\Folder->newFolder("4/d/2/8/9/c/1/9907")

/config/www/nextcloud/lib/private/Preview/Storage/Root.php - line 58:

OC\Files\AppData\AppData->newFolder("4/d/2/8/9/c/1/9907")

/config/www/nextcloud/lib/private/Preview/Generator.php - line 462:

OC\Preview\Storage\Root->newFolder("9907")

/config/www/nextcloud/lib/private/Preview/Generator.php - line 133:

OC\Preview\Generator->getPreviewFolder(OC\Files\Node\File {})

/config/www/nextcloud/lib/private/Preview/Generator.php - line 107:

OC\Preview\Generator->generatePreviews(OC\Files\Node\File {}, [ { width: 3 ... }], "text/markdown")

/config/www/nextcloud/lib/private/PreviewManager.php - line 190:

OC\Preview\Generator->getPreview(OC\Files\Node\File {}, 32, 32, true, "fill", null)

/config/www/nextcloud/core/Controller/PreviewController.php - line 170:

OC\PreviewManager->getPreview(OC\Files\Node\File {}, 32, 32, true, "fill")

/config/www/nextcloud/core/Controller/PreviewController.php - line 143:

OC\Core\Controller\PreviewController->fetchPreview(OC\Files\Node\File {}, 32, 32, false, true, "fill")

/config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 170:

OC\Core\Controller\PreviewController->getPreviewByFileId(9907, 32, 32, false, true, "fill")

/config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 100:

OC\AppFramework\Http\Dispatcher->executeController(OC\Core\Cont ... {}, "getPreviewByFileId")

/config/www/nextcloud/lib/private/AppFramework/App.php - line 137:

OC\AppFramework\Http\Dispatcher->dispatch(OC\Core\Cont ... {}, "getPreviewByFileId")

/config/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:

OC\AppFramework\App::main("OC\\Core\\C ... r", "getPreviewByFileId", OC\AppFramew ... {}, { _route: "c ... "})

<<closure>>

OC\AppFramework\Routing\RouteActionHandler->__invoke({ _route: "c ... "})

/config/www/nextcloud/lib/private/Route/Router.php - line 297:

call_user_func(OC\AppFramew ... {}, { _route: "c ... "})

/config/www/nextcloud/lib/base.php - line 1007:

OC\Route\Router->match("/core/preview")

/config/www/nextcloud/index.php - line 37:

OC::handleRequest()
Error	index	OCP\Files\NotPermittedException: Could not create folder		2020-06-25T11:56:13-0400
Error	sharebymail	Swift_RfcComplianceException: Address in mailbox given [My Okavango@localhost.localdomain] does not comply with RFC 2822, 3.6.2.		2020-06-25T11:27:29-0400
Error	text	OCP\Files\NotFoundException: 		2020-06-24T21:28:07-0400
Error	text	OCP\Files\NotFoundException: 		2020-06-24T21:28:06-0400
Error	PHP	session_start(): A session had already been started - ignoring at /config/www/nextcloud/lib/private/Session/Internal.php#209		2020-06-24T18:00:20-0400
Error	PHP	session_start(): A session had already been started - ignoring at /config/www/nextcloud/lib/private/Session/Internal.php#209		2020-06-24T17:50:00-0400
Error	PHP	session_start(): A session had already been started - ignoring at /config/www/nextcloud/lib/private/Session/Internal.php#209		2020-06-24T17:00:06-0400
Warning	no app in context	Login failed: nextcloud (Remote IP: 99.229.32.254)		2020-06-24T16:27:45-0400
Error	cron	Exception: Not installed		2020-06-22T22:30:01-0400
Error	jsresourceloader	Could not find resource js/setup.js to load		2020-06-22T22:28:56-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T22:28:56-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T22:28:56-0400
Error	PHP	session_start(): A session had already been started - ignoring at /config/www/nextcloud/lib/private/Session/Internal.php#209		2020-06-22T22:28:56-0400
Warning	no app in context	Could not detect any host in http:///data/htaccesstest.txt		2020-06-22T22:27:55-0400
Warning	no app in context	Could not detect any host in https:///data/htaccesstest.txt		2020-06-22T22:27:55-0400
Error	PHP	session_start(): A session had already been started - ignoring at /config/www/nextcloud/lib/private/Session/Internal.php#209		2020-06-22T22:27:55-0400
Error	jsresourceloader	Could not find resource js/setup.js to load		2020-06-22T22:26:35-0400
Warning	no app in context	Could not detect any host in http:///data/htaccesstest.txt		2020-06-22T22:26:35-0400
Warning	no app in context	Could not detect any host in https:///data/htaccesstest.txt		2020-06-22T22:26:35-0400
Error	jsresourceloader	Could not find resource js/setup.js to load		2020-06-22T22:26:35-0400
Error	PHP	session_start(): A session had already been started - ignoring at /config/www/nextcloud/lib/private/Session/Internal.php#209		2020-06-22T22:26:35-0400
Warning	no app in context	Could not detect any host in http:///data/htaccesstest.txt		2020-06-22T22:26:35-0400
Warning	no app in context	Could not detect any host in https:///data/htaccesstest.txt		2020-06-22T22:26:35-0400
Error	PHP	session_start(): A session had already been started - ignoring at /config/www/nextcloud/lib/private/Session/Internal.php#209		2020-06-22T22:26:35-0400
Error	cron	Exception: Not installed		2020-06-22T22:10:01-0400
Error	jsresourceloader	Could not find resource js/setup.js to load		2020-06-22T22:09:50-0400
Error	no app in context	Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [1044] Access denied for user 'nextcloud'@'%' to database 'nextcloud'		2020-06-22T22:09:50-0400
Error	mysql.setup	Doctrine\DBAL\Exception\ConnectionException: An exception occurred while executing 'CREATE DATABASE IF NOT EXISTS `nextcloud` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;': SQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for user 'nextcloud'@'%' to database 'nextcloud'		2020-06-22T22:09:50-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T22:09:50-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T22:09:50-0400
Error	PHP	session_start(): A session had already been started - ignoring at /config/www/nextcloud/lib/private/Session/Internal.php#209		2020-06-22T22:09:50-0400
Error	jsresourceloader	Could not find resource js/setup.js to load		2020-06-22T22:08:05-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T22:08:05-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T22:08:05-0400
Error	PHP	session_start(): A session had already been started - ignoring at /config/www/nextcloud/lib/private/Session/Internal.php#209		2020-06-22T22:08:05-0400
Error	jsresourceloader	Could not find resource js/setup.js to load		2020-06-22T22:06:51-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T22:06:51-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T22:06:51-0400
Error	PHP	session_start(): A session had already been started - ignoring at /config/www/nextcloud/lib/private/Session/Internal.php#209		2020-06-22T22:06:51-0400
Error	jsresourceloader	Could not find resource js/setup.js to load		2020-06-22T22:06:09-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T22:06:09-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T22:06:09-0400
Error	PHP	session_start(): A session had already been started - ignoring at /config/www/nextcloud/lib/private/Session/Internal.php#209		2020-06-22T22:06:09-0400
Error	cron	Exception: Not installed		2020-06-22T22:05:01-0400
Error	jsresourceloader	Could not find resource js/setup.js to load		2020-06-22T22:04:56-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T22:04:55-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T22:04:55-0400
Error	PHP	session_start(): A session had already been started - ignoring at /config/www/nextcloud/lib/private/Session/Internal.php#209		2020-06-22T22:04:55-0400
Error	jsresourceloader	Could not find resource js/setup.js to load		2020-06-22T22:03:21-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T22:03:21-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T22:03:21-0400
Error	PHP	session_start(): A session had already been started - ignoring at /config/www/nextcloud/lib/private/Session/Internal.php#209		2020-06-22T22:03:21-0400
Error	jsresourceloader	Could not find resource js/setup.js to load		2020-06-22T22:02:03-0400
Error	no app in context	Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [1044] Access denied for user 'nextcloud'@'%' to database 'nextcloud'		2020-06-22T22:02:03-0400
Error	mysql.setup	Doctrine\DBAL\Exception\ConnectionException: An exception occurred while executing 'CREATE DATABASE IF NOT EXISTS `nextcloud` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;': SQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for user 'nextcloud'@'%' to database 'nextcloud'		2020-06-22T22:02:03-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T22:02:03-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T22:02:03-0400
Error	PHP	session_start(): A session had already been started - ignoring at /config/www/nextcloud/lib/private/Session/Internal.php#209		2020-06-22T22:02:03-0400
Error	cron	Exception: Not installed		2020-06-22T22:00:01-0400
Error	jsresourceloader	Could not find resource js/setup.js to load		2020-06-22T21:59:46-0400
Error	no app in context	Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [1044] Access denied for user 'nextcloud'@'%' to database 'nextcloud'		2020-06-22T21:59:46-0400
Error	mysql.setup	Doctrine\DBAL\Exception\ConnectionException: An exception occurred while executing 'CREATE DATABASE IF NOT EXISTS `nextcloud` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;': SQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for user 'nextcloud'@'%' to database 'nextcloud'		2020-06-22T21:59:46-0400
Warning	no app in context	Could not detect any host in http:///data/htaccesstest.txt		2020-06-22T21:59:46-0400
Warning	no app in context	Could not detect any host in https:///data/htaccesstest.txt		2020-06-22T21:59:46-0400
Error	PHP	session_start(): A session had already been started - ignoring at /config/www/nextcloud/lib/private/Session/Internal.php#209		2020-06-22T21:59:46-0400
Error	jsresourceloader	Could not find resource js/setup.js to load		2020-06-22T21:58:46-0400
Warning	no app in context	Could not detect any host in http:///data/htaccesstest.txt		2020-06-22T21:58:46-0400
Warning	no app in context	Could not detect any host in https:///data/htaccesstest.txt		2020-06-22T21:58:46-0400
Error	PHP	session_start(): A session had already been started - ignoring at /config/www/nextcloud/lib/private/Session/Internal.php#209		2020-06-22T21:58:46-0400
Error	jsresourceloader	Could not find resource js/setup.js to load		2020-06-22T21:52:28-0400
Error	no app in context	Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [1044] Access denied for user 'nextcloud'@'%' to database 'nextcloud'		2020-06-22T21:52:28-0400
Error	mysql.setup	Doctrine\DBAL\Exception\ConnectionException: An exception occurred while executing 'CREATE DATABASE IF NOT EXISTS `nextcloud` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;': SQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for user 'nextcloud'@'%' to database 'nextcloud'		2020-06-22T21:52:28-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T21:52:28-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T21:52:28-0400
Error	PHP	session_start(): A session had already been started - ignoring at /config/www/nextcloud/lib/private/Session/Internal.php#209		2020-06-22T21:52:28-0400
Error	jsresourceloader	Could not find resource js/setup.js to load		2020-06-22T21:51:31-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T21:51:31-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T21:51:31-0400
Error	PHP	session_start(): A session had already been started - ignoring at /config/www/nextcloud/lib/private/Session/Internal.php#209		2020-06-22T21:51:31-0400
Error	jsresourceloader	Could not find resource js/setup.js to load		2020-06-22T21:50:04-0400
Error	no app in context	Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [1044] Access denied for user 'nextcloud'@'%' to database 'nextcloud'		2020-06-22T21:50:04-0400
Error	mysql.setup	Doctrine\DBAL\Exception\ConnectionException: An exception occurred while executing 'CREATE DATABASE IF NOT EXISTS `nextcloud` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;': SQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for user 'nextcloud'@'%' to database 'nextcloud'		2020-06-22T21:50:04-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T21:50:04-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T21:50:04-0400
Error	PHP	session_start(): A session had already been started - ignoring at /config/www/nextcloud/lib/private/Session/Internal.php#209		2020-06-22T21:50:04-0400
Error	cron	Exception: Not installed		2020-06-22T21:50:00-0400
Error	jsresourceloader	Could not find resource js/setup.js to load		2020-06-22T21:49:05-0400
Error	no app in context	Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [1044] Access denied for user 'nextcloud'@'%' to database 'nextcloud'		2020-06-22T21:49:05-0400
Error	mysql.setup	Doctrine\DBAL\Exception\ConnectionException: An exception occurred while executing 'CREATE DATABASE IF NOT EXISTS `nextcloud` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;': SQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for user 'nextcloud'@'%' to database 'nextcloud'		2020-06-22T21:49:05-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T21:49:05-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T21:49:05-0400
Error	PHP	session_start(): A session had already been started - ignoring at /config/www/nextcloud/lib/private/Session/Internal.php#209		2020-06-22T21:49:05-0400
Error	jsresourceloader	Could not find resource js/setup.js to load		2020-06-22T21:47:15-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T21:47:15-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T21:47:15-0400
Error	PHP	session_start(): A session had already been started - ignoring at /config/www/nextcloud/lib/private/Session/Internal.php#209		2020-06-22T21:47:14-0400
Error	jsresourceloader	Could not find resource js/setup.js to load		2020-06-22T21:47:08-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T21:47:08-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T21:47:08-0400
Error	PHP	session_start(): A session had already been started - ignoring at /config/www/nextcloud/lib/private/Session/Internal.php#209		2020-06-22T21:47:08-0400
Error	jsresourceloader	Could not find resource js/setup.js to load		2020-06-22T21:47:08-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T21:47:08-0400
Warning	no app in context	Host 192.168.1.138 was not connected to because it violates local access rules		2020-06-22T21:47:08-0400
Error	PHP	session_start(): A session had already been started - ignoring at /config/www/nextcloud/lib/private/Session/Internal.php#209		2020-06-22T21:47:08-0400
Error	jsresourceloader	Could not find resource js/setup.js to load		2020-06-22T21:47:07-0400
Warning	no app in context	Could not detect any host in http:///data/htaccesstest.txt		2020-06-22T21:46:07-0400

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

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'datadirectory' => '/data',
  'instanceid' => 'oc9nxl46klgc',
  'passwordsalt' => 'Yvj8b23omP1LHBwH3AEuIOckCep3A9',
  'secret' => '93d5G6f0gzNgIjJ8Pm8EajsjgMWgQzp84zWk9J9y3V9+gkKK',
  'trusted_domains' => 
  array (
    0 => '192.168.1.138:444',
	1 => 'okavangonextcloud.duckdns.org',
  ),
  'dbtype' => 'mysql',
  'version' => '19.0.0.12',
  'overwrite.cli.url' => 'https://okavangonextcloud.duckdns.org',
  'overwritehost' => 'okavangonextcloud.duckdns.org',
  'overwriteprotocol' => 'https',
  'dbname' => 'nextcloud',
  'dbhost' => '192.168.1.138:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'xxxxx',
  'dbpassword' => 'xxxx',
  'installed' => true,

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

PASTE HERE

There are a lot of errors in your logs, check the permissions if everything is accessible for your webserver user (or if the disk is full). Also a few database connection errors …

Access denied for user 'nextcloud'@'%' to database 'nextcloud'

I had to reinstall my apps as I my cache drive was failing. I’m able to access nextcloud but seeing these errors but have no idea what it means.
|Error|cron|Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] Connection refused

  1. /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php - line 889:OC\DB\Connection->connect()
  2. /config/www/nextcloud/lib/private/DB/Connection.php - line 194:Doctrine\DBAL\Connection->executeQuery("SELECT * FROM oc_appconfig", [], [], null)
  3. /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php - line 200:OC\DB\Connection->executeQuery("SELECT * FROM oc_appconfig", [], [])
  4. /config/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php - line 216:Doctrine\DBAL\Query\QueryBuilder->execute()
  5. /config/www/nextcloud/lib/private/AppConfig.php - line 331:OC\DB\QueryBuilder\QueryBuilder->execute()
  6. /config/www/nextcloud/lib/private/AppConfig.php - line 109:OC\AppConfig->loadConfigValues()
  7. /config/www/nextcloud/lib/private/AppConfig.php - line 287:OC\AppConfig->getApps()
  8. /config/www/nextcloud/lib/private/legacy/OC_App.php - line 883:OC\AppConfig->getValues(false, “installed_version”)
  9. /config/www/nextcloud/lib/private/Server.php - line 662:OC_App::getAppVersions()
  10. /config/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php - line 118:OC\Server->OC{closure}("*** sensiti … *")
  11. /config/www/nextcloud/lib/private/ServerContainer.php - line 124:Pimple\Container->offsetGet(“OC\Memcache\Factory”)
  12. /config/www/nextcloud/lib/private/Server.php - line 1699:OC\ServerContainer->query(“OC\Memcache\Factory”)
  13. /config/www/nextcloud/lib/private/Server.php - line 853:OC\Server->getMemCacheFactory()
  14. /config/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php - line 118:OC\Server->OC{closure}("*** sensiti … *")
  15. /config/www/nextcloud/lib/private/ServerContainer.php - line 124:Pimple\Container->offsetGet(“OC\App\AppManager”)
  16. /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 163:OC\ServerContainer->query(“OC\App\AppManager”)
  17. /config/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php - line 114:OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}("*** sensiti … *")
  18. /config/www/nextcloud/lib/private/ServerContainer.php - line 124:Pimple\Container->offsetGet(“OCP\App\IAppManager”)
  19. /config/www/nextcloud/lib/private/Server.php - line 1889:OC\ServerContainer->query(“OCP\App\IAppManager”)
  20. /config/www/nextcloud/lib/private/legacy/OC_App.php - line 347:OC\Server->getAppManager()
  21. /config/www/nextcloud/lib/private/legacy/OC_App.php - line 114:OC_App::getEnabledApps()
  22. /config/www/nextcloud/lib/base.php - line 647:OC_App::loadApps([ “session”])
  23. /config/www/nextcloud/lib/base.php - line 1090:OC::init()
  24. /config/www/nextcloud/cron.php - line 42:require_once("/config/www … p")|
    | — | — |

Your database connection failed.

'dbhost' => '192.168.1.138:3306',
  'dbport' => '',

If there is a separate variable for the port, use it:

'dbhost' => '192.168.1.138',
  'dbport' => '3306',

If you use a socket, you might just use the dbhost localhost and you don’t need to set the port variable.