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

Improved Error Reporting for "No space left on device" #551

Open
tobihagemann opened this issue Sep 20, 2024 · 0 comments
Open

Improved Error Reporting for "No space left on device" #551

tobihagemann opened this issue Sep 20, 2024 · 0 comments
Labels
good first issue Issues easy to implement or with a narrow scope of changes type:minor-bug Something minor isn't working

Comments

@tobihagemann
Copy link
Member

A user encountered an issue, where they tried to upload a large file to the cloud and encountered an unknown error. They noticed themselves that their phone storage was almost full and were able to resolve this issue, but a proper error message would've probably improved the situation.

E	20240919171857.987	ExceptionHandler	org.cryptomator.domain.exception.FatalBackendException: java.io.IOException: write failed: ENOSPC (No space left on device)
	at org.cryptomator.data.cloud.crypto.CryptoImplDecorator.writeShortNameFile(CryptoImplDecorator.kt:462)
	at org.cryptomator.data.cloud.crypto.CryptoImplVaultFormat7.write(CryptoImplVaultFormat7.kt:460)
	at org.cryptomator.data.cloud.crypto.CryptoCloudContentRepository.write(CryptoCloudContentRepository.kt:90)
	at org.cryptomator.data.cloud.crypto.CryptoCloudContentRepository.write(CryptoCloudContentRepository.kt:21)
	at org.cryptomator.data.repository.DispatchingCloudContentRepository.write(DispatchingCloudContentRepository.kt:149)
	at org.cryptomator.domain.usecases.cloud.UploadFiles.writeCloudFile(UploadFiles.java:118)
	at org.cryptomator.domain.usecases.cloud.UploadFiles.upload(UploadFiles.java:94)
	at org.cryptomator.domain.usecases.cloud.UploadFiles.upload(UploadFiles.java:82)
	at org.cryptomator.domain.usecases.cloud.UploadFiles.upload(UploadFiles.java:74)
	at org.cryptomator.domain.usecases.cloud.UploadFiles.execute(UploadFiles.java:61)
	at org.cryptomator.domain.usecases.cloud.UploadFilesUseCase$Launcher$2.subscribe(UploadFilesUseCase.java:119)
	at io.reactivex.internal.operators.flowable.FlowableFromPublisher.subscribeActual(FlowableFromPublisher.java:29)
	at io.reactivex.Flowable.subscribe(Flowable.java:14935)
	at io.reactivex.Flowable.subscribe(Flowable.java:14882)
	at io.reactivex.internal.operators.flowable.FlowableSubscribeOn$SubscribeOnSubscriber.run(FlowableSubscribeOn.java:82)
	at io.reactivex.internal.schedulers.ExecutorScheduler$ExecutorWorker$BooleanRunnable.run(ExecutorScheduler.java:288)
	at io.reactivex.internal.schedulers.ExecutorScheduler$ExecutorWorker.run(ExecutorScheduler.java:253)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
	at java.lang.Thread.run(Thread.java:1012)
Caused by: java.io.IOException: write failed: ENOSPC (No space left on device)
	at libcore.io.IoBridge.write(IoBridge.java:651)
	at java.io.FileOutputStream.write(FileOutputStream.java:432)
	at java.nio.channels.Channels$WritableByteChannelImpl.write(Channels.java:469)
	at org.cryptomator.cryptolib.common.EncryptingWritableByteChannel.encryptAndFlushBuffer(EncryptingWritableByteChannel.java:71)
	at org.cryptomator.cryptolib.common.EncryptingWritableByteChannel.write(EncryptingWritableByteChannel.java:54)
	at org.cryptomator.data.cloud.crypto.CryptoImplDecorator.writeShortNameFile(CryptoImplDecorator.kt:446)
	... 19 more
	Suppressed: java.io.IOException: write failed: ENOSPC (No space left on device)
		at libcore.io.IoBridge.write(IoBridge.java:651)
		at java.io.FileOutputStream.write(FileOutputStream.java:432)
		at java.nio.channels.Channels$WritableByteChannelImpl.write(Channels.java:469)
		at org.cryptomator.cryptolib.common.EncryptingWritableByteChannel.encryptAndFlushBuffer(EncryptingWritableByteChannel.java:71)
		at org.cryptomator.cryptolib.common.EncryptingWritableByteChannel.close(EncryptingWritableByteChannel.java:43)
		at kotlin.io.CloseableKt.closeFinally(Closeable.kt:59)
		at org.cryptomator.data.cloud.crypto.CryptoImplDecorator.writeShortNameFile(CryptoImplDecorator.kt:458)
		... 19 more
	Caused by: android.system.ErrnoException: write failed: ENOSPC (No space left on device)
		at libcore.io.Linux.writeBytes(Native Method)
		at libcore.io.Linux.write(Linux.java:296)
		at libcore.io.ForwardingOs.write(ForwardingOs.java:943)
		at libcore.io.BlockGuardOs.write(BlockGuardOs.java:448)
		at libcore.io.ForwardingOs.write(ForwardingOs.java:943)
		at libcore.io.IoBridge.write(IoBridge.java:646)
		... 25 more
Caused by: android.system.ErrnoException: write failed: ENOSPC (No space left on device)
	at libcore.io.Linux.writeBytes(Native Method)
	at libcore.io.Linux.write(Linux.java:296)
	at libcore.io.ForwardingOs.write(ForwardingOs.java:943)
	at libcore.io.BlockGuardOs.write(BlockGuardOs.java:448)
	at libcore.io.ForwardingOs.write(ForwardingOs.java:943)
	at libcore.io.IoBridge.write(IoBridge.java:646)
	... 24 more

ErrorCode: KFU8:J2RI
@tobihagemann tobihagemann added the type:minor-bug Something minor isn't working label Sep 20, 2024
@SailReal SailReal added the good first issue Issues easy to implement or with a narrow scope of changes label Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Issues easy to implement or with a narrow scope of changes type:minor-bug Something minor isn't working
Projects
None yet
Development

No branches or pull requests

2 participants