Root cause: switch_v3() created backup files (.v2-backup, .pre-repair) inside /etc/nginx/sites-enabled/. Nginx loads ALL files in sites-enabled/, so backup files declaring 'listen 80 default_server' caused duplicate default_server errors. Fix: - Add NGINX_BACKUP_DIR=/opt/zhuyuan-brain/nginx-backups for storing backups outside sites-enabled/ - Add clean_stale_nginx_backups() to remove any residual backup files from sites-enabled/ before nginx operations - Both deploy_v3() and switch_v3() now call cleanup on entry Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/55e3ada6-8ce8-4123-8f45-d20f6b369037 Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| age-os | ||
| app | ||
| nginx | ||
| proxy | ||
| scripts | ||
| setup | ||
| architecture.md | ||
| brain-server-profile.json | ||
| cn-server-profile.json | ||
| ecosystem.config.js | ||
| feimao-server-profile.json | ||
| migration-markers.json | ||
| migration-plan.md | ||
| persona-brain-architecture.md | ||
| zhuyuan-server-profile.json | ||