Skip to content
This repository was archived by the owner on Oct 19, 2024. It is now read-only.
This repository was archived by the owner on Oct 19, 2024. It is now read-only.

Cannot execute bundle #100

@petrjanda

Description

@petrjanda

I've just started new server to test recap. Ran into this issue:

cap deploy:setup
  * 2014-02-08 13:47:32 executing `deploy:setup'
    triggering before callbacks for `deploy:setup'
  * 2014-02-08 13:47:32 executing `preflight:check'
  * executing "id backoffice > /dev/null 2>&1; echo $?"
    servers: ["37.139.3.200"]
    [37.139.3.200] executing command
    command finished in 345ms
  * executing "id -g backoffice > /dev/null 2>&1; echo $?"
    servers: ["37.139.3.200"]
    [37.139.3.200] executing command
    command finished in 171ms
  * executing "git config user.name || true"
    servers: ["37.139.3.200"]
    [37.139.3.200] executing command
    command finished in 180ms
  * executing "git config user.email || true"
    servers: ["37.139.3.200"]
    [37.139.3.200] executing command
    command finished in 212ms
  * executing "groups"
    servers: ["37.139.3.200"]
    [37.139.3.200] executing command
    command finished in 126ms
    triggering after callbacks for `preflight:check'
  * 2014-02-08 13:47:33 executing `ruby:preflight'
  * executing "grep rails /home/backoffice/app/Gemfile > /dev/null 2>&1; echo $?"
    servers: ["37.139.3.200"]
    [37.139.3.200] executing command
    command finished in 133ms
  * 2014-02-08 13:47:34 executing `bundle:check_installed'
  * executing "sudo -p 'sudo password: ' su - backoffice -c 'cd . && bundle --version > /dev/null 2>&1'; echo $?"
    servers: ["37.139.3.200"]
    [37.139.3.200] executing command
Password:
    command finished in 1774ms
The application user 'backoffice' cannot execute `bundle`.  Please check you have bundler installed.

If i ssh to server using my account I am able to execute failing command successfully:

petr@prehash:~$ sudo -p 'sudo password: ' su - backoffice -c 'cd . && bundle --version > /dev/null 2>&1'; echo $?
0

If i login to backoffice acccount (application user). I am able to do:

petr@prehash:~$ sudo su backoffice
$ bundle
Could not locate Gemfile
$ ruby -v
ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-linux]

Which seems to be fine. I've tried to install ruby to the system, rvm and rbenv. All ending with the same error. Obviously I am missing something.

Thx for any hint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions