Closed yangxiang92 closed 1 month ago
Bot detected the issue body's language is not English, translate it automatically.
Title: [Bug] After updating the Docker image to 2.12.3, the PROXY_URL field cannot be used
我也遇到了同样的问题,升级到2.12.3版本后容器无法再使用主机的代理。
Bot detected the issue body's language is not English, translate it automatically.
I also encountered the same problem. After upgrading to version 2.12.3, the container can no longer use the host's agent.
![]()
@liu0050 @yangxiang92 would you mind try rebuild the latest commit's docker image to see whether the issue have been resolved?
@liu0050 @yangxiang92 would you mind try rebuild the latest commit's docker image to see whether the issue have been resolved?
I have rebuild docker image with the latest commit of "main" branch (commit id: 38664487a091bedc5b4b2efec5320c74222c9432). The issue is not resolved yet.
Just remove the quotes from the proxychains -f $conf
line in the Dockerfile. Fixed for me.
Just remove the quotes from the
proxychains -f $conf
line in the Dockerfile. Fixed for me.
But I need the proxy to access the OpenAI server...
Just remove the quotes from the
proxychains -f $conf
line in the Dockerfile. Fixed for me.But I need the proxy to access the OpenAI server...
Yes, that's the right fix for proxy...
Just remove the quotes from the
proxychains -f $conf
line in the Dockerfile. Fixed for me.But I need the proxy to access the OpenAI server...
Yes, that's the right fix for proxy...
Sorry, I misunderstood your meaning. Removing the quotes solves this issue! Thank you!
For reference, here is the modified content:
CMD if [ -n "$PROXY_URL" ]; then \
export HOSTNAME="127.0.0.1"; \
protocol=$(echo $PROXY_URL | cut -d: -f1); \
host=$(echo $PROXY_URL | cut -d/ -f3 | cut -d: -f1); \
port=$(echo $PROXY_URL | cut -d: -f3); \
conf=/etc/proxychains.conf; \
echo "strict_chain" > $conf; \
echo "proxy_dns" >> $conf; \
echo "remote_dns_subnet 224" >> $conf; \
echo "tcp_read_time_out 15000" >> $conf; \
echo "tcp_connect_time_out 8000" >> $conf; \
echo "localnet 127.0.0.0/255.0.0.0" >> $conf; \
echo "localnet ::1/128" >> $conf; \
echo "[ProxyList]" >> $conf; \
echo "$protocol $host $port" >> $conf; \
cat /etc/proxychains.conf; \
proxychains -f $conf node server.js --host 0.0.0.0; \
else \
node server.js; \
fi
Bug Description
更新Docker镜像到2.12.3之后,使用PROXY_URL字段,容器无法正常运行。去掉PROXY_URL字段后,容器可以正常运行。
Steps to Reproduce
运行脚本
访问http://localhost:3002 ,得到结果如下:
修改脚本为:
访问http://localhost:3002 ,得到结果如下:
Expected Behavior
定义了PROXY_URL后,容器仍可以正常使用。
Screenshots
No response
Deployment Method
Desktop OS
Ubuntu
Desktop Browser
Chrome
Desktop Browser Version
Version 122.0.6261.111 (Official Build) (64-bit)
Smartphone Device
No response
Smartphone OS
No response
Smartphone Browser
No response
Smartphone Browser Version
No response
Additional Logs
No response