Edge for Private Cloud เวอร์ชัน 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 - เรียกใช้เครื่องมือ Nginx
configtest
เพื่อแสดงสาเหตุของความล้มเหลว:/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
อีกต่อไป