الفرق بين المراجعتين لصفحة «مشاكل متكررة في بندورا»
من ويكي أضِف
(إجبار إعادة تحميل ملفات) |
(+ دمج في Pandora Knowledge base (Project J)) |
||
| (مراجعتان متوسطتان بواسطة نفس المستخدم غير معروضتين) | |||
| سطر 1: | سطر 1: | ||
| + | {{دمج في|Pandora Knowledge base (Project J)}} | ||
== كيف نجبر إعادة تحميل ملفات معينة == | == كيف نجبر إعادة تحميل ملفات معينة == | ||
| سطر 11: | سطر 12: | ||
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 | ||
| + | [[تصنيف:بندورة]] | ||
المراجعة الحالية بتاريخ 19:45، 27 مارس 2014
كيف نجبر إعادة تحميل ملفات معينة
لإجبار بندورة على إعادة تحميل ملفات معينة، نقوم بإختيار الفيديو الذي ننوي إعادة تحميل الملفات به: مثلا، إذا كان الفيديو يمعرف بالمعرف 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