-
Notifications
You must be signed in to change notification settings - Fork 626
Closed
Description
Hi everyone,
I’m trying to enable Redis for caching, sessions, and queues in FreeScout, but I’m facing issues.
My Setup:
- FreeScout Version: 1.8.173
- PHP Version: 8.2
- Web Server: Nginx
- Database: MySQL
- Redis Version: 7.0.15
- Redis PHP Extension: Installed php8.2-redis
What I Did:
- Updated
.envfile:CACHE_DRIVER=redis SESSION_DRIVER=redis QUEUE_CONNECTION=redis REDIS_CLIENT=phpredis REDIS_HOST=127.0.0.1 REDIS_PASSWORD=null REDIS_PORT=6379 SESSION_LIFETIME=120 - Cleared cache and restarted services:
sudo -u www-data php artisan cache:clear sudo -u www-data php artisan config:clear sudo -u www-data php artisan queue:restart sudo systemctl restart php8.2-fpm sudo systemctl restart nginx sudo systemctl restart redis - Checked Redis connection:
redis-cli ping- Returns
PONG✅
- Returns
Problems I'm Facing:
-
Session errors (
CacheBasedSessionHandler.php)- 500 error in logs:
Illuminate\Session\CacheBasedSessionHandler::open() must return bool, string returned - Tried modifying
CacheBasedSessionHandler.phpbut no luck.
- 500 error in logs:
-
Queue worker fails to start
- Running
sudo -u www-data php artisan queue:workgives errors related to transactions or Redis connection.
- Running
-
Predis not working
- Error:
Class 'Predis\Client' not found - Switched to
phpredis, but still facing session errors.
- Error:
What I Tried:
- Ensured
php8.2-redisis installed. - Switched from
Predistophpredis. - Verified Redis is responding (
redis-cli ping). - Cleared cache and restarted all services.
Help Needed:
- How to fix Redis session errors in FreeScout?
- How to properly configure
CacheBasedSessionHandler.php? - How to get queue workers running with Redis?
Any help would be appreciated. Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels