Antora Fails to Clone Git Repos Behind HTTP(S) Proxy
I am trying to use Antora in a somehow restrictive environment. All HTTP(S) traffic has to pass a proxy server which is used for filtering malicious sites. However, the cloning of the Git repos fails. I used the example playbook for testing.
My setup: Ubuntu Server 18.04 LTS, Antora v2.3.1, Node v12.16.3.
When generating the sites I get the following error:
$ antora --stacktrace antora-playbook.yml
[clone] https://gitlab.com/antora/demo/demo-component-a.git [----------------------------------------------------------------------------------------------------]
[clone] https://gitlab.com/antora/demo/demo-component-b.git [----------------------------------------------------------------------------------------------------]
Error: Unknown Error: See cause (url: https://gitlab.com/antora/demo/demo-component-b.git)
at transformGitCloneError (/home/user/docs-site/node_modules/@antora/content-aggregator/lib/aggregate-content.js:787:22)
at /home/user/docs-site/node_modules/@antora/content-aggregator/lib/aggregate-content.js:184:17
at async loadRepository (/home/user/docs-site/node_modules/@antora/content-aggregator/lib/aggregate-content.js:173:7)
at async Promise.all (index 1)
at async Promise.all (index 0)
at async generateSite (/home/user/docs-site/node_modules/@antora/site-generator-default/lib/generate-site.js:18:39)
at async run (/home/user/docs-site/node_modules/@antora/cli/lib/cli.js:17:21)
Caused by: Error: Client network socket disconnected before secure TLS connection was established
at connResetException (internal/errors.js:608:14)
at TLSSocket.onConnectEnd (_tls_wrap.js:1514:19)
at Object.onceWrapper (events.js:416:28)
at TLSSocket.emit (events.js:322:22)
at endReadableNT (_stream_readable.js:1187:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
On another server (outsite of the environment with HTTP(S) proxies) everything works fine.
I tried the manual installation as well as the docker container, the result is the same error for both. To configure the HTTP(S) proxy I am using the normal https_proxy
and http_proxy
.
When cloning the repos and downloading manually (wihtout Antora) and change my playbook to the local repos and files, it works as intended. This may be a workaround -- but it is very tedious.
Has someone an idea how I can handle the proxies with Antora? I also appreciate any hints for debugging as the above error message is not very helpful for me.
I see some parallels with #230 (closed) -- however I get another error...