DREAMER

[bitbake error] server connection error (solved) 본문

프로그래밍/YOCTO

[bitbake error] server connection error (solved)

연소민 2023. 10. 27. 10:18
728x90
반응형

bitbake 이미지 실행 시, server connection error가 발생하였다.

bitbake 실행 시 Ctrl + c 등으로 강제종료시에 발생할 수 있다고 한다.

 

에러 메시지는 다음과 같다.

$ bitbake core-image-weston
NOTE: Retrying server connection (#1)... (Traceback (most recent call last):
  File "/home/user/yocto-tegra/poky/bitbake/lib/bb/main.py", line 427, in setup_bitbake
    topdir, lock = lockBitbake()
  File "/home/user/yocto-tegra/poky/bitbake/lib/bb/main.py", line 492, in lockBitbake
    topdir = bb.cookerdata.findTopdir()
  File "/home/user/yocto-tegra/poky/bitbake/lib/bb/cookerdata.py", line 234, in findTopdir
    layerconf = findConfigFile("bblayers.conf", d)
  File "/home/user/yocto-tegra/poky/bitbake/lib/bb/cookerdata.py", line 211, in findConfigFile
    path = os.getcwd()
FileNotFoundError: [Errno 2] No such file or directory
)
NOTE: Retrying server connection (#2)... (Traceback (most recent call last):
  File "/home/user/yocto-tegra/poky/bitbake/lib/bb/main.py", line 427, in setup_bitbake
    topdir, lock = lockBitbake()
  File "/home/user/yocto-tegra/poky/bitbake/lib/bb/main.py", line 492, in lockBitbake
    topdir = bb.cookerdata.findTopdir()
  File "/home/user/yocto-tegra/poky/bitbake/lib/bb/cookerdata.py", line 234, in findTopdir
    layerconf = findConfigFile("bblayers.conf", d)
  File "/home/user/yocto-tegra/poky/bitbake/lib/bb/cookerdata.py", line 211, in findConfigFile
    path = os.getcwd()
FileNotFoundError: [Errno 2] No such file or directory
)
/***/

 

해결방법으로는 두가지가 있다.

1. lock파일을 삭제한다.

2. 조금 있다가 다시한다.

 

첫번째 방법은 아래 파일들을 삭제한다. 빌드 디렉터리 밑에 있다.

bitbake.lock
bitbake.sock
hashserve.sock

해당 파일이 모두 존재하지 않는다면, 두번째 방법으로 해결할 수 있다.

조금 있다가 다시한다. (ㅋㅋㅋㅎ)

 

끝!

 

 

 

 

 

728x90
반응형
Comments