Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2021_08_30_050137_add_software_column_to_instances_table fails with redis Unix socket config #4190

Closed
stevenroose opened this issue Feb 16, 2023 · 3 comments

Comments

@stevenroose
Copy link

I'm doing the installation following the official manual and the following artisan command fails with the given error:

$ php artisan migrate --force
  2021_08_30_050137_add_software_column_to_instances_table ..................................................... 12ms FAIL

   InvalidArgumentException

  Missing UNIX domain socket path.

  at vendor/predis/predis/src/Connection/StreamConnection.php:167
    163▕      */
    164▕     protected function unixStreamInitializer(ParametersInterface $parameters)
    165▕     {
    166▕         if (!isset($parameters->path)) {
  ➜ 167▕             throw new \InvalidArgumentException('Missing UNIX domain socket path.');
    168▕         }
    169▕
    170▕         $flags = STREAM_CLIENT_CONNECT;
    171▕

      +21 vendor frames
  22  database/migrations/2021_08_30_050137_add_software_column_to_instances_table.php:44
      App\Jobs\InstancePipeline\InstanceCrawlPipeline::dispatch()

  23  database/migrations/2021_08_30_050137_add_software_column_to_instances_table.php:24
      AddSoftwareColumnToInstancesTable::runPostMigration()

I have redis configured to use Unix sockets with the following:

  • set the following redis.conf
    port 0
    unixsocket /var/run/redis/redis-server.sock
    unixsocketperm 770
    
  • add my pixelfed user to the redis group (though I run php artisan as root, so that shouldn't be the problem)
  • the following relevant section in .env:
    REDIS_CLIENT="predis"
    REDIS_SCHEME="unix"
    REDIS_HOST="/var/run/redis/redis-server.sock"
    REDIS_PASSWORD="null"
    REDIS_PORT="0"
    
@stevenroose
Copy link
Author

I think this is because the manual wasn't updated after #1602

@stevenroose
Copy link
Author

I resolved my issue by doing this: pixelfed/docs#109

@stevenroose
Copy link
Author

Gonna close. The manual MR should fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant