Skip to content

[BUG] "No such file or directory" error, when redis unixsocket does not exist #8081

@KhDanial

Description

@KhDanial

"No such file or directory" error

when we want to use redis unixsocket it is possible that given path for socket does not exist.
in this situation if we start redis-server with given config, error occurred with this message:
Opening Unix socket: bind: No such file or directory

To reproduce

Steps to reproduce the behavior and/or a minimal code sample.
you can delete unixsocket path and start to run redis server.
for example change unixsocket path to /var/run/redis/redis.sock and delte /var/run/redis path.
now in redis directory execute this command : src/redis-socket redis.conf
error

**Expected behavior **
redis most check unixsocket path and check if it does not exist create related path recursively.

Additional information

i created new pull request and push my solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions