This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Unable to connect to bitbake server, or start one

When yocto build is failed and re-run the "./build-core-sdk.sh dra7xx-evm", we always getting below error

NOTE: Retrying server connection...
ERROR: Unable to connect to bitbake server, or start one

I have got reply from other thread to export http_proxy to the working configuration, Can you pls help me with any example of how to export http_proxy to the working configuration? I am new to this.

  • Hi Prasad,

    I will help you with this, just to be sure we are on the same page, can you please confirm the Ubuntu version, SDK version too?

    Also, please execute "env | grep proxy" before you run the bitbake command and copy paste your console log.

    Regards

    Karthik

  • Hello Karthik,

    Thanks for the response.

    Ubuntu version is: 14.04 LTS

    SDK version is: ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03

    Pls find below the console log:

    user@Temp:~/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers$ env | grep proxy
    user@Temp:~/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers$ ./build-core-sdk.sh dra7xx-evm
    [PSDKLA]>
    [PSDKLA]> Current Directory is /home/user/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers
    [PSDKLA]> PATH is /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
    [PSDKLA]> Building on Temp running Linux Temp 4.14.0-041400-generic #201711122031 SMP Sun Nov 12 20:32:29 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
    [PSDKLA]> Starting Yocto build at Thu Jan 21 09:15:19 IST 2021
    [PSDKLA]>
    [PSDKLA]> cd build
    [PSDKLA]> . conf/setenv
    [PSDKLA]> cp conf/local.conf conf/local.conf.pristine
    [PSDKLA]> MACHINE=dra7xx-evm bitbake tisdk-rootfs-image
    NOTE: Retrying server connection...
    ERROR: Unable to connect to bitbake server, or start one
    [PSDKLA]>
    [PSDKLA]> Completed Yocto build at Thu Jan 21 09:20:15 IST 2021
    [PSDKLA]>
    user@Temp:~/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers$

  • Hi Prasad,

    From the yocto-layers directory, can you also let me know if you have a bitbake.lock file in the build directory?

    Please share the output of "ls -al build" from the yocto-layers directory.

    To export the proxy you can do "export http_proxy=<proxy server ip address>:<port>"

    Regards

    Karthik

  • Hello Karthik,

    Yes, i have the bitbake.lock file generated in the build folder. Pls find the below:

    user@Temp:~/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers$ ls -al build
    total 84
    drwxrwxr-x   7 user user  4096 Jan 21 09:19 .
    drwxrwxr-x   8 user user  4096 Jan 18 10:12 ..
    drwxrwxr-x  13 user user  4096 Jan 18 10:35 arago-tmp-external-arm-toolchain
    -rw-rw-r--   1 user user 45384 Jan 21 09:20 bitbake-cookerdaemon.log
    -rw-rw-r--   1 user user     5 Jan 21 09:19 bitbake.lock
    srwxrwxr-x   1 user user     0 Jan 21 09:19 bitbake.sock
    drwxrwxr-x   4 user user  4096 Jan 18 10:39 buildhistory
    drwxrwxr-x   2 user user  4096 Jan 21 09:19 cache
    drwxrwxr-x   2 user user  4096 Jan 18 10:12 conf
    drwxrwxr-x 190 user user  4096 Jan 18 10:36 sstate-cache
    user@Temp:~/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers$ echo "$http_proxy"

    user@Temp:~/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers$ echo "$https_proxy"

    user@Temp:~/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers$

    Also, i see that there is no proxy configured for my PC, bcz of which i dont see any response when i tried echo "$http_proxy"

  • Hi Prasad,

    There are two suggestions to further help with the problem:

    1. Can you please delete your installation or re-do the installation in a different directory and report results?
    2. If it still doesn't work, can you try to set the proxy as described above in the new installation and share results too?

    Regards

    Karthik

  • Hello Karthik,

    When i try to setup the yocto in another folder, i see that i have not taken care of the below step:

    https: //wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy

    But, when i check with my IT team regarding the proxy, they say that we dont have any proxy for our company, do we still need to configure proxy even though we dont have proxy? 

    If yes, which proxy i need to configure?

    If no, can i ignore this step of configuring proxies?

  • Hi Prasad,

    OK. Please try the Step 1 in the above and share your result.

    Regards

    Karthik

  • Hello Karthik,

    Pls find the log for the step1:

    Its got failed after around 690 tasks executed, then retried bitbake and getting the same error:

    ERROR: opkg-utils-0.3.6-r0 do_package: Can NOT get PRAUTO, exception timed out
    ERROR: opkg-utils-0.3.6-r0 do_package: Function failed: package_get_auto_pr
    ERROR: Logfile of failure stored in: /home/user/Prasad/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/opkg-utils/0.3.6-r0/temp/log.do_package.13743
    NOTE: recipe opkg-utils-0.3.6-r0: task do_package: Failed
    ERROR: Task (/home/user/Prasad/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/sources/oe-core/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.6.bb:do_package) failed with exit code '1'
    NOTE: Running task 698 of 9543 (/home/user/Prasad/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/sources/oe-core/meta/recipes-support/libffi/libffi_3.2.1.bb:do_populate_sysroot)
    NOTE: recipe zlib-1.2.11-r0: task do_package: Started
    NOTE: recipe libffi-3.2.1-r0: task do_populate_sysroot: Started
    NOTE: recipe libffi-3.2.1-r0: task do_populate_sysroot: Succeeded
    ERROR: zlib-1.2.11-r0 do_package: Can NOT get PRAUTO, exception timed out
    ERROR: zlib-1.2.11-r0 do_package: Function failed: package_get_auto_pr
    ERROR: Logfile of failure stored in: /home/user/Prasad/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/zlib/1.2.11-r0/temp/log.do_package.31055
    NOTE: recipe zlib-1.2.11-r0: task do_package: Failed
    ERROR: Task (/home/user/Prasad/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/sources/oe-core/meta/recipes-core/zlib/zlib_1.2.11.bb:do_package) failed with exit code '1'
    NOTE: recipe linux-ti-staging-4.19.73+gitAUTOINC+31275c05a1-r7a.arago5.psdkla: task do_fetch: Succeeded
    NOTE: Tasks Summary: Attempted 698 tasks of which 343 didn't need to be rerun and 2 failed.
    NOTE: Writing buildhistory

    Summary: 2 tasks failed:
      /home/user/Prasad/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/sources/oe-core/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.6.bb:do_package
      /home/user/Prasad/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/sources/oe-core/meta/recipes-core/zlib/zlib_1.2.11.bb:do_package
    Summary: There were 9 WARNING messages shown.
    Summary: There were 4 ERROR messages shown, returning a non-zero exit code.
    [PSDKLA]>
    [PSDKLA]> Completed Yocto build at Fri Jan 22 15:54:33 IST 2021
    [PSDKLA]>
    user@Temp:~/Prasad/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers$
    user@Temp:~/Prasad/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers$ ./build-core-sdk.sh dra7xx-evm
    [PSDKLA]>
    [PSDKLA]> Current Directory is /home/user/Prasad/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers
    [PSDKLA]> PATH is /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
    [PSDKLA]> Building on Temp running Linux Temp 4.14.0-041400-generic #201711122031 SMP Sun Nov 12 20:32:29 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
    [PSDKLA]> Starting Yocto build at Fri Jan 22 15:55:24 IST 2021
    [PSDKLA]>
    [PSDKLA]> cd build
    [PSDKLA]> . conf/setenv
    [PSDKLA]> cp conf/local.conf conf/local.conf.pristine
    [PSDKLA]> MACHINE=dra7xx-evm bitbake tisdk-rootfs-image
    NOTE: Reconnecting to bitbake server...
    NOTE: Previous bitbake instance shutting down?, waiting to retry...
    NOTE: Retrying server connection...
    NOTE: Reconnecting to bitbake server...
    NOTE: Previous bitbake instance shutting down?, waiting to retry...
    NOTE: Retrying server connection...
    NOTE: Reconnecting to bitbake server...
    NOTE: Previous bitbake instance shutting down?, waiting to retry...
    NOTE: Retrying server connection...
    NOTE: Reconnecting to bitbake server...
    NOTE: Previous bitbake instance shutting down?, waiting to retry...
    NOTE: Retrying server connection...
    NOTE: Reconnecting to bitbake server...
    NOTE: Previous bitbake instance shutting down?, waiting to retry...
    NOTE: Retrying server connection...
    NOTE: Reconnecting to bitbake server...
    NOTE: Previous bitbake instance shutting down?, waiting to retry...
    NOTE: Retrying server connection...
    NOTE: Reconnecting to bitbake server...
    NOTE: Previous bitbake instance shutting down?, waiting to retry...
    NOTE: Retrying server connection...
    NOTE: Reconnecting to bitbake server...
    NOTE: Previous bitbake instance shutting down?, waiting to retry...
    NOTE: Retrying server connection...
    ERROR: Unable to connect to bitbake server, or start one
    [PSDKLA]>
    [PSDKLA]> Completed Yocto build at Fri Jan 22 15:56:29 IST 2021
    [PSDKLA]>
    user@Temp:~/Prasad/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers$

  • Hi Prasad,

    There is something strange going on in your machine.

    1. After you fired the first build where 690 tasks were completed, did you "kill" the bitbake or stop it abnormally?
    2. Can you please check the presence of the bitbake.lock file in the yocto-layer/build folder in the new directory?
    3. Can you remove the bitbake.lock file and retry the build?

    Regards

    Karthik

  • Hello Karthik,

    Pls find the answers for your questions:

    1. I did not kill the bitbake, it is stopped bcz of the below error

    ERROR: opkg-utils-0.3.6-r0 do_package: Can NOT get PRAUTO, exception timed out
    ERROR: opkg-utils-0.3.6-r0 do_package: Function failed: package_get_auto_pr
    ERROR: Logfile of failure stored in: /home/user/Prasad/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/opkg-utils/0.3.6-r0/temp/log.do_package.13743
    NOTE: recipe opkg-utils-0.3.6-r0: task do_package: Failed
    ERROR: Task (/home/user/Prasad/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/sources/oe-core/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.6.bb:do_package) failed with exit code '1'
    NOTE: Running task 698 of 9543 (/home/user/Prasad/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/sources/oe-core/meta/recipes-support/libffi/libffi_3.2.1.bb:do_populate_sysroot)
    NOTE: recipe zlib-1.2.11-r0: task do_package: Started
    NOTE: recipe libffi-3.2.1-r0: task do_populate_sysroot: Started
    NOTE: recipe libffi-3.2.1-r0: task do_populate_sysroot: Succeeded
    ERROR: zlib-1.2.11-r0 do_package: Can NOT get PRAUTO, exception timed out
    ERROR: zlib-1.2.11-r0 do_package: Function failed: package_get_auto_pr
    ERROR: Logfile of failure stored in: /home/user/Prasad/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/zlib/1.2.11-r0/temp/log.do_package.31055
    NOTE: recipe zlib-1.2.11-r0: task do_package: Failed
    ERROR: Task (/home/user/Prasad/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/sources/oe-core/meta/recipes-core/zlib/zlib_1.2.11.bb:do_package) failed with exit code '1'
    NOTE: recipe linux-ti-staging-4.19.73+gitAUTOINC+31275c05a1-r7a.arago5.psdkla: task do_fetch: Succeeded
    NOTE: Tasks Summary: Attempted 698 tasks of which 343 didn't need to be rerun and 2 failed.
    NOTE: Writing buildhistory

    2. Yes, i could see the bitbake.lock file in the yocto-layer/build folder of new directory

    3. I removed the bitbake.lock file and retried the build, below is the out of the build:

    user@Temp:~/Prasad/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers$ ./build-core-sdk.sh dra7xx-evm
    [PSDKLA]>
    [PSDKLA]> Current Directory is /home/user/Prasad/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers
    [PSDKLA]> PATH is /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
    [PSDKLA]> Building on Temp running Linux Temp 4.14.0-041400-generic #201711122031 SMP Sun Nov 12 20:32:29 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
    [PSDKLA]> Starting Yocto build at Fri Jan 22 19:00:48 IST 2021
    [PSDKLA]>
    [PSDKLA]> cd build
    [PSDKLA]> . conf/setenv
    [PSDKLA]> cp conf/local.conf conf/local.conf.pristine
    [PSDKLA]> MACHINE=dra7xx-evm bitbake tisdk-rootfs-image
    NOTE: Retrying server connection...
    ERROR: Unable to connect to bitbake server, or start one
    [PSDKLA]>
    [PSDKLA]> Completed Yocto build at Fri Jan 22 19:05:42 IST 2021
    [PSDKLA]>
    user@Temp:~/Prasad/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers$

    Note: During initial ./setup, i was getting some error while initializing repo, for that i have removed " --no-repo-verify" from the /bin/repo-setup.sh file, then only i was able to initialize repo in the SDK directory

  • Hello,

    Got any update on this query?

  • I have posted my updates on this thread: https://e2e.ti.com/support/tools/ccs/f/81/p/972640/3605660#3605660lets continue discussion on a single thread. All issues are related.

    Regards

    Karthik