Nextcloud version (eg, 18.0.2): 19.0.4
Operating system and version (eg, Ubuntu 20.04): Ubuntu 18.0.04
Apache or nginx version (eg, Apache 2.4.25): 2.4.25
PHP version (eg, 7.1): 7.3
The issue you are facing:
Fresh install of NC 19. I am unable to add a profile picture. See log below. Furthermore, I am getting an error on the Overview page which is strange. It reads like this:
You access your instance via a secure connection, but your instance generates insecure URLs. This most likely means that you are behind a reverse proxy and the configuration variables for overwriting are not set correctly. Please read the documentation.
However, my instance runs only on localhost. This puzzles me.
The output of your Nextcloud log in Admin > Logging:
[PHP] Error: Error: file_put_contents(/mnt/sda1/nextcloud/nc_data/appdata_ocu3klcbsqe5/avatar/user/avatar.jpg): failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#276 at <<closure>>
0. <<closure>>
OC\Log\ErrorHandler::onError(2, "file_put_conten ... y", "/var/www/nextcl ... p", 276, {path: "appdata_ ... l})
1. /var/www/nextcloud/lib/private/Files/Storage/Local.php line 276
file_put_contents("/mnt/sda1/nextc ... g", null)
2. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 257
OC\Files\Storage\Local->file_put_contents("appdata_ocu3klc ... g", null)
3. /var/www/nextcloud/lib/private/Files/View.php line 1159
OC\Files\Storage\Wrapper\Wrapper->file_put_contents("appdata_ocu3klc ... g", null)
4. /var/www/nextcloud/lib/private/Files/View.php line 696
OC\Files\View->basicOperation("file_put_contents", "/appdata_ocu3kl ... g", ["create","write"], null)
5. /var/www/nextcloud/lib/private/Files/Node/Folder.php line 187
OC\Files\View->file_put_contents("/appdata_ocu3kl ... g", null)
6. /var/www/nextcloud/lib/private/Files/SimpleFS/NewSimpleFile.php line 133
OC\Files\Node\Folder->newFile("avatar.jpg", null)
7. /var/www/nextcloud/lib/private/Avatar/UserAvatar.php line 109
OC\Files\SimpleFS\NewSimpleFile->putContent(null)
8. /var/www/nextcloud/core/Controller/AvatarController.php line 334
OC\Avatar\UserAvatar->set(null)
9. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 170
OC\Core\Controller\AvatarController->postCroppedAvatar({x: "302.08",y: ... "})
10. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 100
OC\AppFramework\Http\Dispatcher->executeController(OC\Core\Controller\AvatarController {}, "postCroppedAvatar")
11. /var/www/nextcloud/lib/private/AppFramework/App.php line 137
OC\AppFramework\Http\Dispatcher->dispatch(OC\Core\Controller\AvatarController {}, "postCroppedAvatar")
12. /var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
OC\AppFramework\App::main("OC\\Core\\Controller\\AvatarController", "postCroppedAvatar", OC\AppFramework\ ... {}, {_route: "core.avatar.postCroppedAvatar"})
13. <<closure>>
OC\AppFramework\Routing\RouteActionHandler->__invoke({_route: "core.avatar.postCroppedAvatar"})
14. /var/www/nextcloud/lib/private/Route/Router.php line 297
call_user_func(OC\AppFramework\ ... {}, {_route: "core.avatar.postCroppedAvatar"})
15. /var/www/nextcloud/lib/base.php line 1011
OC\Route\Router->match("/avatar/cropped")
16. /var/www/nextcloud/index.php line 37
OC::handleRequest()
POST /index.php/avatar/cropped
from IP by user at 2020-10-15T18:20:30+00:00