Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Unable to connect to bitbake server #27

Open
pietrushnic opened this issue Oct 5, 2018 · 12 comments
Open

Unable to connect to bitbake server #27

pietrushnic opened this issue Oct 5, 2018 · 12 comments
Assignees

Comments

@pietrushnic
Copy link
Member

Did you faced something like this?

NOTE: Reconnecting to bitbake server...
NOTE: Retrying server connection...
NOTE: Reconnecting to bitbake server...
NOTE: Retrying server connection...
NOTE: Reconnecting to bitbake server...
NOTE: Retrying server connection...
NOTE: Reconnecting to bitbake server...
NOTE: Retrying server connection...
NOTE: Reconnecting to bitbake server...
NOTE: Retrying server connection...
NOTE: Reconnecting to bitbake server...
NOTE: Retrying server connection...
NOTE: Reconnecting to bitbake server...
NOTE: Retrying server connection...
NOTE: Reconnecting to bitbake server...
NOTE: Retrying server connection...
ERROR: Unable to connect to bitbake server, or start one
@macpijan
Copy link
Member

macpijan commented Oct 6, 2018

@pietrushnic I might have at some point in the past, but cannot say anything specific. Was it a one-time issue?

@pietrushnic
Copy link
Member Author

@macpijan this thing happen when 2 containers are running. I just left first with ctrl-c and tried to run second. I'm not sure if we can protect ourselves against that.

@macpijan
Copy link
Member

macpijan commented Oct 8, 2018

@pietrushnic This seems to happen when you interrupt the build (Ctrl+C) when running container in the noninteractive mode (without -i flag). In such a case, the container may still be running (see docker ps) and should be killed first. It did not happen before when the interactive mode was present. The interactive mode was disabled to allow build in CI (e.g. Jenkins). Running with the noninteractive mode is not so pleasant for local development. Maybe we should distinguish those 2 scenarios.

@pietrushnic
Copy link
Member Author

@macpijan minimal solution is to let use know in Known issues section about this problem, other solution is to kill remaining containers before running next one. IMO secon option is ok since we expect to have only one container in system that do Yocto build.

@fangxlmr
Copy link

fangxlmr commented Nov 2, 2018

I encountered the same issue while using Yocto, but I have no clue on the reason behind and how to solve it.

@pietrushnic
Copy link
Member Author

@fangxlmr temporary solution is simple, just list running containers and stop the one that is in background, then You can start again. IMO we should solve that in a robust way - we will get to that.

@cdm0413
Copy link

cdm0413 commented Jan 8, 2021

I just met the same issue, remove the bitbake.lock in the build path, and run again, it will works

@Pallapu454
Copy link

Hello,
I am using Arago distribution, i tried to remove bitbake.lock, but i still get the same issue and again this bitbake.lock file is keep getting generated.

I have even restarted my PC also.

@macpijan macpijan assigned TomaszAIR and unassigned macpijan Sep 26, 2022
@macpijan
Copy link
Member

@TomaszAIR Easy fix would be to keep the i flag when not running in CI.

@Mohana493
Copy link

Did you faced something like this?

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

How to fix it??

@Mohana493
Copy link

By removing bitbake .lock files also it's not executing

@macpijan
Copy link
Member

We do not really use this repo anymore, please take a look at the description in the about section.
I wil lgo ahead and archive it

This repository is not currently used. For yocto projects we use https://github.com/siemens/kas container 

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

No branches or pull requests

7 participants