Giter Club home page Giter Club logo

Comments (6)

timacdonald avatar timacdonald commented on June 18, 2024

@salahhusa9 if Azure Redis works via predis or phpredis than it will already be supported.

If it does not you will need to build your own Ingest instance that supports it.

from pulse.

salahhusa9 avatar salahhusa9 commented on June 18, 2024
root@3e4a92a78ea6:/home/site/wwwroot# php artisan pulse:check
[2023-12-05 09:37:15] production.ERROR: Connection refused {"exception":"[object] (RedisException(code: 0): Connection refused at /home/site/wwwroot/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php:161)
[stacktrace]
#0 /home/site/wwwroot/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php(161): Redis->connect('127.0.0.1', '6379', 0.0, NULL, 0, 0.0)
#1 /home/site/wwwroot/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php(90): Illuminate\\Redis\\Connectors\\PhpRedisConnector->establishConnection(Object(Redis), Array)
#2 /home/site/wwwroot/vendor/laravel/framework/src/Illuminate/Support/helpers.php(307): Illuminate\\Redis\\Connectors\\PhpRedisConnector->Illuminate\\Redis\\Connectors\\{closure}(Object(Redis))
#3 /home/site/wwwroot/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php(81): tap(Object(Redis), Object(Closure))
#4 /home/site/wwwroot/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php(33): Illuminate\\Redis\\Connectors\\PhpRedisConnector->createClient(Array)
#5 /home/site/wwwroot/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php(38): Illuminate\\Redis\\Connectors\\PhpRedisConnector->Illuminate\\Redis\\Connectors\\{closure}()
#6 /home/site/wwwroot/vendor/laravel/framework/src/Illuminate/Redis/RedisManager.php(110): Illuminate\\Redis\\Connectors\\PhpRedisConnector->connect(Array, Array)
#7 /home/site/wwwroot/vendor/laravel/framework/src/Illuminate/Redis/RedisManager.php(91): Illuminate\\Redis\\RedisManager->resolve('default')
#8 /home/site/wwwroot/vendor/laravel/framework/src/Illuminate/Cache/RedisStore.php(340): Illuminate\\Redis\\RedisManager->connection('default')
#9 /home/site/wwwroot/vendor/laravel/framework/src/Illuminate/Cache/RedisStore.php(209): Illuminate\\Cache\\RedisStore->lockConnection()
#10 /home/site/wwwroot/vendor/laravel/pulse/src/Commands/CheckCommand.php(70): Illuminate\\Cache\\RedisStore->lock('laravel:pulse:c...', 5)
#11 /home/site/wwwroot/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Laravel\\Pulse\\Commands\\CheckCommand->handle(Object(Laravel\\Pulse\\Pulse), Object(Laravel\\Pulse\\Support\\CacheStoreResolver), Object(Illuminate\\Events\\Dispatcher))
#12 /home/site/wwwroot/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#13 /home/site/wwwroot/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#14 /home/site/wwwroot/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#15 /home/site/wwwroot/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#16 /home/site/wwwroot/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\\Container\\Container->call(Array)
#17 /home/site/wwwroot/vendor/symfony/console/Command/Command.php(326): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#18 /home/site/wwwroot/vendor/laravel/framework/src/Illuminate/Console/Command.php(180): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#19 /home/site/wwwroot/vendor/symfony/console/Application.php(1081): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#20 /home/site/wwwroot/vendor/symfony/console/Application.php(320): Symfony\\Component\\Console\\Application->doRunCommand(Object(Laravel\\Pulse\\Commands\\CheckCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#21 /home/site/wwwroot/vendor/symfony/console/Application.php(174): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#22 /home/site/wwwroot/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(201): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#23 /home/site/wwwroot/artisan(35): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#24 {main}
"} 

   RedisException 

  Connection refused

  at vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php:161
    157if (version_compare(phpversion('redis'), '5.3.0', '>=') && ! is_null($context = Arr::get($config, 'context'))) {
    158$parameters[] = $context;
    159▕         }
    160▕ 
  ➜ 161$client->{$persistent ? 'pconnect' : 'connect'}(...$parameters);
    162▕     }
    163164▕     /**
    165▕      * Create a new redis cluster instance.

      +23 vendor frames 

  24  artisan:35
      Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

from pulse.

salahhusa9 avatar salahhusa9 commented on June 18, 2024

i want to change connection, if i do it with PULSE_REDIS_CONNECTION the don't tack it, he use defult redis connection @timacdonald

from pulse.

salahhusa9 avatar salahhusa9 commented on June 18, 2024

and olso if i change PULSE_CACHE_DRIVER he don't work he stile connect to defult

from pulse.

salahhusa9 avatar salahhusa9 commented on June 18, 2024

(in my project CACHE_DRIVER is azure_redis, but pulse he stile use default (in config/database.php)

from pulse.

salahhusa9 avatar salahhusa9 commented on June 18, 2024

i solved, problem is in lock:

//cache.php

        'redis' => [
            'driver' => 'redis',
            'connection' => 'cache',
            'lock_connection' => 'default',
        ],

        'azure_redis' => [
            'driver' => 'redis',
            'connection' => 'azure_cache',
            'lock_connection' => 'default',
        ],

solution must be change lock_connection

//cache.php

        'redis' => [
            'driver' => 'redis',
            'connection' => 'cache',
            'lock_connection' => 'default',
        ],

        'azure_redis' => [
            'driver' => 'redis',
            'connection' => 'azure_cache',
            'lock_connection' => 'azure_cache',
        ],

from pulse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.