# 由于代理问题无法升级到新版本

**URL:** <https://meta.discourse.org/t/cant-upgrade-to-new-version-because-of-proxy/224272>\
**Category:** Support\
**Created:** [2022年四月14日 13:21 UTC](https://meta.discourse.org/t/cant-upgrade-to-new-version-because-of-proxy/224272 "2022-04-14T13:21:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![actionthomas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/actionthomas/32/119831_2.png) [@actionthomas](https://meta.discourse.org/u/actionthomas)\
**Post date:** [2022年四月14日 13:21 UTC](https://meta.discourse.org/t/cant-upgrade-to-new-version-because-of-proxy/224272/1 "2022-04-14T13:21:33Z")

</div>

当我尝试升级到最新版本时，引导程序由于配置的 http 代理而失败：

```plaintext
[...]
I, [2022-04-14T13:16:11.409590 #1] INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf
I, [2022-04-14T13:16:11.410003 #1] INFO -- : Replacing (?m-ix:upstream[^\\}]+\\}) with upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2022-04-14T13:16:11.410374 #1] INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2022-04-14T13:16:11.411104 #1] INFO -- : Replacing (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2022-04-14T13:16:11.412004 #1] INFO -- : Replacing (?-mix:worker_connections.+$) with worker_connections $nginx_worker_connections ; in /etc/nginx/nginx.conf
I, [2022-04-14T13:16:11.412403 #1] INFO -- : > echo \"done configuring web\"
I, [2022-04-14T13:16:11.414313 #1] INFO -- : done configuring web

I, [2022-04-14T13:16:11.414765 #1] INFO -- : > cd /var/www/discourse &amp;&amp; gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
ERROR: While executing gem ... (URI::InvalidURIError)
    bad URI(is not URI?): "http://\\!&lt;redacted login&gt;:&lt;redacted password&gt;@&lt;redacted proxy host&gt;:8090/"

```

现在 discourse 已离线，并且使用 discourse-doctor 未能重启之前的版本。

有人知道如何规避这个问题吗？

谢谢。
