You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Going thru the latest docs to setup a trio of Linux hosts with a separate host for the Load Balancer. The hosts were all complete, moved onto the LB section and used the example config shown here. A subsequent 'systemctl restart nginx' fails with: Jul 18 16:10:56 eau-rancherlb01 nginx[51925]: nginx: [emerg] unexpected "}" in /etc/nginx/nginx.conf:40 Jul 18 16:10:56 eau-rancherlb01 nginx[51925]: nginx: configuration file /etc/nginx/nginx.conf test failed Jul 18 16:10:56 eau-rancherlb01 systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
I am also not positive, based on this example, what value is required by <rancher UI URL>, like does it want the actual properly formatted url (https://rancher.domain.com), or the short version (rancher.domain.com)?
Lastly, since the stream module is required, unless you compile from source dont you have to include a load_module line? I did but thought perhaps including that is worth the mention.
At any rate the config as presented has got to be correct.. in so far as the proper number of curly braces but I'll be damned if I can figure this out. Obviously I have removed line 40 to be greeted with the error now being on line 41 for the next brace. This might be a legit Nginx issue but even if so the documentation should be corrected.
I'm no Nginx expert but all the examples for.. really any proxy/web host config has no semi colon for the very last line. Guess it doesn't mean it won't work with one. Which turned out to be true.. I just added the semi colon and F me it's started.
No one feels like a bigger idiot than yours truly.. but yeah I guess I'll be the dumb one if only to point out the missing semi-colon in the example.
Here's hoping the other uncertain parts can be tackled as well.
Summary
Going thru the latest docs to setup a trio of Linux hosts with a separate host for the Load Balancer. The hosts were all complete, moved onto the LB section and used the example config shown here. A subsequent 'systemctl restart nginx' fails with:
Jul 18 16:10:56 eau-rancherlb01 nginx[51925]: nginx: [emerg] unexpected "}" in /etc/nginx/nginx.conf:40 Jul 18 16:10:56 eau-rancherlb01 nginx[51925]: nginx: configuration file /etc/nginx/nginx.conf test failed Jul 18 16:10:56 eau-rancherlb01 systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
I am also not positive, based on this example, what value is required by
<rancher UI URL>
, like does it want the actual properly formatted url (https://rancher.domain.com), or the short version (rancher.domain.com)?Lastly, since the stream module is required, unless you compile from source dont you have to include a
load_module
line? I did but thought perhaps including that is worth the mention.At any rate the config as presented has got to be correct.. in so far as the proper number of curly braces but I'll be damned if I can figure this out. Obviously I have removed line 40 to be greeted with the error now being on line 41 for the next brace. This might be a legit Nginx issue but even if so the documentation should be corrected.
nginx version: nginx/1.18.0 (Ubuntu)
The text was updated successfully, but these errors were encountered: