Active assets issue

Hello,

I am having a problem with active assets. I have several activated, but only one is working properly. I then connected via SSH to the Raspberry Pi where Anthias is deployed to check the screenly_assets folder, and I can see all my active assets.

Before :

image

So I deleted all my assets except the one that works. I checked the folders again and I still have several assets.

After :

image

Is this normal?

Hi @adoireau,

Thanks for reporting this issue. What you’re seeing is unfortunately a known bug in how Anthias handles file cleanup when assets are deleted.

Is this normal?

No, this shouldn’t happen. When you delete an asset through the web interface, all associated files should be removed from the screenly_assets folder. The fact that you still have 3 files when you should only have 1 indicates that some orphaned files were left behind.

Why does this happen?

The asset deletion process only removes the main file for each asset. It doesn’t clean up temporary files that may have been created during:

  • Incomplete or failed uploads
  • Background processing of video files (which is most likely in your case since all files are .mp4)
  • Interrupted file transfers

So the 3 files you’re seeing are likely:

  • 1 file for your working asset
  • 2 leftover files from previous operations

Quick question:

I noticed from your screenshots that all the files are .mp4 video files. Have you tried adding video assets multiple times and encountered issues (like uploads failing or assets not showing up properly)? This would help explain why there are extra files left behind.

What can you do?

The filenames inside screenly_assets/ are based on asset IDs. You can cross-reference these with the asset IDs shown in your Anthias web interface. You can click on the pen icon next to each asset. A modal titled “Edit Asset” will pop up. You’ll see the path to the asset next to the Asset Location label.

Any files that don’t match a current asset ID can be safely deleted.

Moving forward

Thank you for bringing this to our attention. We’ve identified the underlying cause and documented it ( [BUG] Orphaned files remain in screenly_assets folder after asset deletion · Issue #2657 · Screenly/Anthias · GitHub ). This issue will be addressed in a future update, though we can’t provide a specific timeline at this moment.

If anyone in the community would like to contribute a fix, we welcome pull requests on our GitHub repository.

Thanks again for raising this issue and helping us improve Anthias!

Hi @nicomiguelino
Thank you for your feedback.
To answer your question, I didn’t encounter any problems when importing .mp4 files.

I still get an error even after deleting the assets. The screen remains frozen on the Anthias logo, even when I click on the “Next Asset” button on the web page.

Here are the actions I took following your previous response:

Logged into the web interface

Downloaded all assets

Deleted all assets

Connected to the Raspberry Pi via SSH

Deleted all ghost assets in the screenly_assets folder

Restarted the device using the reboot button on the web interface

Imported all assets

Activated all assets

@adoireau, thank you for the details.

How did you downloaded the assets?

Did you add videos via YouTube links?

Whether the video assets are created via YouTube links or local MP4 files, I’ll take a look into it.

Hi @nicomiguelino
I downloaded the resources directly from my computer. They are PowerPoint presentations converted into MP4 video files.

I’ll keep that in mind. Thank you.

What Raspberry Pi model are you using?

I’m using this model : Raspberry Pi 4 Model B Rev 1.5

@adoireau, thank you. I will take a look at this.

In the meantime, I would like to ask your Pi’s memory.

@nicomiguelino
Here is the information about the Raspberry Pi

1 Like