dirien
(Engin Diri)
14 يونيو 2021، 5:45ص
1
مرحباً بالجميع،
لقد صادفنا مشكلة غريبة.
إعداداتنا:
Discourse: 2.8.0.beta2
S3: Minio
CDN: Myra
تم تكوين S3 على النحو التالي:
root@assets-prod-app01:~# sudo -u minio mc admin policy info minio readwrite-discourse
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListBucketMultipartUploads",
"s3:GetBucketLocation",
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::discourse"
]
},
{
"Effect": "Allow",
"Action": [
"s3:*"
],
"Resource": [
"arn:aws:s3:::discourse/*"
]
}
]
}
لكننا نواجه دائماً عند التعديل رسالة الخطأ التالية
في ملفات السجلات نلاحظ ما يلي
Aws::S3::Errors::NotImplemented (رأسية قدمتها تشير إلى وظيفة غير مطبقة)
lib/file_store/s3_store.rb:279:in `update_ACL'
lib/file_store/s3_store.rb:209:in `update_upload_ACL'
...
هل هناك إعداد لم نأخذه في الاعتبار، أم أن Minio غير متوافق مع Discourse؟
أي تلميح سيكون موضع ترحيب، حيث نواجه بعض الضغط من مستخدمينا
شكراً مقدماً
dirien
(Engin Diri)
22 يونيو 2021، 4:24ص
2
هل هذا الإعداد غير شائع لدرجة كهذه؟
أقدر أي توجيهات حول ما يجب النظر فيه بتفصيل أكثر أو ما الذي يجب تغييره؟ @Falco في الوقت الحالي، نحن عالقون تمامًا…
Falco
(Falco)
22 يونيو 2021، 4:55م
3
هل قمت بتفعيل إعداد الموقع secure_uploads؟ لن يعمل ذلك مع MinIO على الإطلاق .
Falco
(Falco)
22 يونيو 2021، 9:01م
5
هل تم إعداد S3 كما هو موضح في الوثائق الموجودة في استخدام التخزين الكائني للرفع (S3 والنسخ) ؟
dirien
(Engin Diri)
1 يوليو 2021، 5:03ص
7
عذراً على الإزعاج، لكن هل يمكنك اكتشاف أي شيء؟
dirien
(Engin Diri)
8 يوليو 2021، 5:32ص
8
مرحبًا، هل لديك أي أفكار؟ آسف للإزعاج…
مرحبًا،
لقد قمت اليوم بالترقية إلى الإصدار 2.8.0.beta2، ونفس الخطأ يظهر:
فقط قم باختيار secure_media، وسيعمل minio مرة أخرى.
Falco
(Falco)
8 يوليو 2021، 3:50م
10
@pmusaraj / @martin يبدو أن هناك انتكاسة ناتجة عن
master ← issue/update-upload-secure-status-on-post-revision
merged 03:32AM - 21 May 21 UTC
When uploads are created from the composer (editing or creating a post),
for si… tes with secure uploads enabled we assume security by default and
that new upload is set to secure. When the post is created, we then
check whether the post uploads _actually_ need to be secure and adjust
accordingly.
We were not doing this when revising a post, so when a new upload was
created when editing a post in a public topic, the secure status stayed
true erroneously causing issues with image previews, among other things.
التي لم تأخذ في الاعتبار نفس الأشياء التي تم إصلاحها بواسطة
committed 04:20PM - 25 Nov 19 UTC
In `post_creator`, the ACL update is only necessary when uploads need to be secu… red.
This should fix a regression with S3 clones that do not support updating ACLs.
لذلك يقوم post_creator بما يلي:
و models/post:
"topic_tag_changed.added_and_removed",
added: tag_list_to_raw(added),
removed: tag_list_to_raw(removed),
)
elsif added.present?
I18n.t("topic_tag_changed.added", added: tag_list_to_raw(added))
elsif removed.present?
I18n.t("topic_tag_changed.removed", removed: tag_list_to_raw(removed))
end
end
def self.tag_list_to_raw(tag_list)
tag_list.sort.map { |tag_name| "##{tag_name}" }.join(", ")
end
# Revises a post with the given fields and options.
#
# @param editor [User] The user performing the revision
# @param fields [Hash] Hash of fields to update
# @param opts [Hash] Optional parameters for the revision
# @option opts [Time] :revised_at Changes the date of the revision
إعجاب واحد (1)
martin
(Martin Brennan)
9 يوليو 2021، 12:18ص
12
تم بالفعل إصلاح هذه المشكلة لأسباب تتعلق بالأداء، ومن المفترض أن يحل أيضًا مشكلتك:
committed 04:15PM - 21 Jun 21 UTC
When secure uploads are enabled, editing a post with many uploads can
cause a t… imeout because the store has to be contacted for each upload.
مع أنني سأقوم بإجراء إصلاح في المهمة بحيث تتوقف مبكرًا إذا كانت الوسائط الآمنة معطّلة.
في الواقع، لا يمكنني القيام بالأمر أعلاه لأننا نريد أن تُعلَّم تحميلات المنشورات بأنها غير آمنة إذا كانت الوسائط الآمنة معطّلة، أو إذا نُقل المنشور إلى فئة أخرى. بدلًا من ذلك، سأضيف إصلاحًا لالتقاط خطأ Aws::S3::Errors::NotImplemented عند تنفيذ Discourse.store.update_upload_ACL(self). وبهذه الطريقة، لن يواجه العملاء الذين لا يدعمون قوائم التحكم بالوصول الخاصة (private ACLs) أي مشكلة.
تعديل: دمجت هذا الإصلاح اليوم، وأرجو أن يساعد FIX: Handle storage providers not implementing ACLs by martin-brennan · Pull Request #13675 · discourse/discourse · GitHub . أعتقد أننا سنطلق نسخة تجريبية جديدة الأسبوع المقبل أيضًا.
3 إعجابات
Falco
(Falco)
تم إغلاقه في
12 يوليو 2021، 11:00ص
13
تم إغلاق هذا الموضوع تلقائيًا بعد 3 أيام. لم تعد الردود الجديدة مسموحًا بها.