linode 이미지에서 게시물을 수정할 때 발생하는 문제

유사한 문제입니다. 게시물을 수정하려고 하면 500 오류가 발생합니다.

Started PUT "/t/tutoriel-fiches-modeles/21195" for xxxxx.142 at 2022-11-15 11:20:30 +0000
Processing by TopicsController#update as */*
  Parameters: {"title"=>"Tutoriel : \"Fiches modèles\"", "tags"=>[], "featuredLink"=>nil, "category_id"=>5, "slug"=>"tutoriel-fiches-modeles", "topic_id"=>"21195", "topic"=>{"title"=>"Tutoriel : \"Fiches modèles\"", "category_id"=>5}}
Completed 200 OK in 136ms (Views: 0.6ms | ActiveRecord: 0.0ms | Allocations: 3960)
Started PUT "/posts/64949" for 81.245.109.142 at 2022-11-15 11:20:30 +0000
Processing by PostsController#update as */*
  Parameters: {"post"=>{"edit_reason"=>"", "image_sizes"=>{"https://xxxxxx/uploads/default/original/1X/c6358a5df899b5d4a02afa831b1dde70ccf9826c.jpeg"=>{"width"=>"480", "height"=>"360"}}, "cooked"=>"\n        <p>Voici un petit t>
Completed 500 Internal Server Error in 470ms (ActiveRecord: 0.0ms | Allocations: 21862)
Redis::CommandError (ERR Error running script (call to f_59f11a23aa67ac7571a445b8f005b3ef4bb0c5f8): @user_script:11: ERR value is not an integer or out of range)
lib/discourse_redis.rb:190:in `eval'
lib/rate_limiter.rb:162:in `rate_limiter_allowed?'
lib/rate_limiter.rb:122:in `performed!'
lib/post_revisor.rb:579:in `perform_edit'
lib/post_revisor.rb:395:in `revise_and_create_new_version'
lib/post_revisor.rb:299:in `revise_post'
lib/post_revisor.rb:211:in `block in revise!'
lib/post_revisor.rb:210:in `revise!'
app/controllers/posts_controller.rb:264:in `update'
app/controllers/application_controller.rb:413:in `block in with_resolved_locale'
app/controllers/application_controller.rb:413:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:71:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:368:in `call'
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/enforce_hostname.rb:23:in `call'
lib/middleware/request_tracker.rb:202:in `call'

공식 Discourse 설치 방식을 사용하고 계신가요?

기억이 정확하다면, 제 서버가 Linode에 호스팅되어 있어서 Linode 마켓플레이스에서 제공하는 이미지를 사용했습니다. 인스턴스를 설정하는 가장 빠르고 간단한 방법이었기 때문입니다. 해당 인스턴스는 정기적으로 최신 메이저 버전으로 업데이트되며, Keycloak openid 플러그인을 통해 우리의 SSO 솔루션과 연결되어 있습니다. 모든 것을 다시 구축해 보았지만 아무런 변화가 없었습니다.

이것은 새 인스턴스가 아닙니다. 현재 포럼은 2020년 말부터 운영되고 있습니다.

우리는 편집에 대한 매개변수를 다음과 같이 설정했습니다:

게시글 편집 시간 제한: 1440 (1일)

tl2 게시글 편집 시간 제한: 7200 (5일)

해당 버그가 발생한 사용자의 신뢰 수준은 2: 멤버(member)였습니다.
그가 편집하려고 한 게시글은 24시간 미만으로 신선했습니다.
그리고 저는 관리자(Admin)로 해당 게시글을 성공적으로 편집했습니다.
아직도 원인을 파악하지 못했습니다.

미리 감사드립니다.

Gaël

공식 이미지로 마이그레이션해야 합니다. 불행히도 구형 Linode 이미지는 ‘지원 안 됨’ 카테고리에 속합니다.