-
Notifications
You must be signed in to change notification settings - Fork 256
Troubleshooting
*** Installing Pow...
*** Installing local configuration files...
/Users/<user>/Library/Application Support/Pow/Current/bin/pow:5:in `exec': Bad CPU type in executable - /Users/<user>/Library/Application Support/Pow/Versions/0.2.2/bin/node (Errno::E086)
from /Users/<user>/Library/Application Support/Pow/Current/bin/pow:5
The installer includes a node binary only for 64-bit machines. You'll need to install Pow from source.
Verify the resolver is registered with scutil --dns
.
$ scutil --dns
...
resolver #9
domain : dev
nameserver[0] : 127.0.0.1
port : 20560
-
If you don't see an entry for dev, try touching the resolver file.
$ touch /etc/resolver/dev
-
Also, try turning off and on your computer's AirPort.
-
Verify that port forwarding is enabled in the system firewall (OS X Mavericks):
sysctl -w net.inet.ip.fw.enable=1
-
Yosemite Note: If this still doesn't work, enable port forwarding manually:
sudo pfctl -f /etc/pf.conf; sudo pfctl -e
$ curl project.dev
curl: (7) Failed to connect to project.dev port 80: Connection refused
This should help: https://github.com/basecamp/pow/issues/452
Make sure you've tried steps 1 through 3 above. If those aren't working, try restarting your computer. It helps!
If you set export POW_DOMAINS=dev,local
in your ~/.powconfig
, you'll need to rerun the installer to recreate the necessary resolver files.
This is due to a bug in the OS X resolver system.
As a workaround, you can create an Ad-Hoc Wifi Network or add the hosts to your /etc/hosts
file (perhaps with powder).
See the discussion about this issue.
- Uninstall pow
- Remove the directory
rm -rf ~/.pow
- Install pow
See the discussion about this issue.
SystemExit: exit
../lib/bundler/setup.rb:10:in `exit'
../lib/bundler/setup.rb:10
../rubygems/custom_require:58:in `gem_original_require'
../rubygems/custom_require:58:in `require'
config.ru:2
Bundler errors will cause you app to exit with a useless backtrace. Run bundle check
and ruby config/environment.rb
to get the full trace.
LoadError: no such file to load -- bundler/setup
Is usually means that the wrong version of ruby is being used. See the RVM troubleshooting section.
See: https://github.com/basecamp/pow/issues/271#issuecomment-5017954
As per thatothermitch's answer on the thread above: ...dumping the rvm environment into the .powenv file from the .rvmrc:
rvm env -- [ruby]@[gemset] > .powenv
https://github.com/basecamp/pow/issues/271#issuecomment-5017954
Pow can’t start your application.
.../project1 raised an exception during boot.
Gem::LoadError: You have already activated ..., but your Gemfile requires .... Consider using bundle exec.
Your config.ru should start with something like...
require 'rubygems'
require 'bundler'
Bundler.setup
Create a .rvmrc
at your project root. See rvmrc docs.
This worked for me in rvm 1.18.0 (stable).
In the terminal do this.
rvm use ruby-whatever
cd /my/rails/rack/app/root/
rvm rvmrc create
rvm rvmrc trust
Another possibility is that you upgraded RVM to a newer version that (for some reason unknown to this writer) causes the wrong gems to be picked up. The workaround solution is then to downgrade RVM again with rvm get 1.9.2
or similar. (In this writer's case, 1.11.3 broke and 1.9.2 worked).
If you have a system-wide RVM install and are getting the error LoadError: no such file to load -- bundler/setup
, run rvm info
to find out where rvm is installed on your machine, then do this:
echo "export POW_RVM_PATH=/usr/local/rvm/scripts/rvm" >> ~/.powconfig
Where /usr/local/rvm/
is the location of your rvm installation.
Then restart POW by killing it in the Activity Monitor or in Terminal.
"LoadError: cannot load such file -- bundler/setup"
Fix:
rvm env > ~/.powconfig
Symptom: LoadError: no such file to load -- bundler/setup
Preconditions: A default Ruby version has been selected using RVM. Your application doesn't have a .rvmrc
file.
Solution: Move the line that loads RVM from ~/.zshrc
to ~/.zshenv
and restart pow
by killing the process.
Explanation: .zshrc
is only loaded for interactive sessions, so RVM is not available, so Pow uses system Ruby instead of default Ruby.
If you specify your Ruby version and gemset in a Gemfile (rather than .rvmrc
), you'll need to modify your .powrc
file like so:
if [ -f "$rvm_path/scripts/rvm" ]; then
source "$rvm_path/scripts/rvm"
rvm use .
fi
Symptom: LoadError: no such file to load -- bundler/setup
or LoadError: cannot load such file -- bundler/setup
Solution: Add this to your ~/.powconfig
export PATH="$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH"
or if you installed rbenv through Brew and don't have a ~/.rbenv:
export PATH="/usr/local/opt/rbenv/shims:/usr/local/opt/rbenv/bin:$PATH"
Source: https://github.com/37signals/pow/issues/202#issuecomment-2640707
You may also have to remove .ruby-version
from your home directory, see issue #363.
If rbenv can't find the right version (it's using the system ruby by default), drop the following into ~/.powconfig
:
export HOME=/Users/[YOUR USERNAME]
export PATH="$HOME/.rbenv/shims:$HOME/.rbenv/bin:/usr/local/bin:$PATH"
Try using a different Rack server to see if the issue is isolated to Pow.
cd path/to/your/app
rackup -p 3000
Verify that rackup
boots and is accessible over localhost:3000
.
config.ru: Ensure that the config file has the appropriate requires for bundler/setup and rubygems.
require 'rubygems'
require 'bundler/setup'
There is some issue where it seems Pow won't start correctly when installed in iTerm2 or perhaps in tmux.
The writer only got it working again by installing outside of tmux in Terminal.app.
By "won't start correctly", I mean:
-
curl said "couldn't connect to host"
-
ps aux | grep pow
didn't list it -
reinstalling in iTerm or tmux in Terminal said
*** Performing self-test... !!! Couldn't find a running Pow server on port 20559