Uploaded files are deleted at log out

Hey all,

I’m really new to this, but I’m willing to learn. I hope that anyone can help me. The files i upload show up can be looked at and edited. Everything is fine, unless I log out and in again. Then they are gone. The second error message shows up new for every uploaded file. I tested it with different users, but all got the same error. If you need any additional information apart from the provided, please let me now.
If I forget to hide any personal informations please let me know :grin:

Thank you very much for trying to help.

Nextcloud version (eg, 20.0.5): 21.0.0.18
Operating system and version (eg, Ubuntu 20.04): Linux raspberrypi 5.10.11-v7l+
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.38 (Raspbian)
PHP version (eg, 7.4): PHP 7.3.27-1~deb10u1

The issue you are facing:
Uploaded files disappere after log out and log in.

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

Steps to replicate it:

  1. Upload a file
  2. log out

The output of your Nextcloud log in Admin > Logging:
The first error message

Error	index	OCP\Files\NotPermittedException: Could not create folder
/var/www/html/nextcloud/lib/private/Files/AppData/AppData.php - line 157:

OC\Files\Node\Folder->newFolder("0")

/var/www/html/nextcloud/apps/theming/lib/ImageManager.php - line 156:

OC\Files\AppData\AppData->newFolder("0")

/var/www/html/nextcloud/apps/theming/lib/ImageManager.php - line 171:

OCA\Theming\ImageManager->getCacheFolder()

/var/www/html/nextcloud/apps/theming/lib/Controller/IconController.php - line 91:

OCA\Theming\ImageManager->getCachedImage("icon-core-f ... g")

/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 218:

OCA\Theming\Controller\IconController->getThemedIcon("core", "filetypes/x ... g")

/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 127:

OC\AppFramework\Http\Dispatcher->executeController(OCA\Theming\ ... {}, "getThemedIcon")

/var/www/html/nextcloud/lib/private/AppFramework/App.php - line 157:

OC\AppFramework\Http\Dispatcher->dispatch(OCA\Theming\ ... {}, "getThemedIcon")

/var/www/html/nextcloud/lib/private/Route/Router.php - line 302:

OC\AppFramework\App::main("OCA\\Themin ... r", "getThemedIcon", OC\AppFramew ... {}, { app: "core ... "})

/var/www/html/nextcloud/lib/base.php - line 993:

OC\Route\Router->match("/apps/themi ... g")

/var/www/html/nextcloud/index.php - line 37:

OC::handleRequest()

Error message since then

Error	scss_cacher	OCP\Files\NotPermittedException: 
/var/www/html/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php - line 150:

OC\Files\Node\File->delete()

/var/www/html/nextcloud/lib/private/Template/SCSSCacher.php - line 398:

OC\Files\SimpleFS\SimpleFile->delete()

/var/www/html/nextcloud/lib/private/Template/SCSSCacher.php - line 290:

OC\Template\SCSSCacher->resetCache()

/var/www/html/nextcloud/lib/private/Template/SCSSCacher.php - line 154:

OC\Template\SCSSCacher->variablesChanged()

/var/www/html/nextcloud/lib/private/Template/CSSResourceLocator.php - line 111:

OC\Template\SCSSCacher->process("/var/www/html/nextcloud", "core/css/server.scss", "core")

/var/www/html/nextcloud/lib/private/Template/CSSResourceLocator.php - line 63:

OC\Template\CSSResourceLocator->cacheAndAppendScssIfExist("/var/www/html/nextcloud", "core/css/server.scss")

/var/www/html/nextcloud/lib/private/Template/ResourceLocator.php - line 79:

OC\Template\CSSResourceLocator->doFind("css/server")

/var/www/html/nextcloud/lib/private/TemplateLayout.php - line 330:

OC\Template\ResourceLocator->find([ "css/serve ... "])

/var/www/html/nextcloud/lib/private/TemplateLayout.php - line 238:

OC\TemplateLayout::findStylesheetFiles([ "css/serve ... "])

/var/www/html/nextcloud/lib/private/legacy/OC_Template.php - line 183:

OC\TemplateLayout->__construct("user", "settings")

/var/www/html/nextcloud/lib/public/AppFramework/Http/TemplateResponse.php - line 210:

OC_Template->fetchPage({ forms: { p ... "})

/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 172:

OCP\AppFramework\Http\TemplateResponse->render()

/var/www/html/nextcloud/lib/private/AppFramework/App.php - line 157:

OC\AppFramework\Http\Dispatcher->dispatch(OCA\Settings ... {}, "index")

/var/www/html/nextcloud/lib/private/Route/Router.php - line 302:

OC\AppFramework\App::main("OCA\\Settin ... r", "index", OC\AppFramew ... {}, { section: " ... "})

/var/www/html/nextcloud/lib/base.php - line 993:

OC\Route\Router->match("/settings/user")

/var/www/html/nextcloud/index.php - line 37:

OC::handleRequest()

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

<?php
$CONFIG = array (
  'passwordsalt' => 'XXXXXXXXXXXXX',
  'secret' => 'XXXXXXXXXXXXXXXXXXXXXXXXXX',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => '192.168.X.XX',
    2 => 'fotocloud.xxxx.de',
  ),
  'datadirectory' => '/nc',
  'dbtype' => 'mysql',
  'version' => '21.0.0.18',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'ncuser',
  'dbpassword' => 'xxxxxxxxxxx',
  'installed' => true,
  'instanceid' => 'ocmupstye684',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'maintenance' => false,
);

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

error.log

[Sat Mar 13 00:00:52.860141 2021] [mpm_prefork:notice] [pid 15041] AH00163: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d configured -- resuming normal operations
[Sat Mar 13 00:00:52.860215 2021] [core:notice] [pid 15041] AH00094: Command line: '/usr/sbin/apache2'
[Sat Mar 13 02:01:03.822087 2021] [php7:error] [pid 20575] [client 150.158.153.61:48978] script '/var/www/html/wp-login.php' not found or unable to stat
[Sat Mar 13 04:53:46.651330 2021] [php7:error] [pid 20578] [client 45.155.205.225:47282] script '/var/www/html/index.php' not found or unable to stat
[Sat Mar 13 11:01:57.359009 2021] [php7:error] [pid 20575] [client 167.71.39.182:53536] script '/var/www/html/wp-login.php' not found or unable to stat

error.log.1

[Fri Mar 12 00:00:52.892409 2021] [mpm_prefork:notice] [pid 15041] AH00163: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d configured -- resuming normal operations
[Fri Mar 12 00:00:52.892489 2021] [core:notice] [pid 15041] AH00094: Command line: '/usr/sbin/apache2'
[Fri Mar 12 09:18:15.876701 2021] [php7:error] [pid 20566] [client 45.155.205.225:35620] script '/var/www/html/index.php' not found or unable to stat
[Fri Mar 12 12:12:26.595410 2021] [php7:error] [pid 318] [client 178.128.166.181:59776] script '/var/www/html/wp-login.php' not found or unable to stat
[Fri Mar 12 16:54:59.332626 2021] [php7:error] [pid 19865] [client 45.155.205.225:34970] script '/var/www/html/index.php' not found or unable to stat
[Fri Mar 12 17:20:24.444145 2021] [php7:error] [pid 19868] [client 65.1.225.128:44788] script '/var/www/html/wp-login.php' not found or unable to stat
[Fri Mar 12 17:28:49.802455 2021] [php7:error] [pid 20565] [client 163.172.203.31:60044] script '/var/www/html/wp-login.php' not found or unable to stat
[Fri Mar 12 23:28:43.991682 2021] [php7:error] [pid 19865] [client 157.230.99.212:47772] script '/var/www/html/wp-login.php' not found or unable to stat
[Sat Mar 13 00:00:52.613342 2021] [mpm_prefork:notice] [pid 15041] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
1 Like