Support intro
Sorry to hear youâre facing problems
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
Nextcloud version (eg, 18.0.2): 19.0.0.12
Operating system and version (eg, Ubuntu 20.04): DietPi 6.31.2
Apache or nginx version (eg, Apache 2.4.25): lighttpd (version unknown)
PHP version (eg, 7.1): 7.3
The issue you are facing:
Nextcloud is working fine on internal connections, but doesnât seem to work on external. I set up port forwarding on a previous attempt to get this going using an unbundled set up and that worked okay, but it was using a minimal amount of ram (I have a Pi4/8GB) and was slow. Further research uncovered Nextcloud on DietPi that implemented caching (much quicker) and was fully set up. The port forwarding and Duckdns side is working fine, but I am getting Connection Refused errors in browsers.
The command line methods (there are multiple on the page - are any of them correct?) all come back with âcommand not foundâ. (Later found that it isnât a NextcloudPi install but DietPiâs optimized package.)
The webui (192.168.0.5:4443) comes back with Connection Refused (same error as trying to access from outside).
As mentioned previously, the Nextcloud stuff itself (can make/remove users, upload & preview files etc.) is working, it is just the access to the config and from external locations that arenât. (And is the wiki documentation correct?)
Is this the first time youâve seen this error? (Y/N): Yes - new installation
Steps to replicate it:
- Try to access from outside of the LAN
The output of your Nextcloud log in Admin > Logging:
I suspect irrelevant but:
Error PHP session_start(): A session had already been started - ignoring at /var/www/nextcloud/lib/private/Session/Internal.php#209 2020-07-09T18:53:40+0100
Error PHP Undefined index: debugMode at /var/www/nextcloud/core/templates/exception.php#26 2020-07-09T12:33:47+0100
Error PHP Undefined index: debugMode at /var/www/nextcloud/core/templates/exception.php#17 2020-07-09T12:33:47+0100
Fatal webdav Sabre\DAV\Exception\RequestedRangeNotSatisfiable: The start offset (0) exceeded the size of the entity (-2038665976) 2020-07-09T12:33:47+0100
Error PHP Undefined index: debugMode at /var/www/nextcloud/core/templates/exception.php#26 2020-07-09T12:33:37+0100
Error PHP Undefined index: debugMode at /var/www/nextcloud/core/templates/exception.php#17 2020-07-09T12:33:37+0100
Fatal webdav Sabre\DAV\Exception\RequestedRangeNotSatisfiable: The start offset (0) exceeded the size of the entity (-2038665976) 2020-07-09T12:33:37+0100
Error PHP file_put_contents(): content truncated from 2256301320 to 2147483647 bytes at /var/www/nextcloud/lib/private/Files/Storage/Local.php#555 2020-07-09T12:30:11+0100
Error PHP file_put_contents(): content truncated from 2257065241 to 2147483647 bytes at /var/www/nextcloud/lib/private/Files/Storage/Local.php#555 2020-07-09T12:30:07+0100
Error PHP file_put_contents(): content truncated from 2256301320 to 2147483647 bytes at /var/www/nextcloud/lib/private/Files/Storage/Local.php#555 2020-07-09T12:05:46+0100
Error PHP file_put_contents(): content truncated from 2257065241 to 2147483647 bytes at /var/www/nextcloud/lib/private/Files/Storage/Local.php#555 2020-07-09T12:05:38+0100
Error PHP session_start(): A session had already been started - ignoring at /var/www/nextcloud/lib/private/Session/Internal.php#209 2020-07-09T11:47:58+0100
Error ocs_api Swift_TransportException: Connection could not be established with host 127.0.0.1 :stream_socket_client(): unable to connect to 127.0.0.1:25 (Connection refused) 2020-07-09T11:47:29+0100
Fatal ocs_api Failed addUser attempt: User already exists. 2020-07-09T11:47:27+0100
Fatal ocs_api Failed addUser attempt: User already exists. 2020-07-09T11:44:14+0100
Error index OCP\Files\NotPermittedException: Could not create folder 2020-07-09T11:14:44+0100
Error index OCP\Files\NotPermittedException: Could not create folder 2020-07-09T11:14:44+0100
Error index OCP\Files\NotPermittedException: Could not create folder 2020-07-09T11:14:44+0100
Warning appstoreFetcher Could not connect to appstore: cURL error 28: Operation timed out after 10000 milliseconds with 1146890 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) 2020-07-09T11:10:16+0100
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
$CONFIG = array (
'passwordsalt' => '[PASSWORD STUFF]',
'secret' => '[SECRET STUFF]',
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'colinrnas.duckdns.org',
2 => '*',
),
'datadirectory' => '/mnt/dietpi_userdata/nextcloud_data',
'dbtype' => 'mysql',
'version' => '19.0.0.12',
'memcache.local' => '\\OC\\Memcache\\APCu',
'filelocking.enabled' => true,
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/run/redis/redis-server.sock',
'port' => 0,
),
'overwrite.cli.url' => 'http://localhost/nextcloud',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => '[USERNAME]',
'dbpassword' => '[PASSWORD]',
'installed' => true,
'instanceid' => '[INSTANCE]',
'maintenance' => false,
);
The output of your Apache/nginx/system log in /var/log/____
:
No sign of Apache/nginx but I do have a lighttpd directory containing error.log which is empty.