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. Java图片转换为base64格式

    /** * @Descriptionmap 将图片文件转化为字节数组字符串,并对其进行Base64编码处理 * @author temdy * @Date 2015-01-26 * @param pa ...

  2. 张小龙在2017微信公开课PRO版讲了什么(附演讲实录和2016微信数据报告)

    今天2017微信公开课PRO版在广州亚运城综合体育馆举行,这次2017微信公开课大会以“下一站”为主题,而此次的微信公开课的看点大家可能就集中在腾讯公司高级副总裁.微信之父——张小龙的演讲上了!今天中 ...

  3. 关于flex中正则表达式上下文匹配的问题

    按照课本与网上的说法,斜杠'/'表示匹配上下文,例如ab/cd表示当ab后面有cd时匹配ab 然而如果实际这么写,flex在调用该正则表达式时触发'unrecognized rule' flex源代码 ...

  4. Linux学习笔记

    性能问题排查: Linux系统出现了性能问题,一般我们可以通过top.iostat.free.vmstat等命令来查看初步定位问题.内存资源占用:free命令 IO占用:iostat -d -k 1 ...

  5. java连接mysql数据库详细步骤解析

    java连接mysql数据库详细步骤解析      第一步:下载一个JDBC驱动包,例如我用的是:mysql-connector-java-5.1.17-bin.jar      第二步:导入下载的J ...

  6. 纯CSS实现下拉菜单及下拉容器等(纯CSS实现导航条及导航下拉容器)

    虽然网上类似甚至相同的案例有很多,但是我还是写下,以记下笔记,也可供大家参考 希望大家可以指导批评~~ 首先我们以列表ul li 来开始我们菜单也可以说导航条的制作: 在页面中我们首先构建以下XHTM ...

  7. 6.Linux的文件权限与目录配置

    Linux文件属性:(- rwx r-x r-- 1 root root 2800 feb 1 11:55 test.txt 顺序按着空格排序,除了时间) 第一组字符代表这个文件是目录.文件或链接文件 ...

  8. angularJs之内置服务

  9. PHP访问带密码的Redis

    1. 设置Redis密码,以提供远程登陆打开redis.conf配置文件,找到requirepass,然后修改如下: requirepass yourpassword yourpassword就是re ...

  10. Sublime WiFi真机同步和WiFi真机预览使用说明

    概述WiFi真机同步: 通过在Sublime中建立调试服务,接收真机设备主动连接调试的方式,配合apploader及自定义loader,为开发者提供在局域网内通过WiFi实现应用快速真机同步和实时预览 ...