[meta-freescale] Help using toaster

Thomas Thorne Thomas.Thorne at net2edge.com
Tue Oct 18 09:04:18 PDT 2016


I have just tried to use toaster and also got the remote loaning error:

command: git clone "remote:origin" "/home/thomasthorne/work/fsl-community-bsp/_toaster_clones/_remote_origin_krogoth" 
Cloning into '/home/thomasthorne/work/fsl-community-bsp/_toaster_clones/_remote_origin_krogoth'...
ssh: Could not resolve hostname remote: Temporary failure in name resolution
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


Did anyone get this working recently?  It seems that It is not that straightforward.  Here is my working so far, I will keep plugging away in the morning.   


Now when I look back at the console that I started toaster from I can see a lot of errors output:

(venv) thomasthorne at thorne-ul-dt:~/work/fsl-community-bsp/ls1021atwr$ source ../sources/poky/bitbake/bin/toaster
The system will start.
Check if toaster can listen on 0.0.0.0:8000
OK
Operations to perform:
  Synchronize unmigrated apps: staticfiles, messages, toastermain, bldcollector, toastergui, humanize
  Apply all migrations: sessions, admin, auth, contenttypes, orm, bldcontrol
Synchronizing apps without migrations:
  Creating tables...
    Running deferred SQL...
  Installing custom SQL...
Running migrations:
  Rendering model states... DONE
  Applying contenttypes.0001_initial... OK
  Applying auth.0001_initial... OK
  Applying admin.0001_initial... OK
  Applying contenttypes.0002_remove_content_type_name... OK
  Applying auth.0002_alter_permission_name_max_length... OK
  Applying auth.0003_alter_user_email_max_length... OK
  Applying auth.0004_alter_user_username_opts... OK
  Applying auth.0005_alter_user_last_login_null... OK
  Applying auth.0006_require_contenttypes_0002... OK
  Applying orm.0001_initial... OK
  Applying bldcontrol.0001_initial... OK
  Applying bldcontrol.0002_auto_20160120_1250... OK
  Applying bldcontrol.0003_add_cancelling_state... OK
  Applying orm.0002_customimagerecipe... OK
  Applying orm.0003_customimagepackage... OK
  Applying orm.0004_provides... OK
  Applying orm.0005_task_field_separation... OK
  Applying orm.0006_add_cancelled_state... OK
  Applying sessions.0001_initial... OK

 -- Validation: The layers checkout directory must be set.

 -- Validation: The build directory must be set.

Build configuration saved

