I can't Delete,Create or Upload files and Directories

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, 20.0.5): Nextcloud 27.1.2
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04.3 LTS (Jammy Jellyfish)"
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.52
PHP version (eg, 7.4): PHP 8.1.2-1ubuntu2.14

The issue you are facing:

I simply cannot delete and upload files or directories on my server…Right after the installation I found out this.

I can send the commands I used for the installation from the begining and the text for the configuration files

Is this the first time you’ve seen this error? (Y/N):
Yes this is ther first time on this installation that I am facing such issues

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:

Error	index	RedisException: No such file or directory
/var/www/nextcloud/lib/private/RedisFactory.php - line 137:

Redis->pconnect()

/var/www/nextcloud/lib/private/RedisFactory.php - line 178:

OC\RedisFactory->create("*** sensiti ... *")

/var/www/nextcloud/lib/private/Memcache/Redis.php - line 66:

OC\RedisFactory->getInstance()

/var/www/nextcloud/lib/private/Memcache/Redis.php - line 126:

OC\Memcache\Redis->getCache()

/var/www/nextcloud/lib/private/Lock/MemcacheLockingProvider.php - line 65:

OC\Memcache\Redis->add()

/var/www/nextcloud/lib/private/Files/Storage/Common.php - line 765:

OC\Lock\MemcacheLockingProvider->acquireLock()

/var/www/nextcloud/lib/private/Files/Cache/Scanner.php - line 339:

OC\Files\Storage\Common->acquireLock()

/var/www/nextcloud/lib/private/Files/Cache/LocalRootScanner.php - line 39:

OC\Files\Cache\Scanner->scan()

/var/www/nextcloud/lib/private/Files/View.php - line 1335:

OC\Files\Cache\LocalRootScanner->scan()

/var/www/nextcloud/lib/private/Files/View.php - line 1374:

OC\Files\View->getCacheEntry()

/var/www/nextcloud/lib/private/Files/Node/Root.php - line 202:

OC\Files\View->getFileInfo()

/var/www/nextcloud/lib/private/Files/Node/Folder.php - line 135:

OC\Files\Node\Root->get()

/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFolder.php - line 95:

OC\Files\Node\Folder->get()

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

OC\Files\SimpleFS\SimpleFolder->getFolder()

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

OCA\Theming\ImageManager->getCacheFolder()

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

OCA\Theming\ImageManager->getCachedImage()

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

OCA\Theming\Controller\IconController->getThemedIcon()

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

OC\AppFramework\Http\Dispatcher->executeController()

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

OC\AppFramework\Http\Dispatcher->dispatch()

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

OC\AppFramework\App::main()

/var/www/nextcloud/lib/base.php - line 1068:

OC\Route\Router->match()

/var/www/nextcloud/index.php - line 36:

OC::handleRequest()

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

