wyx2685 / v2board

🚀A multiple proxy protocol manage panel application interface
MIT License
608 stars 186 forks source link

[BUG] Redis NOAUTH Authentication required #127

Open ariadarkkkis opened 1 month ago

ariadarkkkis commented 1 month ago

@wyx2685 Im using latest version and still get this error.

Im running latest version of aapanel with PHP8.2 and redis extension. I also installed Redis 7 from aapanel store and configured a password on it.

When I set the password in .env file, it seems like it doesnt work and ignores it and tries to use the default connection to 127.0.0.1:6379 without any password and will get this error since Redis is set to requirepass

my .env file:

APP_NAME=V2board
APP_ENV=production
APP_KEY=base64:ssd=
APP_DEBUG=true
APP_URL=https://site.com

LOG_CHANNEL=stack

DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=v2bdb
DB_USERNAME=v2bdb
DB_PASSWORD=Passw0rd

BROADCAST_DRIVER=log
CACHE_DRIVER=redis
QUEUE_CONNECTION=redis
SESSION_DRIVER=redis
SESSION_LIFETIME=120

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=Passw0rd
REDIS_PORT=6379

MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null
MAIL_FROM_NAME=null
MAILGUN_DOMAIN=
MAILGUN_SECRET=

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=

PUSHER_APP_ID=
PUSHER_APP_KEY=base64:asd=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1

MIX_PUSHER_APP_KEY=base64:asd="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

Log in v2_log table:

{
  "exception": {
    "\u0000*\u0000message": "NOAUTH Authentication required.",
    "\u0000Exception\u0000string": "",
    "\u0000*\u0000code": 0,
    "\u0000*\u0000file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php",
    "\u0000*\u0000line": 91,
    "\u0000Exception\u0000trace": [
      {
        "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php",
        "line": 91,
        "function": "select",
        "class": "Redis",
        "type": "->"
      },
      {
        "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Support/helpers.php",
        "line": 263,
        "function": "Illuminate\\Redis\\Connectors\\{closure}",
        "class": "Illuminate\\Redis\\Connectors\\PhpRedisConnector",
        "type": "->"
      },
      {
        "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php",
        "line": 75,
        "function": "tap"
      },
      {
        "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php",
        "line": 27,
        "function": "createClient",
        "class": "Illuminate\\Redis\\Connectors\\PhpRedisConnector",
        "type": "->"
      },
      {
        "function": "Illuminate\\Redis\\Connectors\\{closure}",
        "class": "Illuminate\\Redis\\Connectors\\PhpRedisConnector",
        "type": "->"
      },
      {
        "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Redis/Connections/PhpRedisConnection.php",
        "line": 536,
        "function": "call_user_func"
      },
      {
        "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Redis/Connections/Connection.php",
        "line": 220,
        "function": "command",
        "class": "Illuminate\\Redis\\Connections\\PhpRedisConnection",
        "type": "->"
      },
      {
        "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Redis/Connections/PhpRedisConnection.php",
        "line": 575,
        "function": "__call",
        "class": "Illuminate\\Redis\\Connections\\Connection",
        "type": "->"
      },
      {
        "file": "/www/wwwroot/v2board.panel/vendor/laravel/horizon/src/Repositories/RedisSupervisorRepository.php",
        "line": 150,
        "function": "__call",
        "class": "Illuminate\\Redis\\Connections\\PhpRedisConnection",
        "type": "->"
      },
      {
        "file": "/www/wwwroot/v2board.panel/vendor/laravel/horizon/src/Supervisor.php",
        "line": 216,
        "function": "forget",
        "class": "Laravel\\Horizon\\Repositories\\RedisSupervisorRepository",
        "type": "->"
      },
      {
        "file": "/www/wwwroot/v2board.panel/vendor/laravel/horizon/src/Supervisor.php",
        "line": 320,
        "function": "terminate",
        "class": "Laravel\\Horizon\\Supervisor",
        "type": "->"
      },
      {
        "file": "/www/wwwroot/v2board.panel/vendor/laravel/horizon/src/Supervisor.php",
        "line": 286,
        "function": "ensureParentIsRunning",
        "class": "Laravel\\Horizon\\Supervisor",
        "type": "->"
      },
      {
        "file": "/www/wwwroot/v2board.panel/vendor/laravel/horizon/src/Supervisor.php",
        "line": 260,
        "function": "loop",
        "class": "Laravel\\Horizon\\Supervisor",
        "type": "->"
      },
      {
        "file": "/www/wwwroot/v2board.panel/vendor/laravel/horizon/src/Console/SupervisorCommand.php",
        "line": 101,
        "function": "monitor",
        "class": "Laravel\\Horizon\\Supervisor",
        "type": "->"
      },
      {
        "file": "/www/wwwroot/v2board.panel/vendor/laravel/horizon/src/Console/SupervisorCommand.php",
        "line": 76,
        "function": "start",
        "class": "Laravel\\Horizon\\Console\\SupervisorCommand",
        "type": "->"
      },
      {
        "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
        "line": 36,
        "function": "handle",
        "class": "Laravel\\Horizon\\Console\\SupervisorCommand",
        "type": "->"
      },
      {
        "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Container/Util.php",
        "line": 40,
        "function": "Illuminate\\Container\\{closure}",
        "class": "Illuminate\\Container\\BoundMethod",
        "type": "::"
      },
      {
        "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
        "line": 93,
        "function": "unwrapIfClosure",
        "class": "Illuminate\\Container\\Util",
        "type": "::"
      },
      {
        "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
        "line": 35,
        "function": "callBoundMethod",
        "class": "Illuminate\\Container\\BoundMethod",
        "type": "::"
      },
      {
        "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Container/Container.php",
        "line": 653,
        "function": "call",
        "class": "Illuminate\\Container\\BoundMethod",
        "type": "::"
      },
      {
        "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Console/Command.php",
        "line": 136,
        "function": "call",
        "class": "Illuminate\\Container\\Container",
        "type": "->"
      },
      {
        "file": "/www/wwwroot/v2board.panel/vendor/symfony/console/Command/Command.php",
        "line": 298,
        "function": "execute",
        "class": "Illuminate\\Console\\Command",
        "type": "->"
      },
      {
        "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Console/Command.php",
        "line": 120,
        "function": "run",
        "class": "Symfony\\Component\\Console\\Command\\Command",
        "type": "->"
      },
      {
        "file": "/www/wwwroot/v2board.panel/vendor/symfony/console/Application.php",
        "line": 1040,
        "function": "run",
        "class": "Illuminate\\Console\\Command",
        "type": "->"
      },
      {
        "file": "/www/wwwroot/v2board.panel/vendor/symfony/console/Application.php",
        "line": 301,
        "function": "doRunCommand",
        "class": "Symfony\\Component\\Console\\Application",
        "type": "->"
      },
      {
        "file": "/www/wwwroot/v2board.panel/vendor/symfony/console/Application.php",
        "line": 171,
        "function": "doRun",
        "class": "Symfony\\Component\\Console\\Application",
        "type": "->"
      },
      {
        "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Console/Application.php",
        "line": 94,
        "function": "run",
        "class": "Symfony\\Component\\Console\\Application",
        "type": "->"
      },
      {
        "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
        "line": 129,
        "function": "run",
        "class": "Illuminate\\Console\\Application",
        "type": "->"
      },
      {
        "file": "/www/wwwroot/v2board.panel/artisan",
        "line": 35,
        "function": "handle",
        "class": "Illuminate\\Foundation\\Console\\Kernel",
        "type": "->"
      }
    ],
    "\u0000Exception\u0000previous": null
  }
}
ariadarkkkis commented 1 month ago

