[GH-ISSUE #177] IllegalStateException: Failed to build unique file #141

Closed
opened 2026-05-07 00:20:27 +02:00 by BreizhHardware · 2 comments

Originally created by @binwiederhier on GitHub (Mar 18, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/177

139e314e2665/Images/Primary, contentUri=content://media/external/file/27942, progress=-3)
1647618552728 2022-03-18 15:49:12.728 W NtfyAttachDownload Attachment download failed
Exception:
java.lang.IllegalStateException: Failed to build unique file: /storage/emulated/0/Download/Primary.jpg bucket_display_name=Download volume_name=external_primary date_modified=null date_expires=null _display_name=Primary.jpg mime_type=image/jpeg _data=/storage/emulated/0/Download/Primary.jpg _size=null is_trashed=0 is_pending=0 bucket_id=540528482 relative_path=Download/
    at android.os.Parcel.createExceptionOrNull(Parcel.java:2433)
    at android.os.Parcel.createException(Parcel.java:2409)
    at android.os.Parcel.readException(Parcel.java:2392)
    at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:190)
    at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:142)
    at android.content.ContentProviderProxy.update(ContentProviderNative.java:653)
    at android.content.ContentResolver.update(ContentResolver.java:2400)
    at android.content.ContentResolver.update(ContentResolver.java:2362)
    at io.heckel.ntfy.msg.DownloadWorker.downloadAttachment(DownloadWorker.kt:145)
    at io.heckel.ntfy.msg.DownloadWorker.doWork(DownloadWorker.kt:52)
    at androidx.work.Worker$1.run(Worker.java:86)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    at java.lang.Thread.run(Thread.java:920)
Originally created by @binwiederhier on GitHub (Mar 18, 2022). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/177 ``` 139e314e2665/Images/Primary, contentUri=content://media/external/file/27942, progress=-3) 1647618552728 2022-03-18 15:49:12.728 W NtfyAttachDownload Attachment download failed Exception: java.lang.IllegalStateException: Failed to build unique file: /storage/emulated/0/Download/Primary.jpg bucket_display_name=Download volume_name=external_primary date_modified=null date_expires=null _display_name=Primary.jpg mime_type=image/jpeg _data=/storage/emulated/0/Download/Primary.jpg _size=null is_trashed=0 is_pending=0 bucket_id=540528482 relative_path=Download/ at android.os.Parcel.createExceptionOrNull(Parcel.java:2433) at android.os.Parcel.createException(Parcel.java:2409) at android.os.Parcel.readException(Parcel.java:2392) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:190) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:142) at android.content.ContentProviderProxy.update(ContentProviderNative.java:653) at android.content.ContentResolver.update(ContentResolver.java:2400) at android.content.ContentResolver.update(ContentResolver.java:2362) at io.heckel.ntfy.msg.DownloadWorker.downloadAttachment(DownloadWorker.kt:145) at io.heckel.ntfy.msg.DownloadWorker.doWork(DownloadWorker.kt:52) at androidx.work.Worker$1.run(Worker.java:86) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:920) ```
BreizhHardware 2026-05-07 00:20:27 +02:00
Author
Owner

@fallenbagel commented on GitHub (Mar 21, 2022):

This happens after I reach a certain limit of attachments of the same name i.e, primary.jpg. Like estimated 30 or 40. After that happens, once every primary.jpg is deleted, the attachments start downloading automatically

<!-- gh-comment-id:1074349320 --> @fallenbagel commented on GitHub (Mar 21, 2022): This happens after I reach a certain limit of attachments of the same name i.e, primary.jpg. Like estimated 30 or 40. After that happens, once every primary.jpg is deleted, the attachments start downloading automatically
Author
Owner

@binwiederhier commented on GitHub (Mar 22, 2022):

Not relevant anymore after #181

<!-- gh-comment-id:1074681012 --> @binwiederhier commented on GitHub (Mar 22, 2022): Not relevant anymore after #181
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#141
No description provided.