redmine插件安裝及卸載

news/2024/7/9 20:57:43 标签: postgresql, ruby, 数据库, redmine, linux

redmine插件安裝及卸載

  • redmine plugin安裝
  • redmine plugin解除安裝
  • Troubleshooting
    • PG::ConnectionBad: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused

redmine_plugin_1">redmine plugin安裝

cd <redmine_dir>
bundle install
RAILS_ENV=production bundle exec rake db:migrate
RAILS_ENV=production bundle exec rake redmine:plugins:migrate NAME=<plugin_name>
systemctl restart apache2

redmine_plugin_11">redmine plugin解除安裝

Revert all db operations:

cd <redmine_dir>
RAILS_ENV=production bundle exec rake redmine:plugins:migrate NAME=<plugin_name> VERSION=0

Delete the folder of your plugin and then restart:

systemctl restart apache2

Troubleshooting

PG::ConnectionBad: connection to server at “localhost” (127.0.0.1), port 5432 failed: Connection refused

下`RAILS_ENV=production bundle exec rake db:migrate``時碰到如下錯誤:

root@xxx:/home/redmine/redmine# RAILS_ENV=production bundle exec rake db:migrate
rake aborted!
PG::ConnectionBad: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
        Is the server running on that host and accepting TCP/IP connections?
connection to server at "localhost" (::1), port 5432 failed: Cannot assign requested address
        Is the server running on that host and accepting TCP/IP connections?
/home/redmine/redmine/vendor/bundle/ruby/2.6.0/gems/pg-1.1.4/lib/pg.rb:56:in `initialize'
/home/redmine/redmine/vendor/bundle/ruby/2.6.0/gems/pg-1.1.4/lib/pg.rb:56:in `new'
/home/redmine/redmine/vendor/bundle/ruby/2.6.0/gems/pg-1.1.4/lib/pg.rb:56:in `connect'
/home/redmine/redmine/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/connection_adapters/postgresql_adapter.rb:692:in `connect'
/home/redmine/redmine/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/connection_adapters/postgresql_adapter.rb:223:in `initialize'
/home/redmine/redmine/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/connection_adapters/postgresql_adapter.rb:48:in `new'
/home/redmine/redmine/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/connection_adapters/postgresql_adapter.rb:48:in `postgresql_connection'
/home/redmine/redmine/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:830:in `new_connection'
/home/redmine/redmine/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:874:in `checkout_new_connection'
/home/redmine/redmine/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:853:in `try_to_checkout_new_connection'
/home/redmine/redmine/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:814:in `acquire_connection'
/home/redmine/redmine/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:538:in `checkout'
/home/redmine/redmine/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:382:in `connection'
/home/redmine/redmine/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:1033:in `retrieve_connection'
/home/redmine/redmine/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/connection_handling.rb:118:in `retrieve_connection'
/home/redmine/redmine/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/connection_handling.rb:90:in `connection'
/home/redmine/redmine/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/tasks/database_tasks.rb:172:in `migrate'
/home/redmine/redmine/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.5/lib/active_record/railties/databases.rake:60:in `block (2 levels) in <top (required)>'
/home/redmine/redmine/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/home/redmine/redmine/vendor/bundle/ruby/2.6.0/bin/ruby_executable_hooks:22:in `eval'
/home/redmine/redmine/vendor/bundle/ruby/2.6.0/bin/ruby_executable_hooks:22:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)

在已安裝postgresql的情況下,解決方式為:

service postgresql start

http://www.niftyadmin.cn/n/778353.html

相关文章

cmake linux模板 多目录_关于c ++:Linux编程中的多目录“ make”

假设我们有一个文件列表&#xff1a;src一种bC生成文件每个文件夹中都有许多.cc和.h文件。如何编写Makefile&#xff1f;当我写这样的路径时./a/a.cc或../a/a.cc将会发生错误。但是当我将文件放在同一目录中时并写为a.cc。一切都好。我在cygwin上运行。谁能帮我吗&#xff1f;发…

在Ubuntu中安裝Anaconda

在Ubuntu中安裝Anaconda前言Prerequisite下載安裝前言 在Ubuntu下安裝Anaconda很簡單&#xff0c;基本上只要照著Anaconda documentation - Installing on Linux裡的步驟做即可。 Prerequisite apt update -y apt install -y libgl1-mesa-glx libegl1-mesa libxrandr2 libxr…

树莓派python编程怎么运行_树莓派Python编程指南--第一章(起航--启动和运行)...

1.1 组装好你的树莓派组装工作之后再讲述控制二极管发光及关闭组装完成后&#xff0c;我们开始第一个例子&#xff1a;控制二极管发光及关闭的小程序一下内容保存在diode_on_off.py文件中import RPi.GPIO ad GPIO#不再提示警告GPIO.setwarnings(False)#设置GPIO模式为物理引脚G…

ffmpeg 拼接mp4_一文让你发现原来FFmpeg这么有意思

前言其实FFmpeg大家都耳熟能详的的一个东西了&#xff0c;知名的ijkplayer 就是有Bilibili开源出来的播放器也是基于FFmpeg做出来的。但是FFmpeg不仅仅止于音视频的播放裁剪功能&#xff0c;还能干些更有趣的事情&#xff0c;就比如说视频的画面拼接&#xff0c;对于一个Androi…

background复合属性顺序_一篇文章带你了解Css z-index(重叠顺序)

作者&#xff1a; IT共享者 来源&#xff1a; IT共享之家div cssz-index层重叠顺序div层、span层等html标签层重叠顺序样式z-index&#xff0c;平时CSS使用较少&#xff0c;但也会难免会碰到CSS z-index使用。从基础语法到应用案例教程讲解学习z-index。一、z-index语法与结构z…

Feature Pyramid Networks for Object Detection論文研讀與問題討論

Feature Pyramid Networks for Object Detection論文研讀與問題討論前言&#xff08;1&#xff09;背景介紹Featurized Image PyramidsFast & Faster R-CNN使用deep ConvNet固有的feature hierarchySingle Shot DetectorFeature Pyramid Network&#xff08;2&#xff09;相…

eigen 矩阵求逆_C++学习笔记——6. Eigen入门(矩阵运算及几何模块)

「本文介绍了C中Eigen库的代数运算模块和几何模块&#xff0c;以程序实例演示了常见指令用法。」Eigen是一个高层次开源C 库&#xff0c;有效支持线性代数、矩阵和矢量运算、数值分析及其相关算法。在SLAM或者VIO研究中&#xff0c;对Eigen库的使用可以说非常多&#xff0c;因此…

P3P Kneip - A Novel Parametrization of the Perspective-Three-Point Problem for a Direct Computation

P3P Kneip - A Novel Parametrization of the Perspective-Three-Point Problem for a Direct Computation of Absolute Camera Position and Orientation論文研讀 前言 Perspective-Three-Point (P3P)問題的目標是在已知P1,P2,P3P_1,P_2,P_3P1​,P2​,P3​三個三維點和對應的…