Welcome! Log In Create A New Profile

Advanced

Re: Using gRPC nginx gateway

Maxim Dounin
June 04, 2021 11:22AM
Hello!

On Fri, Jun 04, 2021 at 07:54:00AM +0000, babu vel wrote:

> Am using nginx 1.17.3 version and trying to enable http2 and
> gRPC gateway. I compiled it enabling http_v2 and gRPC module.
> However, am still getting below error reporting unknown
> directive "grpc_pass", can you please let me know what is the
> issue here?
>
> # nginx -c /nginx/conf/grpc.conf -t
> nginx: [emerg] unknown directive "grpc_pass" in
> /nginx/conf/grpc.conf:165
> nginx: configuration file /nginx/conf/grpc.conf test failed

The error message suggests that you have no gRPC proxy module
compiled in. Check the "nginx -V" output - my best guess is that
you haven't updated the nginx binary you are running.

Note well that nginx 1.17.3 is obsolete long time ago and should
not be used. Consider updating to nginx 1.21.0 or nginx 1.20.1.

[...]

> # strings nginx | grep grpc_pass
> grpc_pass
> grpc_pass_header

Note that "strings nginx" will look into "nginx" file in the
current directory, while running nginx will look for the nginx
binary in PATH. In most cases these aren't the same thing.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Using gRPC nginx gateway

babu vel June 04, 2021 03:56AM

Re: Using gRPC nginx gateway

Maxim Konovalov June 04, 2021 05:16AM

Re: Using gRPC nginx gateway

babu vel June 04, 2021 11:46AM

Re: Using gRPC nginx gateway

Maxim Konovalov June 04, 2021 11:50AM

Re: Using gRPC nginx gateway

Maxim Dounin June 04, 2021 11:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 78
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready