Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 323279 - www-apps/viewvc-1.1.6: svndbadmin can't find viewvc.conf
Summary: www-apps/viewvc-1.1.6: svndbadmin can't find viewvc.conf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on: 390317
Blocks:
  Show dependency tree
 
Reported: 2010-06-09 03:18 UTC by 颜烈彬
Modified: 2011-11-29 13:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 颜烈彬 2010-06-09 03:18:27 UTC
When I do /usr/share/webapps/viewvc/1.1.6/hostroot/bin/svndbadmin rebuild /var/svn, it gives:
Traceback (most recent call last):
  File "./bin/svndbadmin", line 364, in <module>
    main(command, repository, revs, verbose, force)
  File "./bin/svndbadmin", line 243, in main
    db = cvsdb.ConnectDatabase(cfg)
  File "/usr/lib64/python2.6/site-packages/viewvc/cvsdb.py", line 865, in ConnectDatabase
    db.Connect()
  File "/usr/lib64/python2.6/site-packages/viewvc/cvsdb.py", line 57, in Connect
    self._host, self._port, self._user, self._passwd, self._database)
  File "/usr/lib64/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/lib64/python2.6/site-packages/MySQLdb/__init__.py", line 81, in Connect
    return Connection(*args, **kwargs)
  File "/usr/lib64/python2.6/site-packages/MySQLdb/connections.py", line 188, in __init__
    super(Connection, self).__init__(*args, **kwargs2)
_mysql_exceptions.OperationalError: (1045, "Access denied for user 'root'@'localhost' (using password: NO)")

===========
But if I replace "../conf/viewvc" with "/usr/share/webapps/viewvc/1.1.6/hostroot/conf/viewvc.conf" in /usr/share/webapps/viewvc/1.1.6/hostroot/bin/svndbadmin, all likely goes well.

Reproducible: Always
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-06-09 12:55:14 UTC
Could you report this problem to upstream?

http://viewvc.tigris.org/servlets/ProjectIssues
http://viewvc.tigris.org/ds/viewForums.do
Comment 2 Alon Bar-Lev 2011-11-12 22:38:43 UTC
At viewvc-1.1.12 you can override the configuration file location using VIEWVC_CONF_PATHNAME environment variable.

Refer to INSTALL for description.
Comment 3 Alon Bar-Lev 2011-11-29 07:20:58 UTC
viewvc-1.1.12 is in tree, can be closed.