Closed leosamuele221 closed 4 months ago
https://gitlab.alpinelinux.org/alpine/aports/-/issues/15690 can you try running apk upgrade --no-cache -a
inside the nextcloud container and then retry with the preinstalled curl?
Tried with no luck
(I did cd home
to make sure I had reset the container)
can you check if my prebuilt static curl binaries work? https://github.com/ZoeyVid/curl-quic/releases/latest
For some reason it works from CLI
But not from nextcloud
I also tried to execute it as www-data and it worked (obviously I change curl exec to 777) from CLI but not from nextcloud
I did multiple reboots before trying
yes, because nextcloud trys to use libcurl
can you try apk add curl libcurl --repository http://dl-cdn.alpinelinux.org/alpine/edge/main
inside the nextcloud container and retry?
Still nothing...
The problem is in c-ares 1.24.0 https://github.com/c-ares/c-ares/issues/683 fixed with https://github.com/c-ares/c-ares/pull/685, and released in c-ares 1.26.0.
curl 8.6.0 from edge repository uses c-ares 1.24.0 so the problem still persist. When you build curl from source even if it's 8.6.0 it doesn't use c-ares, nor your build of curl uses c-ares @Zoey2936 that's why it worked
I did apk add curl libcurl --repository http://dl-cdn.alpinelinux.org/alpine/edge/main
and apk upgrade c-ares
installing c-ares 1.27.0. But still doesn't work.
Now i'm confused
I made a script to automate build https://gist.github.com/leosamuele221/aed36a3b9135032b6a8ffe7274e58ce7
can you report this here: https://gitlab.alpinelinux.org/alpine/aports/-/issues
Yes i can, I'll do it as soon as possible. But until the problem isn't solved somebody should add a good build of curl in the nextcloud-aio-nextcloud container as a patch
One option is to run this script https://gist.github.com/leosamuele221/aed36a3b9135032b6a8ffe7274e58ce7 when creating nextcloud container (maybe in the Dockerfile) so it builds a working curl
Another better option is to build a working curl and download it from github when creating the container
Hi, can you update to v8.1.0 beta and check if that improves things?
Hi, yes i updated it to 8.1.0 The problem is still there Obv is a curl problem, not a concern of nextcloud.
Problem is still here, even after updating to Alpine 3.19
can you report this here: https://gitlab.alpinelinux.org/alpine/aports/-/issues
Have you done so?
Actually, I just tested and it works on my test instance:
do curl -V
I'm coming here periodically, because we have noticed a similar issue in our setup.
I just want to share a solution which was working for us:
Specify a hostname for the container you are unable to resolve internally: e.g. setting "--hostname=mycontainer.domain.local"
You might need to take all containers down and restart them, to have them pickup the change in the local network.
This is not brilliant and i wish things would be resolved on the CURL or C-ARES side of things - but i just upgraded to Alpine 3.20 (curl 8.7.1 (aarch64-alpine-linux-musl) libcurl/8.7.1 ... c-ares/1.28.1) and i still see the problematic behaviour (everything (ping, wget, etc.) is resolving fine, but curl is not able to resolve if the hostname is missing)
All right, that is annoying. Can someone please log an issue upstream?
Encountered the issue while running Alpine 3.19.
Initially upgraded from curl 8.5.0 to 8.7.1, but that alone did not resolve the issue for me.
Was able to resolve the issue by disabling c-ares, libidn2 and libpsl by using
LDFLAGS="-static" PKG_CONFIG="pkg-config --static" ./configure --disable-shared --enable-static --with-openssl
# curl --version
curl 8.7.1 (x86_64-pc-linux-musl) libcurl/8.7.1 OpenSSL/3.1.4 zlib/1.3.1 nghttp2/1.58.0
Release-Date: 2024-03-27
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS HSTS HTTP2 HTTPS-proxy IPv6 Largefile libz NTLM SSL threadsafe TLS-SRP UnixSockets
Hope this helps
I reinstalled CentOS, a complete reset, reinstalled fresh nextcloud-aio and now everything works.
This should hopefully be resolved with https://github.com/nextcloud/all-in-one/pull/4857
This should hopefully be resolved with #4857
This is now released with v9.1.0 Beta. Testing and feedback is welcome! See https://github.com/nextcloud/all-in-one#how-to-switch-the-channel
Steps to reproduce
Expected behavior
Normal work of memories transcoder
Actual behavior
Nextcloud container can't connect to memories transcoder container
Host OS
CentOS 9
Nextcloud AIO version
Nextcloud AIO v8.0.0
Current channel
Latest
Possible solution
Downgrade to Alpine 3.18 Upgrade to Alpine 3.20 (as soon as available) Install curl 8.6.0 (see below)
Other valuable info
The problem is curl 8.5.0 that is affected by https://github.com/curl/curl/issues/12558. This bug is actually solved in curl 8.6.0 so you just need to update curl.
Curl 8.6.0 isn't available from alpine package manager (in Alpine 3.19 the only version available is 8.5.0 https://pkgs.alpinelinux.org/packages?name=curl&branch=v3.19&repo=main) The only way to install curl 8.6.0 is to build it from source
To install from source follow this steps:
enter in nextcloud-aio-nextcloud container
docker exec -it nextcloud-aio-nextcloud bash
remove curl 8.5.0
apk del curl
download curl 8.6.0 (you can do it in any folder you want, personally I did it in "/home/test")
wget https://github.com/curl/curl/releases/download/curl-8_6_0/curl-8.6.0.tar.gz
unpack it
tar -xf curl-8.6.0.tar.gz
move to it
cd curl-8.6.0
install dependecies
apk add openssl-dev g++ make autoconf libpsl-dev
configure
./configure --with-openssl
make and install
make && make install
With curl 8.6.0 the problem is solved!
If you want more info on how to build curl here is the docs https://github.com/curl/curl/blob/master/docs/INSTALL.md#unix