ESP-IDF Container: ERROR: Cannot establish a connection to the component registry. Are you connected to the internet?

uzer123
Posts: 12
Joined: Thu May 07, 2020 4:42 pm

ESP-IDF Container: ERROR: Cannot establish a connection to the component registry. Are you connected to the internet?

Postby uzer123 » Tue Mar 07, 2023 4:32 pm

I try to build inside esp-idf docker container.
I try the blink example and i leave only CMakeLists.txt, README.md, main folder and pytest_blink.py files in the project folder as the example.
When i run idf.py set-target esp32s3 inside the container (latest espidf) i get:

Code: Select all

Adding "set-target"'s dependency "fullclean" to list of commands with default 
set of options.
Executing action: fullclean
Build directory '/project/build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32s3, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
Running cmake in directory /project/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=/opt/esp/python_env/idf5.1_py3.8_env/bin/python -DESP_PLATFORM=1 -DIDF_TARGET=esp32s3 -DCCACHE_ENABLE=1 /project"...
-- Found Git: /usr/bin/git (found version "2.25.1") 
-- ccache will be used for faster recompilation
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/esp/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/esp/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/esp/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32s3
Solving dependencies requirements
CMake Error at /opt/esp/idf/tools/cmake/build.cmake:542 (message):
  ERROR: Cannot establish a connection to the component registry.  Are you    
  connected to the internet?

Call Stack (most recent call first):
  /opt/esp/idf/tools/cmake/project.cmake:453 (idf_build_process)
  CMakeLists.txt:6 (project)


-- Configuring incomplete, errors occurred!
See also "/project/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1, output of the command is in the /project/build/log/idf_py_stderr_output_684 and /project/build/log/idf_py_stdout_output_684


From cat /project/build/log/idf_py_stderr_output_684 i get:

Code: Select all

CMake Error at /opt/esp/idf/tools/cmake/build.cmake:542 (message):
  ERROR: Cannot establish a connection to the component registry.  Are you    
  connected to the internet?

Call Stack (most recent call first):
  /opt/esp/idf/tools/cmake/project.cmake:453 (idf_build_process)
  CMakeLists.txt:6 (project)
and from cat /project/build/log/idf_py_stdout_output_684

Code: Select all

-- Found Git: /usr/bin/git (found version "2.25.1") 
-- ccache will be used for faster recompilation
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/esp/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/esp/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/esp/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32s3
Solving dependencies requirements
-- Configuring incomplete, errors occurred!
See also "/project/build/CMakeFiles/CMakeOutput.log".
Also, if i try idf.py build i get the same error

Who is online

Users browsing this forum: No registered users and 212 guests