# RedisException No such file or directory - Could not boot notify\_push: No such file or directory

**URL:** <https://help.nextcloud.com/t/redisexception-no-such-file-or-directory-could-not-boot-notify-push-no-such-file-or-directory/205238>\
**Category:** ℹ️ Support\
**Tags:** nc28, ubuntu, notify\_push, redis\
**Created:** [September 30, 2024, 9:13am UTC](https://help.nextcloud.com/t/redisexception-no-such-file-or-directory-could-not-boot-notify-push-no-such-file-or-directory/205238 "2024-09-30T09:13:11Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![MelBourbon](https://help.nextcloud.com/letter_avatar/melbourbon/32/6_449c533f586939b6e5f246632a46421f.png) [@MelBourbon](https://help.nextcloud.com/u/MelBourbon)\
**Post date:** [September 30, 2024, 9:13am UTC](https://help.nextcloud.com/t/redisexception-no-such-file-or-directory-could-not-boot-notify-push-no-such-file-or-directory/205238/1 "2024-09-30T09:13:11Z")

</div>

Nextcloud version _(eg, 29.0.5)_: 28.0.7  
Operating system and version _(eg, Ubuntu 24.04)_: Ubuntu 22.04  
Apache or nginx version _(eg, Apache 2.4.25)_: Nginx  
PHP version _(eg, 8.3)_: 8.3.12

The issue you are facing:

Every morning 1:10 am I get the following entry in the log file. Notify push is running fine, `systemctl restart notify_push.service` did not helped. Running `sudo -u www-data php occ notify_push:setup` shows all green.

```auto
RedisException No such file or directory
Could not boot notify_push: No such file or directory

```

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

Steps to replicate it:

1. Open log files and check

The output of your Nextcloud log in **Admin \> Logging** :

```auto
RedisException No such file or directory
Could not boot notify_push: No such file or directory

```

---

<div class="post-metadata">

**Author:** ![j-ed](https://help.nextcloud.com/user_avatar/help.nextcloud.com/j-ed/32/7281_2.png) [@j-ed](https://help.nextcloud.com/u/j-ed)\
**Post date:** [September 30, 2024, 4:35pm UTC](https://help.nextcloud.com/t/redisexception-no-such-file-or-directory-could-not-boot-notify-push-no-such-file-or-directory/205238/2 "2024-09-30T16:35:09Z")

</div>

Please provide information how you’ve configured Redis in your Nextcloud configuration.

---

<div class="post-metadata">

**Author:** ![MelBourbon](https://help.nextcloud.com/letter_avatar/melbourbon/32/6_449c533f586939b6e5f246632a46421f.png) [@MelBourbon](https://help.nextcloud.com/u/MelBourbon)\
**Post date:** [October 3, 2024, 4:02pm UTC](https://help.nextcloud.com/t/redisexception-no-such-file-or-directory-could-not-boot-notify-push-no-such-file-or-directory/205238/3 "2024-10-03T16:02:22Z")

</div>

@j-ed

Here is my config:

```auto
<?php
$CONFIG = array (
  'instanceid' => 'myinstanceid',
  'passwordsalt' => 'mypasswordsalt',
  'secret' => 'mysecret',
  'allow_local_remote_servers' => true,
  'blacklisted_files' =>
  array (
    0 => '.htaccess',
    1 => 'Thumbs.db',
    2 => 'thumbs.db',
  ),
  'trusted_domains' =>
  array (
    0 => 'mydomain',
    1 => 'myipv4',
    2 => 'myipv6',
  ),
  'datadirectory' => '/var/nextcloud_data',
  'share_folder' => '/Mit mir geteilt',
  'overwrite.cli.url' => 'mydomain',
  'dbtype' => 'pgsql',
  'version' => '29.0.7.1',
  'dbname' => 'nextcloud_db',
  'dbhost' => '127.0.0.1',
  'dbport' => '5432',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextcloud_db_user',
  'dbpassword' => 'mydbpassword',
  'installed' => true,
  'default_phone_region' => 'DE',
  'enable_previews' => true,
  'enabledPreviewProviders' =>
  array (
    0 => 'OC\\Preview\\PNG',
    1 => 'OC\\Preview\\JPEG',
    2 => 'OC\\Preview\\GIF',
    3 => 'OC\\Preview\\BMP',
    4 => 'OC\\Preview\\XBitmap',
    5 => 'OC\\Preview\\Movie',
    6 => 'OC\\Preview\\PDF',
    7 => 'OC\\Preview\\MP3',
    8 => 'OC\\Preview\\TXT',
    9 => 'OC\\Preview\\MarkDown',
  ),
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'preview_max_scale_factor' => 1,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'overwriteprotocol' => 'https',
  'logtimezone' => 'Europe/Berlin',
  'log_rotate_size' => 26214400,
  'auth.bruteforce.protection.enabled' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'updater.release.channel' => 'stable',
  'twofactor_enforced' => 'false',
  'twofactor_enforced_groups' =>
  array (
  ),
  'twofactor_enforced_excluded_groups' =>
  array (
    'overwriteprotocol' => 'https',
    0 => 'Bots',
  ),
  'mysql.utf8mb4' => true,
  'ldapIgnoreNamingRules' => false,
  'trusted_proxies' =>
  array (
    0 => '127.0.0.1',
    1 => '::1',
    2 => 'mypiv4',
    3 => 'myipv6',
  ),
  'filelocking.enabled' => true,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0.5,
    'dbindex' => 1,
  ),
  'encryption.legacy_format_support' => false,
  'maintenance_window_start' => 1,
);

```

My redis.conf (changes to standard)

```auto
bind 127.0.0.1 ::1
protected-mode yes
port 6379
tcp-backlog 511
unixsocket /var/run/redis/redis-server.sock
unixsocketperm 770
timeout 0
tcp-keepalive 300
daemonize yes
supervised no
pidfile /var/run/redis/redis-server.pid
loglevel notice
logfile /var/log/redis/redis-server.log
databases 16

```

---

<div class="post-metadata">

**Author:** ![j-ed](https://help.nextcloud.com/user_avatar/help.nextcloud.com/j-ed/32/7281_2.png) [@j-ed](https://help.nextcloud.com/u/j-ed)\
**Post date:** [October 4, 2024, 5:19pm UTC](https://help.nextcloud.com/t/redisexception-no-such-file-or-directory-could-not-boot-notify-push-no-such-file-or-directory/205238/4 "2024-10-04T17:19:41Z")

</div>

> [@MelBourbon](#):
>
> ```auto
> 'redis' =>
> array (
> 'host' => '/var/run/redis/redis-server.sock',
> 
> ```

If you are accessing Redis via a socket you have to make sure that the user, under which your web server is running, is allowed to access it. Please have a look on the following discussion:

> [@\[SOLVED\] Can't get redis to work in socket mode](https://help.nextcloud.com/t/solved-cant-get-redis-to-work-in-socket-mode/122830/13):
>
> Sorry in the haste I forgot about that one. Though we usually make the redis user a member of the www-data group: $ usermod -g www-data redis with 755 on the rundir (/var/run/redis-nextcloud) and 700 for the socket file itself (redis-server-nc.sock in our case since we are running multiple redis instances for different services on our servers). But obviously either way works. Thank you for pointing this out, @bb77 +1:t3

---

<div class="post-metadata">

**Author:** ![MelBourbon](https://help.nextcloud.com/letter_avatar/melbourbon/32/6_449c533f586939b6e5f246632a46421f.png) [@MelBourbon](https://help.nextcloud.com/u/MelBourbon)\
**Post date:** [October 6, 2024, 11:16am UTC](https://help.nextcloud.com/t/redisexception-no-such-file-or-directory-could-not-boot-notify-push-no-such-file-or-directory/205238/5 "2024-10-06T11:16:39Z")

</div>

`usermod -g www-data redis` did not resolved it

Did it yesterday and this morning 01:10 am I have the same error log entry.

---

<div class="post-metadata">

**Author:** ![chrissi55](https://help.nextcloud.com/user_avatar/help.nextcloud.com/chrissi55/32/4286_2.png) [@chrissi55](https://help.nextcloud.com/u/chrissi55)\
**Post date:** [October 6, 2024, 2:51pm UTC](https://help.nextcloud.com/t/redisexception-no-such-file-or-directory-could-not-boot-notify-push-no-such-file-or-directory/205238/6 "2024-10-06T14:51:38Z")

</div>

please put the output of

> systemctl status redis

here. Where does your redis server socket reside on your server → this info is important

And please also post the output of

> sudo cat /etc/redis/redis.conf | grep unixsocket

here

**Compare if the path output of your redis.conf and the status of your redis.service are compliant to the path set into your nextcloud config!!**

And more over this the correct command to add redis to www-data group should be

```auto
sudo usermod -aG redis www-data

```

[see: [Redis für Nextcloud konfigurieren (Memory Caching) - &nbsp;vaahsen.de](https://www.vaahsen.de/redis-fuer-nextcloud-konfigurieren-memory-caching/#:~:text=Der%20erste%20Schritt%20um%20Redis%20f%C3%BCr%20Nextcloud%20zu)]

---

<div class="post-metadata">

**Author:** ![MelBourbon](https://help.nextcloud.com/letter_avatar/melbourbon/32/6_449c533f586939b6e5f246632a46421f.png) [@MelBourbon](https://help.nextcloud.com/u/MelBourbon)\
**Post date:** [October 7, 2024, 7:25am UTC](https://help.nextcloud.com/t/redisexception-no-such-file-or-directory-could-not-boot-notify-push-no-such-file-or-directory/205238/7 "2024-10-07T07:25:52Z")

</div>

Output of `sudo cat /etc/redis/redis.conf | grep unixsocket`

```auto
unixsocket /var/run/redis/redis-server.sock
unixsocketperm 770

```

It matches my line in config.php

```auto
'redis' =>
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0.5,
    'dbindex' => 1,
  ),

```

Output of `systemctl status redis`

```auto
● redis-server.service - Advanced key-value store
     Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2024-10-07 01:11:17 CEST; 8h ago
       Docs: http://redis.io/documentation,
             man:redis-server(1)
   Main PID: 1277416 (redis-server)
     Status: "Ready to accept connections"
      Tasks: 5 (limit: 65000)
     Memory: 2.9M
        CPU: 51.121s
     CGroup: /system.slice/redis-server.service
             └─1277416 "/usr/bin/redis-server 127.0.0.1:6379" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" >

Oct 07 01:11:17 v2202204153101187524 systemd[1]: Starting Advanced key-value store...
Oct 07 01:11:17 v2202204153101187524 systemd[1]: Started Advanced key-value store.

```

I have run `sudo usermod -aG redis www-data` again and will need to wait until tomorrow to check the logs.

---

<div class="post-metadata">

**Author:** ![j-ed](https://help.nextcloud.com/user_avatar/help.nextcloud.com/j-ed/32/7281_2.png) [@j-ed](https://help.nextcloud.com/u/j-ed)\
**Post date:** [October 7, 2024, 8:08am UTC](https://help.nextcloud.com/t/redisexception-no-such-file-or-directory-could-not-boot-notify-push-no-such-file-or-directory/205238/8 "2024-10-07T08:08:45Z")

</div>

Personally I’ve added the web servewr user to the redis group and not the otherway round. Additionally you should keep in mind that it might not be sufficient to set the socket access rights only, because you have to make sure that the www-data user is allowed to go down the directory tree to access it too. The easiest way to check it is, to switch to the www-data user on the console and navigate to the redis socket directory.

---

<div class="post-metadata">

**Author:** ![chrissi55](https://help.nextcloud.com/user_avatar/help.nextcloud.com/chrissi55/32/4286_2.png) [@chrissi55](https://help.nextcloud.com/u/chrissi55)\
**Post date:** [October 7, 2024, 8:20am UTC](https://help.nextcloud.com/t/redisexception-no-such-file-or-directory-could-not-boot-notify-push-no-such-file-or-directory/205238/9 "2024-10-07T08:20:14Z")

</div>

```auto
● redis-server.service - Advanced key-value store
     Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2024-10-07 01:11:17 CEST; 8h ago
       Docs: http://redis.io/documentation,
             man:redis-server(1)
   Main PID: 1277416 (redis-server)
     Status: "Ready to accept connections"
      Tasks: 5 (limit: 65000)
     Memory: 2.9M
        CPU: 51.121s
     CGroup: /system.slice/redis-server.service
             └─1277416 "/usr/bin/redis-server 127.0.0.1:6379" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" >

Oct 07 01:11:17 v2202204153101187524 systemd[1]: Starting Advanced key-value store...
Oct 07 01:11:17 v2202204153101187524 systemd[1]: Started Advanced key-value store.

```

Ähm in line

```
 CGroup: /system.slice/redis-server.service
         └─1277416 "/usr/bin/redis-server 127.0.0.1:6379" "" "" "" "" "" "" "" 

```

your redis runs as IP:PORT and not like this

```auto
systemctl status redis.service
● redis-server.service - Advanced key-value store
     Loaded: loaded (/usr/lib/systemd/system/redis-server.service; enabled; preset: enabled)
     Active: active (running) since Tue 2024-10-01 08:46:37 CEST; 6 days ago
       Docs: http://redis.io/documentation,
             man:redis-server(1)
   Main PID: 11718 (redis-server)
     Status: "Ready to accept connections"
      Tasks: 5 (limit: 35967)
     Memory: 13.9M (peak: 19.7M)
        CPU: 34min 7.530s
     CGroup: /system.slice/redis-server.service
             └─11718 "/usr/bin/redis-server unixsocket:/run/redis/redis-server.sock"

```

Your redis should run like this

```auto
     CGroup: /system.slice/redis-server.service
             └─11718 "/usr/bin/redis-server unixsocket:/run/redis/redis-server.sock"

```

Please check this in your redis conf if you have both uncommented!  
If so please comment aout the port 6379 and set port to zero run the service as you wished in unixsocket mode.

my conf (partialy)

```auto
# Accept connections on the specified port, default is 6379 (IANA #815344).
# If port 0 is specified Redis will not listen on a TCP socket.
#port 6379
port 0

```

In your Nextcloud config you already set it right

```auto
  'redis' =>
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0.5,
    'dbindex' => 1,

```

**And don’t forget to restart redis + php + webserver (nginx / apache e.g.)**  
 **→ i usually decide to restart my whole server, so all services made a valuable restart** 🙂

---

<div class="post-metadata">

**Author:** ![MelBourbon](https://help.nextcloud.com/letter_avatar/melbourbon/32/6_449c533f586939b6e5f246632a46421f.png) [@MelBourbon](https://help.nextcloud.com/u/MelBourbon)\
**Post date:** [October 13, 2024, 6:51pm UTC](https://help.nextcloud.com/t/redisexception-no-such-file-or-directory-could-not-boot-notify-push-no-such-file-or-directory/205238/10 "2024-10-13T18:51:02Z")

</div>

I have changed port to `0`

But my output now is

```auto
CGroup: /system.slice/redis-server.service
             └─1246 "/usr/bin/redis-server 127.0.0.1:0" ""

```

Do I need to change my bind setting in `redis.conf`

---

<div class="post-metadata">

**Author:** ![chrissi55](https://help.nextcloud.com/user_avatar/help.nextcloud.com/chrissi55/32/4286_2.png) [@chrissi55](https://help.nextcloud.com/u/chrissi55)\
**Post date:** [October 13, 2024, 7:28pm UTC](https://help.nextcloud.com/t/redisexception-no-such-file-or-directory-could-not-boot-notify-push-no-such-file-or-directory/205238/11 "2024-10-13T19:28:27Z")

</div>

yes follow some instructions

> <https://github.com/masroore/redis-unix-socket/blob/master/redis.conf>

> <https://github.com/redis/node-redis/issues/204>
>
> atm, there seems no possibility to use unix domain socket instead of tcp socket …to connect to redis.
> 
> due to speed issues, that'd be a great benefit

---

<div class="post-metadata">

**Author:** ![chrissi55](https://help.nextcloud.com/user_avatar/help.nextcloud.com/chrissi55/32/4286_2.png) [@chrissi55](https://help.nextcloud.com/u/chrissi55)\
**Post date:** [October 13, 2024, 7:50pm UTC](https://help.nextcloud.com/t/redisexception-no-such-file-or-directory-could-not-boot-notify-push-no-such-file-or-directory/205238/12 "2024-10-13T19:50:04Z")

</div>

Also have a look to this post

> [@\[SOLVED\] Can't get redis to work in socket mode](https://help.nextcloud.com/t/solved-cant-get-redis-to-work-in-socket-mode/122830/8):
>
> Not helping you with selinux, but in general i run to the same problem with ubuntu 20 server without selinux. I finally find out that you should change /etc/redis/redis.conf unixsocketperm 700 to unixsocketperm 770 so that www-data group user can access redis-server.sock , in documentation that is not mentioned. [https://docs.nextcloud.com/server/21/admin\_manual/configuration\_server/caching\_configuration.html](https://docs.nextcloud.com/server/21/admin_manual/configuration_server/caching_configuration.html)

plus this

> <https://github.com/redis/node-redis/issues/204>
>
> atm, there seems no possibility to use unix domain socket instead of tcp socket …to connect to redis.
> 
> due to speed issues, that'd be a great benefit

---

<div class="post-metadata">

**Author:** ![MelBourbon](https://help.nextcloud.com/letter_avatar/melbourbon/32/6_449c533f586939b6e5f246632a46421f.png) [@MelBourbon](https://help.nextcloud.com/u/MelBourbon)\
**Post date:** [October 24, 2024, 7:48pm UTC](https://help.nextcloud.com/t/redisexception-no-such-file-or-directory-could-not-boot-notify-push-no-such-file-or-directory/205238/13 "2024-10-24T19:48:33Z")

</div>

I tried everything from above and still get the same error message every morning 01:10. I don’t think its related to redis. Because if I configure it wrong by intention or disable it I receive more error messages.

---

<div class="post-metadata">

**Author:** ![estebanium](https://help.nextcloud.com/user_avatar/help.nextcloud.com/estebanium/32/72295_2.png) [@estebanium](https://help.nextcloud.com/u/estebanium)\
**Post date:** [October 25, 2024, 4:33am UTC](https://help.nextcloud.com/t/redisexception-no-such-file-or-directory-could-not-boot-notify-push-no-such-file-or-directory/205238/14 "2024-10-25T04:33:41Z")

</div>

Is it possible, that your router reconnects at that time? Can you have a look a the full logs of the redis service. When you type `systemctl`, your logs always start at 1:11. So something happened before, and maybe the service restarted?

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [January 23, 2025, 4:34am UTC](https://help.nextcloud.com/t/redisexception-no-such-file-or-directory-could-not-boot-notify-push-no-such-file-or-directory/205238/15 "2025-01-23T04:34:02Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
