convoy icon indicating copy to clipboard operation
convoy copied to clipboard

make source failed

Open timiil opened this issue 8 years ago • 4 comments

my steps here :

cd /home

yum update -y

yum install -y git

git clone https://github.com/rancher/convoy.git

cd convoy

make

the fault messages:

----------------------------------------------------------------------
FAIL: util_test.go:134: TestSuite.TestLoopDevice

util_test.go:155:
    c.Assert(err, IsNil)
... value *errors.errorString = &errors.errorString{s:"Failed to execute: losetup [--show -f -r /tmp/util/test.img], output losetup: /tmp/util/test.img: failed to set up loop device: No such file or directory\n, error exit status 1"} ("Failed to execute: losetup [--show -f -r /tmp/util/test.img], output losetup: /tmp/util/test.img: failed to set up loop device: No such file or directory\n, error exit status 1")


----------------------------------------------------------------------
FAIL: volume_test.go:33: TestSuite.TestVolumeHelper

volume_test.go:35:
    c.Assert(err, IsNil)
... value *errors.errorString = &errors.errorString{s:"Failed to execute: losetup [--show -f /tmp/util/test.img], output losetup: /tmp/util/test.img: failed to set up loop device: No such file or directory\n, error exit status 1"} ("Failed to execute: losetup [--show -f /tmp/util/test.img], output losetup: /tmp/util/test.img: failed to set up loop device: No such file or directory\n, error exit status 1")


----------------------------------------------------------------------
FAIL: volume_test.go:93: TestSuite.TestVolumeHelperWithNamespace

volume_test.go:97:
    s.TestVolumeHelper(c)
volume_test.go:35:
    c.Assert(err, IsNil)
... value *errors.errorString = &errors.errorString{s:"Failed to execute: losetup [--show -f /tmp/util/test.img], output losetup: /tmp/util/test.img: failed to set up loop device: No such file or directory\n, error exit status 1"} ("Failed to execute: losetup [--show -f /tmp/util/test.img], output losetup: /tmp/util/test.img: failed to set up loop device: No such file or directory\n, error exit status 1")

OOPS: 12 passed, 3 FAILED
--- FAIL: Test (1.62s)
FAIL
coverage: 33.3% of statements
FAIL	github.com/rancher/convoy/util	1.634s
?   	github.com/rancher/convoy/vfs	[no test files]
FATA[0057] exit status 1                                
make: *** [ci] Error 1

any help please ?

timiil avatar Jun 09 '17 03:06 timiil

What's the version of your losetup? Also, what's the host os?

yasker avatar Jun 09 '17 21:06 yasker

centos 7.3.1611. tks

timiil avatar Jun 11 '17 10:06 timiil

Same Problem here. When you could give me an advice how to fix this, I'll spend my weekend trying to fix #221. I have some Idea which could work, but I need a working testenvironment

alwinmark avatar Nov 17 '17 10:11 alwinmark

Ubuntu works fine for me.

I was able to reproduce it with CentOS environment for a few times, but it seems like some kind of weird race condition and it was gone for me right now.

And I've looked into the error, which seems complains that the file /tmp/util/test.img wasn't there. Though if I looked into the container, it does exist, and losetup works too.

yasker avatar Nov 17 '17 19:11 yasker