Does anyone have a working nextcloud server?

I am curious if anyone has a working Nextcloud server that does not generate any errors and is stable?
For me, after a many CLEAN installations on RPi, it shows a lot of errors, and repairing them generates more error’s :slight_smile:
For me it is unstable and I would be afraid to even keep pictures of cats there.

Of course not!
The whole Nextcloud on Pi project is a conspiracy to waste your precious time…

Happy now?

3 Likes

Could you please show if your user log has any bugs?

No.

I don’t use RPi, run NC VMs for hundreds of people for years…
It does the job.

4 Likes

@czsz
Perhaps you can post a few errors. Do you use an own nextcloud installation on Pi or an image like NextcloudPi ?

1 Like

I will do a clean installation again and write step by step what I was doing.

  1. Clean flash via Etcher - NextCloudPi_RPi_09-05-20.img
  2. Run Rpi first time locally without USB HDD, cloud activate, save passwords.
  3. Enabling SSH, adding manually letsencrypt data (to prevent wizard email error)
  4. Start wizard
    4a. Connecting USB HDD, format drive, move data to USB.
    4b. Setting up external access via no-ip (freedns already ban me for too many cert activations or something)

    [all steps above are green, they are done correctly]
  5. First login to cloud via public IP
  6. Checking the error log in the settings:

Every attempt to fix using google results in generating more errors.

First error:

[index] Error: OCP\Files\NotPermittedException: Could not create folder at <>

  1. /var/www/nextcloud/lib/private/Files/AppData/AppData.php line 157
    OC\Files\Node\Folder->newFolder(“icons”)
  2. /var/www/nextcloud/lib/private/Template/IconsCacher.php line 90
    OC\Files\AppData\AppData->newFolder(“icons”)
  3. <>
    OC\Template\IconsCacher->__construct(OC\Log {}, OC\Files\AppData\Factory {}, OC\URLGenerator {}, OC\AppFramework\Utility\TimeFactory {})
  4. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 84
    ReflectionClass->newInstanceArgs([OC\Log {},OC\Fi … }])
  5. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 101
    OC\AppFramework\Utility\SimpleContainer->buildClass(ReflectionClass … "})
  6. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 116
    OC\AppFramework\Utility\SimpleContainer->resolve(“OC\Template\IconsCacher”)
  7. /var/www/nextcloud/lib/private/ServerContainer.php line 149
    OC\AppFramework\Utility\SimpleContainer->query(“OC\Template\IconsCacher”, true)
  8. /var/www/nextcloud/lib/private/Server.php line 1143
    OC\ServerContainer->query(“OC\Template\IconsCacher”)
  9. /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php line 118
    OC\Server->OC{closure}("*** sensitive parameters replaced ***")
  10. /var/www/nextcloud/lib/private/ServerContainer.php line 124
    Pimple\Container->offsetGet(“OC\Template\SCSSCacher”)
  11. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 388
    OC\ServerContainer->query(“OC\Template\SCSSCacher”, true)
  12. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 71
    OC\AppFramework\DependencyInjection\DIContainer->query(“OC\Template\SCSSCacher”, true)
  13. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 101
    OC\AppFramework\Utility\SimpleContainer->buildClass(ReflectionClass … "})
  14. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 116
    OC\AppFramework\Utility\SimpleContainer->resolve(“OCA\Theming\C … r”)
  15. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 414
    OC\AppFramework\Utility\SimpleContainer->query(“OCA\Theming\C … r”)
  16. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 385
    OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback(“OCA\Theming\C … r”)
  17. /var/www/nextcloud/lib/private/AppFramework/App.php line 124
    OC\AppFramework\DependencyInjection\DIContainer->query(“OCA\Theming\C … r”)
  18. /var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    OC\AppFramework\App::main(“OCA\Theming\C … r”, “getImage”, OC\AppFramework\ … {}, {key: “logo”,_ro … "})
  19. <>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({key: “logo”,_ro … "})
  20. /var/www/nextcloud/lib/private/Route/Router.php line 297
    call_user_func(OC\AppFramework\ … {}, {key: “logo”,_ro … "})
  21. /var/www/nextcloud/lib/base.php line 1012
    OC\Route\Router->match("/apps/theming/image/logo")
  22. /var/www/nextcloud/index.php line 37
    OC::handleRequest()

GET /index.php/apps/theming/image/logo?v=0&useSvg=1
from myipaddress at 2020-11-19T14:06:06+00:00

Second error:

[index] Error: OCP\Files\NotPermittedException: Could not create folder at <>

  1. /var/www/nextcloud/lib/private/Files/AppData/AppData.php line 157
    OC\Files\Node\Folder->newFolder(“icons”)
  2. /var/www/nextcloud/lib/private/Template/IconsCacher.php line 90
    OC\Files\AppData\AppData->newFolder(“icons”)
  3. <>
    OC\Template\IconsCacher->__construct(OC\Log {}, OC\Files\AppData\Factory {}, OC\URLGenerator {}, OC\AppFramework\Utility\TimeFactory {})
  4. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 84
    ReflectionClass->newInstanceArgs([OC\Log {},OC\Fi … }])
  5. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 101
    OC\AppFramework\Utility\SimpleContainer->buildClass(ReflectionClass … "})
  6. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 116
    OC\AppFramework\Utility\SimpleContainer->resolve(“OC\Template\IconsCacher”)
  7. /var/www/nextcloud/lib/private/ServerContainer.php line 149
    OC\AppFramework\Utility\SimpleContainer->query(“OC\Template\IconsCacher”, true)
  8. /var/www/nextcloud/lib/private/Server.php line 1143
    OC\ServerContainer->query(“OC\Template\IconsCacher”)
  9. /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php line 118
    OC\Server->OC{closure}("*** sensitive parameters replaced ***")
  10. /var/www/nextcloud/lib/private/ServerContainer.php line 124
    Pimple\Container->offsetGet(“OC\Template\SCSSCacher”)
  11. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 388
    OC\ServerContainer->query(“OC\Template\SCSSCacher”, true)
  12. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 71
    OC\AppFramework\DependencyInjection\DIContainer->query(“OC\Template\SCSSCacher”, true)
  13. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 101
    OC\AppFramework\Utility\SimpleContainer->buildClass(ReflectionClass … "})
  14. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 116
    OC\AppFramework\Utility\SimpleContainer->resolve(“OCA\Theming\C … r”)
  15. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 414
    OC\AppFramework\Utility\SimpleContainer->query(“OCA\Theming\C … r”)
  16. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 385
    OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback(“OCA\Theming\C … r”)
  17. /var/www/nextcloud/lib/private/AppFramework/App.php line 124
    OC\AppFramework\DependencyInjection\DIContainer->query(“OCA\Theming\C … r”)
  18. /var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    OC\AppFramework\App::main(“OCA\Theming\C … r”, “getStylesheet”, OC\AppFramework\ … {}, {_route: “theming.Theming.getStylesheet”})
  19. <>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({_route: “theming.Theming.getStylesheet”})
  20. /var/www/nextcloud/lib/private/Route/Router.php line 297
    call_user_func(OC\AppFramework\ … {}, {_route: “theming.Theming.getStylesheet”})
  21. /var/www/nextcloud/lib/base.php line 1012
    OC\Route\Router->match("/apps/theming/styles")
  22. /var/www/nextcloud/index.php line 37
    OC::handleRequest()

GET /index.php/apps/theming/styles?v=0
from myipaddress at 2020-11-19T14:06:06+00:00

System config:

I decided to reboot using the configurator.
Another error appeared :slight_smile:

cj

Another error appeared after refreshing the page (I didn’t do anything on the server)

[index] Error: OCP\Files\NotPermittedException: Could not create folder at <>

  1. /var/www/nextcloud/lib/private/Files/AppData/AppData.php line 157
    OC\Files\Node\Folder->newFolder(“0”)
  2. /var/www/nextcloud/apps/theming/lib/ImageManager.php line 159
    OC\Files\AppData\AppData->newFolder(“0”)
  3. /var/www/nextcloud/apps/theming/lib/ImageManager.php line 174
    OCA\Theming\ImageManager->getCacheFolder()
  4. /var/www/nextcloud/apps/theming/lib/Controller/IconController.php line 91
    OCA\Theming\ImageManager->getCachedImage(“icon-core-filetypes_folder.svg”)
  5. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 170
    OCA\Theming\Controller\IconController->getThemedIcon(“core”, “filetypes/folder.svg”)
  6. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 100
    OC\AppFramework\Http\Dispatcher->executeController(OCA\Theming\Controller\IconController {}, “getThemedIcon”)
  7. /var/www/nextcloud/lib/private/AppFramework/App.php line 137
    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Theming\Controller\IconController {}, “getThemedIcon”)
  8. /var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    OC\AppFramework\App::main(“OCA\Theming\C … r”, “getThemedIcon”, OC\AppFramework\ … {}, {app: “core”,ima … "})
  9. <>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({app: “core”,ima … "})
  10. /var/www/nextcloud/lib/private/Route/Router.php line 297
    call_user_func(OC\AppFramework\ … {}, {app: “core”,ima … "})
  11. /var/www/nextcloud/lib/base.php line 1012
    OC\Route\Router->match("/apps/theming/i … g")
  12. /var/www/nextcloud/index.php line 37
    OC::handleRequest()

GET /index.php/apps/theming/img/core/filetypes/folder.svg?v=0
from mypublicip at 2020-11-19T14:47:58+00:00

Sorry. I do not use NextcloudPi. Do you set the rights correct for the nextcloud (not pi) user:

chown -R username:username /path/to/files

Please post details for data-dir in config/config.php and the “ls -al” of the corresponding directory.

sudo chown -R www-data:www-data /var/www/nextcloud

pi@nextcloudpi:/var/www $ ls -al
total 28
drwxr-xr-x  7 root     root     4096 Sep  5 17:33 .
drwxr-xr-x 12 root     root     4096 Feb 13  2020 ..
drwxr-xr-x  2 root     root     4096 Sep  5 17:07 html
drwxr-xr-x  8 root     root     4096 Sep  5 17:33 ncp-app
drwxr-xr-x  6 www-data www-data 4096 Sep  5 17:33 ncp-previewgenerator
drwxrwx---  8 www-data www-data 4096 Nov 19 13:55 ncp-web
drwxr-x--- 14 www-data www-data 4096 Nov 19 13:56 nextcloud
pi@nextcloudpi:/var/www $ cd nextcloud/
-bash: cd: nextcloud/: Permission denied
pi@nextcloudpi:/var/www $

I think it will be faster if I do the installation again and apply this code right after unblocking SSH.

Ok. I think your nextcloud uses the user “www-data” and the group “www-data”.
Where is your data-dir?
If you can not change to “nextcloud” change to root:
sudo -s

After reinstalling everything and granting permissions before launching the user panel, errors still appear:

sudo chown -R www-data:www-data /var/www/nextcloud

First one:

[index] Error: OCP\Files\NotPermittedException: Could not create folder at <>

  1. /var/www/nextcloud/lib/private/Files/AppData/AppData.php line 157
    OC\Files\Node\Folder->newFolder(“icons”)
  2. /var/www/nextcloud/lib/private/Template/IconsCacher.php line 90
    OC\Files\AppData\AppData->newFolder(“icons”)
  3. <>
    OC\Template\IconsCacher->__construct(OC\Log {}, OC\Files\AppData\Factory {}, OC\URLGenerator {}, OC\AppFramework\Utility\TimeFactory {})
  4. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 84
    ReflectionClass->newInstanceArgs([OC\Log {},OC\Fi … }])
  5. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 101
    OC\AppFramework\Utility\SimpleContainer->buildClass(ReflectionClass … "})
  6. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 116
    OC\AppFramework\Utility\SimpleContainer->resolve(“OC\Template\IconsCacher”)
  7. /var/www/nextcloud/lib/private/ServerContainer.php line 149
    OC\AppFramework\Utility\SimpleContainer->query(“OC\Template\IconsCacher”, true)
  8. /var/www/nextcloud/lib/private/Server.php line 1143
    OC\ServerContainer->query(“OC\Template\IconsCacher”)
  9. /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php line 118
    OC\Server->OC{closure}("*** sensitive parameters replaced ***")
  10. /var/www/nextcloud/lib/private/ServerContainer.php line 124
    Pimple\Container->offsetGet(“OC\Template\SCSSCacher”)
  11. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 388
    OC\ServerContainer->query(“OC\Template\SCSSCacher”, true)
  12. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 71
    OC\AppFramework\DependencyInjection\DIContainer->query(“OC\Template\SCSSCacher”, true)
  13. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 101
    OC\AppFramework\Utility\SimpleContainer->buildClass(ReflectionClass … "})
  14. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 116
    OC\AppFramework\Utility\SimpleContainer->resolve(“OCA\Theming\C … r”)
  15. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 414
    OC\AppFramework\Utility\SimpleContainer->query(“OCA\Theming\C … r”)
  16. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 385
    OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback(“OCA\Theming\C … r”)
  17. /var/www/nextcloud/lib/private/AppFramework/App.php line 124
    OC\AppFramework\DependencyInjection\DIContainer->query(“OCA\Theming\C … r”)
  18. /var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    OC\AppFramework\App::main(“OCA\Theming\C … r”, “getImage”, OC\AppFramework\ … {}, {key: “logo”,_ro … "})
  19. <>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({key: “logo”,_ro … "})
  20. /var/www/nextcloud/lib/private/Route/Router.php line 297
    call_user_func(OC\AppFramework\ … {}, {key: “logo”,_ro … "})
  21. /var/www/nextcloud/lib/base.php line 1012
    OC\Route\Router->match("/apps/theming/image/logo")
  22. /var/www/nextcloud/index.php line 37
    OC::handleRequest()

GET /index.php/apps/theming/image/logo?v=0&useSvg=1
from myip at 2020-11-19T16:01:32+00:00

/var/www/nextcloud is your data-dir?

Probably yes:

pi@nextcloudpi:/var/www $ ls -all
total 28
drwxr-xr-x 7 root root 4096 Sep 5 17:33 .
drwxr-xr-x 12 root root 4096 Feb 13 2020 …
drwxr-xr-x 2 root root 4096 Sep 5 17:07 html
drwxr-xr-x 8 root root 4096 Sep 5 17:33 ncp-app
drwxr-xr-x 6 www-data www-data 4096 Sep 5 17:33 ncp-previewgenerator
drwxrwx— 8 www-data www-data 4096 Nov 19 15:45 ncp-web
drwxr-x— 14 www-data www-data 4096 Nov 19 15:48 nextcloud

And again: Please post details for data-dir in config/config.php and the “ls -al” of the corresponding directory.

root@nextcloudpi:/var/www/nextcloud/config# ls -all
total 72
drwxr-x---  2 www-data www-data  4096 Nov 19 15:41 .
drwxr-x--- 14 www-data www-data  4096 Nov 19 15:48 ..
-rw-r-----  1 www-data www-data     0 Aug 26 18:50 CAN_INSTALL
-rw-r-----  1 www-data www-data  1559 Nov 19 16:17 config.php
-rw-r-----  1 www-data www-data 56080 Aug 26 18:50 config.sample.php
-rw-r-----  1 www-data www-data   495 Aug 26 18:50 .htaccess

<?php
$CONFIG = array (
  'passwordsalt' => ‚some code,
  'secret' => ‚some’ code 2,
  'trusted_domains' => 
  array (
    0 => 'localhost',
    5 => 'nextcloudpi.local',
    7 => 'nextcloudpi',
    8 => 'nextcloudpi.lan',
    11 => ‚my public ip,
    1 => '192.168.1.178',
    12 => ‚my.ddns.net',
    3 => ‚my.ddns.net',
    2 => ‚my.ddns.net',
  ),
  'datadirectory' => '/media/myCloudDrive/ncdata',
  'dbtype' => 'mysql',
  'version' => '19.0.2.2',
  'overwrite.cli.url' => 'https://my.ddns.net/',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'ncadmin',
  'dbpassword' => ‚some ‚code 3,
  'installed' => true,
  'instanceid' => 'ochgelgsh5v1',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
    'password' => ‚some ‚code 4,
  ),
  'tempdirectory' => '/media/myCloudDrive/ncdata/tmp',
  'mail_smtpmode' => 'sendmail',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => 'admin',
  'mail_domain' => 'ownyourbits.com',
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'overwriteprotocol' => 'https',
  'loglevel' => '2',
  'log_type' => 'file',
  'maintenance' => false,
  'logfile' => '/media/myCloudDrive/ncdata/nextcloud.log',
);

Your data-dir is /media/myCloudDrive/ncdata and not /var/www/nextcloud

I have reinstalled the system 20 more times. Trying different solutions to diagnose the problem.
First, the setup wizard is one big bug. It configuring usb hdd and ddns with errors.
When I don’t use the wizard, I don’t configure ddns (I already have a no-ip ban) then I don’t have any errors.

First errors appear when I use the autoboot option for a USB and restart the system.

I fully understand you are little upset of the errors you hit. but please don’t forget you are running software you get for free and seeking free support. I don’t think somebody is willing to help if you tell them their job is “one big bug”.

Chances are high you get help if you post your errors one by one with all necessary details - and wait for somebody to help. me personally couldn’t really help - I run NC on Qnap NAS with docker successfully and it was running pretty fast with basics after following docker guides and videos. I made at least a dozen installations for fine tuning but this is my personal problem…

Reinstalling the system MAY be a solution, but if it doesn’t help there is no reason to do it 20 times, it’s better to spend time analyzing the problem.

4 Likes