set -u cd /opt/dshs/lib 2>/dev/null || cd / echo "=== [A] 错误串来源 ===" grep -rn "unknown_user" --include=*.js /opt/dshs/lib 2>/dev/null | head -8 echo "---" grep -rn "\"unauthorized\"\|'unauthorized'" --include=*.js /opt/dshs/lib 2>/dev/null | head -8 echo "=== [B] dsh_hosts 结构 ===" sudo -u postgres psql -p 15432 -d dshs -Atc "select column_name||':'||data_type from information_schema.columns where table_name='dsh_hosts' order by ordinal_position" 2>&1 | grep -v 'could not change' echo "=== [C] dsh_hosts 内容 ===" sudo -u postgres psql -p 15432 -d dshs -Atc "select * from dsh_hosts order by 1" 2>&1 | grep -v 'could not change' | head -30 echo "=== [D] domains 结构 ===" sudo -u postgres psql -p 15432 -d dshs -Atc "select column_name||':'||data_type from information_schema.columns where table_name='domains' order by ordinal_position" 2>&1 | grep -v 'could not change' echo "=== [E] domains 内容 ===" sudo -u postgres psql -p 15432 -d dshs -Atc "select * from domains" 2>&1 | grep -v 'could not change' | head -30