Skip to content
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

Protocol "https" not supported or disabled in libcurl #2293

Closed
vamshi05 opened this issue Nov 15, 2022 · 10 comments
Closed

Protocol "https" not supported or disabled in libcurl #2293

vamshi05 opened this issue Nov 15, 2022 · 10 comments

Comments

@vamshi05
Copy link

Protocol "https" not supported or disabled in libcurl

**While trying to build falco from source https://falco.org/docs/getting-started/source,

In step 2 of the doc https://falco.org/docs/getting-started/source/ while running the command *cmake -DUSE_BUNDLED_DEPS=ON ..*, I'm noticing the following error after several retries
`build]# cmake -DUSE_BUNDLED_DEPS=ON ..
-- The C compiler identification is GNU 7.3.1
-- The CXX compiler identification is GNU 7.3.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Build type: release
-- Falco version: 0.32.1-286+e3dbae3
-- Libs version: dd443b67c6b04464cb8ee2771af8ada8777e7fac
-- Configuring done
-- Generating done
-- Build files have been written to: /root/falco/build/falcosecurity-libs-repo
Scanning dependencies of target falcosecurity-libs
[ 11%] Creating directories for 'falcosecurity-libs'
[ 22%] Performing download step (download, verify and extract) for 'falcosecurity-libs'
-- Downloading...
dst='/root/falco/build/falcosecurity-libs-repo/falcosecurity-libs-prefix/src/dd443b67c6b04464cb8ee2771af8ada8777e7fac.tar.gz'
timeout='none'
-- Using src='https://github.com/falcosecurity/libs/archive/dd443b67c6b04464cb8ee2771af8ada8777e7fac.tar.gz'
-- Retrying...
-- Using src='https://github.com/falcosecurity/libs/archive/dd443b67c6b04464cb8ee2771af8ada8777e7fac.tar.gz'
-- Retry after 5 seconds (attempt #2) ...
-- Using src='https://github.com/falcosecurity/libs/archive/dd443b67c6b04464cb8ee2771af8ada8777e7fac.tar.gz'
-- Retry after 5 seconds (attempt #3) ...
-- Using src='https://github.com/falcosecurity/libs/archive/dd443b67c6b04464cb8ee2771af8ada8777e7fac.tar.gz'
-- Retry after 15 seconds (attempt #4) ...
-- Using src='https://github.com/falcosecurity/libs/archive/dd443b67c6b04464cb8ee2771af8ada8777e7fac.tar.gz'
-- Retry after 60 seconds (attempt #5) ...
-- Using src='https://github.com/falcosecurity/libs/archive/dd443b67c6b04464cb8ee2771af8ada8777e7fac.tar.gz'
CMake Error at falcosecurity-libs-stamp/download-falcosecurity-libs.cmake:159 (message):
Each download failed!

error: downloading 'https://github.com/falcosecurity/libs/archive/dd443b67c6b04464cb8ee2771af8ada8777e7fac.tar.gz' failed
     status_code: 1
     status_string: "Unsupported protocol"
     log:
     --- LOG BEGIN ---
     Protocol "https" not supported or disabled in libcurl

Closing connection -1

     --- LOG END ---
     error: downloading 'https://github.com/falcosecurity/libs/archive/dd443b67c6b04464cb8ee2771af8ada8777e7fac.tar.gz' failed
     status_code: 1
     status_string: "Unsupported protocol"
     log:
     --- LOG BEGIN ---
     Protocol "https" not supported or disabled in libcurl

Closing connection -1

`

Expected behaviour
cmake -DUSE_BUNDLED_DEPS=ON .. to be successful

Environment

  • Falco version: N/A
  • System info:
    NAME="Amazon Linux"
    VERSION="2"
    ID="amzn"
    ID_LIKE="centos rhel fedora"
    VERSION_ID="2"
    PRETTY_NAME="Amazon Linux 2"
    ANSI_COLOR="0;33"
    CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
    HOME_URL="https://amazonlinux.com/"
    Linux version 4.14.296-222.539.amzn2.x86_64

Additional context

cmake --version

cmake version 3.12.3

libcurl-7.79.1-6.amzn2.0.1.x86_64

curl --version

curl 7.79.1 (x86_64-koji-linux-gnu) libcurl/7.79.1 OpenSSL/1.0.2k-fips zlib/1.2.7 libidn2/2.3.0 libssh2/1.4.3 nghttp2/1.41.0 OpenLDAP/2.4.44
Release-Date: 2021-09-22
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB SPNEGO SSL UnixSockets

@vamshi05
Copy link
Author

vamshi05 commented Nov 16, 2022

After downloading the file manually, it shows that there is a mismatch in the checksum value.

curl -o /root/falco/build/falcosecurity-libs-repo/falcosecurity-libs-prefix/src/dd443b67c6b04464cb8ee2771af8ada8777e7fac.tar.gz https://github.com/falcosecurity/libs/archive/dd443b67c6b04464cb8ee2771af8ada8777e7fac.tar.gz

cmake -DUSE_BUNDLED_DEPS=ON ..

-- The C compiler identification is GNU 7.3.1
-- The CXX compiler identification is GNU 7.3.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Build type: release
-- Falco version: 0.32.1-286+e3dbae3
-- Libs version: dd443b67c6b04464cb8ee2771af8ada8777e7fac
-- Configuring done
-- Generating done
-- Build files have been written to: /root/falco/build/falcosecurity-libs-repo
[ 11%] Performing download step (download, verify and extract) for 'falcosecurity-libs'
-- verifying file...
file='/root/falco/build/falcosecurity-libs-repo/falcosecurity-libs-prefix/src/dd443b67c6b04464cb8ee2771af8ada8777e7fac.tar.gz'
-- SHA256 hash of
/root/falco/build/falcosecurity-libs-repo/falcosecurity-libs-prefix/src/dd443b67c6b04464cb8ee2771af8ada8777e7fac.tar.gz
does not match expected value
expected: 'df373099d0f4cd4417a0103bb57f26c7412ffa86cde2bb2d579c6feba841626d'
actual: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
-- File already exists but hash mismatch. Removing...
-- Downloading...
dst='/root/falco/build/falcosecurity-libs-repo/falcosecurity-libs-prefix/src/dd443b67c6b04464cb8ee2771af8ada8777e7fac.tar.gz'
timeout='none'
-- Using src='https://github.com/falcosecurity/libs/archive/dd443b67c6b04464cb8ee2771af8ada8777e7fac.tar.gz'
-- Retrying...
-- Using src='https://github.com/falcosecurity/libs/archive/dd443b67c6b04464cb8ee2771af8ada8777e7fac.tar.gz'
-- Retry after 5 seconds (attempt #2) ...
-- Using src='https://github.com/falcosecurity/libs/archive/dd443b67c6b04464cb8ee2771af8ada8777e7fac.tar.gz'
-- Retry after 5 seconds (attempt #3) ...
-- Using src='https://github.com/falcosecurity/libs/archive/dd443b67c6b04464cb8ee2771af8ada8777e7fac.tar.gz'
-- Retry after 15 seconds (attempt #4) ...

@Andreagit97
Copy link
Member

ei @vamshi05 this is quite strange, we use it almost every day, it seems due to the CMake version CMake version 3.12.3, try to use CMake 3.22.5 for example or something greater, this should solve the issue 🤔

@vamshi05
Copy link
Author

Thanks @Andreagit97 . I got past this issue using cmake version 3.22.5 . Although the doc says the minimum required one is 3.5.1 https://github.com/falcosecurity/falco/blob/master/CMakeLists.txt#L13

@Andreagit97
Copy link
Member

thank you for reporting this :)

@poiana
Copy link
Contributor

poiana commented Feb 15, 2023

Issues go stale after 90d of inactivity.

Mark the issue as fresh with /remove-lifecycle stale.

Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Provide feedback via https://github.com/falcosecurity/community.

/lifecycle stale

@Andreagit97
Copy link
Member

/remove-lifecycle stale

@poiana
Copy link
Contributor

poiana commented May 16, 2023

Issues go stale after 90d of inactivity.

Mark the issue as fresh with /remove-lifecycle stale.

Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Provide feedback via https://github.com/falcosecurity/community.

/lifecycle stale

@poiana
Copy link
Contributor

poiana commented Jun 15, 2023

Stale issues rot after 30d of inactivity.

Mark the issue as fresh with /remove-lifecycle rotten.

Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Provide feedback via https://github.com/falcosecurity/community.

/lifecycle rotten

@poiana
Copy link
Contributor

poiana commented Jul 15, 2023

Rotten issues close after 30d of inactivity.

Reopen the issue with /reopen.

Mark the issue as fresh with /remove-lifecycle rotten.

Provide feedback via https://github.com/falcosecurity/community.
/close

@poiana poiana closed this as completed Jul 15, 2023
@poiana
Copy link
Contributor

poiana commented Jul 15, 2023

@poiana: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue with /reopen.

Mark the issue as fresh with /remove-lifecycle rotten.

Provide feedback via https://github.com/falcosecurity/community.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants