Skip to content

Linux download fails #425

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

Closed
sgehrman opened this issue May 22, 2022 · 3 comments
Closed

Linux download fails #425

sgehrman opened this issue May 22, 2022 · 3 comments
Labels
more info required Needs more info to become actionable. Auto-closed if no response. question How to do something/general question

Comments

@sgehrman
Copy link

sgehrman commented May 22, 2022

Launching lib/main.dart on Linux in debug mode...
[1/9] Creating directories for 'objectbox-download-populate'
[1/9] Performing download step (download, verify and extract) for 'objectbox-download-populate'
-- Downloading...
   dst='/home/steve/Documents/GitHub/dfc/dashboard/build/linux/x64/debug/_deps/objectbox-download-subbuild/objectbox-download-populate-prefix/src/objectbox-linux-x64.tar.gz'
   timeout='none'
-- Using src='https://github.com/objectbox/objectbox-c/releases/download/v0.16.0/objectbox-linux-x64.tar.gz'
-- Retrying...
-- Using src='https://github.com/objectbox/objectbox-c/releases/download/v0.16.0/objectbox-linux-x64.tar.gz'
-- Retry after 5 seconds (attempt #2) ...
-- Using src='https://github.com/objectbox/objectbox-c/releases/download/v0.16.0/objectbox-linux-x64.tar.gz'
-- Retry after 5 seconds (attempt #3) ...
-- Using src='https://github.com/objectbox/objectbox-c/releases/download/v0.16.0/objectbox-linux-x64.tar.gz'
-- Retry after 15 seconds (attempt #4) ...
-- Using src='https://github.com/objectbox/objectbox-c/releases/download/v0.16.0/objectbox-linux-x64.tar.gz'
-- Retry after 60 seconds (attempt #5) ...
-- Using src='https://github.com/objectbox/objectbox-c/releases/download/v0.16.0/objectbox-linux-x64.tar.gz'
CMake Error at objectbox-download-subbuild/objectbox-download-populate-prefix/src/objectbox-download-populate-stamp/download-objectbox-download-populate.cmake:159 (message):
  Each download failed!

    error: downloading 'https://github.com/objectbox/objectbox-c/releases/download/v0.16.0/objectbox-linux-x64.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/objectbox/objectbox-c/releases/download/v0.16.0/objectbox-linux-x64.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/objectbox/objectbox-c/releases/download/v0.16.0/objectbox-linux-x64.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/objectbox/objectbox-c/releases/download/v0.16.0/objectbox-linux-x64.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/objectbox/objectbox-c/releases/download/v0.16.0/objectbox-linux-x64.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/objectbox/objectbox-c/releases/download/v0.16.0/objectbox-linux-x64.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 ---




FAILED: objectbox-download-populate-prefix/src/objectbox-download-populate-stamp/objectbox-download-populate-download
cd /home/steve/Documents/GitHub/dfc/dashboard/build/linux/x64/debug/_deps && /usr/local/bin/cmake -P /home/steve/Documents/GitHub/dfc/dashboard/build/linux/x64/debug/_deps/objectbox-download-subbuild/objectbox-download-populate-prefix/src/objectbox-download-populate-stamp/download-objectbox-download-populate.cmake && /usr/local/bin/cmake -P /home/steve/Documents/GitHub/dfc/dashboard/build/linux/x64/debug/_deps/objectbox-download-subbuild/objectbox-download-populate-prefix/src/objectbox-download-populate-stamp/verify-objectbox-download-populate.cmake && /usr/local/bin/cmake -P /home/steve/Documents/GitHub/dfc/dashboard/build/linux/x64/debug/_deps/objectbox-download-subbuild/objectbox-download-populate-prefix/src/objectbox-download-populate-stamp/extract-objectbox-download-populate.cmake && /usr/local/bin/cmake -E touch /home/steve/Documents/GitHub/dfc/dashboard/build/linux/x64/debug/_deps/objectbox-download-subbuild/objectbox-download-populate-prefix/src/objectbox-download-populate-stamp/objectbox-download-populate-download
ninja: build stopped: subcommand failed.

CMake Error at /usr/local/share/cmake-3.15/Modules/FetchContent.cmake:915 (message):
  Build step for objectbox-download failed: 1
Call Stack (most recent call first):
  /usr/local/share/cmake-3.15/Modules/FetchContent.cmake:1006 (__FetchContent_directPopulate)
  flutter/ephemeral/.plugin_symlinks/objectbox_flutter_libs/linux/CMakeLists.txt:48 (FetchContent_Populate)


Exception: Unable to generate build files
Exited (sigterm)

@sgehrman sgehrman added the bug Something isn't working label May 22, 2022
@greenrobot-team
Copy link
Member

Thanks for reporting. The issue appears to be the installed curl not supporting an https connection:

Protocol "https" not supported or disabled in libcurl

This works fine on our test system (GitHub Actions using Ubuntu 20.04 and Flutter 3.0.0).

You can use curl --version to see which protocols the version of curl installed on your system supports. Maybe you need to re-install it or update to a later version. https://curl.se/docs/faq.html#Protocol_xxx_not_supported_or_di

@greenrobot-team greenrobot-team added question How to do something/general question more info required Needs more info to become actionable. Auto-closed if no response. and removed bug Something isn't working labels May 23, 2022
@github-actions
Copy link

Without additional information, we are unfortunately not sure how to resolve this issue. Therefore this issue has been automatically closed. Feel free to comment with additional details and we can re-open this issue.

@hosseinshaya
Copy link

I have the same issue and idk how to fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more info required Needs more info to become actionable. Auto-closed if no response. question How to do something/general question
Projects
None yet
Development

No branches or pull requests

3 participants