Importing file: /home/thomasthorne/work/fsl-community-bsp/sources/poky/meta-poky/conf/toasterconf.json
WARNING:root:Error while looking for remote "origin" in "yocto	https://git.yoctoproject.org/git/poky (fetch)
yocto	https://git.yoctoproject.org/git/poky (push)
"
2016-10-18 15:47:59,765 ERROR The toaster config file references the local git repo, but Toaster cannot detect it.
Your local configuration for bitbake version jethro is invalid. Make sure that the toasterconf.json file is correct.
ERROR:toaster:The toaster config file references the local git repo, but Toaster cannot detect it.
Your local configuration for bitbake version jethro is invalid. Make sure that the toasterconf.json file is correct.
WARNING:root:Error while looking for remote "origin" in "yocto	https://git.yoctoproject.org/git/poky (fetch)
yocto	https://git.yoctoproject.org/git/poky (push)
"
2016-10-18 15:47:59,770 ERROR The toaster config file references the local git repo, but Toaster cannot detect it.
Your local configuration for bitbake version krogoth is invalid. Make sure that the toasterconf.json file is correct.
ERROR:toaster:The toaster config file references the local git repo, but Toaster cannot detect it.
Your local configuration for bitbake version krogoth is invalid. Make sure that the toasterconf.json file is correct.
WARNING:root:Error while looking for remote "origin" in "yocto	https://git.yoctoproject.org/git/poky (fetch)
yocto	https://git.yoctoproject.org/git/poky (push)
"
2016-10-18 15:47:59,775 ERROR The toaster config file references the local git repo, but Toaster cannot detect it.
Your local configuration for bitbake version HEAD is invalid. Make sure that the toasterconf.json file is correct.
ERROR:toaster:The toaster config file references the local git repo, but Toaster cannot detect it.
Your local configuration for bitbake version HEAD is invalid. Make sure that the toasterconf.json file is correct.
WARNING:root:Error while looking for remote "origin" in "yocto	https://git.yoctoproject.org/git/poky (fetch)
yocto	https://git.yoctoproject.org/git/poky (push)
"
2016-10-18 15:47:59,781 ERROR The toaster config file references the local git repo, but Toaster cannot detect it.
Your local configuration for layer openembedded-core is invalid. Make sure that the toasterconf.json file is correct.
ERROR:toaster:The toaster config file references the local git repo, but Toaster cannot detect it.
Your local configuration for layer openembedded-core is invalid. Make sure that the toasterconf.json file is correct.
WARNING:root:Error while looking for remote "origin" in "yocto	https://git.yoctoproject.org/git/poky (fetch)
yocto	https://git.yoctoproject.org/git/poky (push)
"
2016-10-18 15:47:59,787 ERROR The toaster config file references the local git repo, but Toaster cannot detect it.
Your local configuration for layer meta-poky is invalid. Make sure that the toasterconf.json file is correct.
ERROR:toaster:The toaster config file references the local git repo, but Toaster cannot detect it.
Your local configuration for layer meta-poky is invalid. Make sure that the toasterconf.json file is correct.
WARNING:root:Error while looking for remote "origin" in "yocto	https://git.yoctoproject.org/git/poky (fetch)
yocto	https://git.yoctoproject.org/git/poky (push)
"
2016-10-18 15:47:59,793 ERROR The toaster config file references the local git repo, but Toaster cannot detect it.
Your local configuration for layer meta-yocto-bsp is invalid. Make sure that the toasterconf.json file is correct.
ERROR:toaster:The toaster config file references the local git repo, but Toaster cannot detect it.
Your local configuration for layer meta-yocto-bsp is invalid. Make sure that the toasterconf.json file is correct.

Layer configuration imported. Updating information from the layer sources, please wait.
You can re-update any time later by running bitbake/lib/toaster/manage.py lsupdates
2016-10-18 15:48:00,180 DEBUG Fetching branches
DEBUG:toaster:Fetching branches
2016-10-18 15:48:01,700 DEBUG Fetching layer information
DEBUG:toaster:Fetching layer information
2016-10-18 15:48:05,225 DEBUG Fetching machine information
DEBUG:toaster:Fetching machine information
2016-10-18 15:48:06,916 DEBUG Fetching target information
DEBUG:toaster:Fetching target information
Starting webserver...
Webserver address:  http://0.0.0.0:8000/
Successful start.
(venv) thomasthorne at thorne-ul-dt:~/work/fsl-community-bsp/ls1021atwr$ 2016-10-18 15:58:29,544 DEBUG runbuilds: starting build twr-ls1021a_test (Release krogoth (krogoth), BBV krogoth (Branch: krogoth)) in progress, environment BuildEnvironment object
2016-10-18 15:58:29,546 DEBUG localhostbecontroller, our git repos are {(u'git://git.yoctoproject.org/meta-fsl-arm', u'krogoth'): [(u'meta-fsl-arm',
                                                             u'')],
 (u'git://git.yoctoproject.org/meta-yocto', u'krogoth'): [(u'meta-poky',
                                                           u'meta-poky'),
                                                          (u'meta-yocto-bsp',
                                                           u'meta-yocto-bsp')],
 (u'remote:origin', u'krogoth'): [('bitbake', u'bitbake'),
                                  (u'openembedded-core', u'meta')]}
2016-10-18 15:58:29,547 DEBUG lbc_shellcmmd: (/home/thomasthorne/work/fsl-community-bsp) git remote -v
2016-10-18 15:58:29,550 WARNING localhostbecontroller: shellcmd error command: git remote -v 
fatal: Not a git repository (or any of the parent directories): .git

