pixelfed / docs

Pixelfed Documentation
https://docs.pixelfed.org
GNU Affero General Public License v3.0
174 stars 68 forks source link

Missing UNIX domain socket path #121

Open okpierre opened 3 years ago

okpierre commented 3 years ago

Testing sock connection

Command: php artisan horizon:status and then getting this error

Missing UNIX domain socket path.

  at vendor/predis/predis/src/Connection/StreamConnection.php:193
    189▕      */
    190▕     protected function unixStreamInitializer(ParametersInterface $parameters)
    191▕     {
    192▕         if (!isset($parameters->path)) {
  ➜ 193▕             throw new \InvalidArgumentException('Missing UNIX domain socket path.');
    194▕         }
    195▕ 
    196▕         $flags = STREAM_CLIENT_CONNECT;
    197▕ 

      +28 vendor frames 
  29  artisan:37
      Illuminate\Foundation\Console\Kernel::handle()

Here's my settings:

REDIS_SCHEME=unix
REDIS_HOST=/var/run/redis/redis.sock
REDIS_PASSWORD=null
REDIS_PORT=null
trwnh commented 3 years ago

Are you using predis or phpredis?

if you are using phpredis:

if you are using predis:

joho1968 commented 1 year ago

Maybe this could be mentioned in the "Generic installation guide" ...

This occurred to me when doing php artisan migrate --force, and when correcting the setting(s) as suggested above, another exception is thrown because stuff already exists :wink:

mijutu commented 1 year ago

I bumped into the exact same problem. Please update the installation guide.

hyperreal64 commented 1 year ago

Another issue I've encountered after resolving the one in the OP was a permission denied error on the Redis socket. The problem was that the user running the php artisan migrate --force command did not have rwx access to /run/redis/redis.sock.

Not entirely a big deal, but it would have been courteous if this was mentioned in the guide for using a dedicated pixelfed user.