فشل الترقية عبر واجهة المستخدم الرسومية للويب مع هذا الخطأ:
INFO -- : cd /var/www/discourse & su discourse -c 'bundle exec rake db:migrate'
discourse@discourse ERROR: permission denied to create extension "unaccent"
discourse@discourse HINT: Must be superuser to create this extension.
discourse@discourse STATEMENT: CREATE EXTENSION IF NOT EXISTS unaccent
rake aborted!
PG::InsufficientPrivilege: ERROR: permission denied to create extension "unaccent"
HINT: Must be superuser to create this extension.
منذ فترة طويلة قمت بتحرير ملف app.yml الخاص بي، مما قد يكون سبب المشكلة:
templates:
# تم التعليق عليه لحل مشكلة مساحة القرص
#- "templates/postgres.template.yml"
- "templates/postgres.10.template.yml"
لقد أجريت هذا التغيير منذ فترة طويلة، لذا بخلاف هذا التعليق، لا أتذكر الوضع.
لقد تركت ذلك وشأنه وحاولت التراجع إلى إصدار Discourse الذي كان لدي قبل ظهور خطأ التحديث عن طريق تحرير إصدار app.yml إلى v2.8.0beta8 ولكنه يفشل مع
Pups::ExecError: cd /var/www/discourse & git checkout v2.8.0.beta8 failed with return #<Process::Status: pid 1843 exit 1>
Location of failure: /usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"code", "cmd"=>["git reset --hard", "git clean -f", "git remote set-branches --add origin main", "git remote set-branches origin $version", "git fetch --depth 1 origin $version", "git checkout $version", "mkdir -p tmp", "chown discourse:www-data tmp", "mkdir -p tmp/pids", "mkdir -p tmp/sockets", "touch tmp/.gitkeep", "mkdir -p /shared/log/rails", "bash -c \"touch -a /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log\"", "bash -c \"ln -s /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log $home/log\"", "bash -c \"mkdir -p /shared/{uploads,backups}\"", "bash -c \"ln -s /shared/{uploads,backups} $home/public\"", "bash -c \"mkdir -p /shared/tmp/{backups,restores}\"", "bash -c \"ln -s /shared/tmp/{backups,restores} $home/tmp\"", "chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp\"", "find public/plugins/ -maxdepth 1 -xtype l -delete"]}}
bootstrap failed with exit code 1
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
5b66f706de1a3ce8d78f0ed886669095c1a356efd916cb2ae8b02171367b0a01
لذا أعتقد أنني بحاجة إما إلى ترقية PostgreSQL من الإصدار 10، أو الرجوع إلى إصدار Discourse إلى 2.8.0beta8، وكلاهما يفشل. ماذا يجب أن أفعل؟