-
Notifications
You must be signed in to change notification settings - Fork 374
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
Quick start guide does not work #1517
Comments
Just to be sure, can you try the following after issuing the command
Let me know if that helps/doesn't help. |
Thanks for the quick response, psibi. Following your instructions, What I've also tried in the meanwhile:
I unfortunately still get the same issue. |
I tried and did exactly the same thing in a virtual machine on Ubuntu 18.04 and it works. I'll be investigating why it doesn't work on OpenSUSE Leap 15. |
Ok, this is strange. It only listens on ipv6 even though in the configuration (settings.yml) it should listen on any ipv4 address:
Opening |
That's strange. I checked on my Ubuntu machine too and the template worked fine. Not really sure why this is happening with OpenSUSE. |
According to http://hackage.haskell.org/package/warp-3.2.22/docs/Network-Wai-Handler-Warp.html#t:HostPreference |
Found the issue, OpenSUSE doesn't bind the hostname to localhost on a fresh install which causes this issue. |
I'll have to reopen this as I've spoken with the lads over at freenode #SUSE and they say it's an issue with the framework as it shouldn't be a requirement that the hostname is bound to localhost. What I also find strange is that |
|
BTW, Thanks for the great debugging! |
|
@rszibele So, I looked on to this but I wasn't able to find anything interesting on a Ubuntu based Linux machine. Can you run this program in your SUSE machine:
For executing it, you should do
There was one odd behavior which I found using |
One minor FYI: if you're using |
@psibi Here's the output of netstat after executing your snippet. It's bound correctly and it works.
I've been debugging further and I've been wondering why your snippet works (as in, binds to IPv4) but the getting started project doesn't. It turns out that you pass
If I change @snoyberg Now knowing that host gets set to
It should actually be To summarize what we've found:
Two possible solutions which would independently make the getting started projects work out-of-the box:
|
I'll be honest: I'm not too terribly thrilled about making changes to Yesod for this case. Having |
localhost itself works, it's just that yesod binds to the hostname by default and not localhost, which isn't the same thing on OpenSUSE. The prefix would also fix it, so either of the solutions is a good fix. |
I've updated the QuickStart guide for openSUSE users in this PR, as this was the easiest change that both @snoyberg and @rszibele agreed would be acceptable. IF that PR is merged, I think we can close this issue. |
The new templates have been pushed, can you give it a shot again and confirm that the problem has been solved? |
@snoyberg Yes, the problem has been resolved. |
confirming that, the |
Following the quick start guide at https://www.yesodweb.com/page/quickstart I can't seem to get yesod-sqlite to work. Everything builds fine but it seems that the executable exits early, thereby only displaying the page with "The application isn't built".
e.g:
What makes me suspicious is the
ExitSuccess
line.My setup:
The text was updated successfully, but these errors were encountered: