I'm getting an intermittent issue where I'm getting

The video conversion process has failed. You might want to submit a simpler video format like mpeg or divx avi.
If the problem persists contact your website administrator. Please check logs for futher debugging.

after a postback from Zencoder. Originally there were videos with status 5 in the video_queue table that were successful in Zencoder's dashboard, but now they are just coming back and showing the error without having the 5 in the table. The work around is to clear the cache. We handle a lot of videos so clearing the cache manually is not ideal, I installed cache_actions and setup a rule to clear the node and file caches for now as a work around. I'll try to figure out what's happening as I have to update a custom video formatter module anyway and so I'll be digging around to see what's changed.

EDIT: My workaround isn't working, I've had to go back to clearing the cache manually.

CommentFileSizeAuthor
#12 cache_clear_all.patch1.41 KBjpstrikesback

Comments

jpstrikesback’s picture

Seeing this as well

jpstrikesback’s picture

Priority: Normal » Major
Jorrit’s picture

Status: Active » Postponed (maintainer needs more info)

Are there any error messages in the Drupal error log or the webserver error log?

jpstrikesback’s picture

Status: Active » Postponed (maintainer needs more info)

Got a patch coming for this in a minute, just getting some others together for field collection issues. There are no errors because I believe what is happening is that the cache_clear_all() doesn't get the right caches on the first try leaving the filesize @ 0, then on any subsequent attempts to re-encode there is a return call if a thumbnail has been set already, which doesn't allow the cache clear to happen.
Putting drupal_flush_all_caches() in would work but is rather brute. If an encode does fail for a good reason but makes a thumbnail the following return will never allow a good encode to show until a full cache clear happens (until we figure out which cache - probably the files, holds the keys):

    // Skip setting the thumbnail if there are no thumbnails or when the current value is already valid
    $currentthumb = isset($entity->{$fieldname}[$langcode][$delta]['thumbnail']) ? intval($entity->{$fieldname}[$langcode][$delta]['thumbnail']) : 0;
    if (empty($thumbs) || isset($thumbs[$currentthumb])) {
      return;
    }
jpstrikesback’s picture

Status: Postponed (maintainer needs more info) » Active
jpstrikesback’s picture

Status: Postponed (maintainer needs more info) » Active

Simply moving the cache_clear_all() above the return statement mentioned above (and adding the rather aggressive and performance killing drupal_flush_all_caches() until we nail down the proper cache to clear) fixes this

jpstrikesback’s picture

It appears that Entity Cache is causing the issue for me! I haven't grok'd it but It sets up a bunch of cache tables including files that seem to mess with the field cache clear unless they are also cleared...

Jorrit’s picture

On what kind of entities did you add your videos?

jpstrikesback’s picture

They were added to a field collection that was attached to a node.

Jorrit’s picture

Status: Active » Postponed (maintainer needs more info)

In that case, you suffered from the same bug as described in #1721282: Fix for Notice & Warnings: Field Collections and other entities: could you try to use the latest -dev release?

dlumberg’s picture

I tried the latest dev and this problem is still there.

jpstrikesback’s picture

StatusFileSize
new1.41 KB

@Dlumberg: If you have Entity Cache Module enabled, disable it and uninstall it. If that does nothing try this patch afterwards:

Jorrit’s picture

I have committed your patch. 7.x-2.x-dev will be rebuilt within 12 hours.

Jorrit’s picture

Status: Postponed (maintainer needs more info) » Fixed
dlumberg’s picture

Disabling entity_cache fixed the problem, thanks.

Jorrit’s picture

I am more interested to know if the latest 7.x-2.x-dev fixed it. Could you try to check that?

dlumberg’s picture

I updated to 7.x-2.7+18-dev and there was no change so I then disabled the entity_cache module and that combination worked. Did you want me to dl the dev again and test it with entity cache?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Clarifying that my workaround isn't working.