[FOSSology] Fossology and selftest agent failure

2010-06-17 Thread Tommi Sahim�ki

Hi,
 
I have a problem that I am not able to fix with my Fossology installation. 
Fossology was working fine before something went wrong with the database. The 
database got extremely poor in performance. Then I dropped the database and 
installed Fossology again. Now I get the following log entry when I start the 
Scheduler. What causes this license mismatch in selftest agent and how can I 
fix it?
 
--
2010-06-17 09:36:36 scheduler[31618] : *** Scheduler started, PID 31618  ***
2010-06-17 09:36:36 scheduler[15324] : *** Scheduler restarted successfully by 
fo_watchdog ***
2010-06-17 09:36:36 scheduler[31618] : Job queue reset.
2010-06-17 09:36:36 scheduler[31618] : Child[0] 'agent=wget host=localhost ' 
state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[1] 'agent=unpack host=localhost ' 
state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[2] 'agent=adj2nest host=localhost 
' state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[3] 'agent=filter_license 
host=localhost ' state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[4] 'agent=license host=localhost ' 
state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[5] 'agent=licinspect 
host=localhost ' state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[6] 'agent=mimetype host=localhost 
' state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[7] 'agent=specagent host=localhost 
' state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[8] 'agent=filter_clean 
host=localhost ' state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[9] 'agent=delagent host=localhost 
' state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[10] 'agent=sqlagent host=localhost 
' state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[11] 'agent=sqlagenthost 
host=localhost ' state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[12] 'agent=pkgmetagetta 
host=localhost ' state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[13] 'agent=fosscp_agent 
host=localhost ' state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[14] 'agent=fo_notify 
host=localhost ' state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[15] 'agent=selftest host=localhost 
' state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:38 scheduler[31618] : FATAL: Configuration on agent 
'localhost' differs from scheduler.
2010-06-17 09:36:38 scheduler[31618] : FATAL: The difference is License
2010-06-17 09:36:38 scheduler[31618] :   Observed on scheduler system: License: 
'GPL/v2/GPL v2 Preamble' = 
82785F9BF7CD20FF761D4FAA353B91DB5A57E58C.7A32D42E7CCB0C251832A64E0585EFCB.2778
2010-06-17 09:36:38 scheduler[31618] :   Mismatch on localhost: License: 
'GPL/v2/GPL v2 Preamble' = 82785F9BF7CD20FF761D4FAA353B91DB5A57E58C.7AAgent 
adj2nest: Build version: 1.1.0, exported.
2010-06-17 09:36:38 scheduler[31618] : FATAL: Host 'localhost' failed self-test.
2010-06-17 09:36:38 scheduler[31618] : FATAL: Self Test failed.  Inconsistent 
agent(s) detected.  Exiting.

 
Best Regards and thanks,
 
Tommi Sahimäki




  
_
Windows Liven avulla voit jakaa valokuviasi helposti.
http://www.download.live.com/___
fossology mailing list
fossology@fossology.org
http://fossology.org/mailman/listinfo/fossology


Re: [FOSSology] Fossology and selftest agent failure

2010-06-17 Thread Laser, Mary
Hi Tommi,
The selftest agent performs a number of verifications, mostly for agent 
consistency across a cluster.  In your case, it appears you are running on a 
single system (localhost).   However, it also checks for consistency of the 
license cache (License.bsam) against the license data stored in the database.  
This is documented in the selftest code:

/*
 CheckLicenses(): Verify that every entry in License.bsam
 exists in the DB *and* on the file system.
 List each license file found.
 Returns 1 on success, 0 on failure.
 */

The database and License.bsam file a generated by fo-postinstall.  It sorta 
looks like you forgot to run fo-postinstall.  Can you please run/rerun it and 
verify it completes successfully?

Thanks,
Mary

From: fossology-boun...@fossology.org [mailto:fossology-boun...@fossology.org] 
On Behalf Of Tommi Sahim?ki
Sent: Thursday, June 17, 2010 12:57 AM
To: fossology@fossology.org
Subject: [FOSSology] Fossology and selftest agent failure

Hi,

I have a problem that I am not able to fix with my Fossology installation. 
Fossology was working fine before something went wrong with the database. The 
database got extremely poor in performance. Then I dropped the database and 
installed Fossology again. Now I get the following log entry when I start the 
Scheduler. What causes this license mismatch in selftest agent and how can I 
fix it?

--
2010-06-17 09:36:36 scheduler[31618] : *** Scheduler started, PID 31618  ***
2010-06-17 09:36:36 scheduler[15324] : *** Scheduler restarted successfully by 
fo_watchdog ***
2010-06-17 09:36:36 scheduler[31618] : Job queue reset.
2010-06-17 09:36:36 scheduler[31618] : Child[0] 'agent=wget host=localhost ' 
state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[1] 'agent=unpack host=localhost ' 
state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[2] 'agent=adj2nest host=localhost 
' state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[3] 'agent=filter_license 
host=localhost ' state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[4] 'agent=license host=localhost ' 
state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[5] 'agent=licinspect 
host=localhost ' state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[6] 'agent=mimetype host=localhost 
' state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[7] 'agent=specagent host=localhost 
' state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[8] 'agent=filter_clean 
host=localhost ' state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[9] 'agent=delagent host=localhost 
' state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[10] 'agent=sqlagent host=localhost 
' state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[11] 'agent=sqlagenthost 
host=localhost ' state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[12] 'agent=pkgmetagetta 
host=localhost ' state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[13] 'agent=fosscp_agent 
host=localhost ' state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[14] 'agent=fo_notify 
host=localhost ' state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:36 scheduler[31618] : Child[15] 'agent=selftest host=localhost 
' state=FREE(1) @ Thu Jun 17 09:36:36 2010
2010-06-17 09:36:38 scheduler[31618] : FATAL: Configuration on agent 
'localhost' differs from scheduler.
2010-06-17 09:36:38 scheduler[31618] : FATAL: The difference is License
2010-06-17 09:36:38 scheduler[31618] :   Observed on scheduler system: License: 
'GPL/v2/GPL v2 Preamble' = 
82785F9BF7CD20FF761D4FAA353B91DB5A57E58C.7A32D42E7CCB0C251832A64E0585EFCB.2778
2010-06-17 09:36:38 scheduler[31618] :   Mismatch on localhost: License: 
'GPL/v2/GPL v2 Preamble' = 82785F9BF7CD20FF761D4FAA353B91DB5A57E58C.7AAgent 
adj2nest: Build version: 1.1.0, exported.
2010-06-17 09:36:38 scheduler[31618] : FATAL: Host 'localhost' failed self-test.
2010-06-17 09:36:38 scheduler[31618] : FATAL: Self Test failed.  Inconsistent 
agent(s) detected.  Exiting.


Best Regards and thanks,

Tommi Sahimäki
__