YQ的技术小站

发现问题,解决问题

发现问题,解决问题

Month: 七月 2018

解决Mantis+SourceSVN插件,在Import everything无法完成

Posted on 2018年7月18日

Mantis  免费是最大的优势而且功能并不比收费的弱多少。Mantis+SourceSVN基本就可以满足小型项目的BUG跟踪了。

这里安装Mantis和插件并不复杂,因为使用的是老式的SVN,因此插件选装的如下模块:

Source Control Integration 2.1.0
Source Subversion Integration 2.1.0
Source Subversion / WebSVN Integration 2.0.1

系统是Ubuntu 14.04 +nginx + php7-fpm

配置完成且点击import everything总是卡死。开始时以为是timeout不够长,但都没有能解决,只好从原码出发

最终定位到:

plugins/SourceSVN/SourceSVN.php

$t_svn_proc = proc_open(
$t_svn_cmd,
array( array( 'pipe', 'r' ), array( 'pipe', 'w' ), array( 'pipe', 'w' ) ),
$t_pipes
);

经过google大神的查找,发现此处的权限参数是有过争议的

参见:https://github.com/mantisbt-plugins/source-integration/issues/259

第二个w最初的时候是a,后为了适应windows而被改成了w

那么我们是不是可以试试原装参数呢?毕竟我们用的是linux

$t_svn_proc = proc_open(
$t_svn_cmd,
array( array( 'pipe', 'r' ), array( 'pipe', 'w' ), array( 'pipe', 'a' ) ),
$t_pipes
);

果然点击import everything很快就有反应了。

Posted in: linux | Tagged: mantis

近期文章

  • rhel7中安装python3.6
  • Error: Connection activation failed: The master connection ‘ens18’ is not compatible with ‘ib2’
  • 找到SM Master节点所在的机器的方法
  • Centos环境中更新grub 选项的正确方法
  • pyppeteer 常见问题解决方法
  • certificate verify failed 解决方法
  • Python Twisted 框架学习问题汇总
  • kubeadm init 时报timeout错误比较好的解决方法
  • keystone-manage bootstrap设置错误后,如何修改各URL
  • 使用Ajax的PUT方法将文件PUT致Aws S3或Ceph RGW

近期评论

    文章归档

    • 2020年十月
    • 2020年三月
    • 2019年九月
    • 2019年五月
    • 2019年三月
    • 2019年二月
    • 2019年一月
    • 2018年十二月
    • 2018年十月
    • 2018年七月
    • 2018年六月
    • 2018年五月
    • 2018年四月
    • 2018年三月
    • 2017年十二月
    • 2017年十一月
    • 2017年九月
    • 2017年八月
    • 2017年四月
    • 2016年十一月
    • 2016年八月
    • 2016年五月
    • 2015年六月
    • 2015年五月
    • 2015年三月
    • 2015年二月
    • 2015年一月
    • 2014年十一月
    • 2014年十月
    • 2014年九月
    • 2014年八月

    分类目录

    • ceph
    • dev
    • doker
    • gluster
    • k8s
    • linux
    • macos
    • openstack
    • php
    • python
    • raspberryPI
    • storage
    • wordpress
    • 未分类
    • 虚拟化

    功能

    • 登录
    • 文章RSS
    • 评论RSS
    • WordPress.org

    Copyright © 2021 YQ的技术小站.

    Theme by themehall.com.