Skip to content
This repository has been archived by the owner on Jun 18, 2022. It is now read-only.

make source failed #215

Open
timiil opened this issue Jun 9, 2017 · 4 comments
Open

make source failed #215

timiil opened this issue Jun 9, 2017 · 4 comments

Comments

@timiil
Copy link

timiil commented Jun 9, 2017

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 ?

@yasker
Copy link
Member

yasker commented Jun 9, 2017

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

@timiil
Copy link
Author

timiil commented Jun 11, 2017

centos 7.3.1611. tks

@alwinmark
Copy link

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

@yasker
Copy link
Member

yasker commented Nov 17, 2017

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants