New project can't add SVN repository - Ubuntu TRAC 1.6

6 views
Skip to first unread message

Clint Dilks

unread,
Sep 5, 2025, 2:34:47 AM (8 days ago) Sep 5
to Trac Users
Hi

On Ubuntu 24.04 I am trying to create a new TRAC project that will use an SVN repository but not having much luck.  Any help would be appreciated.

When creating a new project, I am prompted for the name and database.  Nothing else.


Trac1.png

If I try and add a repository manually, I get The repository type 'svn' is not supported

Trac2.png

This led me to posts about svn-bindings but I thihk all need packages are installed and in python3 "from svn import core" works

Trac3.png
I also found info about adding svn to trac.ini using the setting below but components doesn't exist in my trac.ini amd adding it doesn't seem to help.  

[components]
tracopt.versioncontrol.svn.* = enabled

Thanks for any thoughts
   Clint Dilks


Jun Omae

unread,
Sep 5, 2025, 10:53:01 PM (7 days ago) Sep 5
to trac-...@googlegroups.com
On 2025/09/05 14:48, 'Clint Dilks' via Trac Users wrote:
> Hi
>
> On Ubuntu 24.04 I am trying to create a new TRAC project that will use an SVN repository but not having much luck.  Any help would be appreciated.
>
> When creating a new project, I am prompted for the name and database.  Nothing else.
>
>
> Trac1.png
>
> If I try and add a repository manually, I get The repository type 'svn' is not supported
>
> Trac2.png
>
> This led me to posts about svn-bindings but I thihk all need packages are installed and in python3 "from svn import core" works
>
> Trac3.png
> I also found info about adding svn to trac.ini using the setting below but components doesn't exist in my trac.ini amd adding it doesn't seem to help.  
>
> [components]
> tracopt.versioncontrol.svn.* = enabled
>
> Thanks for any thoughts
>    Clint Dilks
>
Please share your trac.ini and trac.log after adding `[logging] log_level = DEBUG` and retrying it.
How have you installed Trac and Subversion Python bindings?

See also https://trac.edgewall.org/wiki/TracLogging

--
Jun Omae <jun...@gmail.com> (大前 潤)

Clint Dilks

unread,
Sep 8, 2025, 11:38:36 PM (4 days ago) Sep 8
to trac-...@googlegroups.com
Hi

Thanks for the response.  I have managed to get SVN working with the following config.



# -*- coding: utf-8 -*-

[attachment]
max_size = 262144
max_zip_size = 2097152
render_unsafe_content = disabled

