I'm pretty sure this error is due to the remote repo having an invalid ssl certificate. We should allow invalid certs.
Traceback (most recent call last): File "/var/local/allura/Allura/allura/tasks/repo_tasks.py", line 31, in clone cloned_from_url) File "/var/local/allura/Allura/allura/model/repository.py", line 227, in init_as_clone self._impl.clone_from(source_url) File "/var/local/allura/ForgeSVN/forgesvn/model/svn.py", line 176, in clone_from subprocess.check_call(['svnsync', 'init', self._url, source_url]) File "/usr/lib64/python2.7/subprocess.py", line 511, in check_call raise CalledProcessError(retcode, cmd) CalledProcessError: Command '['svnsync', 'init', u'file:///svn/p/sagittarius/code', u'https://repo.smilfinken.net/projects/sagittarius']' returned non-zero exit status 1
Diff:
created #73: [#4264] svn import with invalid cert (2cp)
Related
Tickets:
#4264closed #73 and pushed changes to 42cc_4264
It doesn't seem like
--trust-server-cert
is enough. I usedhttps://nucnet-tools.svn.sf.net/svnroot/nucnet-tools/
as a test (using sf.net instead of sourceforge.net like it should be). I ran it manually to see the error:I don't see another parameter for svnsync that would be helpful, can you do further research about other options or workarounds?
Hm.. OK, will look into it. I've created #88: [#4264] svn import with invalid cert - further research (2cp)
Related
Tickets:
#4264Originally by: tramadolmen
I have researched about svnsync. But it seems that we can allow default sertificates by add to file ~/.subversion/servers
[global]
ssl-trust-default-ca = true
or accept unknown SSL server certificates by --trust-server-cert option.
For
both variants didn't work. So i can pass in input p symbol to accept permanently certificate. For this we need to use popen function
closed #88 and pushed changes into '42cc_4264a'