Wow my server is completely fucked up right now. All I can do is try to create a backup from the most recent data dir... something with dbus daemon prevents from logging me in and it makes everything slow.
# Create mount bindings
mount --bind /dev /repair/dev
mount --bind /dev/shm /repair/dev/shm
mount --bind /dev/pts /repair/dev/pts
mount --bind /proc /repair/proc
mount --bind /sys /repair/sys
mount --bind /tmp /repair/tmp
# chroot into environment
chroot /repair
export LC_ALL=C
# change config file postgresql, reduce shared_buffers
nano -w /etc/postgresql/15/main/postgresql.conf
# start postgresql and redis
/etc/init.d/postgresql start
/etc/init.d/redis-server start
su - mastodon
# now you should be able to run tootctl commands.