Bug#568355: cacti: preconfigure and configure prints [: 367: missing ]

2010-02-06 Thread Teodor MICU
Hi Sean,

On Thu, Feb 4, 2010 at 10:34 AM, sean finney sean...@debian.org wrote:
 can you reproduce this if you dpkg-reconfigure cacti? if so, try running
 export dbc_debug=1 and share the output (watch out for passwords in the
 output though).  i'm curious to find if this is a problem with cacti
 or dbconfig-common, both of which have been recently updated (both by
 me, d'oh!).

Here it is:
| piti:~# dpkg-reconfigure cacti
| (prerm) dbc_go() cacti upgrade 0.8.7e-2.
| dbc_config() cacti upgrade 0.8.7e-2.
| dbc_set_dbtype_defaults() .
| dbc_read_package_config() .
| dbc_set_dbtype_defaults() mysql.
| (config) dbc_go() cacti reconfigure 0.8.7e-2.
| dbc_config() cacti reconfigure 0.8.7e-2.
| dbc_set_dbtype_defaults() .
| dbc_register_debconf() .
| dbc_read_package_config() .
| dbc_preseed_package_debconf() .
| [: 77: missing ]
| dbc_get_admin_pass() .
| dbc_get_app_pass() .
| (postinst) dbc_go() cacti configure 0.8.7e-2.
| dbc_config() cacti configure 0.8.7e-2.
| dbc_set_dbtype_defaults() .
| dbc_read_package_debconf() .
| dbc_set_dbtype_defaults() mysql.
| settings determined from dbc_read_package_debconf:.
|   dbc_install=true.
|   dbc_upgrade=true.
|   dbc_remove=.
|   dbc_dbtype=mysql.
|   dbc_dbuser=cacti.
|   dbc_dbpass=lS2kmvpknz1i.
|   dbc_dbadmin=root.
|   dbc_dbadmpass=.
|   dbc_dbserver=.
|   dbc_dbport=.
|   dbc_dbname=cacti.
|   dbc_authmethod_admin=.
|   dbc_authmethod_user=.
|   dbc_ssl=.
| dbc_write_package_config() .
| dbconfig-common: writing config to /etc/dbconfig-common/cacti.conf
| Replacing config file /etc/cacti/debian.php with new version
| dbc_read_package_config() .

I think it has to do with debconf since the same cacti package was
upgraded fine on a lenny host. This cacti install is only for testing.

Thanks



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#568355: cacti: preconfigure and configure prints [: 367: missing ]

2010-02-04 Thread sean finney
hi teodor,

can you reproduce this if you dpkg-reconfigure cacti? if so, try running
export dbc_debug=1 and share the output (watch out for passwords in the
output though).  i'm curious to find if this is a problem with cacti
or dbconfig-common, both of which have been recently updated (both by
me, d'oh!).


sean

On Thu, Feb 04, 2010 at 09:15:40AM +0200, Teodor wrote:
 Package: cacti
 Version: 0.8.7e-2
 Severity: minor
 
 Hi,
 
 Todays upgrade to the latest version prints the above string on preconfigure 
 and
 the final configuration of the package:
 | The following packages will be upgraded:
 |   cacti [..]
 | [OTHER progress lines..]
 | Preconfiguring packages ...
 | [: 367: missing ]
 | [OTHER progress lines..]
 | Setting up cacti (0.8.7e-2) ...
 | [: 367: missing ]
 | dbconfig-common: writing config to /etc/dbconfig-common/cacti.conf
 | Replacing config file /etc/cacti/debian.php with new version
 | dbconfig-common: flushing administrative password
 
 This issue seems to be caused by the pre-configure and configure shell scripts
 executed at package install/upgrade.
 
 Thanks
 
 
 -- System Information:
 Debian Release: squeeze/sid
   APT prefers testing
   APT policy: (990, 'testing'), (500, 'unstable')
 Architecture: amd64 (x86_64)
 
 Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores)
 Locale: LANG=ro_RO.UTF-8, LC_CTYPE=ro_RO.UTF-8 (charmap=UTF-8)
 Shell: /bin/sh linked to /bin/dash
 
 Versions of packages cacti depends on:
 ii  apache22.2.14-5  Apache HTTP Server metapackage
 ii  apache2-mpm-prefork [h 2.2.14-5  Apache HTTP Server - traditional 
 n
 ii  dbconfig-common1.8.43common framework for packaging 
 dat
 ii  debconf [debconf-2.0]  1.5.28Debian configuration management 
 sy
 ii  libapache2-mod-php55.2.12.dfsg.1-2   server-side, HTML-embedded 
 scripti
 ii  libphp-adodb   5.09a-1   The ADOdb database abstraction 
 lay
 ii  mysql-client-5.1 [virt 5.1.41-3  MySQL database client binaries
 ii  php5-cli   5.2.12.dfsg.1-2   command-line interpreter for the 
 p
 ii  php5-mysql 5.2.12.dfsg.1-2   MySQL module for php5
 ii  php5-snmp  5.2.12.dfsg.1-2   SNMP module for php5
 ii  rrdtool1.3.8-1   Time-series data storage and 
 displ
 ii  snmp   5.4.2.1~dfsg-5+b1 SNMP (Simple Network Management 
 Pr
 ii  ucf3.0025Update Configuration File: 
 preserv
 
 Versions of packages cacti recommends:
 ii  iputils-ping3:20071127-2 Tools to test the reachability 
 of 
 ii  logrotate   3.7.8-4  Log rotation utility
 ii  mysql-server5.1.41-3 MySQL database server 
 (metapackage
 ii  mysql-server-5.1 [mysql-ser 5.1.41-3 MySQL database server binaries
 
 Versions of packages cacti suggests:
 pn  php5-ldap none (no description available)
 
 -- debconf information:
   cacti/db/app-user: cacti
   cacti/mysql/admin-user: root
   cacti/upgrade-backup: true
   cacti/install-error: abort
 * cacti/webserver: None
   cacti/internal/reconfiguring: false
   cacti/mysql/method: unix socket
   cacti/remote/host:
   cacti/upgrade-error: abort
   cacti/dbconfig-upgrade: true
   cacti/internal/skip-preseed: false
   cacti/remote/newhost:
   cacti/purge: false
   cacti/passwords-do-not-match:
   cacti/dbconfig-remove:
 * cacti/dbconfig-install: true
   cacti/missing-db-package-error: abort
   cacti/database-type: mysql
   cacti/remove-error: abort
   cacti/db/dbname: cacti
   cacti/remote/port:
   cacti/dbconfig-reinstall: false
 
 

-- 


signature.asc
Description: Digital signature


Bug#568355: cacti: preconfigure and configure prints [: 367: missing ]

2010-02-03 Thread Teodor
Package: cacti
Version: 0.8.7e-2
Severity: minor

Hi,

Todays upgrade to the latest version prints the above string on preconfigure and
the final configuration of the package:
| The following packages will be upgraded:
|   cacti [..]
| [OTHER progress lines..]
| Preconfiguring packages ...
| [: 367: missing ]
| [OTHER progress lines..]
| Setting up cacti (0.8.7e-2) ...
| [: 367: missing ]
| dbconfig-common: writing config to /etc/dbconfig-common/cacti.conf
| Replacing config file /etc/cacti/debian.php with new version
| dbconfig-common: flushing administrative password

This issue seems to be caused by the pre-configure and configure shell scripts
executed at package install/upgrade.

Thanks


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=ro_RO.UTF-8, LC_CTYPE=ro_RO.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cacti depends on:
ii  apache22.2.14-5  Apache HTTP Server metapackage
ii  apache2-mpm-prefork [h 2.2.14-5  Apache HTTP Server - traditional n
ii  dbconfig-common1.8.43common framework for packaging dat
ii  debconf [debconf-2.0]  1.5.28Debian configuration management sy
ii  libapache2-mod-php55.2.12.dfsg.1-2   server-side, HTML-embedded scripti
ii  libphp-adodb   5.09a-1   The ADOdb database abstraction lay
ii  mysql-client-5.1 [virt 5.1.41-3  MySQL database client binaries
ii  php5-cli   5.2.12.dfsg.1-2   command-line interpreter for the p
ii  php5-mysql 5.2.12.dfsg.1-2   MySQL module for php5
ii  php5-snmp  5.2.12.dfsg.1-2   SNMP module for php5
ii  rrdtool1.3.8-1   Time-series data storage and displ
ii  snmp   5.4.2.1~dfsg-5+b1 SNMP (Simple Network Management Pr
ii  ucf3.0025Update Configuration File: preserv

Versions of packages cacti recommends:
ii  iputils-ping3:20071127-2 Tools to test the reachability of 
ii  logrotate   3.7.8-4  Log rotation utility
ii  mysql-server5.1.41-3 MySQL database server (metapackage
ii  mysql-server-5.1 [mysql-ser 5.1.41-3 MySQL database server binaries

Versions of packages cacti suggests:
pn  php5-ldap none (no description available)

-- debconf information:
  cacti/db/app-user: cacti
  cacti/mysql/admin-user: root
  cacti/upgrade-backup: true
  cacti/install-error: abort
* cacti/webserver: None
  cacti/internal/reconfiguring: false
  cacti/mysql/method: unix socket
  cacti/remote/host:
  cacti/upgrade-error: abort
  cacti/dbconfig-upgrade: true
  cacti/internal/skip-preseed: false
  cacti/remote/newhost:
  cacti/purge: false
  cacti/passwords-do-not-match:
  cacti/dbconfig-remove:
* cacti/dbconfig-install: true
  cacti/missing-db-package-error: abort
  cacti/database-type: mysql
  cacti/remove-error: abort
  cacti/db/dbname: cacti
  cacti/remote/port:
  cacti/dbconfig-reinstall: false



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org