Project

General

Profile

Bug #14483

Foreman not starting after update to 1.11 on Debian 8.4

Added by Matthias Wohlgemuth almost 4 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Debian/Ubuntu
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

After the update Foreman from 1.10 to 1.11, the stand-alone server was not starting anymore.
Manually starting foreman gives:

foreman@hostname:~$ bundle exec rails server 
Usage:
  rails new APP_PATH [options]

Options:
  -r, [--ruby=PATH]                                      # Path to the Ruby binary of your choice
                                                         # Default: /usr/bin/ruby
...

After running

foreman@hostname:~$ bundle exec rake rails:update:bin

and changing the init script accordingly to:

@@ -23,7 +23,7 @@
 FOREMAN_PID=${FOREMAN_PID:-"${FOREMAN_HOME}/tmp/pids/server.pid"}

 DAEMON="/usr/bin/bundle" 
-DAEMON_OPTS="exec rails server -b ${FOREMAN_IFACE} -p ${FOREMAN_PORT} -e ${FOREMAN_ENV} -d" 
+DAEMON_OPTS="exec bin/rails server -b ${FOREMAN_IFACE} -p ${FOREMAN_PORT} -e ${FOREMAN_ENV} -d" 

 . /lib/init/vars.sh
 . /lib/lsb/init-functions

the server starts again.

I sugguest this to be patched in future versions.


Related issues

Related to Foreman - Refactor #12892: move rails binaries to /bin directoryClosed2015-12-21

Associated revisions

Revision 0839c4d6 (diff)
Added by Dominic Cleal almost 4 years ago

fixes #14483 - package and use bin/rails to launch standalone server

History

#1 Updated by Dominic Cleal almost 4 years ago

  • Project changed from Foreman to Packaging
  • Category set to Debian/Ubuntu
  • Legacy Backlogs Release (now unused) set to 141

The bin/ dir is shipped in the Foreman tarball, so it can just be copied to /usr/share/foreman to save running the rake task.

#2 Updated by Dominic Cleal almost 4 years ago

#3 Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Dominic Cleal
  • Pull request https://github.com/theforeman/foreman-packaging/pull/1079 added

#4 Updated by Dominic Cleal almost 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF