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

Adding file to image is failing #595

Open
mojtaba-esk opened this issue Dec 11, 2024 · 0 comments · May be fixed by #596
Open

Adding file to image is failing #595

mojtaba-esk opened this issue Dec 11, 2024 · 0 comments · May be fixed by #596
Assignees
Labels
bug Something isn't working

Comments

@mojtaba-esk
Copy link
Member

There is a bug somewhere in the adding file to the image probably in the build factory that causes the related tests to fail. Here is a log with debug enabled:

=== RUN   TestRunSuite
time="2024-12-11T11:46:28+01:00" level=info msg="Current log level" file="log/logger.go:41" env_log_level=LOG_LEVEL log_level=info
    suite_setup_test.go:53: Scope: 20241211-114555-768
=== RUN   TestRunSuite/TestFile
=== PAUSE TestRunSuite/TestFile
=== RUN   TestRunSuite/TestFileCached
=== PAUSE TestRunSuite/TestFileCached
=== CONT  TestRunSuite/TestFile
=== CONT  TestRunSuite/TestFileCached
    file_test.go:24: Creating executor instance
    file_test.go:28: Creating nginx instance with volume
    file_test.go:31: Adding file to nginx instance
    suite.go:88: Retrying operation (1/3)...
    file_test.go:37: Committing changes
    suite.go:88: Retrying operation (1/3)...
    suite.go:88: Retrying operation (1/3)...
    suite.go:88: Retrying operation (1/3)...
    suite.go:88: Retrying operation (1/3)...
    suite.go:88: Retrying operation (1/3)...
    suite.go:88: Retrying operation (1/3)...
    suite.go:88: Retrying operation (1/3)...
    suite.go:88: Retrying operation (1/3)...
    suite.go:88: Retrying operation (1/3)...
    suite.go:88: Retrying operation (1/3)...
    suite.go:88: Retrying operation (1/3)...
    suite.go:88: Retrying operation (1/3)...
    suite.go:88: Retrying operation (2/3)...
    suite.go:88: Retrying operation (2/3)...
    suite.go:88: Retrying operation (3/3)...
    suite.go:88: Retrying operation (3/3)...
    file_test.go:41: 
        	Error Trace:	/home/moji/celestia/knuu/e2e/system/file_test.go:41
        	Error:      	Received unexpected error:
        	            	operation failed after 3 retries: error pushing image for instance 'file-cached-web1': build failed: logs: .../nginx/html] 
        	            	INFO[0007] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	logs: .../nginx/html] 
        	            	INFO[0006] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	logs: .../nginx/html] 
        	            	INFO[0006] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	logs: .../nginx/html] 
        	            	INFO[0007] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	logs: .../nginx/html] 
        	            	INFO[0007] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	build failed: logs: .../nginx/html] 
        	            	INFO[0007] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	logs: .../nginx/html] 
        	            	INFO[0006] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	logs: .../nginx/html] 
        	            	INFO[0006] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	logs: .../nginx/html] 
        	            	INFO[0007] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	logs: .../nginx/html] 
        	            	INFO[0007] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	build failed: logs: .../nginx/html] 
        	            	INFO[0007] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	logs: .../nginx/html] 
        	            	INFO[0006] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	logs: .../nginx/html] 
        	            	INFO[0006] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	logs: .../nginx/html] 
        	            	INFO[0007] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	logs: .../nginx/html] 
        	            	INFO[0007] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	build failed: logs: .../nginx/html] 
        	            	INFO[0007] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	logs: .../nginx/html] 
        	            	INFO[0006] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	logs: .../nginx/html] 
        	            	INFO[0006] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	logs: .../nginx/html] 
        	            	INFO[0007] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	logs: .../nginx/html] 
        	            	INFO[0007] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	build failed: logs: .../nginx/html] 
        	            	INFO[0007] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	logs: .../nginx/html] 
        	            	INFO[0006] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	logs: .../nginx/html] 
        	            	INFO[0006] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	logs: .../nginx/html] 
        	            	INFO[0007] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	logs: .../nginx/html] 
        	            	INFO[0007] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	build failed: logs: .../nginx/html] 
        	            	INFO[0007] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	logs: .../nginx/html] 
        	            	INFO[0006] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	logs: .../nginx/html] 
        	            	INFO[0006] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	logs: .../nginx/html] 
        	            	INFO[0007] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	            	
        	            	logs: .../nginx/html] 
        	            	INFO[0007] Taking snapshot of full filesystem...        
        	            	INFO[0007] No files were changed, appending empty layer to config. No layer added to image. 
        	            	error building image: error building stage: failed to get files used from context: failed to get fileinfo for /kaniko/buildcontext/usr/share/nginx/html/index.html: lstat /kaniko/buildcontext/usr/share/nginx/html/index.html: no such file or directory
        	Test:       	TestRunSuite/TestFileCached
        	Messages:   	Error committing changes
--- FAIL: TestRunSuite (159.93s)
    --- FAIL: TestRunSuite/TestFile (56.03s)
panic: test executed panic(nil) or runtime.Goexit

goroutine 147 [running]:
testing.tRunner.func1.2({0x1970440, 0x2c1d0a0})
	/home/moji/go/pkg/mod/golang.org/[email protected]/src/testing/testing.go:1631 +0x24a
testing.tRunner.func1()
	/home/moji/go/pkg/mod/golang.org/[email protected]/src/testing/testing.go:1634 +0x377
runtime.Goexit()
	/home/moji/go/pkg/mod/golang.org/[email protected]/src/runtime/panic.go:626 +0x5e
testing.(*common).FailNow(0xc0005d9ba0)
	/home/moji/go/pkg/mod/golang.org/[email protected]/src/testing/testing.go:1005 +0x4a
github.com/stretchr/testify/require.NoError({0x1ea1758, 0xc0005d9ba0}, {0x1e9c940, 0xc0006dc020}, {0xc000939690, 0x1, 0x1})
	/home/moji/go/pkg/mod/github.com/stretchr/[email protected]/require/require.go:1357 +0xca
github.com/stretchr/testify/require.(*Assertions).NoError(0xc000ad6900, {0x1e9c940, 0xc0006dc020}, {0xc000939690, 0x1, 0x1})
	/home/moji/go/pkg/mod/github.com/stretchr/[email protected]/require/require_forward.go:1072 +0x9d
github.com/celestiaorg/knuu/e2e/system.(*Suite).TestFile(0xc000040ea0)
	/home/moji/celestia/knuu/e2e/system/file_test.go:41 +0x333
reflect.Value.call({0xc0006f4340?, 0xc0006c7ea0?, 0xc1ce7945ea74a377?}, {0x1bf2318, 0x4}, {0xc0000a5f28, 0x1, 0x19bac00?})
	/home/moji/go/pkg/mod/golang.org/[email protected]/src/reflect/value.go:596 +0xca6
reflect.Value.Call({0xc0006f4340?, 0xc0006c7ea0?, 0x273a220?}, {0xc0000a5f28?, 0xf?, 0x0?})
	/home/moji/go/pkg/mod/golang.org/[email protected]/src/reflect/value.go:380 +0xb9
github.com/stretchr/testify/suite.Run.func1(0xc0005d9a00)
	/home/moji/go/pkg/mod/github.com/stretchr/[email protected]/suite/suite.go:202 +0x4a5
testing.tRunner(0xc0005d9a00, 0xc000ac10e0)
	/home/moji/go/pkg/mod/golang.org/[email protected]/src/testing/testing.go:1689 +0xfb
created by testing.(*T).Run in goroutine 14
	/home/moji/go/pkg/mod/golang.org/[email protected]/src/testing/testing.go:1742 +0x390
FAIL	github.com/celestiaorg/knuu/e2e/system	108.234s
FAIL
@mojtaba-esk mojtaba-esk added the bug Something isn't working label Dec 11, 2024
@mojtaba-esk mojtaba-esk self-assigned this Dec 11, 2024
@mojtaba-esk mojtaba-esk linked a pull request Dec 13, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant