Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default instructions fail on OSX #1

Open
roughcut opened this issue Nov 19, 2012 · 3 comments
Open

Default instructions fail on OSX #1

roughcut opened this issue Nov 19, 2012 · 3 comments

Comments

@roughcut
Copy link

Following the instructions here (https://devcenter.heroku.com//articles/proximo#determining-your-static-ip-address) with Rails 3.2.9, Ruby 1.9.3 on OSX yields the following:

india:roughcut (dev) dr jm$ foreman start
10:31:31 web.1  | started with pid 80093
10:31:31 web.1  | You must first install Proximo:
10:31:31 web.1  | heroku addons:add proximo:development
10:31:31 web.1  | readlink: illegal option -- f
10:31:31 web.1  | usage: readlink [-n] [file ...]
10:31:31 web.1  | usage: dirname path
10:31:31 web.1  | usage: dirname path
10:31:31 web.1  | Proxying traffic bound for 0.0.0.0/0 via Proximo host :1080
10:31:31 web.1  | /Users/pivotal/workspace/roughcut/bin/proximo: line 35: /vendor/dante/socks.conf: No such file or directory
10:31:31 web.1  | cat: /vendor/dante/socks.conf.template: No such file or directory
10:31:31 web.1  | chmod: /vendor/dante/bin/*: No such file or directory
10:31:31 web.1  | /Users/pivotal/workspace/roughcut/bin/proximo: line 42: /vendor/dante/bin/socksify: No such file or directory
10:31:31 web.1  | /Users/pivotal/workspace/roughcut/bin/proximo: line 42: exec: /vendor/dante/bin/socksify: cannot execute: No such file or directory
10:31:31 web.1  | exited with code 126
10:31:31 system | sending SIGTERM to all processes
SIGTERM received

This is because readlink -f $0 is not a valid command on OSX and the installed bin/proximo is not a soft link but rather an executable, so readlink bin/proximo would return nothing anyways (when assigning a value to $DANTE_DIR) -- so dante/socks.conf is not found.

The initial error "You must first install Promixo" is because the PROXIMO_URL environment variable is not being set by Heroku for some reason. Manually specifying it gets us past this error but not the readlink error(s).

Thanks!

@roughcut
Copy link
Author

We had to perform the following steps to get proximo working:

  1. Removing readlink -f from bin/proximo shell script
  2. Add the environment variable PROXIMO_URL locally on our development box.

@chuckg
Copy link

chuckg commented May 13, 2013

+1, I can confirm this issue.

@sainejob
Copy link

sainejob commented Dec 3, 2013

+1, confirmed again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants