Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to connect to bitbake server

Tags:

bitbake

Im trying to setup bitbake tool and trying to follow the tutorial

https://www.yoctoproject.org/docs/1.8/bitbake-user-manual/bitbake-user-manual.html#bitbake-examples

Now when I run the bitbake command I get the following error,

p@p-ubuntu:~/ba/bitbake$ bitbake
NOTE: Retrying server connection... (Traceback (most recent call last):
  File "/home/p/ba/bitbake/lib/bb/main.py", line 428, in setup_bitbake
    topdir, lock = lockBitbake()
  File "/home/p/ba/bitbake/lib/bb/main.py", line 480, in lockBitbake
    lockfile = topdir + "/bitbake.lock"
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
)
NOTE: Retrying server connection... (Traceback (most recent call last):
  File "/home/p/ba/bitbake/lib/bb/main.py", line 428, in setup_bitbake
    topdir, lock = lockBitbake()
  File "/home/p/ba/bitbake/lib/bb/main.py", line 480, in lockBitbake
    lockfile = topdir + "/bitbake.lock"
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

How do I start the bitbake server?

like image 854
user1050619 Avatar asked Jul 21 '17 16:07

user1050619


2 Answers

I had the same problem after I canceled a bitbake-process harshly (ctrl-c).

After removing the file bitbake.lock in the build-folder, bitbake worked again as intended.

rm bitbake.lock
like image 78
dertom Avatar answered Sep 28 '22 11:09

dertom


I was following the Yocto tutorial too and had the exact same error. I am running Ubuntu 16.04 in a Virtual Box 6.0 environment on my Windows 10 system.

I finally figured out that using BitBake on a shared folder produce that error. For some reason, installing the Yocto project with the Bitbake on a Virtual Box "sf_" shared folder produce that error.

I then created a fresh folder not on a shared folder of my Ubuntu and redone the Yocto tutorial steps there and the Bitbake command ran succesfully ! It's building the tutorial project while I write those lines.

Hope it will help you with your problem !

like image 40
Patrick Perron Avatar answered Sep 28 '22 09:09

Patrick Perron