-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
Fix that (setf *print-case* :downcase) breaks the server and that no webpages are accessible #294
Comments
Just for reference, I just setup CLOG on my Macbook to test this, and it works. Git cloned clog into my quicklisp folder, ran (clog:run-tutorial 1) and http://127.0.0.1:8080 came up in Firefox. Do all the tutorials result in you not being able to see the localhost instance? |
Same error on any tutorial or demo, I also tried |
That is so interesting. It looks like the web server is listening but you cannot access it. That looks like your macOS firewall might be preventing all access to localhost? Have you been able to run other local web based interfaces before? That might be one thing to look into. The other thing you might want to look into is using virtualization to run a Linux vm on your Mac and install CLOG / CL on that as well. |
The Firewall is deactivated. I have no issue running PHP Apache on any port, even 80 or 8080. I suppose I need to check hunchentoot's logs.
Apparently this is not an option right now. |
Huh. That is really weird. I don't know how that makes any sense. I am curious if the server is still running after the last bit of your error message or if it dies. Can you load up any of the tutorials and see if you can see either SBCL or whatever environment you are using to start up the tutorial (the Lem editor will show up as a Lem process as opposed to SBCL/Slime for example)? Link to list of commands that can help you see if it is listening at all after startup: https://apple.stackexchange.com/questions/117644/how-can-i-list-my-open-network-ports-with-netstat If CLOG is up and running and you can see the SBCL listening on 8080 (or whatever), can you try and telnet to it and see if it connects? Example: telnet localhost 8080 Some troubleshooting that I sometimes do to see what is going on in situations like this. |
Sure, it really seems that the server dies. I validated the ports via My very first screenshot is actually faulty since I saw that my Emacs web server already uses port 8080, so the error message actually comes from Emacs and not from CLOG. But I tried other ports and they never connect, so Is there some logging capability in CLOG which gives more info or maybe logs to a file? Oh boy, just after writing this, I tried running this in Lem. And behold, it actually worked (although the output is the same when I run it in SBCL with Sly): Which makes me every more curious why it exactly fails in my Emacs Sly startup :D |
Aha, so when you run it with Lem the server starts up and you can connect to it? Is that correct? If that is the case, one of the things that I have as part of my troubleshooting routine is to clear out my ./cache/commonlisp directory if a problem like this comes up. I am on Linux and I don't know where macOS stores the common lisp cache files, however, whenever you are running a lisp image the system will cache all of that there. Check your system and consider removing your commonlisp cached files and trying again. I am in the process of moving over to Lem and as it is currently still under heavy / early development sometimes the cache files get "corrupted" (not sure if they are actually corrupted really ...) and I just delete the common lisp cache files and restart and everything works again. If Lem is working, try clearing out the common lisp cache and try Emacs/Sly once again. Be careful not to nuke your other .cache files, I don't know what macOS likes to do these days as I am purely Linux. |
Oh, as for log files, I'm pretty much a noob at Lisp and Hunchentoot and don't know how that is handled. The Hunchentoot docs that you obviously already looked at have some info on logging facilities but I don't know how to turn them on: http://edicl.github.io/hunchentoot/#logging I have not had to use logging my self yet, I am in the process of learning Common Lisp and getting my head wrapped around the debugger messages and how it all fits together. I was going to look into logging once I had my todo app in some usable shape though. If you manage to get logging working, would you mind posting to the discussion forum so that I / others can check it out? |
Thank you for your help, even though are inexperienced :) I figured out the issue why it works in Lem and why it doesn't in SBCL. My |
Oh interesting. I will keep that in mind. Thx. If the issue is resolved, we should be closing tickets. Our friendly neighbourhood Rabbi is quite busy and the less unnecessary noise for him the better we can make his experience, I feel. |
Well, in a way the issue is not resolved. I reported the Changing the |
Aha! You are correct and great point. My apologies for the assumption. |
Hey, I follow the installation steps from the tutorial on macOS and on running
(clog:run-tutorial 1)
or any other tutorial, I get this error. Does anyone know how to debug this?The text was updated successfully, but these errors were encountered: