prax icon indicating copy to clipboard operation
prax copied to clipboard

Fedora won't work

Open nrdobie opened this issue 11 years ago • 13 comments

I can't seem to get Prax to work in Fedora 19. I have modified the install and uninstall scripts to use the appropriate commands ( chkconfig instead of update-rc.d ). However I am still getting a domain not found issue.

nrdobie avatar Oct 29 '13 00:10 nrdobie

Same here. If you ever figured anything out I'd love to hear. Still troubleshooting.

nessamurmur avatar Mar 14 '14 20:03 nessamurmur

I guess it must have something to do with nsswitch, maybe it's not used on Fedora to resolve hosts?

ysbaddaden avatar Mar 14 '14 20:03 ysbaddaden

unstable branch works for me.. Fedora 20

klvmungai avatar Apr 01 '14 12:04 klvmungai

Cool!

ysbaddaden avatar Apr 01 '14 13:04 ysbaddaden

I found this thread and I'm excited to start using Prax on fedora 20, but since I'm a linux newb I can't quite figure it out.

What I've done so far:

Edited the prax-install file so that the line that reads:

sudo update-rc.d prax defaults

was replaced by

sudo chkconfig --add prax.

I'm also using the unstable branch. I linked my site and restarted chrome (my browser) but my server isn't working. Ideas?

torvum avatar Apr 16 '14 13:04 torvum

Of course you ran prax install ?

ysbaddaden avatar Apr 16 '14 16:04 ysbaddaden

Yeah, sorry. Forgot to mention that.

I'm new to ruby so I'm not 100% positive the directory I linked is sound, but I'm almost positive it is. At any rate, the domain doesn't get resolved anyways, which makes me things it's not my web app that's the problem.

torvum avatar Apr 16 '14 18:04 torvum

You can try in a terminal:

$ getent hosts myapp.dev
::1             myapp.dev

If it doesn't resolve, then the nsswitch extension doesn't work, is missconfigured or maybe isn't used by Fedora?

ysbaddaden avatar Apr 16 '14 21:04 ysbaddaden

I had the same issue with a new installation of fedora x64 which I managed to fix. The domains on my part were not being resolved because libnss_prax.so.2 was not on the nsswitch search path. This can be fixed by moving it to the correct path like so

  • first get nsswitch load path by locating libnss_dns.so
$ sudo updatedb
$ locate libnss_dns.so # my  result was `/usr/lib64/libnss_dns.so`

  • Move libnss_prax.so.2 to the same folder as libnss_dns.so
$ sudo mv /lib/libnss_prax.so.2 /usr/lib64/

klvmungai avatar Jun 07 '14 05:06 klvmungai

Thanks! I should modify the libexec/prax-install script to take care of that.

ysbaddaden avatar Jun 09 '14 08:06 ysbaddaden

An alternative to run prax is to use dnsmasq for the .dev resolving and nginx for the routing. And then have prax in the stack. This is how I run it, and it works very well. If anyone is interested I could write down the instructions and they could be included in the documentation or something.

terlar avatar Jun 09 '14 15:06 terlar

Please add wiki pages for this setup. Thanks!

ysbaddaden avatar Jun 10 '14 07:06 ysbaddaden

I created the steps here: https://github.com/ysbaddaden/prax/wiki/Alternate-setup

Feel free to modify.

terlar avatar Jun 10 '14 21:06 terlar