Edge for Private Cloud v. 4.17.09
הנתב של Edge מיושם באמצעות הנתב Nginx. במהלך השדרוג של Edge, או
כשמשנים את ההגדרה של הנתב, ייתכן שיוצגו שגיאות הגדרה של Nginx. כאשר
השגיאות האלה מתרחשות, Edge כותב את קובצי התצורה של Nginx שגרמו לבעיה
/opt/nginx/conf.d
. לאחר מכן,
אפשר להשתמש בכלי Nginx configtest
כדי
לקבוע את הסיבה לשגיאה.
לדוגמה, צריך לבדוק את /opt/nginx/conf.d
ולראות את הקבצים הבאים:
-rw-r--r-- 1 apigee apigee 522 Jul 20 08:41 0-default.conf.bad -rw-r--r-- 1 apigee apigee 577 Jul 20 08:42 0-fallback.conf -rw-r--r-- 1 apigee apigee 1062 Jul 20 08:18 0-map.conf -rw-r--r-- 1 apigee apigee 1887 Jul 20 08:42 custorg_test_default.conf.bad
שימו לב איך מספר קבצים כוללים את הסיומת .bad.
לרוב השגיאות האלה נגרמות כי ביצעת שינויים שגויים בקובץ /opt/apigee/customer/application/router.properties
או שביצעת שינויים שגויים במארח וירטואלי. לדוגמה:
conf_load_balancing_load.balancing.driver.proxy.busy.buffer.size=32k
הערך הזה אסור.
כדי לפתור את השגיאה:
- כדי להסיר את הסיומת .bad משמות הקבצים בתיקייה
/opt/nginx/conf.d
, הם יסתיימו ב-.conf. - מריצים את הכלי
configtest
Nginx כדי להציג את הסיבה לכשל:/opt/nginx/scripts/apigee-nginx configtest
הפלט אמור להיראות כך:
nginx: [emerg] "proxy_busy_buffers_size" must be equal to or greater than the maximum of the value of "proxy_buffer_size" and one of the "proxy_buffers" in /opt/nginx/conf/nginx.conf:47
- עריכת
/opt/apigee/customer/application/router.properties
כדי להגדיר אתconf_load_balancing_load.balancing.driver.proxy.busy.buffer.size
כ-128k. - הספרייה
/opt/nginx/conf.d
הוסרה:rm -rf /opt/nginx/conf.d
- מפעילים מחדש את הנתב:
/opt/apigee/apigee-service/bin/apigee-service edge-router restart
- לא צריך יותר לראות קובצי תצורה שגויים בתיקייה
/opt/nginx/conf.d
.