View Issue Details

IDProjectCategoryView StatusLast Update
0000297pgpoolAdminBugpublic2017-08-29 09:48
Reporterwschwurack Assigned Topengbo  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionopen 
PlatformLunixOSUbuntuOS Version14.04
Product Version3.6.0 
Summary0000297: Notice: Undefined variable: msgPcpPassFile in $PATH/checkParameter.php on line 427
DescriptionTrying to install pgpoolAdmin 3.6.0 two issues
Doesn't allow to select version 3.6
Welcome to pgpool-II Administration Tool - pgpool-II version 3.5
Error on line .pcppass [V3.5]
Notice: Undefined variable: msgPcpPassFile in /var/www/html/admin-tool/install/checkParameter.php on line 427
Steps To Reproduceon Docs - Installing pgpool Adminsitration tool Step 13. Welcome to pgpool-II Adminstration tool
TagsNo tags attached.

Activities

wschwurack

2017-03-21 22:54

reporter   ~0001384

Getting this error on pgpool status page after installing pgpoolAdmin-3.6.0

Notice Undefined offset 2 in /var/www/html/pgpoolAdmin-3.6.0/command.php on line 156
Error Code e1013
Error Message php_watchdoe_info command error occurred

Found other files with limit to version 3.5 I downloaded pgpoolAdmin-3.6.0 which I would think all of this would have been changed.
command.php: if (3.5 <= _PGPOOL2_VERSION) {
command.php: if (3.5 <= _PGPOOL2_VERSION) {
command.php: (3.5 <= _PGPOOL2_VERSION) ? array('n' => $i) : array($i)
command.php: if (3.5 <= _PGPOOL2_VERSION) {
command.php: } elseif (3.5 <= _PGPOOL2_VERSION) {
common.php: // params added in 3.5
common.php: $add_version = 3.5;
common.php: // params deleted in 3.5
common.php: $del_version = 3.5;
common.php: return array('3.5', '3.4', '3.3', '3.2', '3.1', '3.0',
innerWatchdog.php:if (3.5 <= _PGPOOL2_VERSION) {

wschwurack

2017-03-21 23:43

reporter   ~0001385

I tried to install pgpoolAdmin-3.5.2 and pgpoolAdmin-3.5.3 on host the is running pgpool-3.5.5 which get the same errors with install and after install on pgpool Status page

Backend info (PostgreSQL)
Watchdog
Notice: Undefined offset: 2 in /var/www/html/pgpoolAdmin-3.5.3/command.php on line 156
Error code: e1013
Error Message: php_watchdoe_info command error occurred

Host: Ubuntu 14.04
PHP: 5.5.9-1ubuntu4.21

pengbo

2017-04-07 15:33

developer   ~0001408

The bug is fixed by the following commit.
Could you try that?

https://git.postgresql.org/gitweb/?p=pgpooladmin.git;a=commitdiff;h=53f1891bf3caf9ade32bf104b51049d32b2c4e06

wschwurack

2017-04-07 23:46

reporter   ~0001410

I added ‘3.6’ to checkParamter.php on line 466

Getting this error on the first page – Welcome to pgpool-II Administration Tool

Deprecated: Function ereg() is deprecated in /var/www/html/pgpoolAdmin-3.6.0/install/index.php on line 32

My Fix
while ($file_name = readdir( $res_dir )) {
        if (preg_match('/^[^\.]/', $file_name)) {
    /* if (ereg('^[^\.]', $file_name)) { */

Still getting this error on the check page line - .pcppass [V3.5 -]
/var/www/.pcppass
Notice: Undefined variable: msgPcpPassFile
 in /var/www/html/pgpoolAdmin-3.6.0/install/checkParameter.php on line 427

Here’s my .pcppass

wd-pgtest:9898:apache:c1d10d0db9c99fa6d3361639269141fd

After the install I login get nothing on pgpool Status
 
Backend info (PostgreSQL)
Summary Process Info. Watchdog Node Info.

wschwurack

2017-04-22 04:58

reporter   ~0001456

I'm now getting all the info in pgpoolAdmin pages. Fixed by having the correct setting in .pcppass

What works
*:*:username:plain text password

What fails
hostname:wrong port:username:pg_md5 password

I am still getting this error on install
/var/www/.pcppass
Notice: Undefined variable: msgPcpPassFile
 in /var/www/html/pgpoolAdmin-3.6.0/install/checkParameter.php on line 427

pengbo

2017-05-07 21:50

developer  

diff (581 bytes)   
diff (581 bytes)   

pengbo

2017-05-07 21:52

developer   ~0001493

Sorry for late reply.
I fixed it and uploaded the patch file.
Could you try it?

wschwurack

2017-05-09 03:19

reporter   ~0001496

patch file 'diff' only shows "X" When I down the file only get 1 byte

pengbo

2017-05-09 14:53

developer   ~0001498

Sorry. I think now you can download the patch file.

wschwurack

2017-05-09 22:42

reporter   ~0001501

All looks good after applying patch - thanks

Issue History

Date Modified Username Field Change
2017-03-21 05:48 wschwurack New Issue
2017-03-21 08:06 t-ishii Assigned To => pengbo
2017-03-21 08:06 t-ishii Status new => assigned
2017-03-21 08:31 t-ishii Product Version => 3.6.0
2017-03-21 22:54 wschwurack Note Added: 0001384
2017-03-21 23:43 wschwurack Note Added: 0001385
2017-04-07 15:33 pengbo Note Added: 0001408
2017-04-07 23:46 wschwurack Note Added: 0001410
2017-04-22 04:58 wschwurack Note Added: 0001456
2017-05-07 21:50 pengbo File Added: diff
2017-05-07 21:52 pengbo Note Added: 0001493
2017-05-09 03:19 wschwurack Note Added: 0001496
2017-05-09 14:53 pengbo Note Added: 0001498
2017-05-09 22:42 wschwurack Note Added: 0001501
2017-08-29 09:48 pengbo Status assigned => closed