* Toaster Problem
@ 2015-12-08 10:39 Martin Townsend
2015-12-08 13:46 ` [yocto] " Mihail, StanciuX
0 siblings, 1 reply; 9+ messages in thread
From: Martin Townsend @ 2015-12-08 10:39 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 3221 bytes --]
Hi,
I'm trying out a production instance of toaster, I'm following the
instructions from here
http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html#toaster-setting-up-a-production-instance-of-toaster
I managed to get toaster up and running but had to adjust a few things
which you might want to correct in the documentation:
1) virtualenv package doesn't exist in Ubuntu 14.04 had to use
python-virtualenv
2) You need python headers later so add python-dev to list of packages to
install
3) After cloning poky there should be a cd poky before checking out a
branch.
4) SECRET_KEY, it would be nice to know what this is used for, what
characters is can contain, ie can it contain spaces.
5) In the mysql part is states we are creating a database called toaster
but in the settings.py we specify toaster_main one of them needs correcting.
6) Before calling ./bitbake/lib/toaster/manage.py syncdb --migrate maybe it
should link to 3.5 and state that you should create a Django super user
first.
7)There's a typo in the Apache toaster.conf s/toastern_wsgi/toaster_wsgi/
8) Build runner service is wrong, there needs to be the poky directory
involved somewhere, either cd /var/www/toaster/poky or we call
./poky/bitbake/toaster/manage.py
Even with all this I can't get it to build, creating a project based on
fido 1.8 and trying to build core-image-lsb I get
2015-12-08 10:27:57,705 DEBUG localhostbecontroller, our git repos are
{(u'git://git.yoctoproject.org/meta-yocto', u'fido'): [(u'meta-yocto',
u'meta-yocto'),
(u'meta-yocto-bsp',
u'meta-yocto-bsp')],
(u'git://git.yoctoproject.org/poky', u'fido'): [('bitbake', u'bitbake'),
(u'openembedded-core',
u'meta')]}
2015-12-08 10:27:57,705 DEBUG lbc_shellcmmd: () git remote -v
Traceback (most recent call last):
File "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py",
line 60, in schedule
bec.triggerBuild(br.brbitbake_set.all(), br.brlayer_set.all(),
br.brvariable_set.all(), br.brtarget_set.all())
File "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py",
line 282, in triggerBuild
self.setLayers(bitbake, layers, targets)
File "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py",
line 150, in setLayers
for remotes in self._shellcmd("git remote -v",
self.be.sourcedir).split("\n"):
File "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py",
line 59, in _shellcmd
p = subprocess.Popen(command, cwd = cwd, shell=True,
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory: ''
in the console.
Any idea whats going wrong?
Cheers,
Martin.
[-- Attachment #2: Type: text/html, Size: 4081 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Toaster Problem
2015-12-08 10:39 Toaster Problem Martin Townsend
@ 2015-12-08 13:46 ` Mihail, StanciuX
0 siblings, 0 replies; 9+ messages in thread
From: Mihail, StanciuX @ 2015-12-08 13:46 UTC (permalink / raw)
To: Martin Townsend, yocto@yoctoproject.org; +Cc: toaster@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 4452 bytes --]
Hi Martin,
First off, may I suggest the toaster mailing list in the future if you have questions (toaster@yoctoproject.org<mailto:toaster@yoctoproject.org>)
As for your problem:
Something is off about the way your toaster was started.
Here’s how the first line above your traceback looks on my machine:
lbc_shellcmmd: (/home/dave/poky) git remote –v
That location “/home/dave/poky” is where I issued the toaster start command (bitbake/bin/toaster).
I’ve tried to reproduce this on my machine but haven’t been able to do it.
Could you please let us know how you started toaster and from what location? Also, was it as root or a different user?
Off the top of my head , one thing that might cause this would be if you cloned poky as root then somehow started toaster as a different user.
Also, which yocto project (poky) release are you using? Was it master or maybe Jethro?
Oh, and what flavor linux is this on?
Regards,
Mihail
From: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org] On Behalf Of Martin Townsend
Sent: Tuesday, December 08, 2015 12:40 PM
To: yocto@yoctoproject.org
Subject: [yocto] Toaster Problem
Hi,
I'm trying out a production instance of toaster, I'm following the instructions from here
http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html#toaster-setting-up-a-production-instance-of-toaster
I managed to get toaster up and running but had to adjust a few things which you might want to correct in the documentation:
1) virtualenv package doesn't exist in Ubuntu 14.04 had to use python-virtualenv
2) You need python headers later so add python-dev to list of packages to install
3) After cloning poky there should be a cd poky before checking out a branch.
4) SECRET_KEY, it would be nice to know what this is used for, what characters is can contain, ie can it contain spaces.
5) In the mysql part is states we are creating a database called toaster but in the settings.py we specify toaster_main one of them needs correcting.
6) Before calling ./bitbake/lib/toaster/manage.py syncdb --migrate maybe it should link to 3.5 and state that you should create a Django super user first.
7)There's a typo in the Apache toaster.conf s/toastern_wsgi/toaster_wsgi/
8) Build runner service is wrong, there needs to be the poky directory involved somewhere, either cd /var/www/toaster/poky or we call ./poky/bitbake/toaster/manage.py
Even with all this I can't get it to build, creating a project based on fido 1.8 and trying to build core-image-lsb I get
2015-12-08 10:27:57,705 DEBUG localhostbecontroller, our git repos are {(u'git://git.yoctoproject.org/meta-yocto<http://git.yoctoproject.org/meta-yocto>', u'fido'): [(u'meta-yocto',
u'meta-yocto'),
(u'meta-yocto-bsp',
u'meta-yocto-bsp')],
(u'git://git.yoctoproject.org/poky<http://git.yoctoproject.org/poky>', u'fido'): [('bitbake', u'bitbake'),
(u'openembedded-core',
u'meta')]}
2015-12-08 10:27:57,705 DEBUG lbc_shellcmmd: () git remote -v
Traceback (most recent call last):
File "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py", line 60, in schedule
bec.triggerBuild(br.brbitbake_set.all(), br.brlayer_set.all(), br.brvariable_set.all(), br.brtarget_set.all())
File "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py", line 282, in triggerBuild
self.setLayers(bitbake, layers, targets)
File "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py", line 150, in setLayers
for remotes in self._shellcmd("git remote -v", self.be.sourcedir).split("\n"):
File "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py", line 59, in _shellcmd
p = subprocess.Popen(command, cwd = cwd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory: ''
in the console.
Any idea whats going wrong?
Cheers,
Martin.
[-- Attachment #2: Type: text/html, Size: 12781 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [yocto] Toaster Problem
@ 2015-12-08 13:46 ` Mihail, StanciuX
0 siblings, 0 replies; 9+ messages in thread
From: Mihail, StanciuX @ 2015-12-08 13:46 UTC (permalink / raw)
To: Martin Townsend, yocto@yoctoproject.org; +Cc: toaster@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 4452 bytes --]
Hi Martin,
First off, may I suggest the toaster mailing list in the future if you have questions (toaster@yoctoproject.org<mailto:toaster@yoctoproject.org>)
As for your problem:
Something is off about the way your toaster was started.
Here’s how the first line above your traceback looks on my machine:
lbc_shellcmmd: (/home/dave/poky) git remote –v
That location “/home/dave/poky” is where I issued the toaster start command (bitbake/bin/toaster).
I’ve tried to reproduce this on my machine but haven’t been able to do it.
Could you please let us know how you started toaster and from what location? Also, was it as root or a different user?
Off the top of my head , one thing that might cause this would be if you cloned poky as root then somehow started toaster as a different user.
Also, which yocto project (poky) release are you using? Was it master or maybe Jethro?
Oh, and what flavor linux is this on?
Regards,
Mihail
From: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org] On Behalf Of Martin Townsend
Sent: Tuesday, December 08, 2015 12:40 PM
To: yocto@yoctoproject.org
Subject: [yocto] Toaster Problem
Hi,
I'm trying out a production instance of toaster, I'm following the instructions from here
http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html#toaster-setting-up-a-production-instance-of-toaster
I managed to get toaster up and running but had to adjust a few things which you might want to correct in the documentation:
1) virtualenv package doesn't exist in Ubuntu 14.04 had to use python-virtualenv
2) You need python headers later so add python-dev to list of packages to install
3) After cloning poky there should be a cd poky before checking out a branch.
4) SECRET_KEY, it would be nice to know what this is used for, what characters is can contain, ie can it contain spaces.
5) In the mysql part is states we are creating a database called toaster but in the settings.py we specify toaster_main one of them needs correcting.
6) Before calling ./bitbake/lib/toaster/manage.py syncdb --migrate maybe it should link to 3.5 and state that you should create a Django super user first.
7)There's a typo in the Apache toaster.conf s/toastern_wsgi/toaster_wsgi/
8) Build runner service is wrong, there needs to be the poky directory involved somewhere, either cd /var/www/toaster/poky or we call ./poky/bitbake/toaster/manage.py
Even with all this I can't get it to build, creating a project based on fido 1.8 and trying to build core-image-lsb I get
2015-12-08 10:27:57,705 DEBUG localhostbecontroller, our git repos are {(u'git://git.yoctoproject.org/meta-yocto<http://git.yoctoproject.org/meta-yocto>', u'fido'): [(u'meta-yocto',
u'meta-yocto'),
(u'meta-yocto-bsp',
u'meta-yocto-bsp')],
(u'git://git.yoctoproject.org/poky<http://git.yoctoproject.org/poky>', u'fido'): [('bitbake', u'bitbake'),
(u'openembedded-core',
u'meta')]}
2015-12-08 10:27:57,705 DEBUG lbc_shellcmmd: () git remote -v
Traceback (most recent call last):
File "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py", line 60, in schedule
bec.triggerBuild(br.brbitbake_set.all(), br.brlayer_set.all(), br.brvariable_set.all(), br.brtarget_set.all())
File "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py", line 282, in triggerBuild
self.setLayers(bitbake, layers, targets)
File "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py", line 150, in setLayers
for remotes in self._shellcmd("git remote -v", self.be.sourcedir).split("\n"):
File "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py", line 59, in _shellcmd
p = subprocess.Popen(command, cwd = cwd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory: ''
in the console.
Any idea whats going wrong?
Cheers,
Martin.
[-- Attachment #2: Type: text/html, Size: 12781 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [yocto] Toaster Problem
2015-12-08 13:46 ` [yocto] " Mihail, StanciuX
(?)
@ 2015-12-08 14:12 ` Martin Townsend
2015-12-08 15:26 ` Michael Wood
2015-12-08 15:38 ` Mihail, StanciuX
-1 siblings, 2 replies; 9+ messages in thread
From: Martin Townsend @ 2015-12-08 14:12 UTC (permalink / raw)
To: Mihail, StanciuX; +Cc: toaster@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 5115 bytes --]
Hi,
I'm using Ubuntu 14.04 LTS, I've cloned poky as myself and added myself to
the www-data group and used
sudo setfacl -d -m group:www-data:rwx /var/www
before doing all this so permissions should be ok. /var/www has group
ownership of www-data
I've checkout out master.
Ah yes, the toaster mailing list would have been better :)
Cheers,
Martin.
On Tue, Dec 8, 2015 at 1:46 PM, Mihail, StanciuX <stanciux.mihail@intel.com>
wrote:
> Hi Martin,
>
>
>
> First off, may I suggest the toaster mailing list in the future if you
> have questions (toaster@yoctoproject.org)
>
>
>
> As for your problem:
>
> Something is off about the way your toaster was started.
>
> Here’s how the first line above your traceback looks on my machine:
> lbc_shellcmmd: (/home/dave/poky) git remote –v
>
>
>
> That location “/home/dave/poky” is where I issued the toaster start
> command (bitbake/bin/toaster).
>
>
>
> I’ve tried to reproduce this on my machine but haven’t been able to do it.
>
>
>
> Could you please let us know how you started toaster and from what
> location? Also, was it as root or a different user?
>
> Off the top of my head , one thing that might cause this would be if you
> cloned poky as root then somehow started toaster as a different user.
>
>
>
> Also, which yocto project (poky) release are you using? Was it master or
> maybe Jethro?
>
> Oh, and what flavor linux is this on?
>
>
>
> Regards,
>
> Mihail
>
>
>
> *From:* yocto-bounces@yoctoproject.org [mailto:
> yocto-bounces@yoctoproject.org] *On Behalf Of *Martin Townsend
> *Sent:* Tuesday, December 08, 2015 12:40 PM
> *To:* yocto@yoctoproject.org
> *Subject:* [yocto] Toaster Problem
>
>
>
> Hi,
>
> I'm trying out a production instance of toaster, I'm following the
> instructions from here
>
>
> http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html#toaster-setting-up-a-production-instance-of-toaster
>
>
>
> I managed to get toaster up and running but had to adjust a few things
> which you might want to correct in the documentation:
>
> 1) virtualenv package doesn't exist in Ubuntu 14.04 had to use
> python-virtualenv
>
> 2) You need python headers later so add python-dev to list of packages to
> install
>
> 3) After cloning poky there should be a cd poky before checking out a
> branch.
>
> 4) SECRET_KEY, it would be nice to know what this is used for, what
> characters is can contain, ie can it contain spaces.
>
> 5) In the mysql part is states we are creating a database called toaster
> but in the settings.py we specify toaster_main one of them needs correcting.
>
> 6) Before calling ./bitbake/lib/toaster/manage.py syncdb --migrate maybe
> it should link to 3.5 and state that you should create a Django super user
> first.
>
> 7)There's a typo in the Apache toaster.conf s/toastern_wsgi/toaster_wsgi/
>
> 8) Build runner service is wrong, there needs to be the poky directory
> involved somewhere, either cd /var/www/toaster/poky or we call
> ./poky/bitbake/toaster/manage.py
>
> Even with all this I can't get it to build, creating a project based on
> fido 1.8 and trying to build core-image-lsb I get
>
> 2015-12-08 10:27:57,705 DEBUG localhostbecontroller, our git repos are {(u'git://git.yoctoproject.org/meta-yocto', u'fido'): [(u'meta-yocto',
> u'meta-yocto'),
> (u'meta-yocto-bsp',
> u'meta-yocto-bsp')],
> (u'git://git.yoctoproject.org/poky', u'fido'): [('bitbake', u'bitbake'),
> (u'openembedded-core',
> u'meta')]}
> 2015-12-08 10:27:57,705 DEBUG lbc_shellcmmd: () git remote -v
> Traceback (most recent call last):
> File "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py", line 60, in schedule
> bec.triggerBuild(br.brbitbake_set.all(), br.brlayer_set.all(), br.brvariable_set.all(), br.brtarget_set.all())
> File "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py", line 282, in triggerBuild
> self.setLayers(bitbake, layers, targets)
> File "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py", line 150, in setLayers
> for remotes in self._shellcmd("git remote -v", self.be.sourcedir).split("\n"):
> File "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py", line 59, in _shellcmd
> p = subprocess.Popen(command, cwd = cwd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
> File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
> errread, errwrite)
> File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
> raise child_exception
> OSError: [Errno 2] No such file or directory: ''
>
> in the console.
>
> Any idea whats going wrong?
>
> Cheers,
>
> Martin.
>
>
[-- Attachment #2: Type: text/html, Size: 10976 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [yocto] Toaster Problem
2015-12-08 14:12 ` Martin Townsend
@ 2015-12-08 15:26 ` Michael Wood
2015-12-08 16:20 ` Martin Townsend
2015-12-08 15:38 ` Mihail, StanciuX
1 sibling, 1 reply; 9+ messages in thread
From: Michael Wood @ 2015-12-08 15:26 UTC (permalink / raw)
To: toaster
Hi,
If you're using master the instructions on the Wiki might be more useful
as they're the WIP instructions.
https://wiki.yoctoproject.org/wiki/Setting_up_a_production_instance_of_Toaster
I've responded in-line to your points 1-8
On 08/12/15 14:12, Martin Townsend wrote:
> Hi,
>
> I'm using Ubuntu 14.04 LTS, I've cloned poky as myself and added
> myself to the www-data group and used
> sudo setfacl -d -m group:www-data:rwx /var/www
> before doing all this so permissions should be ok. /var/www has group
> ownership of www-data
>
> I've checkout out master.
>
> Ah yes, the toaster mailing list would have been better :)
>
> Cheers,
> Martin.
>
>
> On Tue, Dec 8, 2015 at 1:46 PM, Mihail, StanciuX
> <stanciux.mihail@intel.com <mailto:stanciux.mihail@intel.com>> wrote:
>
> Hi Martin,
>
> First off, may I suggest the toaster mailing list in the future if
> you have questions (toaster@yoctoproject.org
> <mailto:toaster@yoctoproject.org>)
>
> As for your problem:
>
> Something is off about the way your toaster was started.
>
> Here’s how the first line above your traceback looks on my machine:
> lbc_shellcmmd: (/home/dave/poky) git remote –v
>
> That location “/home/dave/poky” is where I issued the toaster
> start command (bitbake/bin/toaster).
>
> I’ve tried to reproduce this on my machine but haven’t been able
> to do it.
>
> Could you please let us know how you started toaster and from what
> location? Also, was it as root or a different user?
>
> Off the top of my head , one thing that might cause this would be
> if you cloned poky as root then somehow started toaster as a
> different user.
>
> Also, which yocto project (poky) release are you using? Was it
> master or maybe Jethro?
>
> Oh, and what flavor linux is this on?
>
> Regards,
>
> Mihail
>
> *From:*yocto-bounces@yoctoproject.org
> <mailto:yocto-bounces@yoctoproject.org>
> [mailto:yocto-bounces@yoctoproject.org
> <mailto:yocto-bounces@yoctoproject.org>] *On Behalf Of *Martin
> Townsend
> *Sent:* Tuesday, December 08, 2015 12:40 PM
> *To:* yocto@yoctoproject.org <mailto:yocto@yoctoproject.org>
> *Subject:* [yocto] Toaster Problem
>
> Hi,
>
> I'm trying out a production instance of toaster, I'm following the
> instructions from here
>
> http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html#toaster-setting-up-a-production-instance-of-toaster
>
> I managed to get toaster up and running but had to adjust a few
> things which you might want to correct in the documentation:
>
> 1) virtualenv package doesn't exist in Ubuntu 14.04 had to use
> python-virtualenv
>
> 2) You need python headers later so add python-dev to list of
> packages to install
>
> 3) After cloning poky there should be a cd poky before checking
> out a branch.
>
> 4) SECRET_KEY, it would be nice to know what this is used for,
> what characters is can contain, ie can it contain spaces.
>
More info on that can be found at
https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/#secret-key
> 5) In the mysql part is states we are creating a database called
> toaster but in the settings.py we specify toaster_main one of them
> needs correcting.
>
> 6) Before calling ./bitbake/lib/toaster/manage.py syncdb --migrate
> maybe it should link to 3.5 and state that you should create a
> Django super user first.
>
> 7)There's a typo in the Apache toaster.conf
> s/toastern_wsgi/toaster_wsgi/
>
I think all those other points are correct/corrected on the wiki at the
moment.
> 8) Build runner service is wrong, there needs to be the poky
> directory involved somewhere, either cd /var/www/toaster/poky or
> we call ./poky/bitbake/toaster/manage.py
>
> Even with all this I can't get it to build, creating a project
> based on fido 1.8 and trying to build core-image-lsb I get
>
> 2015-12-08 10:27:57,705 DEBUG localhostbecontroller, our git repos are {(u'git://git.yoctoproject.org/meta-yocto
> <http://git.yoctoproject.org/meta-yocto>', u'fido'): [(u'meta-yocto',
> u'meta-yocto'),
> (u'meta-yocto-bsp',
> u'meta-yocto-bsp')],
> (u'git://git.yoctoproject.org/poky <http://git.yoctoproject.org/poky>', u'fido'): [('bitbake', u'bitbake'),
> (u'openembedded-core',
> u'meta')]}
> 2015-12-08 10:27:57,705 DEBUG lbc_shellcmmd: () git remote -v
> Traceback (most recent call last):
> File "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py", line 60, in schedule
> bec.triggerBuild(br.brbitbake_set.all(), br.brlayer_set.all(), br.brvariable_set.all(), br.brtarget_set.all())
> File "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py", line 282, in triggerBuild
> self.setLayers(bitbake, layers, targets)
> File "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py", line 150, in setLayers
> for remotes in self._shellcmd("git remote -v", self.be.sourcedir).split("\n"):
> File "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py", line 59, in _shellcmd
> p = subprocess.Popen(command, cwd = cwd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
> File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
> errread, errwrite)
> File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
> raise child_exception
> OSError: [Errno 2] No such file or directory: ''
>
> in the console.
>
> Any idea whats going wrong?
>
Hmm seems like the self.be.sourcedir might not set. Are you able to run
./poky/bitbake/lib/toaster/manage.py checksettings and then try again?
Thanks,
Michael
> Cheers,
>
> Martin.
>
>
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [yocto] Toaster Problem
2015-12-08 14:12 ` Martin Townsend
2015-12-08 15:26 ` Michael Wood
@ 2015-12-08 15:38 ` Mihail, StanciuX
1 sibling, 0 replies; 9+ messages in thread
From: Mihail, StanciuX @ 2015-12-08 15:38 UTC (permalink / raw)
To: Martin Townsend; +Cc: toaster@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 6499 bytes --]
Hi Martin,
I’m sorry, I haven’t been able to reproduce your particular issue locally ☹
Here’s a step by step of my setup process, maybe it can help you:
1. Clone fresh poky
2. Source a build environment by issuing: “source oe-init-build-env {build_folder_name}”
3. While in {build_folder_name}, start toaster by issuing: “. {path_to_poky}/bitbake/bin/toaster” (note the leading period-and-space)
4. Once toaster starts, access the web interface and create a new project(tried both fido and local yocto project)
5. In said project, configure the machine to one that supports lsb builds (i.e genericx86-64)
6. In the bitbake variables configuration page, change DISTRO to “poky-lsb” from “poky”
7. Still in the bitbake variables configuration page, remove the SDK_MACHINE variable (there is a known issue with this particular variable in master and deleting it is a temporary workaround)
You should now be able to issue a core-image-lsb build command that will fail with a “Nothing PROVIDES 'core-image-lsb'” error. Still looking into that problem, but it’s definitely passed the step where you’re getting the error you mentioned below.
Regards,
Mihail
From: Martin Townsend [mailto:mtownsend1973@gmail.com]
Sent: Tuesday, December 08, 2015 4:12 PM
To: Mihail, StanciuX
Cc: toaster@yoctoproject.org
Subject: Re: [yocto] Toaster Problem
Hi,
I'm using Ubuntu 14.04 LTS, I've cloned poky as myself and added myself to the www-data group and used
sudo setfacl -d -m group:www-data:rwx /var/www
before doing all this so permissions should be ok. /var/www has group ownership of www-data
I've checkout out master.
Ah yes, the toaster mailing list would have been better :)
Cheers,
Martin.
On Tue, Dec 8, 2015 at 1:46 PM, Mihail, StanciuX <stanciux.mihail@intel.com<mailto:stanciux.mihail@intel.com>> wrote:
Hi Martin,
First off, may I suggest the toaster mailing list in the future if you have questions (toaster@yoctoproject.org<mailto:toaster@yoctoproject.org>)
As for your problem:
Something is off about the way your toaster was started.
Here’s how the first line above your traceback looks on my machine:
lbc_shellcmmd: (/home/dave/poky) git remote –v
That location “/home/dave/poky” is where I issued the toaster start command (bitbake/bin/toaster).
I’ve tried to reproduce this on my machine but haven’t been able to do it.
Could you please let us know how you started toaster and from what location? Also, was it as root or a different user?
Off the top of my head , one thing that might cause this would be if you cloned poky as root then somehow started toaster as a different user.
Also, which yocto project (poky) release are you using? Was it master or maybe Jethro?
Oh, and what flavor linux is this on?
Regards,
Mihail
From: yocto-bounces@yoctoproject.org<mailto:yocto-bounces@yoctoproject.org> [mailto:yocto-bounces@yoctoproject.org<mailto:yocto-bounces@yoctoproject.org>] On Behalf Of Martin Townsend
Sent: Tuesday, December 08, 2015 12:40 PM
To: yocto@yoctoproject.org<mailto:yocto@yoctoproject.org>
Subject: [yocto] Toaster Problem
Hi,
I'm trying out a production instance of toaster, I'm following the instructions from here
http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html#toaster-setting-up-a-production-instance-of-toaster
I managed to get toaster up and running but had to adjust a few things which you might want to correct in the documentation:
1) virtualenv package doesn't exist in Ubuntu 14.04 had to use python-virtualenv
2) You need python headers later so add python-dev to list of packages to install
3) After cloning poky there should be a cd poky before checking out a branch.
4) SECRET_KEY, it would be nice to know what this is used for, what characters is can contain, ie can it contain spaces.
5) In the mysql part is states we are creating a database called toaster but in the settings.py we specify toaster_main one of them needs correcting.
6) Before calling ./bitbake/lib/toaster/manage.py syncdb --migrate maybe it should link to 3.5 and state that you should create a Django super user first.
7)There's a typo in the Apache toaster.conf s/toastern_wsgi/toaster_wsgi/
8) Build runner service is wrong, there needs to be the poky directory involved somewhere, either cd /var/www/toaster/poky or we call ./poky/bitbake/toaster/manage.py
Even with all this I can't get it to build, creating a project based on fido 1.8 and trying to build core-image-lsb I get
2015-12-08 10:27:57,705 DEBUG localhostbecontroller, our git repos are {(u'git://git.yoctoproject.org/meta-yocto<http://git.yoctoproject.org/meta-yocto>', u'fido'): [(u'meta-yocto',
u'meta-yocto'),
(u'meta-yocto-bsp',
u'meta-yocto-bsp')],
(u'git://git.yoctoproject.org/poky<http://git.yoctoproject.org/poky>', u'fido'): [('bitbake', u'bitbake'),
(u'openembedded-core',
u'meta')]}
2015-12-08 10:27:57,705 DEBUG lbc_shellcmmd: () git remote -v
Traceback (most recent call last):
File "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py", line 60, in schedule
bec.triggerBuild(br.brbitbake_set.all(), br.brlayer_set.all(), br.brvariable_set.all(), br.brtarget_set.all())
File "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py", line 282, in triggerBuild
self.setLayers(bitbake, layers, targets)
File "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py", line 150, in setLayers
for remotes in self._shellcmd("git remote -v", self.be.sourcedir).split("\n"):
File "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py", line 59, in _shellcmd
p = subprocess.Popen(command, cwd = cwd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory: ''
in the console.
Any idea whats going wrong?
Cheers,
Martin.
[-- Attachment #2: Type: text/html, Size: 25304 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [yocto] Toaster Problem
2015-12-08 15:26 ` Michael Wood
@ 2015-12-08 16:20 ` Martin Townsend
2015-12-09 10:43 ` Martin Townsend
0 siblings, 1 reply; 9+ messages in thread
From: Martin Townsend @ 2015-12-08 16:20 UTC (permalink / raw)
To: Michael Wood; +Cc: toaster
[-- Attachment #1: Type: text/plain, Size: 8882 bytes --]
Hi Michael,
I get the following which looks like your assumption is correct
(venv)martint@toaster$ ./poky/bitbake/lib/toaster/manage.py checksettings
-- Validation: The layers checkout directory must be set.
Traceback (most recent call last):
File "./poky/bitbake/lib/toaster/manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File
"/var/www/toaster/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 399, in execute_from_command_line
utility.execute()
File
"/var/www/toaster/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File
"/var/www/toaster/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
line 242, in run_from_argv
self.execute(*args, **options.__dict__)
File
"/var/www/toaster/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
line 285, in execute
output = self.handle(*args, **options)
File
"/var/www/toaster/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
line 415, in handle
return self.handle_noargs(**options)
File
"/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py",
line 157, in handle_noargs
retval += self._verify_build_environment()
File
"/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py",
line 125, in _verify_build_environment
while _verify_be():
File
"/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py",
line 76, in _verify_be
if not be.sourcedir.startswith("/"):
AttributeError: 'NoneType' object has no attribute 'startswith'
I think toaster isn't going to work for me. I wanted to use Toaster to
build from layers I have setup within the /var/www/bia/yocto directory
which have several custom layers of which 3 are in SVN (sadly this is what
the customer wants to use), I was looking at the local yocto project and a
custom toasterconf.json file and can't see how I would make this work.
Please let me know if I'm wrong.
Cheers,
Martin.
On Tue, Dec 8, 2015 at 3:26 PM, Michael Wood <michael.g.wood@intel.com>
wrote:
> Hi,
>
> If you're using master the instructions on the Wiki might be more useful
> as they're the WIP instructions.
>
>
> https://wiki.yoctoproject.org/wiki/Setting_up_a_production_instance_of_Toaster
>
> I've responded in-line to your points 1-8
>
> On 08/12/15 14:12, Martin Townsend wrote:
>
>> Hi,
>>
>> I'm using Ubuntu 14.04 LTS, I've cloned poky as myself and added myself
>> to the www-data group and used
>> sudo setfacl -d -m group:www-data:rwx /var/www
>> before doing all this so permissions should be ok. /var/www has group
>> ownership of www-data
>>
>> I've checkout out master.
>>
>> Ah yes, the toaster mailing list would have been better :)
>>
>> Cheers,
>> Martin.
>>
>>
>> On Tue, Dec 8, 2015 at 1:46 PM, Mihail, StanciuX <
>> stanciux.mihail@intel.com <mailto:stanciux.mihail@intel.com>> wrote:
>>
>> Hi Martin,
>>
>> First off, may I suggest the toaster mailing list in the future if
>> you have questions (toaster@yoctoproject.org
>> <mailto:toaster@yoctoproject.org>)
>>
>> As for your problem:
>>
>> Something is off about the way your toaster was started.
>>
>> Here’s how the first line above your traceback looks on my machine:
>> lbc_shellcmmd: (/home/dave/poky) git remote –v
>>
>> That location “/home/dave/poky” is where I issued the toaster
>> start command (bitbake/bin/toaster).
>>
>> I’ve tried to reproduce this on my machine but haven’t been able
>> to do it.
>>
>> Could you please let us know how you started toaster and from what
>> location? Also, was it as root or a different user?
>>
>> Off the top of my head , one thing that might cause this would be
>> if you cloned poky as root then somehow started toaster as a
>> different user.
>>
>> Also, which yocto project (poky) release are you using? Was it
>> master or maybe Jethro?
>>
>> Oh, and what flavor linux is this on?
>>
>> Regards,
>>
>> Mihail
>>
>> *From:*yocto-bounces@yoctoproject.org
>> <mailto:yocto-bounces@yoctoproject.org>
>> [mailto:yocto-bounces@yoctoproject.org
>> <mailto:yocto-bounces@yoctoproject.org>] *On Behalf Of *Martin
>> Townsend
>> *Sent:* Tuesday, December 08, 2015 12:40 PM
>> *To:* yocto@yoctoproject.org <mailto:yocto@yoctoproject.org>
>> *Subject:* [yocto] Toaster Problem
>>
>> Hi,
>>
>> I'm trying out a production instance of toaster, I'm following the
>> instructions from here
>>
>>
>> http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html#toaster-setting-up-a-production-instance-of-toaster
>>
>> I managed to get toaster up and running but had to adjust a few
>> things which you might want to correct in the documentation:
>>
>> 1) virtualenv package doesn't exist in Ubuntu 14.04 had to use
>> python-virtualenv
>>
>> 2) You need python headers later so add python-dev to list of
>> packages to install
>>
>> 3) After cloning poky there should be a cd poky before checking
>> out a branch.
>>
>> 4) SECRET_KEY, it would be nice to know what this is used for,
>> what characters is can contain, ie can it contain spaces.
>>
>>
> More info on that can be found at
> https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/#secret-key
>
> 5) In the mysql part is states we are creating a database called
>> toaster but in the settings.py we specify toaster_main one of them
>> needs correcting.
>>
>> 6) Before calling ./bitbake/lib/toaster/manage.py syncdb --migrate
>> maybe it should link to 3.5 and state that you should create a
>> Django super user first.
>>
>> 7)There's a typo in the Apache toaster.conf
>> s/toastern_wsgi/toaster_wsgi/
>>
>>
> I think all those other points are correct/corrected on the wiki at the
> moment.
>
> 8) Build runner service is wrong, there needs to be the poky
>> directory involved somewhere, either cd /var/www/toaster/poky or
>> we call ./poky/bitbake/toaster/manage.py
>>
>> Even with all this I can't get it to build, creating a project
>> based on fido 1.8 and trying to build core-image-lsb I get
>>
>> 2015-12-08 10:27:57,705 DEBUG localhostbecontroller, our git repos
>> are {(u'git://git.yoctoproject.org/meta-yocto
>> <http://git.yoctoproject.org/meta-yocto>', u'fido'): [(u'meta-yocto',
>>
>> u'meta-yocto'),
>>
>> (u'meta-yocto-bsp',
>>
>> u'meta-yocto-bsp')],
>> (u'git://git.yoctoproject.org/poky <
>> http://git.yoctoproject.org/poky>', u'fido'): [('bitbake', u'bitbake'),
>>
>> (u'openembedded-core',
>> u'meta')]}
>> 2015-12-08 10:27:57,705 DEBUG lbc_shellcmmd: () git remote -v
>> Traceback (most recent call last):
>> File
>> "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py",
>> line 60, in schedule
>> bec.triggerBuild(br.brbitbake_set.all(), br.brlayer_set.all(),
>> br.brvariable_set.all(), br.brtarget_set.all())
>> File
>> "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py",
>> line 282, in triggerBuild
>> self.setLayers(bitbake, layers, targets)
>> File
>> "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py",
>> line 150, in setLayers
>> for remotes in self._shellcmd("git remote -v",
>> self.be.sourcedir).split("\n"):
>> File
>> "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py",
>> line 59, in _shellcmd
>> p = subprocess.Popen(command, cwd = cwd, shell=True,
>> stdout=subprocess.PIPE, stderr=subprocess.PIPE)
>> File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
>> errread, errwrite)
>> File "/usr/lib/python2.7/subprocess.py", line 1327, in
>> _execute_child
>> raise child_exception
>> OSError: [Errno 2] No such file or directory: ''
>>
>> in the console.
>>
>> Any idea whats going wrong?
>>
>>
> Hmm seems like the self.be.sourcedir might not set. Are you able to run
> ./poky/bitbake/lib/toaster/manage.py checksettings and then try again?
>
> Thanks,
>
> Michael
>
>
> Cheers,
>>
>> Martin.
>>
>>
>>
>>
>>
> --
> _______________________________________________
> toaster mailing list
> toaster@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/toaster
>
[-- Attachment #2: Type: text/html, Size: 12790 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [yocto] Toaster Problem
2015-12-08 16:20 ` Martin Townsend
@ 2015-12-09 10:43 ` Martin Townsend
2015-12-09 12:28 ` Michael Wood
0 siblings, 1 reply; 9+ messages in thread
From: Martin Townsend @ 2015-12-09 10:43 UTC (permalink / raw)
To: Michael Wood; +Cc: toaster
[-- Attachment #1: Type: text/plain, Size: 9857 bytes --]
Hi,
Using the Jethro branch I can get past this error by creating a directory
for the layers and then using a runbuilds service script like this:
#!/bin/sh
# toaster run builds dispatcher
export TOASTER_DIR=/var/www/bia/toaster/layers
cd toaster
virtualenv venv
. ./venv/bin/activate
./poky/bitbake/lib/toaster/manage.py checksettings
while true; do ./poky/bitbake/lib/toaster/manage.py runbuilds; sleep 3; done
Check Settings looks like it uses TOASTER_DIR if it's not set.
My question now is how should I be setting be.sourcedir?
Cheers,
Martin.
On Tue, Dec 8, 2015 at 4:20 PM, Martin Townsend <mtownsend1973@gmail.com>
wrote:
> Hi Michael,
>
> I get the following which looks like your assumption is correct
> (venv)martint@toaster$ ./poky/bitbake/lib/toaster/manage.py checksettings
>
> -- Validation: The layers checkout directory must be set.
> Traceback (most recent call last):
> File "./poky/bitbake/lib/toaster/manage.py", line 10, in <module>
> execute_from_command_line(sys.argv)
> File
> "/var/www/toaster/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 399, in execute_from_command_line
> utility.execute()
> File
> "/var/www/toaster/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 392, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
> File
> "/var/www/toaster/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
> line 242, in run_from_argv
> self.execute(*args, **options.__dict__)
> File
> "/var/www/toaster/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
> line 285, in execute
> output = self.handle(*args, **options)
> File
> "/var/www/toaster/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
> line 415, in handle
> return self.handle_noargs(**options)
> File
> "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py",
> line 157, in handle_noargs
> retval += self._verify_build_environment()
> File
> "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py",
> line 125, in _verify_build_environment
> while _verify_be():
> File
> "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py",
> line 76, in _verify_be
> if not be.sourcedir.startswith("/"):
> AttributeError: 'NoneType' object has no attribute 'startswith'
>
>
> I think toaster isn't going to work for me. I wanted to use Toaster to
> build from layers I have setup within the /var/www/bia/yocto directory
> which have several custom layers of which 3 are in SVN (sadly this is what
> the customer wants to use), I was looking at the local yocto project and a
> custom toasterconf.json file and can't see how I would make this work.
> Please let me know if I'm wrong.
>
> Cheers,
> Martin.
>
> On Tue, Dec 8, 2015 at 3:26 PM, Michael Wood <michael.g.wood@intel.com>
> wrote:
>
>> Hi,
>>
>> If you're using master the instructions on the Wiki might be more useful
>> as they're the WIP instructions.
>>
>>
>> https://wiki.yoctoproject.org/wiki/Setting_up_a_production_instance_of_Toaster
>>
>> I've responded in-line to your points 1-8
>>
>> On 08/12/15 14:12, Martin Townsend wrote:
>>
>>> Hi,
>>>
>>> I'm using Ubuntu 14.04 LTS, I've cloned poky as myself and added myself
>>> to the www-data group and used
>>> sudo setfacl -d -m group:www-data:rwx /var/www
>>> before doing all this so permissions should be ok. /var/www has group
>>> ownership of www-data
>>>
>>> I've checkout out master.
>>>
>>> Ah yes, the toaster mailing list would have been better :)
>>>
>>> Cheers,
>>> Martin.
>>>
>>>
>>> On Tue, Dec 8, 2015 at 1:46 PM, Mihail, StanciuX <
>>> stanciux.mihail@intel.com <mailto:stanciux.mihail@intel.com>> wrote:
>>>
>>> Hi Martin,
>>>
>>> First off, may I suggest the toaster mailing list in the future if
>>> you have questions (toaster@yoctoproject.org
>>> <mailto:toaster@yoctoproject.org>)
>>>
>>> As for your problem:
>>>
>>> Something is off about the way your toaster was started.
>>>
>>> Here’s how the first line above your traceback looks on my machine:
>>> lbc_shellcmmd: (/home/dave/poky) git remote –v
>>>
>>> That location “/home/dave/poky” is where I issued the toaster
>>> start command (bitbake/bin/toaster).
>>>
>>> I’ve tried to reproduce this on my machine but haven’t been able
>>> to do it.
>>>
>>> Could you please let us know how you started toaster and from what
>>> location? Also, was it as root or a different user?
>>>
>>> Off the top of my head , one thing that might cause this would be
>>> if you cloned poky as root then somehow started toaster as a
>>> different user.
>>>
>>> Also, which yocto project (poky) release are you using? Was it
>>> master or maybe Jethro?
>>>
>>> Oh, and what flavor linux is this on?
>>>
>>> Regards,
>>>
>>> Mihail
>>>
>>> *From:*yocto-bounces@yoctoproject.org
>>> <mailto:yocto-bounces@yoctoproject.org>
>>> [mailto:yocto-bounces@yoctoproject.org
>>> <mailto:yocto-bounces@yoctoproject.org>] *On Behalf Of *Martin
>>> Townsend
>>> *Sent:* Tuesday, December 08, 2015 12:40 PM
>>> *To:* yocto@yoctoproject.org <mailto:yocto@yoctoproject.org>
>>> *Subject:* [yocto] Toaster Problem
>>>
>>> Hi,
>>>
>>> I'm trying out a production instance of toaster, I'm following the
>>> instructions from here
>>>
>>>
>>> http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html#toaster-setting-up-a-production-instance-of-toaster
>>>
>>> I managed to get toaster up and running but had to adjust a few
>>> things which you might want to correct in the documentation:
>>>
>>> 1) virtualenv package doesn't exist in Ubuntu 14.04 had to use
>>> python-virtualenv
>>>
>>> 2) You need python headers later so add python-dev to list of
>>> packages to install
>>>
>>> 3) After cloning poky there should be a cd poky before checking
>>> out a branch.
>>>
>>> 4) SECRET_KEY, it would be nice to know what this is used for,
>>> what characters is can contain, ie can it contain spaces.
>>>
>>>
>> More info on that can be found at
>> https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/#secret-key
>>
>> 5) In the mysql part is states we are creating a database called
>>> toaster but in the settings.py we specify toaster_main one of them
>>> needs correcting.
>>>
>>> 6) Before calling ./bitbake/lib/toaster/manage.py syncdb --migrate
>>> maybe it should link to 3.5 and state that you should create a
>>> Django super user first.
>>>
>>> 7)There's a typo in the Apache toaster.conf
>>> s/toastern_wsgi/toaster_wsgi/
>>>
>>>
>> I think all those other points are correct/corrected on the wiki at the
>> moment.
>>
>> 8) Build runner service is wrong, there needs to be the poky
>>> directory involved somewhere, either cd /var/www/toaster/poky or
>>> we call ./poky/bitbake/toaster/manage.py
>>>
>>> Even with all this I can't get it to build, creating a project
>>> based on fido 1.8 and trying to build core-image-lsb I get
>>>
>>> 2015-12-08 10:27:57,705 DEBUG localhostbecontroller, our git repos
>>> are {(u'git://git.yoctoproject.org/meta-yocto
>>> <http://git.yoctoproject.org/meta-yocto>', u'fido'):
>>> [(u'meta-yocto',
>>>
>>> u'meta-yocto'),
>>>
>>> (u'meta-yocto-bsp',
>>>
>>> u'meta-yocto-bsp')],
>>> (u'git://git.yoctoproject.org/poky <
>>> http://git.yoctoproject.org/poky>', u'fido'): [('bitbake', u'bitbake'),
>>>
>>> (u'openembedded-core',
>>> u'meta')]}
>>> 2015-12-08 10:27:57,705 DEBUG lbc_shellcmmd: () git remote -v
>>> Traceback (most recent call last):
>>> File
>>> "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py",
>>> line 60, in schedule
>>> bec.triggerBuild(br.brbitbake_set.all(), br.brlayer_set.all(),
>>> br.brvariable_set.all(), br.brtarget_set.all())
>>> File
>>> "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py",
>>> line 282, in triggerBuild
>>> self.setLayers(bitbake, layers, targets)
>>> File
>>> "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py",
>>> line 150, in setLayers
>>> for remotes in self._shellcmd("git remote -v",
>>> self.be.sourcedir).split("\n"):
>>> File
>>> "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py",
>>> line 59, in _shellcmd
>>> p = subprocess.Popen(command, cwd = cwd, shell=True,
>>> stdout=subprocess.PIPE, stderr=subprocess.PIPE)
>>> File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
>>> errread, errwrite)
>>> File "/usr/lib/python2.7/subprocess.py", line 1327, in
>>> _execute_child
>>> raise child_exception
>>> OSError: [Errno 2] No such file or directory: ''
>>>
>>> in the console.
>>>
>>> Any idea whats going wrong?
>>>
>>>
>> Hmm seems like the self.be.sourcedir might not set. Are you able to run
>> ./poky/bitbake/lib/toaster/manage.py checksettings and then try again?
>>
>> Thanks,
>>
>> Michael
>>
>>
>> Cheers,
>>>
>>> Martin.
>>>
>>>
>>>
>>>
>>>
>> --
>> _______________________________________________
>> toaster mailing list
>> toaster@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/toaster
>>
>
>
[-- Attachment #2: Type: text/html, Size: 13821 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [yocto] Toaster Problem
2015-12-09 10:43 ` Martin Townsend
@ 2015-12-09 12:28 ` Michael Wood
0 siblings, 0 replies; 9+ messages in thread
From: Michael Wood @ 2015-12-09 12:28 UTC (permalink / raw)
To: Martin Townsend; +Cc: toaster
Hi Martin,
Yes that looks right, I think we will need to add that as a setup step,
the slightly misleadingly named checksettings.py will use environ value
TOASTER_DIR, to update the saved value, you should get "Build
configuration saved" printed out. So in theory you wouldn't need to run
checksettings or set TOASTER_DIR after the first time.
With regards to your custom layers, toaster is very git centric at the
moment, what some people have done is just a quick 'git init' in the
directory as a workaround and then used the import layer page in Toaster
to add these layers. Patches very welcome to add support for other layer
fetching mechanisms! It's something that we have on our wish list.
https://bugzilla.yoctoproject.org/show_bug.cgi?id=6546
Thanks,
Michael
On 09/12/15 10:43, Martin Townsend wrote:
> Hi,
>
>
> Using the Jethro branch I can get past this error by creating a
> directory for the layers and then using a runbuilds service script
> like this:
> #!/bin/sh
> # toaster run builds dispatcher
> export TOASTER_DIR=/var/www/bia/toaster/layers
> cd toaster
> virtualenv venv
> . ./venv/bin/activate
> ./poky/bitbake/lib/toaster/manage.py checksettings
> while true; do ./poky/bitbake/lib/toaster/manage.py runbuilds; sleep
> 3; done
>
> Check Settings looks like it uses TOASTER_DIR if it's not set.
>
> My question now is how should I be setting be.sourcedir?
>
> Cheers,
> Martin.
>
>
>
> On Tue, Dec 8, 2015 at 4:20 PM, Martin Townsend
> <mtownsend1973@gmail.com <mailto:mtownsend1973@gmail.com>> wrote:
>
> Hi Michael,
>
> I get the following which looks like your assumption is correct
> (venv)martint@toaster$ ./poky/bitbake/lib/toaster/manage.py
> checksettings
>
> -- Validation: The layers checkout directory must be set.
> Traceback (most recent call last):
> File "./poky/bitbake/lib/toaster/manage.py", line 10, in <module>
> execute_from_command_line(sys.argv)
> File
> "/var/www/toaster/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 399, in execute_from_command_line
> utility.execute()
> File
> "/var/www/toaster/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 392, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
> File
> "/var/www/toaster/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
> line 242, in run_from_argv
> self.execute(*args, **options.__dict__)
> File
> "/var/www/toaster/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
> line 285, in execute
> output = self.handle(*args, **options)
> File
> "/var/www/toaster/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
> line 415, in handle
> return self.handle_noargs(**options)
> File
> "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py",
> line 157, in handle_noargs
> retval += self._verify_build_environment()
> File
> "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py",
> line 125, in _verify_build_environment
> while _verify_be():
> File
> "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py",
> line 76, in _verify_be
> if not be.sourcedir.startswith("/"):
> AttributeError: 'NoneType' object has no attribute 'startswith'
>
>
> I think toaster isn't going to work for me. I wanted to use
> Toaster to build from layers I have setup within the
> /var/www/bia/yocto directory which have several custom layers of
> which 3 are in SVN (sadly this is what the customer wants to use),
> I was looking at the local yocto project and a custom
> toasterconf.json file and can't see how I would make this work.
> Please let me know if I'm wrong.
>
> Cheers,
> Martin.
>
> On Tue, Dec 8, 2015 at 3:26 PM, Michael Wood
> <michael.g.wood@intel.com <mailto:michael.g.wood@intel.com>> wrote:
>
> Hi,
>
> If you're using master the instructions on the Wiki might be
> more useful as they're the WIP instructions.
>
> https://wiki.yoctoproject.org/wiki/Setting_up_a_production_instance_of_Toaster
>
> I've responded in-line to your points 1-8
>
> On 08/12/15 14:12, Martin Townsend wrote:
>
> Hi,
>
> I'm using Ubuntu 14.04 LTS, I've cloned poky as myself and
> added myself to the www-data group and used
> sudo setfacl -d -m group:www-data:rwx /var/www
> before doing all this so permissions should be ok.
> /var/www has group ownership of www-data
>
> I've checkout out master.
>
> Ah yes, the toaster mailing list would have been better :)
>
> Cheers,
> Martin.
>
>
> On Tue, Dec 8, 2015 at 1:46 PM, Mihail, StanciuX
> <stanciux.mihail@intel.com
> <mailto:stanciux.mihail@intel.com>
> <mailto:stanciux.mihail@intel.com
> <mailto:stanciux.mihail@intel.com>>> wrote:
>
> Hi Martin,
>
> First off, may I suggest the toaster mailing list in
> the future if
> you have questions (toaster@yoctoproject.org
> <mailto:toaster@yoctoproject.org>
> <mailto:toaster@yoctoproject.org
> <mailto:toaster@yoctoproject.org>>)
>
> As for your problem:
>
> Something is off about the way your toaster was started.
>
> Here’s how the first line above your traceback looks
> on my machine:
> lbc_shellcmmd: (/home/dave/poky) git remote –v
>
> That location “/home/dave/poky” is where I issued the
> toaster
> start command (bitbake/bin/toaster).
>
> I’ve tried to reproduce this on my machine but haven’t
> been able
> to do it.
>
> Could you please let us know how you started toaster
> and from what
> location? Also, was it as root or a different user?
>
> Off the top of my head , one thing that might cause
> this would be
> if you cloned poky as root then somehow started
> toaster as a
> different user.
>
> Also, which yocto project (poky) release are you
> using? Was it
> master or maybe Jethro?
>
> Oh, and what flavor linux is this on?
>
> Regards,
>
> Mihail
>
> *From:*yocto-bounces@yoctoproject.org
> <mailto:yocto-bounces@yoctoproject.org>
> <mailto:yocto-bounces@yoctoproject.org
> <mailto:yocto-bounces@yoctoproject.org>>
> [mailto:yocto-bounces@yoctoproject.org
> <mailto:yocto-bounces@yoctoproject.org>
> <mailto:yocto-bounces@yoctoproject.org
> <mailto:yocto-bounces@yoctoproject.org>>] *On Behalf Of
> *Martin
> Townsend
> *Sent:* Tuesday, December 08, 2015 12:40 PM
> *To:* yocto@yoctoproject.org
> <mailto:yocto@yoctoproject.org>
> <mailto:yocto@yoctoproject.org
> <mailto:yocto@yoctoproject.org>>
> *Subject:* [yocto] Toaster Problem
>
> Hi,
>
> I'm trying out a production instance of toaster, I'm
> following the
> instructions from here
>
> http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html#toaster-setting-up-a-production-instance-of-toaster
>
> I managed to get toaster up and running but had to
> adjust a few
> things which you might want to correct in the
> documentation:
>
> 1) virtualenv package doesn't exist in Ubuntu 14.04
> had to use
> python-virtualenv
>
> 2) You need python headers later so add python-dev to
> list of
> packages to install
>
> 3) After cloning poky there should be a cd poky before
> checking
> out a branch.
>
> 4) SECRET_KEY, it would be nice to know what this is
> used for,
> what characters is can contain, ie can it contain spaces.
>
>
> More info on that can be found at
> https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/#secret-key
>
> 5) In the mysql part is states we are creating a
> database called
> toaster but in the settings.py we specify toaster_main
> one of them
> needs correcting.
>
> 6) Before calling ./bitbake/lib/toaster/manage.py
> syncdb --migrate
> maybe it should link to 3.5 and state that you should
> create a
> Django super user first.
>
> 7)There's a typo in the Apache toaster.conf
> s/toastern_wsgi/toaster_wsgi/
>
>
> I think all those other points are correct/corrected on the
> wiki at the moment.
>
> 8) Build runner service is wrong, there needs to be
> the poky
> directory involved somewhere, either cd
> /var/www/toaster/poky or
> we call ./poky/bitbake/toaster/manage.py
>
> Even with all this I can't get it to build, creating a
> project
> based on fido 1.8 and trying to build core-image-lsb I get
>
> 2015-12-08 10:27:57,705 DEBUG localhostbecontroller,
> our git repos are
> {(u'git://git.yoctoproject.org/meta-yocto
> <http://git.yoctoproject.org/meta-yocto>
> <http://git.yoctoproject.org/meta-yocto>', u'fido'):
> [(u'meta-yocto',
> u'meta-yocto'),
> (u'meta-yocto-bsp',
> u'meta-yocto-bsp')],
> (u'git://git.yoctoproject.org/poky
> <http://git.yoctoproject.org/poky>
> <http://git.yoctoproject.org/poky>', u'fido'):
> [('bitbake', u'bitbake'),
> (u'openembedded-core',
> u'meta')]}
> 2015-12-08 10:27:57,705 DEBUG lbc_shellcmmd: () git
> remote -v
> Traceback (most recent call last):
> File
> "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py",
> line 60, in schedule
> bec.triggerBuild(br.brbitbake_set.all(),
> br.brlayer_set.all(), br.brvariable_set.all(),
> br.brtarget_set.all())
> File
> "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py",
> line 282, in triggerBuild
> self.setLayers(bitbake, layers, targets)
> File
> "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py",
> line 150, in setLayers
> for remotes in self._shellcmd("git remote -v",
> self.be.sourcedir).split("\n"):
> File
> "/var/www/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py",
> line 59, in _shellcmd
> p = subprocess.Popen(command, cwd = cwd,
> shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
> File "/usr/lib/python2.7/subprocess.py", line 710,
> in __init__
> errread, errwrite)
> File "/usr/lib/python2.7/subprocess.py", line 1327,
> in _execute_child
> raise child_exception
> OSError: [Errno 2] No such file or directory: ''
>
> in the console.
>
> Any idea whats going wrong?
>
>
> Hmm seems like the self.be.sourcedir might not set. Are you
> able to run ./poky/bitbake/lib/toaster/manage.py
> checksettings and then try again?
>
> Thanks,
>
> Michael
>
>
> Cheers,
>
> Martin.
>
>
>
>
>
> --
> _______________________________________________
> toaster mailing list
> toaster@yoctoproject.org <mailto:toaster@yoctoproject.org>
> https://lists.yoctoproject.org/listinfo/toaster
>
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2015-12-09 12:28 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-08 10:39 Toaster Problem Martin Townsend
2015-12-08 13:46 ` Mihail, StanciuX
2015-12-08 13:46 ` [yocto] " Mihail, StanciuX
2015-12-08 14:12 ` Martin Townsend
2015-12-08 15:26 ` Michael Wood
2015-12-08 16:20 ` Martin Townsend
2015-12-09 10:43 ` Martin Townsend
2015-12-09 12:28 ` Michael Wood
2015-12-08 15:38 ` Mihail, StanciuX
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.