2016-10-18 15:58:29,551 INFO Using pre-checked out source for layer {}
2016-10-18 15:58:29,551 DEBUG localhostbecontroller: giturl remote:origin:krogoth checking out in current directory /home/thomasthorne/work/fsl-community-bsp/_toaster_clones/_remote_origin_krogoth
2016-10-18 15:58:29,551 DEBUG localhostbecontroller: cloning remote:origin in /home/thomasthorne/work/fsl-community-bsp/_toaster_clones/_remote_origin_krogoth
2016-10-18 15:58:29,551 DEBUG lbc_shellcmmd: (/home/thomasthorne/work/fsl-community-bsp) git clone "remote:origin" "/home/thomasthorne/work/fsl-community-bsp/_toaster_clones/_remote_origin_krogoth"
2016-10-18 15:58:29,787 WARNING localhostbecontroller: shellcmd error command: git clone "remote:origin" "/home/thomasthorne/work/fsl-community-bsp/_toaster_clones/_remote_origin_krogoth" 
Cloning into '/home/thomasthorne/work/fsl-community-bsp/_toaster_clones/_remote_origin_krogoth'...
ssh: Could not resolve hostname remote: Temporary failure in name resolution
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

2016-10-18 15:58:29,787 ERROR runbuilds: Error launching build command: git clone "remote:origin" "/home/thomasthorne/work/fsl-community-bsp/_toaster_clones/_remote_origin_krogoth" 
Cloning into '/home/thomasthorne/work/fsl-community-bsp/_toaster_clones/_remote_origin_krogoth'...
ssh: Could not resolve hostname remote: Temporary failure in name resolution
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Traceback (most recent call last):
  File "/home/thomasthorne/work/fsl-community-bsp/sources/poky/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py", line 67, in schedule
    "%d:%d" % (br.pk, bec.be.pk))
  File "/home/thomasthorne/work/fsl-community-bsp/sources/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py", line 255, in triggerBuild
    layers = self.setLayers(bitbake, layers, targets)
  File "/home/thomasthorne/work/fsl-community-bsp/sources/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py", line 155, in setLayers
    self._shellcmd('git clone "%s" "%s"' % (giturl, localdirname))
  File "/home/thomasthorne/work/fsl-community-bsp/sources/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py", line 70, in _shellcmd
    raise ShellCmdException(err)
ShellCmdException: command: git clone "remote:origin" "/home/thomasthorne/work/fsl-community-bsp/_toaster_clones/_remote_origin_krogoth" 
Cloning into '/home/thomasthorne/work/fsl-community-bsp/_toaster_clones/_remote_origin_krogoth'...
ssh: Could not resolve hostname remote: Temporary failure in name resolution
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

2016-10-18 15:58:30,795 DEBUG Saving error command: git clone "remote:origin" "/home/thomasthorne/work/fsl-community-bsp/_toaster_clones/_remote_origin_krogoth" 
Cloning into '/home/thomasthorne/work/fsl-community-bsp/_toaster_clones/_remote_origin_krogoth'...
ssh: Could not resolve hostname remote: Temporary failure in name resolution
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
 (twr-ls1021a_test (Release krogoth (krogoth), BBV krogoth (Branch: krogoth)) failed)



I would not be surprised to hear that the slightly weird layout of
<build_root>/sources/poky
<build_root>/sources/meta-*
meant that we needed a more complicated Toaster config than the defaults.  The present Yocto stuff seems to think everything would be placed under the <build_root>/ directory directly.  That might be what the WARNINGs while Importing file: /home/thomasthorne/work/fsl-community-bsp/sources/poky/meta-poky/conf/toasterconf.json are all about.  


When I looked in the file I noticed this line:
        "SSTATE_DIR"   : "${TOPDIR}/../sstate-cache"
There is no such directory in my work area.  I changed the line to:
        "SSTATE_DIR"   : "${TOPDIR}/sstate-cache"
As I can see that an sstate-cache file exists there.  Then when I started Toaster there were no warnings given.  It did not help me.  I still get the same error message when I try to build a recipe, either in the existing project or a new one. 


Thomas A. F. Thorne  Software Engineer  Net2Edge



More information about the meta-freescale mailing list