Open gunchleoc opened 6 months ago
I had overlooked that I need to sudo usermod -a -G pixelfed redis
After doing that, I'm getting this error instead:
2021_08_30_050137_add_software_column_to_instances_table ................................................................................ 8ms FAIL
RedisException
No such file or directory
at vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php:159
155▕ if (version_compare(phpversion('redis'), '5.3.0', '>=') && ! is_null($context = Arr::get($config, 'context'))) {
156▕ $parameters[] = $context;
157▕ }
158▕
➜ 159▕ $client->{$persistent ? 'pconnect' : 'connect'}(...$parameters);
160▕ }
161▕
162▕ /**
163▕ * Create a new redis cluster instance.
+15 vendor frames
16 [internal]:0
Illuminate\Support\HigherOrderCollectionProxy::Illuminate\Support\{closure}()
+27 vendor frames
44 artisan:35
Illuminate\Foundation\Console\Kernel::handle()
Giving up on the socket and switching to tcp fixed it. It would still be nice to get this working on the socket though.
Socket /var/run/redis/redis.sock
seems to work. Note the added /var
at the front.
Socket /var/run/redis/redis.sock seems to work. Note the added /var at the front.
that's weird, because defining unixsocket /run/redis/redis.sock
in /etc/redis/redis.conf
should make it work explicitly. what's even more strange is that debian has supported the /run
directory since at least 2012: https://wiki.debian.org/ReleaseGoals/RunDirectory
I ran into all kinds of weirdness during this install. Also, using a custom "pixelfed" user won't work; I had to use nginx's default user, because the generated media file directories all lack the group read permission.
So, I started from scratch and everything's finally working now.
Also faced with this issue during clean install. Switched to default nginx user and Redis tcp and it worked.
Running the command
php artisan migrate --force
as root user is failing on a fresh install.My setup
pixelfed
user, owns the/usr/share/webapps/
directorysu - pixelfed
, thencreatedb -T template0 pixelfed
/etc/redis/redis.conf
contains.env
containsI also tried setting a password with redis'
requirepass
parameter in theredis.conf
.Looking at https://github.com/pixelfed/docs/issues/121#issuecomment-1782338134 I then tried
And then
which gives me a different error message:
The usermod suggested in https://github.com/pixelfed/docs/issues/121#issuecomment-1782338144 did not fix this.
Operating system: Debian 12 bookworm Pixelfed version v0.12.0 PHP version 8.2.18 Redis version 7.0.15