Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hitch for aarch64? #260

Closed
alexandre1985 opened this issue Apr 12, 2018 · 23 comments

Comments

@alexandre1985
Copy link

commented Apr 12, 2018

I am on archlinux with a aarch64 architecture.
I have tried to install hitch through a archlinux AUR package but it doesn't compile.
Does hitch support aarch64 architecture?

@Dridi

This comment has been minimized.

Copy link
Member

commented Apr 12, 2018

Hitch consistently builds fine on all architectures supported by Fedora as of today:

https://koji.fedoraproject.org/koji/buildinfo?buildID=1029969

@gquintard

This comment has been minimized.

Copy link

commented Apr 12, 2018

@gquintard

This comment has been minimized.

Copy link

commented Apr 12, 2018

packaging issue, maintainer has been warned.

https://aur.archlinux.org/packages/hitch-git

@gquintard gquintard closed this Apr 12, 2018
@alexandre1985

This comment has been minimized.

Copy link
Author

commented Apr 12, 2018

Thank you. I modified the package and everything seems to be working ok but it aborted on check().
Here is what I saw:

PASS: tests/test01-start-and-stop.sh
FAIL: tests/test02-simple-request.sh
FAIL: tests/test03-multiple-listen.sh
FAIL: tests/test04-listen-with-own-certs.sh
FAIL: tests/test05-multiple-listen-SNI.sh
FAIL: tests/test06-ticket-resume.sh
FAIL: tests/test07-nomatch-abort.sh
PASS: tests/test08-test-configs.sh
FAIL: tests/test09-wildcard-cert.sh
FAIL: tests/test10-dflt-certs.sh
FAIL: tests/test11-cfg.sh
PASS: tests/test12-cfg.sh
FAIL: tests/test13-r82.sh
PASS: tests/test14-ocsp-vfy.sh
FAIL: tests/test15-proxy-v2-npn.sh
FAIL: tests/test16-proxy-v2-alpn.sh
FAIL: tests/test17-ecc-certs.sh
PASS: tests/test18-oldcfg.sh
PASS: tests/test19-protos-badly-specified.sh
PASS: tests/test20-empty-tokens.sh
FAIL: tests/test21-tls-protos-reload-bad-spec.sh
FAIL: tests/test22-tls-protos-backend-block.sh
PASS: tests/test23-tls-protos-tls1_2.sh
PASS: tests/test24-tls-protos-tls1_1.sh
SKIP: tests/test25-dynamic-backend-address.sh
FAIL: tests/test27-reload.sh
FAIL: tests/test28-separate_keyfiles.sh
============================================================================
Testsuite summary for hitch 1.4.7
============================================================================
# TOTAL: 27
# PASS:  9
# SKIP:  1
# XFAIL: 0
# FAIL:  17
# XPASS: 0
# ERROR: 0
============================================================================
See src/test-suite.log
Please report to opensource@varnish-software.com
============================================================================
make[4]: *** [Makefile:964: test-suite.log] Error 1
make[4]: Leaving directory '/tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src'
make[3]: *** [Makefile:1072: check-TESTS] Error 2
make[3]: Leaving directory '/tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src'
make[2]: *** [Makefile:1135: check-am] Error 2
make[2]: Leaving directory '/tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src'
make[1]: *** [Makefile:1137: check] Error 2
make[1]: Leaving directory '/tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src'
make[1]: Entering directory '/tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch'
make[1]: Leaving directory '/tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch'
make: *** [Makefile:526: check-recursive] Error 1
make: Target 'check' not remade because of errors.
==> ERROR: A failure occurred in check().
    Aborting...
==> ERROR: Makepkg was unable to build hitch-git.
==> Restart building hitch-git ? [y/N]
==> ----------------------------------

My test-suite.log is:

=====================================
   hitch 1.4.7: src/test-suite.log
=====================================

# TOTAL: 27
# PASS:  9
# SKIP:  1
# XFAIL: 0
# FAIL:  17
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: tests/test02-simple-request
=================================

Running: hitch --pidfile=/tmp/tmp.Atg4gQjbeP/hitch.pid --log-filename=hitch.log --daemon --backend=[hitch-tls.org]:80 --frontend=[localhost]:14135 /tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src/tests//certs/site1.example.com
{ocsp} Warning: Unable to stat directory '/var/lib/hitch/': No such file or directory'. OCSP stapling will be disabled.
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180412T204654.222540 [13119] {core} hitch 1.4.7 starting
> 20180412T204654.338828 [13119] {bind-socket}: Cannot assign requested address: [localhost]:14135
FAIL tests/test02-simple-request.sh (exit status: 255)

FAIL: tests/test03-multiple-listen
==================================

Running: hitch --pidfile=/tmp/tmp.IqK529mgKB/hitch.pid --log-filename=hitch.log --daemon --backend=[hitch-tls.org]:80 --frontend=[localhost]:14155 --frontend=[localhost]:16131 /tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src/tests//certs/site1.example.com
{ocsp} Warning: Unable to stat directory '/var/lib/hitch/': No such file or directory'. OCSP stapling will be disabled.
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180412T204654.406192 [13140] {core} hitch 1.4.7 starting
> 20180412T204654.417009 [13140] {bind-socket}: Cannot assign requested address: [localhost]:14155
FAIL tests/test03-multiple-listen.sh (exit status: 255)

FAIL: tests/test04-listen-with-own-certs
========================================

Running: hitch --pidfile=/tmp/tmp.g9hMLr2Pw8/hitch.pid --log-filename=hitch.log --daemon --backend=[hitch-tls.org]:80 --frontend=[localhost]:14176+/tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src/tests//certs/site1.example.com --frontend=[localhost]:17152+/tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src/tests//certs/site2.example.com /tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src/tests//certs/default.example.com
{ocsp} Warning: Unable to stat directory '/var/lib/hitch/': No such file or directory'. OCSP stapling will be disabled.
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180412T204654.484683 [13161] {core} hitch 1.4.7 starting
> 20180412T204654.495636 [13161] {bind-socket}: Cannot assign requested address: [localhost]:14176
FAIL tests/test04-listen-with-own-certs.sh (exit status: 255)

FAIL: tests/test05-multiple-listen-SNI
======================================

Running: hitch --pidfile=/tmp/tmp.MkJlZ5XvEB/hitch.pid --log-filename=hitch.log --daemon --backend=[hitch-tls.org]:80 --frontend=[localhost]:14197 /tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src/tests//certs/site1.example.com /tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src/tests//certs/site2.example.com /tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src/tests//certs/default.example.com
{ocsp} Warning: Unable to stat directory '/var/lib/hitch/': No such file or directory'. OCSP stapling will be disabled.
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180412T204654.559880 [13181] {core} hitch 1.4.7 starting
> 20180412T204654.570714 [13181] {bind-socket}: Cannot assign requested address: [localhost]:14197
FAIL tests/test05-multiple-listen-SNI.sh (exit status: 255)

FAIL: tests/test06-ticket-resume
================================

Running: hitch --pidfile=/tmp/tmp.rjmbv6W915/hitch.pid --log-filename=hitch.log --daemon --backend=[hitch-tls.org]:80 --frontend=[localhost]:14217 /tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src/tests//certs/site1.example.com
{ocsp} Warning: Unable to stat directory '/var/lib/hitch/': No such file or directory'. OCSP stapling will be disabled.
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180412T204654.634913 [13201] {core} hitch 1.4.7 starting
> 20180412T204654.645708 [13201] {bind-socket}: Cannot assign requested address: [localhost]:14217
FAIL tests/test06-ticket-resume.sh (exit status: 255)

FAIL: tests/test07-nomatch-abort
================================

Running: hitch --pidfile=/tmp/tmp.IhJ9NxSrQq/hitch.pid --log-filename=hitch.log --daemon --config=hitch.cfg
{ocsp} Warning: Unable to stat directory '/var/lib/hitch/': No such file or directory'. OCSP stapling will be disabled.
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180412T204654.716055 [13223] {core} hitch 1.4.7 starting
> 20180412T204654.726933 [13223] {bind-socket}: Cannot assign requested address: [localhost]:14237
FAIL tests/test07-nomatch-abort.sh (exit status: 255)

FAIL: tests/test09-wildcard-cert
================================

Running: hitch --pidfile=/tmp/tmp.cXF9rlVJn8/hitch.pid --log-filename=hitch.log --daemon --backend=[hitch-tls.org]:80 --frontend=[localhost]:14299 /tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src/tests//certs/wildcard.example.com /tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src/tests//certs/default.example.com
{ocsp} Warning: Unable to stat directory '/var/lib/hitch/': No such file or directory'. OCSP stapling will be disabled.
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180412T204654.957734 [13283] {core} hitch 1.4.7 starting
> 20180412T204654.968604 [13283] {bind-socket}: Cannot assign requested address: [localhost]:14299
FAIL tests/test09-wildcard-cert.sh (exit status: 255)

FAIL: tests/test10-dflt-certs
=============================

Running: hitch --pidfile=/tmp/tmp.PUL23GwwAe/hitch.pid --log-filename=hitch.log --daemon --config=hitch.cfg
{ocsp} Warning: Unable to stat directory '/var/lib/hitch/': No such file or directory'. OCSP stapling will be disabled.
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180412T204655.048568 [13308] {core} hitch 1.4.7 starting
> 20180412T204655.059390 [13308] {bind-socket}: Cannot assign requested address: [localhost]:14319
FAIL tests/test10-dflt-certs.sh (exit status: 255)

FAIL: tests/test11-cfg
======================

Running: hitch --pidfile=/tmp/tmp.ZlUStMEFVY/hitch.pid --log-filename=hitch.log --daemon --config=/tmp/tmp.ZlUStMEFVY/hitch.cfg
{ocsp} Warning: Unable to stat directory '/var/lib/hitch/': No such file or directory'. OCSP stapling will be disabled.
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180412T204655.126182 [13329] {core} hitch 1.4.7 starting
> 20180412T204655.136996 [13329] {bind-socket}: Cannot assign requested address: [localhost]:14344
FAIL tests/test11-cfg.sh (exit status: 255)

FAIL: tests/test13-r82
======================

Running: hitch --pidfile=/tmp/tmp.iJqtDCsFpD/hitch.pid --log-filename=hitch.log --daemon --config=hitch.cfg
{ocsp} Warning: Unable to stat directory '/var/lib/hitch/': No such file or directory'. OCSP stapling will be disabled.
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180412T204655.531483 [13387] {core} hitch 1.4.7 starting
> 20180412T204655.542770 [13387] {bind-socket}: Cannot assign requested address: [localhost]:15700
FAIL tests/test13-r82.sh (exit status: 255)

FAIL: tests/test15-proxy-v2-npn
===============================

Listening on port 15949
Running: hitch --pidfile=/tmp/tmp.jRd0dbEeig/hitch.pid --log-filename=hitch.log --daemon --backend=[127.0.0.1]:15949 --frontend=[localhost]:14449 --write-proxy-v2 --alpn-protos=h2,h2-14,http/1.1 /tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src/tests//certs/site1.example.com
{ocsp} Warning: Unable to stat directory '/var/lib/hitch/': No such file or directory'. OCSP stapling will be disabled.
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180412T204655.810396 [13435] {core} hitch 1.4.7 starting
> 20180412T204655.817317 [13435] {bind-socket}: Cannot assign requested address: [localhost]:14449

Found dump file proxy.dump:

FAIL tests/test15-proxy-v2-npn.sh (exit status: 255)

FAIL: tests/test16-proxy-v2-alpn
================================

Listening on port 16073
Running: hitch --pidfile=/tmp/tmp.8FmBcJw68y/hitch.pid --log-filename=hitch.log --daemon --backend=[127.0.0.1]:16073 --frontend=[localhost]:14473 --write-proxy-v2 --alpn-protos=tor,h2,h2-14,http/1.1 /tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src/tests//certs/site1.example.com
{ocsp} Warning: Unable to stat directory '/var/lib/hitch/': No such file or directory'. OCSP stapling will be disabled.
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180412T204655.889185 [13459] {core} hitch 1.4.7 starting
> 20180412T204655.896238 [13459] {bind-socket}: Cannot assign requested address: [localhost]:14473

Found dump file proxy.dump:

FAIL tests/test16-proxy-v2-alpn.sh (exit status: 255)

FAIL: tests/test17-ecc-certs
============================

Running: hitch --pidfile=/tmp/tmp.usWk8XcEwJ/hitch.pid --log-filename=hitch.log --daemon --backend=[hitch-tls.org]:80 --frontend=[localhost]:14497 /tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src/tests//certs/ecc.example.com.pem
{ocsp} Warning: Unable to stat directory '/var/lib/hitch/': No such file or directory'. OCSP stapling will be disabled.
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180412T204655.963674 [13481] {core} hitch 1.4.7 starting
> 20180412T204655.974557 [13481] {bind-socket}: Cannot assign requested address: [localhost]:14497
FAIL tests/test17-ecc-certs.sh (exit status: 255)

FAIL: tests/test21-tls-protos-reload-bad-spec
=============================================

Running: hitch --pidfile=/tmp/tmp.bJ89npiZ9K/hitch.pid --log-filename=hitch.log --daemon --config=hitch.cfg
{ocsp} Warning: Unable to stat directory '/var/lib/hitch/': No such file or directory'. OCSP stapling will be disabled.
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180412T204656.424872 [13607] {core} hitch 1.4.7 starting
> 20180412T204656.435736 [13607] {bind-socket}: Cannot assign requested address: [localhost]:14622
FAIL tests/test21-tls-protos-reload-bad-spec.sh (exit status: 255)

FAIL: tests/test22-tls-protos-backend-block
===========================================

Running: hitch --pidfile=/tmp/tmp.KafQ74ma6R/hitch.pid --log-filename=hitch.log --daemon --config=hitch.cfg
{ocsp} Warning: Unable to stat directory '/var/lib/hitch/': No such file or directory'. OCSP stapling will be disabled.
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180412T204656.503138 [13628] {core} hitch 1.4.7 starting
> 20180412T204656.513991 [13628] {bind-socket}: Cannot assign requested address: [localhost]:14643
FAIL tests/test22-tls-protos-backend-block.sh (exit status: 255)

SKIP: tests/test25-dynamic-backend-address
==========================================

SKIP: HOSTALIASES not supported
SKIP tests/test25-dynamic-backend-address.sh (exit status: 77)

FAIL: tests/test27-reload
=========================

Running: hitch --pidfile=/tmp/tmp.VgeiYmD3i5/hitch.pid --log-filename=hitch.log --daemon --config=/tmp/tmp.VgeiYmD3i5/hitch.cfg
{ocsp} Warning: Unable to stat directory '/var/lib/hitch/': No such file or directory'. OCSP stapling will be disabled.
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180412T204659.231141 [13777] {core} hitch 1.4.7 starting
> 20180412T204659.242036 [13777] {bind-socket}: Cannot assign requested address: [localhost]:14791
FAIL tests/test27-reload.sh (exit status: 255)

FAIL: tests/test28-separate_keyfiles
====================================

Running: hitch --pidfile=/tmp/tmp.JEnuqw4TiI/hitch.pid --log-filename=hitch.log --daemon --config=hitch.cfg
{ocsp} Warning: Unable to stat directory '/var/lib/hitch/': No such file or directory'. OCSP stapling will be disabled.
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180412T204659.323489 [13801] {core} hitch 1.4.7 starting
> 20180412T204659.334353 [13801] {bind-socket}: Cannot assign requested address: [localhost]:14813
FAIL tests/test28-separate_keyfiles.sh (exit status: 255)
@alexandre1985

This comment has been minimized.

Copy link
Author

commented Apr 13, 2018

I did sudo mkdir /var/lib/hitch before the yaourt command and now also fails and my test-suite.log is:

=====================================
   hitch 1.4.7: src/test-suite.log
=====================================

# TOTAL: 27
# PASS:  9
# SKIP:  1
# XFAIL: 0
# FAIL:  17
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: tests/test02-simple-request
=================================

Running: hitch --pidfile=/tmp/tmp.uXPSajQbCS/hitch.pid --log-filename=hitch.log --daemon --backend=[hitch-tls.org]:80 --frontend=[localhost]:9185 /tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src/tests//certs/site1.example.com
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180413T105231.011083 [ 8169] {core} hitch 1.4.7 starting
> 20180413T105231.131330 [ 8169] {bind-socket}: Cannot assign requested address: [localhost]:9185
FAIL tests/test02-simple-request.sh (exit status: 255)

FAIL: tests/test03-multiple-listen
==================================

Running: hitch --pidfile=/tmp/tmp.76QqmWCHKm/hitch.pid --log-filename=hitch.log --daemon --backend=[hitch-tls.org]:80 --frontend=[localhost]:9205 --frontend=[localhost]:11181 /tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src/tests//certs/site1.example.com
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180413T105231.208457 [ 8190] {core} hitch 1.4.7 starting
> 20180413T105231.220734 [ 8190] {bind-socket}: Cannot assign requested address: [localhost]:9205
FAIL tests/test03-multiple-listen.sh (exit status: 255)

FAIL: tests/test04-listen-with-own-certs
========================================

Running: hitch --pidfile=/tmp/tmp.JvI3cJKzHb/hitch.pid --log-filename=hitch.log --daemon --backend=[hitch-tls.org]:80 --frontend=[localhost]:9226+/tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src/tests//certs/site1.example.com --frontend=[localhost]:12202+/tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src/tests//certs/site2.example.com /tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src/tests//certs/default.example.com
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180413T105231.294531 [ 8211] {core} hitch 1.4.7 starting
> 20180413T105231.305450 [ 8211] {bind-socket}: Cannot assign requested address: [localhost]:9226
FAIL tests/test04-listen-with-own-certs.sh (exit status: 255)

FAIL: tests/test05-multiple-listen-SNI
======================================

Running: hitch --pidfile=/tmp/tmp.JFAewLrfBw/hitch.pid --log-filename=hitch.log --daemon --backend=[hitch-tls.org]:80 --frontend=[localhost]:9247 /tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src/tests//certs/site1.example.com /tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src/tests//certs/site2.example.com /tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src/tests//certs/default.example.com
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180413T105231.375728 [ 8231] {core} hitch 1.4.7 starting
> 20180413T105231.388420 [ 8231] {bind-socket}: Cannot assign requested address: [localhost]:9247
FAIL tests/test05-multiple-listen-SNI.sh (exit status: 255)

FAIL: tests/test06-ticket-resume
================================

Running: hitch --pidfile=/tmp/tmp.SJFrIJgtdV/hitch.pid --log-filename=hitch.log --daemon --backend=[hitch-tls.org]:80 --frontend=[localhost]:9267 /tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src/tests//certs/site1.example.com
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180413T105231.462707 [ 8251] {core} hitch 1.4.7 starting
> 20180413T105231.473902 [ 8251] {bind-socket}: Cannot assign requested address: [localhost]:9267
FAIL tests/test06-ticket-resume.sh (exit status: 255)

FAIL: tests/test07-nomatch-abort
================================

Running: hitch --pidfile=/tmp/tmp.8xm9MfDyvy/hitch.pid --log-filename=hitch.log --daemon --config=hitch.cfg
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180413T105231.549262 [ 8273] {core} hitch 1.4.7 starting
> 20180413T105231.560459 [ 8273] {bind-socket}: Cannot assign requested address: [localhost]:9287
FAIL tests/test07-nomatch-abort.sh (exit status: 255)

FAIL: tests/test09-wildcard-cert
================================

Running: hitch --pidfile=/tmp/tmp.8rZQ4M1xZo/hitch.pid --log-filename=hitch.log --daemon --backend=[hitch-tls.org]:80 --frontend=[localhost]:9349 /tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src/tests//certs/wildcard.example.com /tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src/tests//certs/default.example.com
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180413T105231.804256 [ 8333] {core} hitch 1.4.7 starting
> 20180413T105231.815436 [ 8333] {bind-socket}: Cannot assign requested address: [localhost]:9349
FAIL tests/test09-wildcard-cert.sh (exit status: 255)

FAIL: tests/test10-dflt-certs
=============================

Running: hitch --pidfile=/tmp/tmp.MVNTcJQlM5/hitch.pid --log-filename=hitch.log --daemon --config=hitch.cfg
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180413T105231.909426 [ 8358] {core} hitch 1.4.7 starting
> 20180413T105231.920559 [ 8358] {bind-socket}: Cannot assign requested address: [localhost]:9369
FAIL tests/test10-dflt-certs.sh (exit status: 255)

FAIL: tests/test11-cfg
======================

Running: hitch --pidfile=/tmp/tmp.1BzTez20Qf/hitch.pid --log-filename=hitch.log --daemon --config=/tmp/tmp.1BzTez20Qf/hitch.cfg
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180413T105231.993311 [ 8379] {core} hitch 1.4.7 starting
> 20180413T105232.004583 [ 8379] {bind-socket}: Cannot assign requested address: [localhost]:9394
FAIL tests/test11-cfg.sh (exit status: 255)

FAIL: tests/test13-r82
======================

Running: hitch --pidfile=/tmp/tmp.bzHdSP9tK8/hitch.pid --log-filename=hitch.log --daemon --config=hitch.cfg
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180413T105232.439016 [ 8438] {core} hitch 1.4.7 starting
> 20180413T105232.451449 [ 8438] {bind-socket}: Cannot assign requested address: [localhost]:10751
FAIL tests/test13-r82.sh (exit status: 255)

FAIL: tests/test15-proxy-v2-npn
===============================

Listening on port 11000
Running: hitch --pidfile=/tmp/tmp.AKHyHRODcy/hitch.pid --log-filename=hitch.log --daemon --backend=[127.0.0.1]:11000 --frontend=[localhost]:9500 --write-proxy-v2 --alpn-protos=h2,h2-14,http/1.1 /tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src/tests//certs/site1.example.com
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180413T105232.725460 [ 8486] {core} hitch 1.4.7 starting
> 20180413T105232.732853 [ 8486] {bind-socket}: Cannot assign requested address: [localhost]:9500

Found dump file proxy.dump:

FAIL tests/test15-proxy-v2-npn.sh (exit status: 255)

FAIL: tests/test16-proxy-v2-alpn
================================

Listening on port 11124
Running: hitch --pidfile=/tmp/tmp.Ex1yTlkTp1/hitch.pid --log-filename=hitch.log --daemon --backend=[127.0.0.1]:11124 --frontend=[localhost]:9524 --write-proxy-v2 --alpn-protos=tor,h2,h2-14,http/1.1 /tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src/tests//certs/site1.example.com
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180413T105232.808838 [ 8510] {core} hitch 1.4.7 starting
> 20180413T105232.815911 [ 8510] {bind-socket}: Cannot assign requested address: [localhost]:9524

Found dump file proxy.dump:

FAIL tests/test16-proxy-v2-alpn.sh (exit status: 255)

FAIL: tests/test17-ecc-certs
============================

Running: hitch --pidfile=/tmp/tmp.aB05h2Mkjh/hitch.pid --log-filename=hitch.log --daemon --backend=[hitch-tls.org]:80 --frontend=[localhost]:9548 /tmp/yaourt-tmp-daniel/aur-hitch-git/src/hitch/src/tests//certs/ecc.example.com.pem
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180413T105232.888309 [ 8532] {core} hitch 1.4.7 starting
> 20180413T105232.899362 [ 8532] {bind-socket}: Cannot assign requested address: [localhost]:9548
FAIL tests/test17-ecc-certs.sh (exit status: 255)

FAIL: tests/test21-tls-protos-reload-bad-spec
=============================================

Running: hitch --pidfile=/tmp/tmp.kUYg0j0C7w/hitch.pid --log-filename=hitch.log --daemon --config=hitch.cfg
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180413T105233.376910 [ 8658] {core} hitch 1.4.7 starting
> 20180413T105233.390096 [ 8658] {bind-socket}: Cannot assign requested address: [localhost]:9673
FAIL tests/test21-tls-protos-reload-bad-spec.sh (exit status: 255)

FAIL: tests/test22-tls-protos-backend-block
===========================================

Running: hitch --pidfile=/tmp/tmp.EHoWT1n1Mv/hitch.pid --log-filename=hitch.log --daemon --config=hitch.cfg
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180413T105233.468201 [ 8679] {core} hitch 1.4.7 starting
> 20180413T105233.479321 [ 8679] {bind-socket}: Cannot assign requested address: [localhost]:9694
FAIL tests/test22-tls-protos-backend-block.sh (exit status: 255)

SKIP: tests/test25-dynamic-backend-address
==========================================

SKIP: HOSTALIASES not supported
SKIP tests/test25-dynamic-backend-address.sh (exit status: 77)

FAIL: tests/test27-reload
=========================

Running: hitch --pidfile=/tmp/tmp.4ysNY3GYRE/hitch.pid --log-filename=hitch.log --daemon --config=/tmp/tmp.4ysNY3GYRE/hitch.cfg
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180413T105236.222101 [ 8830] {core} hitch 1.4.7 starting
> 20180413T105236.234241 [ 8830] {bind-socket}: Cannot assign requested address: [localhost]:9844
FAIL tests/test27-reload.sh (exit status: 255)

FAIL: tests/test28-separate_keyfiles
====================================

Running: hitch --pidfile=/tmp/tmp.hbNtX7wAc7/hitch.pid --log-filename=hitch.log --daemon --config=hitch.cfg
FAIL: expected exit status 0 got 1

Found log file hitch.log:

> 20180413T105237.354855 [ 8854] {core} hitch 1.4.7 starting
> 20180413T105237.367378 [ 8854] {bind-socket}: Cannot assign requested address: [localhost]:9866
FAIL tests/test28-separate_keyfiles.sh (exit status: 255)
@gquintard

This comment has been minimized.

Copy link

commented Apr 13, 2018

I works well here, can you get us one of the config files used?

Or just compiling it without going through yaourt?

@alexandre1985

This comment has been minimized.

Copy link
Author

commented Apr 13, 2018

I also have varnishrunning, can that be a issue while installing hitch? What do you mean by "config files used" (I'm only running yaourt hitch-git and the package that has the commands as you know is this one)?

The only thing that I have changed in the hitch-git PKGBUILD was the makedepends= to add lsof and in arch= I added aarch64

@gquintard

This comment has been minimized.

Copy link

commented Apr 13, 2018

can you try cloning the hitch repo and building it manually? That will remove abstraction layers and should give us a clearer picture.

@alexandre1985

This comment has been minimized.

Copy link
Author

commented Apr 13, 2018

ok, I will. Just a moment

@alexandre1985

This comment has been minimized.

Copy link
Author

commented Apr 13, 2018

I need hitch.service to test it. Can you help me?

I believe the build and install went fine, because I now have a hitch binary

I believe what was causing errors was the make -k check command of the PKGBUILD, it returns with an error

@gquintard

This comment has been minimized.

Copy link

commented Apr 13, 2018

you don't need to install it, just to run "make && make check" and see if you get the same issue as with yaourt

@alexandre1985

This comment has been minimized.

Copy link
Author

commented Apr 13, 2018

make wents well and make check returns this errors:

make[4]: *** [Makefile:964: test-suite.log] Error 1
make[4]: Leaving directory '/home/daniel/build_github_apps/hitch/src'
make[3]: *** [Makefile:1072: check-TESTS] Error 2
make[3]: Leaving directory '/home/daniel/build_github_apps/hitch/src'
make[2]: *** [Makefile:1135: check-am] Error 2
make[2]: Leaving directory '/home/daniel/build_github_apps/hitch/src'
make[1]: *** [Makefile:1137: check] Error 2
make[1]: Leaving directory '/home/daniel/build_github_apps/hitch/src'
make: *** [Makefile:526: check-recursive] Error 1

Don't know if its relevant but it also that of the 27 tests, 1 was skipped and 17 failed. The rest passed

@gquintard

This comment has been minimized.

Copy link

commented Apr 13, 2018

ok, so it looks like you have the same issue as with yaourt, that's encouraging.

Do you have anything on your machine that could prevent hitch from opening ports? firewall maybe?

@alexandre1985

This comment has been minimized.

Copy link
Author

commented Apr 13, 2018

Yes, I do. I have a restrictive iptables. What ports does hitch want open?

@gquintard

This comment has been minimized.

Copy link

commented Apr 13, 2018

there we go, dynamic port, so no way to know. Easiest way for you is to just trust the maintainer and remove the make check from the PKGBUILD

@alexandre1985

This comment has been minimized.

Copy link
Author

commented Apr 13, 2018

Ok. Will do that.
I have made make install how can I now uninstall hitch to then make a install using PKGBUILD?

@gquintard

This comment has been minimized.

Copy link

commented Apr 13, 2018

make uninstall ?

@alexandre1985

This comment has been minimized.

Copy link
Author

commented Apr 13, 2018

Thank you. I have made that.
I have installed using my modified PKGBUILD but on the end it fails because there is no hitch.service file.
I need a hitch.service file for archlinux, can you somehow help me?

@gquintard

This comment has been minimized.

Copy link

commented Apr 13, 2018

Please contact the package maintainer for that, or just steal the debian/fedora packages' file

@alexandre1985

This comment has been minimized.

Copy link
Author

commented Apr 13, 2018

Where can I find the debian or fedora hitch packages?
Thank you for everything 👍

@gquintard

This comment has been minimized.

Copy link

commented Apr 13, 2018

@alexandre1985

This comment has been minimized.

Copy link
Author

commented Apr 13, 2018

I have manually created the user _hitch with the group _hitch.
I can't make my hitch.service work.
Here it is:

[Unit]
Description=Hitch TLS unwrapping daemon
After=network.target
Documentation=https://github.com/varnish/hitch/tree/master/docs man:hitch(8)

[Service]
ExecStart=/usr/bin/hitch --user _hitch --group _hitch --config /etc/hitch/hitch.conf --quiet
ExecReload=/bin/kill -HUP $MAINPID
Type=simple
Restart=on-failure
PrivateDevices=true
PrivateTmp=true
ProtectHome=true
ProtectSystem=full

[Install]
WantedBy=multi-user.target

Here it is my /etc/hitch/hitch.conf:

# Run 'man hitch.conf' for a description of all options.


frontend = {
    host = "*"
    port = "443"
}
backend = "[127.0.0.1]:6086"    # 6086 is the default Varnish PROXY port.
workers = 4                     # number of CPU cores

daemon = on
user = "_hitch"
group = "_hitch"

# Enable to let clients negotiate HTTP/2 with ALPN. (default off)
# alpn-protos = "http/2, http/1.1"

# run Varnish as backend over PROXY; varnishd -a :80 -a localhost:6086,PROXY ..
write-proxy-v2 = on             # Write PROXY header


pem-file="/etc/*/1.pem"
@alexandre1985

This comment has been minimized.

Copy link
Author

commented Apr 13, 2018

I have solved it. The only thing that I should change is in hitch.service file. It should change from:
Type=simple
to
Type=forking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.