[viewvc-users] vhosts or root-path config overrides for [cvsdb] config section

Asd Asdasd <[email protected]>
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Message-ID <[email protected]>
Hi,

I'm having problems using the per vhost or per root-path configuration overrides for the cvsdb config section. i.e.

Using 

[vhost-VHOSTNAME/cvsdb]
enabled = 1
host = localhost
port = 3306
database_name = myrepo_stats
user = dbusr1
passwd = changeme
readonly_user = myrepo_stats_ro
readonly_passwd = changemetoo
or 

[root-ROOTNAME/cvsdb]
enabled = 1
host = localhost
port = 3306
database_name = myrepo_stats
user = dbusr1
passwd = changeme
readonly_user = myrepo_stats_ro
readonly_passwd = changemetoo

Gives ... 

 # ./svndbadmin rebuild /home/myrepo/svn
Traceback (most recent call last):
  File "./svndbadmin", line 362, in <module>
    main(command, repository, revs, verbose, force)
  File "./svndbadmin", line 243, in main
    db = cvsdb.ConnectDatabase(cfg)
  File "/usr/lib/python2.6/site-packages/viewvc/cvsdb.py", line 865, in ConnectDatabase
    db.Connect()
  File "/usr/lib/python2.6/site-packages/viewvc/cvsdb.py", line 57, in Connect
    self._host, self._port, self._user, self._passwd, self._database)
  File "/usr/lib/python2.6/site-packages/viewvc/dbi.py", line 63, in connect
    return MySQLdb.connect(host=host, port=port, user=user, passwd=passwd, db=db)
  File "/usr/lib/python2.6/site-packages/MySQLdb/__init__.py", line 81, in Connect
    return Connection(*args, **kwargs)
  File "/usr/lib/python2.6/site-packages/MySQLdb/connections.py", line 188, in __init__
    super(Connection, self).__init__(*args, **kwargs2)
_mysql_exceptions.OperationalError: (1045, "c' (using password: NO)")

However if the above cvsdb config is:

[cvsdb]
enabled = 1
host = localhost
port = 3306
database_name = myrepo_stats
user = dbusr1
passwd = changeme
readonly_user = myrepo_stats_ro
readonly_passwd = changemetoo

all works well.

 

It looks like for some reason the per vhost and per root-path configs are not catching and the default config values are used for MySQL credentials... which naturally should not work.

 

Can you please indicate if there is anything wrong with the above config scenario? Are per vhost or per root-path config overrides even supported for the cvsdb config section. Is there a bug?

 

Thanks, Most.
 		 	   		  
_________________________________________________________________
Find the right PC with Windows 7 and Windows Live. 
http://www.microsoft.com/Windows/pc-scout/laptop-set-criteria.aspx?cbid=wl&filt=200,2400,10,19,1,3,1,7,50,650,2,12,0,1000&cat=1,2,3,4,5,6&brands=5,6,7,8,9,10,11,12,13,14,15,16&addf=4,5,9&ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen2:112009

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2414232

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.