الفرق بين المراجعتين لصفحة «مشاكل متكررة في بندورا»
اذهب إلى التنقل
اذهب إلى البحث
ط (تصحيح لفظ التصنيف) |
(مشكلة 2، ظهرت بعد 1) |
||
| سطر 11: | سطر 11: | ||
i.files.filter(is_video=True).update(available=False, wanted=True) | i.files.filter(is_video=True).update(available=False, wanted=True) | ||
</div> | </div> | ||
| + | |||
| + | == خطأ request returned error, will try again in 5 seconds أثناء الرفع== | ||
| + | في Debug يظهر في View Error Logs: | ||
| + | ValueError: The 'video' attribute has no file associated with it. | ||
| + | == ValueError: The 'video' attribute has no file associated with it. == | ||
| + | j^ قال أن المشكلة كانت: | ||
| + | the encoding process was somehow stuck and locked the python-ox files db, that caused uploads to fail since it could not save the stream | ||
| + | الحل المقترح إعادة تشغير المرمز: | ||
| + | service pandora-encoding restart | ||
[[تصنيف:بندورة]] | [[تصنيف:بندورة]] | ||
مراجعة 17:13، 17 مارس 2013
كيف نجبر إعادة تحميل ملفات معينة
لإجبار بندورة على إعادة تحميل ملفات معينة، نقوم بإختيار الفيديو الذي ننوي إعادة تحميل الملفات به: مثلا، إذا كان الفيديو يمعرف بالمعرف AB:
باستخدام
./manage.py shell
import item.models i = item.models.Item.objects.filter(itemId='AB')[0] i.files.filter(is_video=True).update(available=False, wanted=True)
خطأ request returned error, will try again in 5 seconds أثناء الرفع
في Debug يظهر في View Error Logs:
ValueError: The 'video' attribute has no file associated with it.
ValueError: The 'video' attribute has no file associated with it.
j^ قال أن المشكلة كانت: the encoding process was somehow stuck and locked the python-ox files db, that caused uploads to fail since it could not save the stream الحل المقترح إعادة تشغير المرمز:
service pandora-encoding restart