Перейти к содержимому

Фотография

JIRA + Testlink


  • Авторизуйтесь для ответа в теме
В теме одно сообщение

#1 aceton

aceton

    Новый участник

  • Members
  • Pip
  • 29 сообщений
  • ФИО:Павел

Отправлено 22 августа 2011 - 06:00

Люди, кто настраивал интеграцию JIRA и Testlink. Есть проблема. По иснтрукции, заполняю файл config.inc.php:
$g_interface_bugs = 'JIRA';

jira.cfg.php:
<?php
/**
* TestLink Open Source Project - http://testlink.sourceforge.net/ 
* $Id: jira.cfg.php,v 1.0 2005/10/25 17:40:56 
* 
*
* 20051229 - scs - added DEFINE for the DB-Type
*/

// Contributed by  jbarchibald@gmail.com

//Set the bug tracking system Interface to JIRA 3.1.1
/** The DB host to use when connecting to the JIRA db */
define('BUG_TRACK_DB_HOST', '192.168.1.102');

/** The name of the database that contains the jira tables */
define('BUG_TRACK_DB_NAME', 'jira');

/** The DB type being used by jira */
define('BUG_TRACK_DB_USER', 'iquser');

/** The DB password to use for connecting to the jira db */
define('BUG_TRACK_DB_PASS', 'iqpassword');

/** link of the web server for jira */
// define('BUG_TRACK_HREF', "http://localhost:8081/secure/Dashboard.jspa"); 
define('BUG_TRACK_HREF', "http://192.168.1.128:8081/secure/Dashboard.jspa"); 

/** The DB type to use for connecting to the bugtracking db */
define('BUG_TRACK_DB_TYPE', 'postgres');

/** link to the bugtracking system, for entering new bugs */
define('BUG_TRACK_ENTER_BUG_HREF',"http://192.168.1.128:8081/secure/CreateIssue.jspa");
?>

Перезагружаю сервер, и получаю ошибку в логе:
[11/Aug/19 13:38:04][ERROR][86267d8ea3a6967f7373b1c14eea54e7][GUI]
		Connect to Bug Tracker database fails: (interface: JIRA - Host:192.168.1.102 - DBName: jira - User: iquser) -1 - Database connection failed
[<<][4e4e673ce3345017387406][DEFAULT][/lib/execute/execSetResults.php][11/Aug/19 13:38:04][11/Aug/19 13:38:05][took 0.234784 secs]

Все указал правильно, ошибка в чем-то другом.
  • 0

#2 owasp

owasp

    Активный участник

  • Members
  • PipPip
  • 87 сообщений

Отправлено 05 сентября 2011 - 20:01

А в php есть возможность работы с postgres?

У меня как было - php 5.2 имел расширение для работы с Microsoft SQL Server.
А в php 5.3 не стало такого расширения. И переписал свой коннектор к системе учёта замечания на работу через ODBC.

С postgres проще - расширение есть. Поэтому проверьте, что оно загружено, выполните тестовое подключение к БД с этими же параметрами соедиеннения.
<?php
  $connection = pg_connect("host=192.168.1.102 port=5432 dbname=jira user=iquser password=iqpassword") or die ("Error: " . pg_last_error($connection));
  $result = pg_prepare($connection, "test_query", 'SELECT count(*) FROM jiraissue');
  $result = pg_execute($connection, "test_query");
  echo $result
?>

  • 0


Количество пользователей, читающих эту тему: 1

0 пользователей, 1 гостей, 0 анонимных