redmine4.1service启动报错 shell命令启动正常
环境:centos7.8
ruby 2.4.9
安装基本参照官方设置
直接用命令启动
/usr/local/rvm/gems/ruby-2.4.9/bin/puma -b tcp://127.0.0.1:9292 -e production

redmine可以正常进入

但是如果把这些写入service文件,通过systemctl start redmine.service启动
[Unit]
Description=Redmine
After=nginx.service
[Service]
Environment=RAILS_ENV=production
Type=simple
WorkingDirectory=/data/wwwroot/redmine
ExecStart=/usr/local/rvm/gems/ruby-2.4.9/bin/puma -b tcp://127.0.0.1:9292 -e production
User=redmine
[Install]
WantedBy=multi-user.target
===错误如下
Oct 21 10:38:41 iZj6c9tbls4i7mkurfz0syZ systemd[1]: Started Redmine.
Oct 21 10:38:41 iZj6c9tbls4i7mkurfz0syZ puma[22210]: /usr/share/rubygems/rubygems/dependency.rb:296:in `to_specs': Could not find 'puma' (>= 0.a) among 6 total gem(s) (Gem::LoadError)
Oct 21 10:38:41 iZj6c9tbls4i7mkurfz0syZ puma[22210]: from /usr/share/rubygems/rubygems/dependency.rb:307:in `to_spec'
Oct 21 10:38:41 iZj6c9tbls4i7mkurfz0syZ puma[22210]: from /usr/share/rubygems/rubygems/core_ext/kernel_gem.rb:47:in `gem'
Oct 21 10:38:41 iZj6c9tbls4i7mkurfz0syZ puma[22210]: from /usr/local/rvm/gems/ruby-2.4.9/bin/puma:25:in `<main>'
Oct 21 10:38:41 iZj6c9tbls4i7mkurfz0syZ puma[22210]: from /usr/bin/ruby_executable_hooks:24:in `eval'
Oct 21 10:38:41 iZj6c9tbls4i7mkurfz0syZ puma[22210]: from /usr/bin/ruby_executable_hooks:24:in `<main>'
Oct 21 10:38:41 iZj6c9tbls4i7mkurfz0syZ systemd[1]: redmine.service: main process exited, code=exited, status=1/FAILURE
Oct 21 10:38:41 iZj6c9tbls4i7mkurfz0syZ systemd[1]: Unit redmine.service entered failed state.
Oct 21 10:38:41 iZj6c9tbls4i7mkurfz0syZ systemd[1]: redmine.service failed.
直接在shell命令启动一切正常,请教一下
ruby 2.4.9
安装基本参照官方设置
直接用命令启动
/usr/local/rvm/gems/ruby-2.4.9/bin/puma -b tcp://127.0.0.1:9292 -e production

redmine可以正常进入

但是如果把这些写入service文件,通过systemctl start redmine.service启动
[Unit]
Description=Redmine
After=nginx.service
[Service]
Environment=RAILS_ENV=production
Type=simple
WorkingDirectory=/data/wwwroot/redmine
ExecStart=/usr/local/rvm/gems/ruby-2.4.9/bin/puma -b tcp://127.0.0.1:9292 -e production
User=redmine
[Install]
WantedBy=multi-user.target
===错误如下
Oct 21 10:38:41 iZj6c9tbls4i7mkurfz0syZ systemd[1]: Started Redmine.
Oct 21 10:38:41 iZj6c9tbls4i7mkurfz0syZ puma[22210]: /usr/share/rubygems/rubygems/dependency.rb:296:in `to_specs': Could not find 'puma' (>= 0.a) among 6 total gem(s) (Gem::LoadError)
Oct 21 10:38:41 iZj6c9tbls4i7mkurfz0syZ puma[22210]: from /usr/share/rubygems/rubygems/dependency.rb:307:in `to_spec'
Oct 21 10:38:41 iZj6c9tbls4i7mkurfz0syZ puma[22210]: from /usr/share/rubygems/rubygems/core_ext/kernel_gem.rb:47:in `gem'
Oct 21 10:38:41 iZj6c9tbls4i7mkurfz0syZ puma[22210]: from /usr/local/rvm/gems/ruby-2.4.9/bin/puma:25:in `<main>'
Oct 21 10:38:41 iZj6c9tbls4i7mkurfz0syZ puma[22210]: from /usr/bin/ruby_executable_hooks:24:in `eval'
Oct 21 10:38:41 iZj6c9tbls4i7mkurfz0syZ puma[22210]: from /usr/bin/ruby_executable_hooks:24:in `<main>'
Oct 21 10:38:41 iZj6c9tbls4i7mkurfz0syZ systemd[1]: redmine.service: main process exited, code=exited, status=1/FAILURE
Oct 21 10:38:41 iZj6c9tbls4i7mkurfz0syZ systemd[1]: Unit redmine.service entered failed state.
Oct 21 10:38:41 iZj6c9tbls4i7mkurfz0syZ systemd[1]: redmine.service failed.
直接在shell命令启动一切正常,请教一下
...全文
相关推荐
Redmine Service v2.x.x 后台服务
将 Redmine 设置成系统后台运行。直接放在 Redmine 安装目录启动即可。 支持 2.x.x 版本
vagrant-redmine:Redmine安装指南(在Centos 7上用Redmine 3.4.2进行了测试)
vagrant-redmine:Redmine安装指南(在Centos 7上用Redmine 3.4.2进行了测试)
Windows下Redmine1.1.1的配置清单.doc
Redmine1.1.1 少见的开源项目管理利器。
Windows下安装Redmine教程
Redmine配置方法,添加系统服务,其中也有win7的配置方法
Redmine Service
将 Redmine 设置成系统后台运行。直接放在 Redmine 安装目录启动即可。


