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

Unable to install #30

Closed
JustinAiken opened this issue Aug 1, 2016 · 5 comments
Closed

Unable to install #30

JustinAiken opened this issue Aug 1, 2016 · 5 comments

Comments

@JustinAiken
Copy link

JustinAiken commented Aug 1, 2016

Been going in circles trying to get this installed... Had pow before, removed it before starting.

Fail

jaiken@firefly ➜ ~  sudo puma-dev -cleanup                                                                                                                                                                                                                                                                 
* Expunged old puma dev system rules
* Fixed permissions of user LaunchAgent

jaiken@firefly ➜ ~  sudo puma-dev -uninstall                                                                                                                                                                                                                                                                   
* Removed puma-dev from automatically running
* Removed domain 'dev'

jaiken@firefly ➜ ~  sudo puma-dev -setup                                                                                                                                                                                                                                                                       
* Configuring /etc/resolver to be owned by jaiken

jaiken@firefly ➜ ~  puma-dev install                                                                                                                                                                                                                                                                           
2016/08/01 17:28:36 Unable to setup TLS cert: exit status 1

jaiken@firefly ಠ_ಠ ➜ ~

Versions:

  • OS: 10.11.5
  • Homebrew : Homebrew 0.9.9 (git revision a5a93; last commit 2016-07-31)
  • Pumadev: 0.7

resolver

jaiken@firefly ➜ ~  cat /etc/resolver/dev                                                                                                                                                                                                                                                                  
# Generated by puma-dev
nameserver 127.0.0.1
port 9253

puma-dev.log

Lots and lots and lots of Unable to expand dir: exit status 1's

@evanphx
Copy link
Member

evanphx commented Aug 2, 2016

Zionks! You've got rather strange environment. What shell are you using? Please try running puma-dev in the foreground and see what the output is. Those errors mean it can't figure out where your home directory is...

@JustinAiken
Copy link
Author

What shell are you using?

Just ZSH - the theme is based off the main Oh-My-ZSH one

Please try running puma-dev in the foreground and see what the output is. Those errors mean it can't figure out where your home directory is...

Running it in the foreground works as sudo it looks like, but after running it there, still can't run/install it non-sudo:

jaiken@firefly ➜ ~  puma-dev                                                                                                                                                                                                                                                                                   
2016/08/02 07:02:45 Unable to setup TLS cert: exit status 1

jaiken@firefly ಠ_ಠ ➜ ~  puma-dev -dir ~/.puma-dev                                                                                                                                                                                                                                                              
2016/08/02 07:02:52 Unable to setup TLS cert: exit status 1

jaiken@firefly ಠ_ಠ ➜ ~  sudo puma-dev                                                                                                                                                                                                                                                                          
* Directory for apps: /Users/jaiken/.puma-dev
* Domains: dev
* DNS Server port: 9253
* HTTP Server port: 9280
* HTTPS Server port: 9283
! Puma dev listening on http and https
^C! Shutdown requested

jaiken@firefly ➜ ~  puma-dev                                                                                                                                                                                                                                                                                   2016/08/02 07:04:58 Unable to setup TLS cert: exit status 1

jaiken@firefly ಠ_ಠ ➜ ~  puma-dev -install                                                                                                                                                                                                                                                                      
2016/08/02 07:05:15 Unable to install into system: exit status 1

@JustinAiken
Copy link
Author

JustinAiken commented Aug 2, 2016

Progress! I think I had done sudo puma-dev -install in the beginning, and it had made some files as root. Fixed by doing:

$ sudo chown $(whoami) ~/Library/Logs/puma-dev.log
$ sudo chwon $(whoami) ~/Library/LaunchAgents/io.puma.dev.plist
$ sudo chown -R $(whoami) ~/Library/Application\ Support/io.puma.dev

Now running puma-dev in the foreground works... but puma-dev in the background still bombs...

$ puma-dev -install
* Use '/usr/local/Cellar/puma-dev/0.7/bin/puma-dev' as the location of puma-dev
* Installed puma-dev on ports: http 80, https 443

$ tail -f ~/Library/Logs/puma-dev.log
* Directory for apps: /Users/jaiken/.puma-dev
* Domains: dev
* DNS Server port: 9253
* HTTP Server port: inherited from launchd
* HTTPS Server port: inherited from launchd
! Puma dev listening on http and https
2016/08/02 15:08:44 Error listening: accept tcp 0.0.0.0:0: accept: invalid argument
2016/08/02 15:08:45 Unable to expand dir: exit status 1
... repeat endlessly...

@JustinAiken
Copy link
Author

Unable to expand dir seems to happen whether I set the dir to ~/.pow, ~/.puma-dev, or /Users/jaiken/.puma-dev... but only through launchctl, all of them work fine in the foreground..

@JustinAiken
Copy link
Author

Ahha! And a restart did the trick 😄

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

2 participants