• Resolved slate

    (@meanwood)


    Plugin settings:
    https://nextcloud.mnwd.in/s/JHkiRQfiRxdD6Yi

    redis.conf:
    unixsocket /var/run/redis/redis-server.sock
    unixsocketperm 755
    daemonize yes
    supervised no

    ll /var/run/redis/redis-server.sock:
    srwxr-xr-x 1 redis redis 0 Jun 7 01:26 /var/run/redis/redis-server.sock=

    cat /etc/systemd/system/redis.service:

    
    [Unit]
    Description=Redis persistent key-value database
    After=network.target
    
    [Service]
    ExecStart=/usr/bin/redis-server /etc/redis.conf --supervised systemd
    ExecStop=/usr/libexec/redis-shutdown
    Type=forking
    User=redis
    Group=redis
    RuntimeDirectory=redis
    RuntimeDirectoryMode=0755
    
    [Install]
    WantedBy=multi-user.target
    
    • This topic was modified 4 years, 9 months ago by slate.
    • This topic was modified 4 years, 9 months ago by slate.
Viewing 11 replies - 16 through 26 (of 26 total)
  • Thread Starter slate

    (@meanwood)

    As per the guide you sent me i edited /etc/systemd/system/redis.service and put in the user who is also running php, thus i assume this user is now also running redis. – so assuming this is correct that user should have access to his own home directory.

    probably this guide is just very outdated and not working properly. so how to proceed?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    if you set

    ‘logfile /var/log/redis/redis.log

    then please make sure , your PHP user has permission to access to /var/, to /var/log , to /var/log/redis

    Best regards,

    Thread Starter slate

    (@meanwood)

    You are not reading my messages completely. I have already set the location to /home/”NAMEOFPHPUSER”/redis/logs/redis.log and then I get:
    Failed to start Redis persistent key-value database.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Then please check systemctl output and redis log , it should say why it failed to start.

    based on my experience, this is typically permission issue.

    Best regards,

    Thread Starter slate

    (@meanwood)

    Gotcha, checked the redis log and it says:
    146979:C 08 Jun 2020 20:38:33.909 # Can’t chdir to ‘/var/lib/redis’: Permission denied
    How outdated is this guide? It misses tons of things obviously. Do I now manually edit all of redis permissions? I feel something is very wrong with this guide. the directory /var/lib/redis is owned by redis:nobody, so now really proceed to mess around with all these permissions manually?

    • This reply was modified 4 years, 9 months ago by slate.
    • This reply was modified 4 years, 9 months ago by slate.
    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    There you go , now fix that permission.

    I would suggest you to seek help from your hosting provider.

    as from plugin side , there is no issue for Redis connection.

    if you have redis socket working with my test script and plugin didn’t work , then we will investigate it.

    Please understand that how to set up Redis is kind of out of support scope.

    Best regards,

    Thread Starter slate

    (@meanwood)

    Sorry but this is a default installation of redis I rather think, that the guide is completely unfinished and lacks a lot of steps that still need to be done.
    I dont need help from my hosting provider, I am the hosting provider.

    Thread Starter slate

    (@meanwood)

    lol right, contact us when it works, then we will investigate it, are you kidding?

    the reason it does not work is that the guide is not working/incomplete/not up2date

    • This reply was modified 4 years, 9 months ago by slate.
    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    are you kidding?

    No , I am serious and I don’t joke.

    the guide is not working/incomplete/not up2date

    I just tested with the guide, step by step , and it works on me.

    Please check my screenshot.

    View post on imgur.com

    as you can see, I have successfully configured Redis to run as “example:example” which matches my PHP user.

    A piece of advice is that ,as in my case, I set

    dir /home/example.com/redis

    and

    logfile /home/example.com/redis/redis.log

    which I know for sure my PHP user example has access to /home/example.com/ and its sub

    You can try this approach , and manually create the redis directory first , Redis starting up won’t create missing dir.

    it works, then we will investigate it,

    No , I meant when you have Redis socket working properly with that simple test code , but doesn’t work with plugin , that’s the case we will investigate.

    and please understand , your issue here is more of server management issue , instead of plugin issue.

    Best regards,

    • This reply was modified 4 years, 9 months ago by qtwrk.
    Thread Starter slate

    (@meanwood)

    well, try on centos 8.1 with directadmin installed. then install redis with dnf and install the php extension, probably you can reproduce it.

    i removed redis and all remainings now, did systemctl daemon-reload and reinstalled redis, now apperently its at least working without a socket, so im not touching it anymore.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Well, I don’t have DirectAdmin , but the guide is still valid for CentOS 8

    I also got Redis running as example user

    View post on imgur.com

    Best regards,

    • This reply was modified 4 years, 9 months ago by qtwrk.
Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘redis connection test failed UNIX socket’ is closed to new replies.