redmine export long csv file failed: 502 proxy error
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的更多相关文章
- 502 Proxy Error。The ISA Server denied the specified Uniform Resource Locator (URL).
问题:部署好项目,在IE地址栏输入http://localhost/myweb/index.aspx,回车后报错: 解释: 试图访问的页面出现问题,无法显示此页面. 尝试下列: 刷新页: 单击“刷 ...
- 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 ...
- nova instance出错:"message": "Proxy error: 502 Read from server failed
执行 $ nova resize instance1 时候出错: {, "details": " File \"/opt/stack/nova/nova/com ...
- 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” “ ...
- python 读取文件read.csv报错 OSError: Initializing from file failed
小编在用python 读取文件read.csv的时候 报了一个错误 OSError: Initializing from file failed 初始化 文件失败 检查了文件路径,没问题 那应该是我文 ...
- pandas.read_csv() 报错 OSError: Initializing from file failed,报错原因分析和解决方法
今天调用pandas读取csv文件时,突然报错“ OSError: Initializing from file failed ”,我是有点奇怪的,以前用的好好的,read_csv(path)方法不是 ...
- read_csv报错Initializing from file failed
Python版本:Python 3.6 pandas.read_csv() 报错 OSError: Initializing from file failed,一般由两种情况引起:一种是函数参数为路径 ...
- 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 ...
- 处理 read_csv 报错 OSError:Initializing from file failed
1.问题发现 df=pd.read_csv("X-go报表_交易20191118.csv") print(df.info()) File "pandas/_libs/pa ...
随机推荐
- 浏览器版本不支持页面示例 supper.html
关键点在于<html>标签和js.<!--[if lt IE 10]>的配合 使用360浏览器兼容模式下查看:http://runjs.cn/code <!DOCTYPE ...
- c++聪聪看书(低数据版代码)
聪聪是一个善良可爱.睿智聪慧的好孩子.聪聪喜欢看书,这一天她在看一本书时看到了这样一个问题:给你一个正整数n,你要将它分成若干个自然数Ai的和的形式,并且使得这若干个自然数Ai的乘积尽量大,并输出最大 ...
- 【译】SQL Server索引进阶第八篇:唯一索引
原文:[译]SQL Server索引进阶第八篇:唯一索引 索引设计是数据库设计中比较重要的一个环节,对数据库的性能其中至关重要的作用,但是索引的设计却又不是那么容易的事情,性能也不是那么轻易就 ...
- 《Linux及安全》实践3.3
<Linux及安全>实践三 字符集总结与分析 [by lwr] 一.ISO.UCS/UTF.GB系列字符集分析 1.字符集&字符编码 字符集(Charset):是一个系统支持的所有 ...
- mongostat用法
mongostat是mongoDB自带的工具,用于检测mongodb的运行状态. mongostat用法 Test:Test/node-131 / # mongostat --help Usage: ...
- [原创]解决net-speeder与pptp不兼容的问题
解决net-speeder与pptp不兼容的问题 终于受不了很多玩意儿都被墙了,每次FQ费半天劲,浪费时间,于是在搬瓦工搞了个VPS,年付19美元,挺便宜的,赶紧的VPN搭起,优化走起. VPN搭建很 ...
- 启用CentOS6.5 64位安装时自带的MySQL数据库服务器
本人在虚拟机上又安装了一台linux机器,作为MySQL数据库服务器用,在安装时选择了系统自带的MySQL服务器端,以下是启用步骤. 首先开启mysqld服务 #service mysqld star ...
- 使用udev实现显示器的热插拔和usb的自动挂载
udev:用来监听硬件设备是否发生改变,并可以给硬件设备命名 ,也可以在硬件发生改变之后执行脚本 使用udev检测显示器是否发生变化,然后执行脚本,解决linux显示器热插拔问题 先补充一点: [ro ...
- LeetCode Reverse String
原题链接在这里:https://leetcode.com/problems/reverse-string/ 题目: Write a function that takes a string as in ...
- CentOS7 配置网卡端口镜像
背景 最近一直在研究旁路监测,需要设置一个源端口镜像给两个目的端口(分别接两个监测设备),无奈ip-com交换机没配置明白,研究下使用软件实现暂时代替. 环境 发行版.内核.iptables版本信息如 ...