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

Exception when recording session #427

Closed
Poeschl opened this issue Aug 2, 2017 · 5 comments
Closed

Exception when recording session #427

Poeschl opened this issue Aug 2, 2017 · 5 comments

Comments

@Poeschl
Copy link

Poeschl commented Aug 2, 2017

It tried out your example on the docs and if I start the test with any other VncRecordingMode then SKIP I get a exception that the recording file could not be moved. (Exception at end of post.)

During the test I see the .tmp-volume-1501669893324 file getting generated. (And its a file not a folder if that is relevant)

System is a Windows OS with Docker Toolbox.

Could not move recording file from .tmp-volume-1501669893324\screen.flv to \tmp\recording-20170802-123141.flv
java.lang.RuntimeException: Could not move recording file from .tmp-volume-1501669893324\screen.flv to \tmp\recording-20170802-123141.flv
	at org.testcontainers.containers.VncRecordingSidekickContainer.stopAndRetainRecording(VncRecordingSidekickContainer.java:83)
	at org.testcontainers.containers.BrowserWebDriverContainer.stopAndRetainRecording(BrowserWebDriverContainer.java:221)
	at org.testcontainers.containers.BrowserWebDriverContainer.failed(BrowserWebDriverContainer.java:190)

...

Caused by: java.nio.file.NoSuchFileException: .tmp-volume-1501669893324\screen.flv -> \tmp\recording-20170802-123141.flv
	at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:79)
	at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
	at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:387)
	at sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:287)
	at java.nio.file.Files.move(Files.java:1395)
	at org.testcontainers.containers.VncRecordingSidekickContainer.stopAndRetainRecording(VncRecordingSidekickContainer.java:81)
	... 42 more
@akozhin
Copy link

akozhin commented Sep 6, 2017

Get this error on Windows 10 with native docker

@kiview
Copy link
Member

kiview commented Sep 21, 2017

I think this is somewhat expected, since there is no /tmp directory on Windows. I wonder if #445 and #423 might help in this case.

@kiview
Copy link
Member

kiview commented Dec 9, 2017

This error does not seem to happen with Docker for Windows anymore (on current master).
@Poeschl can you try with current master and Docker Toolbox please?

@Poeschl
Copy link
Author

Poeschl commented Dec 9, 2017

I will test it on monday, thanks for still replying

@Poeschl
Copy link
Author

Poeschl commented Dec 14, 2017

It works now with updated docker and master ;)

@Poeschl Poeschl closed this as completed Dec 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants