[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
Mon Jun 15 12:15:25 CDT 2020


    [ https://issues.asterisk.org/jira/browse/ASTERISK-28943?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=251122#comment-251122 ] 

Kevin Harwell commented on ASTERISK-28943:
------------------------------------------

The code just checks to see if the file exist locally. If it doesn't then the entry is removed from the astdb. I'm not sure if it would be any faster, but as a workaround you could try removing items from the database manually using CLI commands [1]. Maybe in smaller chunks over time from a separate thread/process.

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+Internal+Database

> 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