Update: I change the Redis port and changed the port in .env file. I get data in the database, but still I get the following errors in v2_log table:

{
    "exception": {
      "\u0000*\u0000message": "Connection refused",
      "\u0000Exception\u0000string": "",
      "\u0000*\u0000code": 0,
      "\u0000*\u0000file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php",
      "\u0000*\u0000line": 153,
      "\u0000Exception\u0000trace": [
        {
          "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php",
          "line": 153,
          "function": "connect",
          "class": "Redis",
          "type": "->"
        },
        {
          "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php",
          "line": 84,
          "function": "establishConnection",
          "class": "Illuminate\\Redis\\Connectors\\PhpRedisConnector",
          "type": "->"
        },
        {
          "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Support/helpers.php",
          "line": 263,
          "function": "Illuminate\\Redis\\Connectors\\{closure}",
          "class": "Illuminate\\Redis\\Connectors\\PhpRedisConnector",
          "type": "->"
        },
        {
          "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php",
          "line": 75,
          "function": "tap"
        },
        {
          "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php",
          "line": 27,
          "function": "createClient",
          "class": "Illuminate\\Redis\\Connectors\\PhpRedisConnector",
          "type": "->"
        },
        {
          "function": "Illuminate\\Redis\\Connectors\\{closure}",
          "class": "Illuminate\\Redis\\Connectors\\PhpRedisConnector",
          "type": "->"
        },
        {
          "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Redis/Connections/PhpRedisConnection.php",
          "line": 536,
          "function": "call_user_func"
        },
        {
          "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Redis/Connections/Connection.php",
          "line": 220,
          "function": "command",
          "class": "Illuminate\\Redis\\Connections\\PhpRedisConnection",
          "type": "->"
        },
        {
          "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Redis/Connections/PhpRedisConnection.php",
          "line": 575,
          "function": "__call",
          "class": "Illuminate\\Redis\\Connections\\Connection",
          "type": "->"
        },
        {
          "file": "/www/wwwroot/v2board.panel/vendor/laravel/horizon/src/Repositories/RedisSupervisorRepository.php",
          "line": 150,
          "function": "__call",
          "class": "Illuminate\\Redis\\Connections\\PhpRedisConnection",
          "type": "->"
        },
        {
          "file": "/www/wwwroot/v2board.panel/vendor/laravel/horizon/src/Supervisor.php",
          "line": 216,
          "function": "forget",
          "class": "Laravel\\Horizon\\Repositories\\RedisSupervisorRepository",
          "type": "->"
        },
        {
          "file": "/www/wwwroot/v2board.panel/vendor/laravel/horizon/src/Supervisor.php",
          "line": 320,
          "function": "terminate",
          "class": "Laravel\\Horizon\\Supervisor",
          "type": "->"
        },
        {
          "file": "/www/wwwroot/v2board.panel/vendor/laravel/horizon/src/Supervisor.php",
          "line": 286,
          "function": "ensureParentIsRunning",
          "class": "Laravel\\Horizon\\Supervisor",
          "type": "->"
        },
        {
          "file": "/www/wwwroot/v2board.panel/vendor/laravel/horizon/src/Supervisor.php",
          "line": 260,
          "function": "loop",
          "class": "Laravel\\Horizon\\Supervisor",
          "type": "->"
        },
        {
          "file": "/www/wwwroot/v2board.panel/vendor/laravel/horizon/src/Console/SupervisorCommand.php",
          "line": 101,
          "function": "monitor",
          "class": "Laravel\\Horizon\\Supervisor",
          "type": "->"
        },
        {
          "file": "/www/wwwroot/v2board.panel/vendor/laravel/horizon/src/Console/SupervisorCommand.php",
          "line": 76,
          "function": "start",
          "class": "Laravel\\Horizon\\Console\\SupervisorCommand",
          "type": "->"
        },
        {
          "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
          "line": 36,
          "function": "handle",
          "class": "Laravel\\Horizon\\Console\\SupervisorCommand",
          "type": "->"
        },
        {
          "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Container/Util.php",
          "line": 40,
          "function": "Illuminate\\Container\\{closure}",
          "class": "Illuminate\\Container\\BoundMethod",
          "type": "::"
        },
        {
          "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
          "line": 93,
          "function": "unwrapIfClosure",
          "class": "Illuminate\\Container\\Util",
          "type": "::"
        },
        {
          "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
          "line": 35,
          "function": "callBoundMethod",
          "class": "Illuminate\\Container\\BoundMethod",
          "type": "::"
        },
        {
          "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Container/Container.php",
          "line": 653,
          "function": "call",
          "class": "Illuminate\\Container\\BoundMethod",
          "type": "::"
        },
        {
          "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Console/Command.php",
          "line": 136,
          "function": "call",
          "class": "Illuminate\\Container\\Container",
          "type": "->"
        },
        {
          "file": "/www/wwwroot/v2board.panel/vendor/symfony/console/Command/Command.php",
          "line": 298,
          "function": "execute",
          "class": "Illuminate\\Console\\Command",
          "type": "->"
        },
        {
          "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Console/Command.php",
          "line": 120,
          "function": "run",
          "class": "Symfony\\Component\\Console\\Command\\Command",
          "type": "->"
        },
        {
          "file": "/www/wwwroot/v2board.panel/vendor/symfony/console/Application.php",
          "line": 1040,
          "function": "run",
          "class": "Illuminate\\Console\\Command",
          "type": "->"
        },
        {
          "file": "/www/wwwroot/v2board.panel/vendor/symfony/console/Application.php",
          "line": 301,
          "function": "doRunCommand",
          "class": "Symfony\\Component\\Console\\Application",
          "type": "->"
        },
        {
          "file": "/www/wwwroot/v2board.panel/vendor/symfony/console/Application.php",
          "line": 171,
          "function": "doRun",
          "class": "Symfony\\Component\\Console\\Application",
          "type": "->"
        },
        {
          "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Console/Application.php",
          "line": 94,
          "function": "run",
          "class": "Symfony\\Component\\Console\\Application",
          "type": "->"
        },
        {
          "file": "/www/wwwroot/v2board.panel/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
          "line": 129,
          "function": "run",
          "class": "Illuminate\\Console\\Application",
          "type": "->"
        },
        {
          "file": "/www/wwwroot/v2board.panel/artisan",
          "line": 35,
          "function": "handle",
          "class": "Illuminate\\Foundation\\Console\\Kernel",
          "type": "->"
        }
      ],
      "\u0000Exception\u0000previous": null
    }
  }

Seems like some part of the application cant access .env file to get Redis connection info.

wyx2685 commented 1 month ago

Cant repeat Still get some errors?

ariadarkkkis commented 1 month ago

@wyx2685 yes. My database is full now and a lot of GB of storage is used since I posted this. I didnt find time to figure it out yet. I stopped the panel for now.