After modified the file \apps\redmine\conf\httpd-vhosts.conf:

<VirtualHost *:8080>
ServerName redmine.example.com
ServerAlias www.redmine.example.com
DocumentRoot "D:\App\Bitnami\redmine-3.3.0-0/apps/redmine/htdocs/public"
<Directory "D:\App\Bitnami\redmine-3.3.0-0/apps/redmine/htdocs/public">
Options -MultiViews
allow from all
</Directory>

Timeout 1200 # wuyan add, invalid

RewriteEngine On
RewriteRule ^/(.*)$ balancer://redminecluster%{REQUEST_URI} [P,QSA,L]
<Proxy balancer://redminecluster>
BalancerMember http://127.0.0.1:3001 timeout=1200 # wuyan modify,invalid
BalancerMember http://127.0.0.1:3002 timeout=1200 # wuyan modify,invalid
</Proxy>

Include "D:\App\Bitnami\redmine-3.3.0-0/apps/redmine/conf/httpd-app.conf"
</VirtualHost>

Now everything seems ok!

Continue:

When the records is larger than 1500, it failed again! google and google again, i found the new info:

1)  as this page showed, i tried the access from port 3001(127.0.0.1:3001/), it was ok!

2)  as this page showed, the default timeout of thin server is 30 seconds, we can set it with: thin -t 60.

3)  as this page showed, the default timeout of apache is 300 seconds. and the default value of ProxyTimeout is the same.

4)  when i export csv with port 8080(the virtual host port), it will return the 502 proxy error after about 60 seconds.

5) the access path is: apache, the proxy balancer, port 3001 server(thinserver1).

6) Maybe the timeout is from the proxy, but i change the timeout as this pageshowed, it failed!

7) change the timeout of thin server: open redmine-3.3.0-0\apps\redmine\scripts\serviceinstall.bat, add -t 300。

8) as this page showed, we can set KeepAlive=On in the ProxyPass option. i didn't try.

9) the final resolution is as this page, add "ProxyTimeout 400" line to Bitnami\redmine-3.3.0-0\apps\redmine\conf\httpd-prefix.conf. The default value of ProxyTimeout is Timeout, the default Timeout is 60 , change the value to 400 seconds. the config file:

ProxyPass / balancer://redminecluster
ProxyPassReverse / balancer
RewriteEngine On
RewriteRule ^/(.*)$ balancer://redminecluster%{REQUEST_URI} [P,QSA,L]

ProxyTimeout 400

<Proxy balancer://redminecluster>
BalancerMember http://127.0.0.1:3001
BalancerMember http://127.0.0.1:3002
</Proxy>

Include "D:\App\Bitnami\redmine-3.3.0-0/apps/redmine/conf/httpd-app.conf"

redmine export long csv file failed: 502 proxy error的更多相关文章

  1. 502 Proxy Error。The ISA Server denied the specified Uniform Resource Locator (URL).

    问题:部署好项目,在IE地址栏输入http://localhost/myweb/index.aspx,回车后报错:   解释: 试图访问的页面出现问题,无法显示此页面. 尝试下列: 刷新页: 单击“刷 ...

  2. 502 Proxy Error The proxy server received an invalid response from an upstream server

    Proxy Error The proxy server received an invalid response from an upstream server. The proxy server ...

  3. nova instance出错:"message": "Proxy error: 502 Read from server failed

    执行 $ nova resize instance1 时候出错: {, "details": " File \"/opt/stack/nova/nova/com ...

  4. ogr2ogr: Export Well Known Text (WKT) for one feature to a CSV file

    Perhaps you’re looking for this? ogr2ogr -f “CSV” “E:\4_GIS\NorthArkCartoData\UnitedStates\MO_wkt” “ ...

  5. python 读取文件read.csv报错 OSError: Initializing from file failed

    小编在用python 读取文件read.csv的时候 报了一个错误 OSError: Initializing from file failed 初始化 文件失败 检查了文件路径,没问题 那应该是我文 ...

  6. pandas.read_csv() 报错 OSError: Initializing from file failed,报错原因分析和解决方法

    今天调用pandas读取csv文件时,突然报错“ OSError: Initializing from file failed ”,我是有点奇怪的,以前用的好好的,read_csv(path)方法不是 ...

  7. read_csv报错Initializing from file failed

    Python版本:Python 3.6 pandas.read_csv() 报错 OSError: Initializing from file failed,一般由两种情况引起:一种是函数参数为路径 ...

  8. save tracking results into csv file for oxuva long-term tracking dataset (from txt to csv)

    save tracking results into csv file for oxuva long-term tracking dataset (from txt to csv) 2019-10-2 ...

  9. 处理 read_csv 报错 OSError:Initializing from file failed

    1.问题发现 df=pd.read_csv("X-go报表_交易20191118.csv") print(df.info()) File "pandas/_libs/pa ...

随机推荐

  1. jsp页面中jstl标签详解

    JSLT标签库,是日常开发经常使用的,也是众多标签中性能最好的.把常用的内容,放在这里备份一份,随用随查.尽量做到不用查,就可以随手就可以写出来.这算是Java程序员的基本功吧,一定要扎实. JSTL ...

  2. oracle PL/SQL高级特性

    触发器:存放在数据库中,并被隐含执行的存储过程. 由触发事件,触发条件,触发操作组成. DML触发器:指定触发器时机(before or after),触发事件(insert  , delete, u ...

  3. php 删除目录及子文件

    function del_dir($dir) { if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') { $str = "rmdir /s/q &q ...

  4. ueditor插件简单使用

    下载地址:http://ueditor.baidu.com/website/download.html 建议同时下载所需版本及完整源码.   [ 1.4.3 JSP + 完整源码src ] 简单配置说 ...

  5. php套件 wampserver 常见问题

    安装问题 dll 丢失 今天手贱升级了win10,重新安装了一下php的套件,提示有几个组件找不到,其中有一个msvcr100.dll丢失. google了一下: youtube视频:Windows ...

  6. VS启用调试

    今天访问127.0.0.1  发现 与localhost 不是访问的同一个内容. 于是乎,就向到了另一个方法来调试程序. 1.在IIS 建立站点 并指向程序源. 2.启动vs 调试→附加到进程→找到w ...

  7. memcached服务器

    memcached是高性能的分布式内存缓存服务器,通过缓存数据库查询结果,减少数据库访问次数,提高动态web应用的速度和可扩展性.为了提高性能,memcached把数据存储在内存中,重启memcach ...

  8. 基于spring 的单元测试

    需要引用的依赖: import org.junit.runner.RunWith;import org.springframework.test.context.ContextConfiguratio ...

  9. [转]10个有关RESTful API良好设计的最佳实践

    Web API已经在最近几年变成重要的话题,一个干净的API设计对于后端系统是非常重要的. 通常我们为Web API使用RESTful设计,REST概念分离了API结构和逻辑资源,通过Http方法GE ...

  10. 使用RestTemplate发送post请求

    最近使用RestTemplate发送post请求,遇到了很多问题,如转换httpMessage失败,中文乱码等,调了好久才找到下面较为简便的方法: RestTemplate restTemplate ...