Project

General

Profile

Actions

Bug #14483

closed

Foreman not starting after update to 1.11 on Debian 8.4

Added by Matthias Wohlgemuth about 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Debian/Ubuntu
Target version:
Difficulty:
Triaged:
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 1 (0 open1 closed)

Related to Foreman - Refactor #12892: move rails binaries to /bin directoryClosedOhad Levy12/21/2015Actions
Actions #1

Updated by Dominic Cleal about 8 years ago

  • Project changed from Foreman to Packaging
  • Category set to Debian/Ubuntu
  • translation missing: en.field_release 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.

Actions #2

Updated by Dominic Cleal about 8 years ago

Actions #3

Updated by The Foreman Bot about 8 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
Actions #4

Updated by Dominic Cleal about 8 years ago

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

Also available in: Atom PDF