Bug 3459 - Sanity test failures running bitbake commands
Summary: Sanity test failures running bitbake commands
Status: VERIFIED NOTABUG
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 x86
: Medium major
Target Milestone: 1.4
Assignee: Saul Wold
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-11-19 08:41 UTC by Rakesh Anand S
Modified: 2013-04-17 13:54 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rakesh Anand S 2012-11-19 08:41:16 UTC
While the  bitbake is running i am getting the following error.

--------------------------------------------------------------------------------

DEBUG: Clearing SRCREV cache due to cache policy of: clear
ERROR: Error parsing configuration files
Traceback (most recent call last):
  File "/mnt/Yocto_Project/YP_7.0/poky-denzil-7.0/bitbake/lib/bb/cooker.py", line 197, in BBCooker.loadConfigurationData():
                 self.parseConfigurationFiles(self.configuration.prefile,
    >                                         self.configuration.postfile)
             except SyntaxError:
  File "/mnt/Yocto_Project/YP_7.0/poky-denzil-7.0/bitbake/lib/bb/cooker.py", line 870, in BBCooker.parseConfigurationFiles(prefiles=[], postfiles=[]):
             if data.getVar("BB_WORKERCONTEXT", False) is None:
    >            bb.fetch.fetcher_init(data)
             bb.codeparser.parser_cache_init(data)
  File "/mnt/Yocto_Project/YP_7.0/poky-denzil-7.0/bitbake/lib/bb/fetch2/__init__.py", line 228, in fetcher_init(d=<bb.data_smart.DataSmart object at 0x2ab6a90>):
                 pass
    >        revs.clear()
         else:
  File "/mnt/Yocto_Project/YP_7.0/poky-denzil-7.0/bitbake/lib/bb/persist_data.py", line 142, in SQLTable.clear():
         def clear(self):
    >        self._execute("DELETE FROM %s;" % self.table)

  File "/mnt/Yocto_Project/YP_7.0/poky-denzil-7.0/bitbake/lib/bb/persist_data.py", line 66, in SQLTable._execute(*query=('DELETE FROM BB_URI_HEADREVS;',)):
                 try:
    >                return self.cursor.execute(*query)
                 except sqlite3.OperationalError as exc:
OperationalError: attempt to write a readonly database

--------------------------------------------------------------------------------
Comment 1 Richard Purdie 2012-11-19 15:15:08 UTC
It sounds like the files in the tmp/cache directory are readonly...
Comment 2 Rakesh Anand S 2012-11-20 06:41:01 UTC
I tried making it writable being a superuser but was of no use again im getting this error, i have configured my proxy, using tsocks but still its no working.

I have pasted what is happening in my system

--------------------------------------------------------------------------------

WARNING: Host distribution "Ubuntu 12.04 LTS" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
DEBUG: Fetcher accessed the network with the command git ls-remote git://git.yoctoproject.org/yocto-firewall-test HEAD
DEBUG: Running export HOME="/home/rocky"; export https_proxy="https://proxy.iind.intel.com:911/"; export ftp_proxy="ftp://proxy.iind.intel.com:911/"; export http_proxy="http://proxy.iind.intel.com:911/"; export GIT_CONFIG="/mnt/yocto_project/version7/build/atom_board/tmp/sysroots/x86_64-linux/etc/gitconfig"; export PATH="/mnt/yocto_project/version7/poky-denzil-7.0/bitbake/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/rocky/BeatBox/android-ndk-r8:/home/rocky/BeatBox/android-sdk-linux/platform-tools::/home/rocky/BeatBox/android-ndk-r8/:/home/rocky/BeatBox/android-sdk-linux/platform-tools/:/mnt/yocto_project/version7/poky-denzil-7.0/scripts"; git ls-remote git://git.yoctoproject.org/yocto-firewall-test HEAD
ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    Failed to fetch test data from the network. Please ensure your network is configured correctly.

ERROR: Execution of event handler 'check_sanity_eventhandler' failed

--------------------------------------------------------------------------------
Comment 3 Richard Purdie 2012-11-23 21:30:41 UTC
These are two different errors which look to be unrelated. The first issue was permissions related. You shouldn't have needed supoeruser permissions, did you originally run a build as the superuser?

The second issue looks like it can't connect to git services. Does running the command it mentioned (export HOME="/home/rocky"; export https_proxy="https://proxy.iind.intel.com:911/"; export ftp_proxy="ftp://proxy.iind.intel.com:911/"; export http_proxy="http://proxy.iind.intel.com:911/"; export GIT_CONFIG="/mnt/yocto_project/version7/build/atom_board/tmp/sysroots/x86_64-linux/etc/gitconfig"; export PATH="/mnt/yocto_project/version7/poky-denzil-7.0/bitbake/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/rocky/BeatBox/android-ndk-r8:/home/rocky/BeatBox/android-sdk-linux/platform-tools::/home/rocky/BeatBox/android-ndk-r8/:/home/rocky/BeatBox/android-sdk-linux/platform-tools/:/mnt/yocto_project/version7/poky-denzil-7.0/scripts"; git ls-remote git://git.yoctoproject.org/yocto-firewall-test HEAD) manually work?
Comment 4 Saul Wold 2012-12-06 22:44:07 UTC
Rakesh,  Did Richard's comments help you? You might also try to starting from scratch with a clean non-superuser user.  Also do you have any proxies needed or network firewalls.  Running the command standalone might help you identidy this.

Please let us know if tihs solves your issues.
Comment 5 Saul Wold 2012-12-12 01:43:55 UTC
If you are still having issues either please REOPEN this bug or file a new one that is more appropriate.
Comment 6 Alexandru Palalau 2013-04-17 13:54:31 UTC
Switching to verified.