-
Notifications
You must be signed in to change notification settings - Fork 18
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
Configuring Problems #54
Comments
Even your example configuration file does not work. `{ :9991 {
8" Here is the error message. I think that this caching software has a simpler model than cache-handler, but thinks do not look promising. So sad. |
@PythonLinks hi, can you try to build this module with lower version of caddy ?
Maybe there are some backward incompatible changes from version 2.4.6 to 2.5.x |
Sounds Promising. What is quic-go? Here is a longer part of the error message. the full traceback is below. ` github.com/lucas-clemente/quic-go/internal/qtls/root/go/pkg/mod/github.com/lucas-clemente/[email protected]/internal/qtls/go118.go:5:13: cannot use "quic-go doesn't build on Go 1.18 yet." (untyped string constant) as int value in variable declaration ` ## Full Traceback. ` xcaddy build v2.4.6 --with github.com/sillygod/cdp-cache import (
) func main() { github.com/lucas-clemente/quic-go/internal/qtls/root/go/pkg/mod/github.com/lucas-clemente/[email protected]/internal/qtls/go118.go:5:13: cannot use "quic-go doesn't build on Go 1.18 yet." (untyped string constant) as int value in variable declaration ` |
@PythonLinks , I thought you need to downgrade your golang's version to go1.17.x. I don't think xcaddy can change the version of caddy's dependencies when installing with xcaddy. |
So I took a look at the cdp-cache README file. panic: qtls.CertificateRequestInfo doesn't match goroutine 1 [running]: Sigh. Next let me try running multiple versions of go. First attempt failed. |
Oops, I forgot to revise the readme file and according to the go.mod, run the command below under golang 1.17.x (lower than go 1.18) xcaddy build v2.4.6 --with github.com/sillygod/cdp-cache it will works |
Okay I installed go 1.17 on FreeBsd. go version Then I tried xcaddy build v2.4.6 --with github.com/sillygod/cdp-cache but sadly it crashed. go: downloading github.com/klauspost/cpuid v1.2.0 So sad. FYI, I now have NGINX runnign happily on Linux, the certbot also has problems on FreeBSD. xcaddy build v2.4.6 --with github.com/sillygod/cdp-cache 2022/09/04 16:04:09 [INFO] Temporary folder: /tmp/buildenv_2022-09-04-1604.2103078159 2022/09/04 16:04:09 [INFO] Writing main module: /tmp/buildenv_2022-09-04-1604.2103078159/main.go package main import (
) func main() { |
I am not sure why you got a crash but I saw there is a message -- "compile: signal: killed". I guess the compile process may be killed due to the out of memory. |
Thank you. I am about to merge my two freebsd serves, at which point I will have twice as much memory. Hopefully that will be enough. We will get this thing working. The NGINX approach of doing everything repetitively in the configuration files is just nutty. I am at PyCon Slovakia this weekend, if anyone else here will be there, we can meet. |
Okay, so I did a clean install of freebsd. Only used pkg install ... v2.5.2 could build, could run, but could not cache. So I tried the command you recommended. Could not build with go 1.18 github.com/lucas-clemente/quic-go/internal/qtls |
@PythonLinks hi, as mention previous, it doesn't support go1.18. |
Ah yes, but then I have to figure out how to install go 1.17. So I am kind of scared of installing go 1.17. In any case, NGINX appears to be working. I just have to eliminate jwt cookies from anonymous responses. I may be back. This is all so painful. |
Resolves issue sillygod#54 sillygod#54 I am happy to make more edits to the README file, first let me see if this critical one gets accepted.
I like this version, because it looks so much simpler than
https://github.com/caddyserver/cache-handler
I built it with:
xcaddy build v2.5.2 --with github.com/sillygod/cdp-cache
I can run my web site with it.
GreenMaps.US
But I cannot configure caching. I get the following error message.
reload: sending configuration to instance: caddy responded with error: HTTP 400: {"error":"loading config: loading new config: loading http app module: provision http: server srv0: setting up route handlers: route 2: loading handler modules: position 0: loading module 'subroute': provision http.handlers.subroute: setting up subroutes: route 10: loading handler modules: position 0: loading module 'http_cache': unknown module: http.handlers.http_cache"}
Any suggestions?
The text was updated successfully, but these errors were encountered: