• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups

Redis setup not working

General Discussion
3
8
450
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B
    bzero last edited by 18 Feb 2021, 20:12

    Hello everyone,

    I follow this instruction to enable Redis for my site, but it doesn't work, there is no message output on redis-cli monitor console.
    https://bagisto.com/en/redis-for-cache-management-for-bagisto/

    I am using v1.3.
    How could i know Bagisto is taking redis configuration? or is there any step which is not mentioned in document?

    Thank you.

    1 Reply Last reply Reply Quote 0
    • A
      ayushwebkul last edited by 19 Feb 2021, 11:34

      Hi @bzero
      Please run
      php artisan config:cache after making the changes as mentioned in the article.
      then to check whether redis is working use this command and browse your website:-

      redis-cli monitor

      do let us know if you face any issues.

      1 Reply Last reply Reply Quote 0
      • B
        bzero last edited by 19 Feb 2021, 12:58

        Hello @ayushwebkul

        I also tried this command, and this below as well, but redis-cli monitor gives nothing.
        php artisan optimize

        1 Reply Last reply Reply Quote 0
        • A
          ayushwebkul last edited by ayushwebkul 19 Feb 2021, 13:59 19 Feb 2021, 13:58

          @bzero
          please gives us the following details so that we can reproduce the issue on our end -

          1. Operating system
          2. Redis version
          3. Whether redis is running locally or on a different server?
          4. Server configurations (RAM, CPU). etc.

          Thanks!

          1 Reply Last reply Reply Quote 0
          • B
            bzero last edited by 19 Feb 2021, 14:38

            Hi @ayushwebkul

            1. Operating system
            Debian 10
            

            Redis version:

            ii  libhiredis0.14:amd64            0.14.0-3                     amd64        minimalistic C client library for Redis
            ii  redis-server                    5:5.0.3-4+deb10u2            amd64        Persistent key-value database with network interface
            ii  redis-tools                     5:5.0.3-4+deb10u2            amd64        Persistent key-value database with network interface (client)
            

            Whether redis is running locally or on a different server?

            Local
            

            Server configurations (RAM, CPU). etc.

            Tested on two systems, 1- physical machine (i7, 8G ram)
            Another is on Vultr instance, 1G ram
            

            Thank you.

            S 1 Reply Last reply 23 Feb 2021, 13:58 Reply Quote 0
            • A
              ayushwebkul last edited by 22 Feb 2021, 05:40

              @bzero thanks for the information, we will get back to you soon after reproducing the issue on our end.

              1 Reply Last reply Reply Quote 0
              • S
                siddharthwebkul @bzero last edited by 23 Feb 2021, 13:58

                Hello @bzero

                1. We have checked your redis issue and redis is working fine on our end with this server configuration.

                  • redis = 5.0.3
                  • RAM = 2GB
                  • OS = ubuntu 18.04LTS (Debian)
                2. We recommend to use redis as both CACHE_DRIVER as well as SESSION_DRIVER for bagisto, therefore you need to modify your .env accordingly setting CACHE_DRIVER = redis, SESSION_DRIVER= redis

                3. After any modification in .env, remove <bagisto_root>/bootstrap/cache/config.php file and then flush the bagisto previous configuration, cache and route by "php artisan config:cache", "php artisan cache:clear", "php artisan route:clear".

                4. Also check for the predis is installed properly by composer if not then run "composer require predis/predis" in bagisto root directory.

                Thanks and Regards

                1 Reply Last reply Reply Quote 0
                • B
                  bzero last edited by 24 Feb 2021, 20:51

                  Great. Thanks for this instruction.
                  I will update you for the result soon.

                  1 Reply Last reply Reply Quote 0
                  8 out of 8
                  • First post
                    8/8
                    Last post