<?php
$CONFIG = array (
  'passwordsalt' => 'B+93sIuUaWZr9gx1+RN7ZNwDH7z729',
  'secret' => 's5u4RPRnmmTX7nyIGcXBb2AYSBipI0uO5LPLFP7rEpZKUAud',
  'trusted_domains' =>
  array (
          0 => 'localhost',
          1 => '*********',
          2 => '*********',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '27.1.2.1',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => '******',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '*******',
  'dbpassword' => '*******',
  'installed' => true,
  'instanceid' => 'ocrncxw1npa2',
  'memcache.local' => '\OC\Memcache\APCu',
  'filelocking.enabled' => 'true',
  'memcache.locking' => '\OC\Memcache\Redis',
  'redis' => [
     'host'     => '/var/run/redis/redis.sock',
     'port'     => 0,
     'dbindex'  => 0,
     'password' => '',
     'timeout'  => 1.5,
  ],
  'htaccess.RewriteBase' => '/',
);

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


[Sun Oct 22 00:00:02.661903 2023] [mpm_event:notice] [pid 1369:tid 140505890789248] AH00489: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Sun Oct 22 00:00:02.661924 2023] [core:notice] [pid 1369:tid 140505890789248] AH00094: Command line: '/usr/sbin/apache2'
[Sun Oct 22 08:09:44.044930 2023] [proxy_fcgi:error] [pid 1668:tid 140505425901120] (70007)The timeout specified has expired: [client**********] AH01075: Error dispatching request to : (reading input brigade)
[Sun Oct 22 11:15:00.728584 2023] [mpm_event:notice] [pid 1369:tid 140505890789248] AH00492: caught SIGWINCH, shutting down gracefully
[Sun Oct 22 11:15:00.790561 2023] [mpm_event:notice] [pid 4431:tid 140193751136128] AH00489: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Sun Oct 22 11:15:00.790686 2023] [core:notice] [pid 4431:tid 140193751136128] AH00094: Command line: '/usr/sbin/apache2'
[Sun Oct 22 11:15:06.214227 2023] [mpm_event:notice] [pid 4431:tid 140193751136128] AH00492: caught SIGWINCH, shutting down gracefully
[Sun Oct 22 11:15:06.294762 2023] [mpm_event:notice] [pid 4580:tid 140355645679488] AH00489: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Sun Oct 22 11:15:06.294885 2023] [core:notice] [pid 4580:tid 140355645679488] AH00094: Command line: '/usr/sbin/apache2'
[Sun Oct 22 11:17:29.085598 2023] [access_compat:error] [pid 4581:tid 140355518797376] [client **********] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata

 log in `/var/log/access.log`

********- - [22/Oct/2023:12:16:38 +0000] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0” 304 721 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36”
**********- - [22/Oct/2023:12:16:27 +0000] “GET /apps/logreader/poll?lastReqId=38S8eGNGjHs8IhDwaZD3 HTTP/2.0” 200 755 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36”
********* - - [22/Oct/2023:12:16:47 +0000] “GET /apps/logreader/poll?lastReqId=38S8eGNGjHs8IhDwaZD3 HTTP/2.0” 200 755 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36”
******** - - [22/Oct/2023:12:17:07 +0000] “GET /apps/logreader/poll?lastReqId=38S8eGNGjHs8IhDwaZD3 HTTP/2.0” 200 755 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36”
***********- - [22/Oct/2023:12:17:39 +0000] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0” 304 722 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36”
**********- - [22/Oct/2023:12:17:27 +0000] “GET /apps/logreader/poll?lastReqId=38S8eGNGjHs8IhDwaZD3 HTTP/2.0” 200 755 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36”


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

{"reqId":"38S8eGNGjHs8IhDwaZD3","level":3,"time":"2023-10-22T12:13:04+00:00","remoteAddr":"*********","user":"******","app":"no app in context","method":"GET","url":"/settings/ajax/checksetup","message":"Failed to get absolute bundle path. Fallback to default ca-bundle.crt","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36","version":"27.1.2.1","exception":{"Exception":"RedisException","Message":"No such file or directory","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/RedisFactory.php","line":137,"function":"pconnect","class":"Redis","type":"->"},{"file":"/var/www/nextcloud/lib/private/RedisFactory.php","line":178,"function":"create","class":"OC\\RedisFactory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":66,"function":"getInstance","class":"OC\\RedisFactory","type":"->"},{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":137,"function":"getCache","class":"OC\\Memcache\\Redis","type":"->"},{"file":"/var/www/nextcloud/lib/private/Lock/MemcacheLockingProvider.php","line":61,"function":"inc","class":"OC\\Memcache\\Redis","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Common.php","line":765,"function":"acquireLock","class":"OC\\Lock\\MemcacheLockingProvider","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":607,"function":"acquireLock","class":"OC\\Files\\Storage\\Common","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":1938,"function":"acquireLock","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":2048,"function":"lockPath","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":1141,"function":"lockFile","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":244,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/lib/private/Security/CertificateManager.php","line":132,"function":"mkdir","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/lib/private/Security/CertificateManager.php","line":247,"function":"createCertificateBundle","class":"OC\\Security\\CertificateManager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Http/Client/Client.php","line":133,"function":"getAbsoluteBundlePath","class":"OC\\Security\\CertificateManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/Http/Client/Client.php","line":80,"function":"getCertBundle","class":"OC\\Http\\Client\\Client","type":"->"},{"file":"/var/www/nextcloud/lib/private/Http/Client/Client.php","line":230,"function":"buildRequestOptions","class":"OC\\Http\\Client\\Client","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/CheckSetupController.php","line":224,"function":"get","class":"OC\\Http\\Client\\Client","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/CheckSetupController.php","line":206,"function":"isSiteReachable","class":"OCA\\Settings\\Controller\\CheckSetupController","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/CheckSetupController.php","line":921,"function":"hasInternetConnectivityProblems","class":"OCA\\Settings\\Controller\\CheckSetupController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"check","class":"OCA\\Settings\\Controller\\CheckSetupController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1068,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/RedisFactory.php","Line":137,"message":"Failed to get absolute bundle path. Fallback to default ca-bundle.crt","exception":{},"CustomMessage":"Failed to get absolute bundle path. Fallback to default ca-bundle.crt"}}

I hope, that your passwordsalt and secret are not the real ones, since with that knowledge, everybody has the keys to decrypt all of your passwords!

Is your redis setup corect?

  • Ist it runing?
    find out with:

    sudo systemctls status redis-server
    
  • Is this the real path of the redis-server socket:

    'redis' => [
       'host'     => '/var/run/redis/redis.sock',
    

    Often it is called /var/run/redis/redis-server.sock
    find out with:

    grep "unixsocket" /etc/redis/redis.conf
    

    or with

    ls -la /run/redis
    

Much luck,
ernolf

Hello ernolf,

  1. My redis service is working as you can see:
:~# systemctl status redis-server
● redis-server.service - Advanced key-value store
     Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2023-11-25 16:31:47 UTC; 3 days ago
       Docs: http://redis.io/documentation,
             man:redis-server(1)
   Main PID: 644 (redis-server)
     Status: "Ready to accept connections"
      Tasks: 5 (limit: 4558)
     Memory: 5.2M
        CPU: 5min 5.229s
     CGroup: /system.slice/redis-server.service
             └─644 "/usr/bin/redis-server 127.0.0.1:0" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""

Nov 25 16:31:47 nextcloud systemd[1]: Starting Advanced key-value store...
Nov 25 16:31:47 nextcloud systemd[1]: Started Advanced key-value store.
  1. For this question:
    I hope, that your passwordsalt and secret are not the real ones, since with that knowledge, everybody has the keys to decrypt all of your passwords!
  • No, they are not the real ones, I have just put the " * " for here.
  1. For this question:
    Is your redis setup corect?
  • It was not, but i have corected it:
:~# ll  /var/run/redis/
total 4
drwxr-sr-x  2 redis redis   80 Nov 25 16:31 ./
drwxr-xr-x 36 root  root  1080 Nov 28 07:45 ../
-rw-rw----  1 redis redis    4 Nov 25 16:31 redis-server.pid
srwxrwx---  1 redis redis    0 Nov 25 16:31 redis-server.sock=

I have changed it in the config.php

'filelocking.enabled' => 'true',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'dbindex' => 0,
    'password' => '',
    'timeout' => 1.5,

I have restarted all services after the changes, but again there is no change in the behavior of the server…

You should edit your /etc/redis/redis.conf and make the following correction:

/var/run/redis/redis-server.sock=
to
/var/run/redis/redis-server.sock

(btw. you can omit /var, since /var/run is a symlink to /run)

Then you should check wether www-data is a member of the redis group.

Please read this:

Much luck,
ernolf

Hello again, no need!

After rebooting the server now everything is fine except the following:

I am currently investigating the issue with this!

I just want say one BIG THANK YOU for the help mate!

1 Like