Authentication failed when trying to do key based authentication on startup (Sventon 2.5.1)

80 views
Skip to first unread message

atte....@gmail.com

unread,
Nov 4, 2013, 6:00:19 AM11/4/13
to sventon...@googlegroups.com
Hi,

I installed Tomcat 7.0.47 and deployed Sventon 2.5.1 according to Installation Instructions.
Our Subversion repo is configured to only allow Key Based Authentication. The key is forced to contain a password or it will not be accepted.

I have tried with Anonymous access and by specifying the following parameters to E:\Apache\apache-tomcat-7.0.47\temp\sventon_config\svn\repositories\soaker\config file.
I also tried passing them to Tomcat as parameters, but still authentication does not succeed.

svnkit.ssh2.key = C:\\Kehitys_softat\\putty\\keys\\atte_private.pem
svnkit.ssh2.username = heinatt
svnkit.ssh2.passphrase = secret
#svnkit.ssh2.password = secret

This is the URL I'm trying to access: svn+ssh://cafeolix/svn/soa/

Here is the sventon.log:

2013-11-04 12:49:06,028 INFO [org.sventon.appl.ConfigDirectory] - <Config root directory for current servlet context set to: E:\Apache\apache-tomcat-7.0.47\temp\sventon_config\svn>
2013-11-04 12:49:06,454 INFO [org.sventon.repository.DefaultRepositoryChangeMonitor] - <Starting repository monitor>
2013-11-04 12:49:06,470 INFO [org.sventon.service.SVNProvider] - <Found SVNProvider: class org.sventon.service.svnkit.SVNKitSVNProvider>
2013-11-04 12:49:06,503 INFO [org.sventon.service.RepositoryServiceCacheWrapper] - <Creating service wrapper for: class org.sventon.service.svnkit.SVNKitRepositoryService>
2013-11-04 12:49:06,559 INFO [org.sventon.service.svnkit.SVNKitConnectionFactory] - <Initializing SVNKit version 1.6.12>
2013-11-04 12:49:06,584 INFO [org.sventon.cache.direntrycache.DirEntryCacheUpdater] - <Starting>
2013-11-04 12:49:06,592 INFO [org.sventon.cache.logmessagecache.LogMessageCacheUpdater] - <Starting>
2013-11-04 12:49:06,670 INFO [org.sventon.appl.Application] - <Initializing sventon version 2.5.1>
2013-11-04 12:49:06,671 INFO [org.sventon.appl.Application] - <No repository has been configured yet. Access sventon web application to start the setup>
2013-11-04 12:49:07,368 INFO [org.hibernate.validator.util.Version] - <Hibernate Validator 4.1.0.Final>
2013-11-04 12:49:07,785 INFO [carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapped URL path [/repos/(*:name)/show/(**/*:path)*] onto handler 'showFileController'>
2013-11-04 12:49:07,790 INFO [carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapped URL path [/repos/deleteconfig] onto handler 'deleteConfigurationController'>
2013-11-04 12:49:07,799 INFO [carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapped URL path [/repos/(*:name)/searchlogs/(**/*:path)*] onto handler 'searchLogsController'>
2013-11-04 12:49:07,809 INFO [carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapped URL path [/repos/(*:name)/get/(**/*:path)*] onto handler 'getFileController'>
2013-11-04 12:49:07,818 INFO [carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapped URL path [/repos/(*:name)/searchentries/(**/*:path)*] onto handler 'searchEntriesController'>
2013-11-04 12:49:07,829 INFO [carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapped URL path [/repos/(*:name)/info] onto handler 'revisionInfoController'>
2013-11-04 12:49:07,839 INFO [carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapped URL path [/repos/(*:name)/flatten/(**/*:path)*] onto handler 'flattenController'>
2013-11-04 12:49:07,851 INFO [carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapped URL path [/repos/configlogin] onto handler 'configurationLoginController'>
2013-11-04 12:49:07,857 INFO [carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapped URL path [/ajax/static] onto handler 'getStaticContentController'>
2013-11-04 12:49:07,868 INFO [carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapped URL path [/repos/(*:name)/blame/(**/*:path)*] onto handler 'blameController'>
2013-11-04 12:49:07,883 INFO [carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapped URL path [/ajax/(*:name)/listfiles/(**/*:path)*] onto handler 'listFilesController'>
2013-11-04 12:49:07,893 INFO [carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapped URL path [/ajax/(*:name)/exportprogress] onto handler 'exportProgressController'>
2013-11-04 12:49:07,903 INFO [carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapped URL path [/ajax/(*:name)/latestrevisions] onto handler 'latestRevisionsController'>
2013-11-04 12:49:07,911 INFO [carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapped URL path [/ajax/(*:name)/getmessage] onto handler 'logMessageController'>
2013-11-04 12:49:07,923 INFO [carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapped URL path [/repos/(*:name)/list/(**/*:path)*] onto handler 'repoBrowserController'>
2013-11-04 12:49:07,932 INFO [carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapped URL path [/ajax/(*:name)/filehistory/(**/*:path)*] onto handler 'fileHistoryController'>
2013-11-04 12:49:07,942 INFO [carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapped URL path [/ajax/(*:name)/entrytray/(**/*:path)*] onto handler 'entryTrayController'>
2013-11-04 12:49:07,952 INFO [carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapped URL path [/repos/(*:name)/showlocks/(**/*:path)*] onto handler 'showLocksController'>
2013-11-04 12:49:07,964 INFO [carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapped URL path [/repos/(*:name)/goto/(**/*:path)*] onto handler 'goToController'>
2013-11-04 12:49:07,969 INFO [carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapped URL path [/repos/listconfigs] onto handler 'listConfigurationsController'>
2013-11-04 12:49:07,974 INFO [carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapped URL path [/repos/submitconfig] onto handler 'submitConfigurationsController'>
2013-11-04 12:49:07,984 INFO [carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapped URL path [/repos/(*:name)/log/(**/*:path)*] onto handler 'showLogsController'>
2013-11-04 12:49:07,995 INFO [carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapped URL path [/repos/(*:name)/export/(**/*:path)*] onto handler 'exportController'>
2013-11-04 12:49:08,006 INFO [carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapped URL path [/repos/(*:name)/diff/(**/*:path)*] onto handler 'diffController'>
2013-11-04 12:49:08,017 INFO [carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapped URL path [/repos/(*:name)/showthumbnails/(**/*:path)*] onto handler 'showThumbnailsController'>
2013-11-04 12:49:08,027 INFO [carbonfive.spring.web.pathparameter.ParameterizedUrlHandlerMapping] - <Mapped URL path [/xml/(*:name)/rss/(**/*:path)*] onto handler 'rssController'>
2013-11-04 12:49:23,372 INFO [org.sventon.web.filter.ConfigAuthorizationFilter] - <Checking authorization>
2013-11-04 12:49:23,660 INFO [org.sventon.web.command.ConfigCommandValidator] - <org.sventon.AuthenticationException: svn: Authentication required for 'svn+ssh://cafeolix'>
2013-11-04 12:49:31,688 INFO [org.sventon.web.filter.ConfigAuthorizationFilter] - <Checking authorization>
2013-11-04 12:49:32,167 INFO [org.sventon.web.command.ConfigCommandValidator] - <org.sventon.AuthenticationException: svn: Authentication required for 'svn+ssh://cafeolix'>
2013-11-04 12:49:49,454 INFO [org.sventon.web.filter.ConfigAuthorizationFilter] - <Checking authorization>
2013-11-04 12:49:52,466 INFO [org.sventon.web.command.ConfigCommandValidator] - <org.sventon.AuthenticationException: svn: Authentication required for 'svn+ssh://cafeolix'>

I went forward and tested Atlassian Fisheye, and for some reason it is able to connect to our SVN repository without any specific configuration. I would still prefer using Sventon.
I use TortoiseSVN as my primary SVN tool, and it is able to connect to SVN server with the key provided by me and with url: svn+ssh://heinatt@cafeolix/svn/soa/

BR,
Atte Heino
Reply all
Reply to author
Forward
0 new messages