Updating to wpredis failed

My site is currently using --wpfc and I want to try --wpredis so I tried updating my cache by using this command:

ee site update www.example.com --wpredis

Type "y" to continue [n]: y
Adding repository for Redis, please wait...
Updating apt-cache, please wait...
Installing packages, please wait...
Running pre-update checks, please wait...
NGINX configuration check failed.
root@server:~# nginx -t
nginx: [emerg] unknown "srcache_fetch_status" variable
nginx: configuration file /etc/nginx/nginx.conf test failed

Here’s the error source.

/etc/nginx/conf.d/redis.conf


# Log format Settings
log_format rt_cache_redis '$remote_addr $upstream_response_time $srcache_fetch_status [$time_local] '
'$http_host "$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"';

I’m getting the same error message.

Hello wibblet,

Here’s the solution I have done. Remove your current cache first by using this command.

ee site update example.com --wp

Then run this command:

ee site update example.com --wpredis

It will work. :slight_smile:

@seyntjim @wibblet

can you give me output for following command?

dpkg -l | grep nginx

I have already fixed mine, but here you go:

root@server:/var/log/nginx# dpkg -l | grep nginx
ii  nginx-common                    1.8.0-8ppa                            small, powerful, scalable web/proxy server - common files
ii  nginx-custom                    1.8.0-8ppa                            nginx web/proxy server with custom setup

@seyntjim

Glad to know your problem fixed :slight_smile:

that was just to confirm you have updated nginx package, which has necessary module for redis cache.

@wibblet

May i know which nginx package version you are using?

can you just give me output foe above command?

root@home:/var/log/nginx# dpkg -l | grep nginx                                  ii  nginx-common                         1.8.0-7ppa                          all          small, powerful, scalable web/proxy server - common files
ii  nginx-custom                         1.8.0-7ppa                          amd64        nginx web/proxy server with custom setup

@wibblet

thats it !! you need to upgrade your server packages to fix above problem occurred to you.

As your server having nginx package that has no necessary modules for cacheing with redis.

apt-get update && apt-get upgrade

above command will upgrade your nginx package to latest package.

2 Likes

Awesome that fixed it, thank you!

And I’m sorry to the OP for hijacking his thread it was not my intention :slight_smile:

@wibblet

Glad to know that your problem fixed :slight_smile:

No problem. I’m happy you have fixed the issue.

@harshadyeola

Can I safely stop my memcached from running or is it still needed? Thanks!

@seyntjim [quote=“seyntjim, post:12, topic:4827”] Can I safely stop my memcached from running or is it still needed? [/quote]

Yes you can stop memcached from running, ensure that any other plugin not using it.

@harshadyeola

Thank you. Can you please suggest me any web viewer for redis ?

@seyntjim

We use phpRedisAdmin as redis webviewer

How to install it?

Here you go

ee stack install --phpredisadmin

@harshadyeola

Thanks! How do I include it in 22222 directory?

@seyntjim

above command will put this in 22222. you can access it with

https://example.com:22222/cache/redis

1 Like

@harshadyeola

Thank you Sir! :slight_smile:

Hello @seyntjim

I hope your query is resolved. I am closing this support topic for now.

Feel free to create a new support topic if you have any queries further. :slight_smile: