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

No space left on /tmp device . #650

Closed
lmtoo opened this issue Oct 21, 2021 · 0 comments · Fixed by #654
Closed

No space left on /tmp device . #650

lmtoo opened this issue Oct 21, 2021 · 0 comments · Fixed by #654

Comments

@lmtoo
Copy link

lmtoo commented Oct 21, 2021

Describe the bug

When I deploy to production,sc*bsce file doesn't delete when file is uploaded. Disk was fulled by sc*bsce file
And , finaly reproduce this Exception:
java.nio.file.FileSystemException: /tmp/sc3699270461306145586bsce: No space left on device
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
at java.nio.file.Files.newByteChannel(Files.java:361)
at java.nio.file.Files.createFile(Files.java:632)
at java.nio.file.TempFileHelper.create(TempFileHelper.java:138)
at java.nio.file.TempFileHelper.createTempFile(TempFileHelper.java:161)
at java.nio.file.Files.createTempFile(Files.java:897)
at internal.org.springframework.content.commons.repository.factory.StoreImpl.setContent(StoreImpl.java:50)
at sun.reflect.GeneratedMethodAccessor614.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at internal.org.springframework.content.commons.repository.factory.StoreMethodInterceptor.invoke(StoreMethodInterceptor.java:66)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.versions.interceptors.PessimisticLockingInterceptor.invokeWithIntecept(PessimisticLockingInterceptor.java:57)
at org.springframework.versions.interceptors.PessimisticLockingInterceptor.invoke(PessimisticLockingInterceptor.java:37)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.versions.interceptors.OptimisticLockingInterceptor.invoke(OptimisticLockingInterceptor.java:62)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.transact

To Reproduce
Steps to reproduce the behavior:

  1. Go to clone 'issue-650'
  2. Run test with command mvn -D"java.io.tmpdir=F:/temp" test
  3. check F:/temp dir , there will have a file with name sc*bsce

Expected behavior
when test finished , there will no file exists in F:/temp dir

Screenshots
image

paulcwarren added a commit that referenced this issue Oct 22, 2021
- in order to prevent out of disk space errors (#650)
- code tidy up

Fixes #650
paulcwarren added a commit that referenced this issue Oct 27, 2021
- in order to prevent out of disk space errors (#650)
- code tidy up

Fixes #650
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

Successfully merging a pull request may close this issue.

1 participant