[asterisk-bugs] [JIRA] (ASTERISK-28943) Asterisk can't start with the errors media_cache_item_populate_from_astdb: Unable to obtain information for file /tmp/...
Kevin Harwell (JIRA)
noreply at issues.asterisk.org
Tue Jun 16 15:19:25 CDT 2020
[ https://issues.asterisk.org/jira/browse/ASTERISK-28943?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=251137#comment-251137 ]
Kevin Harwell commented on ASTERISK-28943:
------------------------------------------
Also I noticed there is an Asterisk CLI command for removing an item from the cache:
{noformat}
*CLI> media cache delete
Usage: media cache delete <uri>
Delete an item from the media cache.
Note that this will also remove any local storage of the media associated
with the URI, and will inform the backend supporting the URI scheme that
it should remove the item.
{noformat}
Instead of deleting the file directly from the file system, and having Asterisk "clear" the cache of orphaned records on startup you could delete the item instead directly from the cache while Asterisk is running, thus alleviating the need to restart and clear the cache.
> Asterisk can't start with the errors media_cache_item_populate_from_astdb: Unable to obtain information for file /tmp/...
> -------------------------------------------------------------------------------------------------------------------------
>
> Key: ASTERISK-28943
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-28943
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Core/General
> Affects Versions: 16.5.0
> Reporter: Volodymyr Dotsenko
> Assignee: Unassigned
> Attachments: cache.log
>
>
> We heavily used media files that asterisk played via ARI by HTTP. As I understand asterisk caches the file in /tmp directory, and because we have a lot of such files we periodically clean the /tmp folder. The problem arises after restart the server and asterisk restart takes a very long time with error: "media_cache_item_populate_from_astdb: Unable to obtain information for file /tmp/bucket-tdh5CZ.wav for URI http://.."
> Today our asterisk is still starting already 5 hours.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list