[browser]
color_scale = enabled
downloadable_paths = /trunk,/branches/*,/tags/*
hide_properties = svk:merge
intermediate_color =
intermediate_point =
newest_color = (255, 136, 136)
oldest_color = (136, 136, 255)
oneliner_properties = trac:summary
render_unsafe_content = disabled
wiki_properties = trac:description

[components]
tracopt.versioncontrol.svn.* = enabled

[changeset]
max_diff_bytes = 10000000
max_diff_files = 0
wiki_format_messages = enabled

[header_logo]
alt = (please configure the [header_logo] section in trac.ini)
height = -1
src = site/your_project_logo.png
width = -1

[inherit]
htdocs_dir =
plugins_dir =
templates_dir =

[logging]
log_file = trac.log
log_format =
log_level = INFO
log_type = file

[mainnav]
admin.order = 8.0
browser.order = 4.0
newticket.order = 6.0
roadmap.order = 3.0
search.order = 7.0
tickets.order = 5.0
timeline.order = 2.0
wiki.order = 1.0

[metanav]
about.order = 5.0
help.order = 4.0
login.order = 1.0
logout.order = 2.0
prefs.order = 3.0

[milestone]
default_group_by = component
default_retarget_to =
stats_provider = DefaultTicketGroupStatsProvider

[mimeviewer]
max_preview_size = 262144
mime_map = text/x-dylan:dylan,text/x-idl:ice,text/x-ada:ads:adb
mime_map_patterns = text/plain:README(?!\.rst)|INSTALL(?!\.rst)|COPYING.*
pygments_default_style = trac
pygments_modes =
tab_width = 8
treat_as_binary = application/octet-stream,application/pdf,application/postscript,application/msword,application/rtf

[notification]
admit_domains =
ambiguous_char_width = single
batch_subject_template = ${prefix} Batch modify: ${tickets_descr}
default_format.email = text/plain
email_address_resolvers = SessionEmailResolver
email_sender = SmtpEmailSender
ignore_domains =
message_id_hash = md5
mime_encoding = none
sendmail_path = sendmail
smtp_always_bcc =
smtp_always_cc =
smtp_default_domain =
smtp_enabled = disabled
smtp_from = trac@localhost
smtp_from_author = disabled
smtp_from_name =
smtp_password =
smtp_port = 25
smtp_replyto = trac@localhost
smtp_server = localhost
smtp_subject_prefix = __default__
smtp_user =
ticket_subject_template = ${prefix} #${ticket.id}: ${summary}
use_public_cc = disabled
use_short_addr = disabled
use_tls = disabled

[notification-subscriber]
always_notify_cc = CarbonCopySubscriber
always_notify_previous_updater = TicketPreviousUpdatersSubscriber
always_notify_updater = TicketUpdaterSubscriber

[project]
admin =
admin_trac_url = .
descr = My example project
footer = Visit the Trac open source project at<br /><a href="https://trac.edgewall.org/">https://trac.edgewall.org/</a>
icon = common/trac.ico
name = Expeditee.org
url =

[query]
default_anonymous_query = status!=closed&cc~=$USER
default_query = status!=closed&owner=$USER
items_per_page = 100
ticketlink_query = ?status=!closed

[report]
items_per_page = 100
items_per_page_rss = 0

[revisionlog]
default_log_limit = 100
graph_colors = #cc0,#0c0,#0cc,#00c,#c0c,#c00

[roadmap]
stats_provider = DefaultTicketGroupStatsProvider

[search]
default_disabled_filters =
min_query_length = 3

[sqlite]
extensions =

[svn]
authz_file =
authz_module_name =

[ticket]
allowed_empty_fields = milestone,version
default_cc =
default_component =
default_description =
default_keywords =
default_milestone =
default_owner = < default >
default_priority = major
default_resolution = fixed
default_severity =
default_summary =
default_type = defect
default_version =
max_comment_size = 262144
max_description_size = 262144
max_summary_size = 262144
preserve_newlines = default
restrict_owner = disabled
workflow = ConfigurableTicketWorkflow

[ticket-workflow]
accept = new,assigned,accepted,reopened -> accepted
accept.operations = set_owner_to_self
accept.permissions = TICKET_MODIFY
create = <none> -> new
create.default = 1
create_and_assign = <none> -> assigned
create_and_assign.label = assign
create_and_assign.operations = may_set_owner
create_and_assign.permissions = TICKET_MODIFY
leave = * -> *
leave.default = 1
leave.operations = leave_status
reassign = new,assigned,accepted,reopened -> assigned
reassign.operations = set_owner
reassign.permissions = TICKET_MODIFY
reopen = closed -> reopened
reopen.operations = del_resolution
reopen.permissions = TICKET_CREATE
resolve = new,assigned,accepted,reopened -> closed
resolve.operations = set_resolution
resolve.permissions = TICKET_MODIFY

[timeline]
abbreviated_messages = enabled
changeset_collapse_events = disabled
changeset_long_messages = disabled
changeset_show_files = 0
default_daysback = 30
max_daysback = 90
newticket_formatter = oneliner
ticket_show_component = disabled
ticket_show_details = enabled

[trac]
anonymous_session_lifetime = 90
auth_cookie_domain =
auth_cookie_lifetime = 0
auth_cookie_path =
auto_preview_timeout = 2.0
auto_reload = disabled
backup_dir = db
check_auth_ip = disabled
database = sqlite:db/trac.db
debug_sql = disabled
default_charset = utf-8
default_date_format =
default_dateinfo_format = relative
default_handler = WikiModule
default_language =
default_timezone =
htdocs_location =
ignore_auth_case = disabled
jquery_location =
jquery_ui_location =
jquery_ui_theme_location =
never_obfuscate_mailto = disabled
permission_policies = DefaultWikiPolicy,DefaultTicketPolicy,DefaultPermissionPolicy,LegacyAttachmentPolicy
permission_store = DefaultPermissionStore
request_filters =
resizable_textareas = enabled
secure_cookies = disabled
show_email_addresses = disabled
show_full_names = enabled
timeout = 20
use_base_url_for_redirect = enabled
use_chunked_encoding = enabled
use_xsendfile = disabled
wiki_toolbars = enabled
xsendfile_header = X-Sendfile

[versioncontrol]
allowed_repository_dir_prefixes =
default_repository_type = svn

[wiki]
default_edit_area_height = 20
ignore_missing_pages = disabled
max_size = 262144
render_unsafe_content = disabled
safe_origins = data:
safe_schemes = cvs,file,ftp,git,irc,http,https,news,sftp,smb,ssh,svn,svn+ssh
split_page_names = disabled



From: trac-...@googlegroups.com <trac-...@googlegroups.com> on behalf of Jun Omae <jun...@gmail.com>
Sent: Saturday, 6 September 2025 2:52 pm
To: trac-...@googlegroups.com <trac-...@googlegroups.com>
Subject: Re: [Trac] New project can't add SVN repository - Ubuntu TRAC 1.6
 
[You don't often get email from jun...@gmail.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/trac-users/18c28d5a-4f4c-4ef5-9057-5be7ff2eb33d%40gmail.com.
Reply all
Reply to author
Forward
0 new messages