Updating to wpredis failed


#1

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

Redis update gave nginx error
#2

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"';

#3

I’m getting the same error message.


#4

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:


#5

@seyntjim @wibblet

can you give me output for following command?

dpkg -l | grep nginx


#6

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

#7

@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?


#8
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

#9

@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.


#10

Awesome that fixed it, thank you!

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


#11

@wibblet

Glad to know that your problem fixed :slight_smile:


#12

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!


Error "NGINX configuration check failed." on EE 3.3.X on New wpredis site
#13

@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.


#14

@harshadyeola

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


#15

@seyntjim

We use phpRedisAdmin as redis webviewer

How to install it?

Here you go

ee stack install --phpredisadmin


#16

@harshadyeola

Thanks! How do I include it in 22222 directory?


#17

@seyntjim

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

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


#18

@harshadyeola

Thank you Sir! :slight_smile:


#19

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:


#20