Bug #2025

agents fail to be scheduled when using the new DB and sysconfdir

Added by larry shi about 1 year ago. Updated 9 months ago.

Status:Closed Start date:05/21/2012
Priority:High Due date:
Assignee:larry shi % Done:

0%

Category:Uploads
Target version:2.1.0 Estimated time:24.00 hours
Rank:2 Tester:

Description

1. create new DB and sysconfdir via running ./testing/db/createTestDB.php
Note: you may want to get your repodir have the same permission with the default repodir
2. stop the runing scheduler
3. run scheduler with new syscondir, e.g.
sudo /usr/local/share/fossology/scheduler/agent/fo_scheduler --daemon --reset --verbose=1 -c /srv/fossology/testDbConf2051435647/
4. upload one package via upload from file, after a while, all the agents are comlete, but they lie, unpack agent did not unpack anything.
5. upload one package via upload from server, wget_agent fails.
6. run cp2foss package -c sysconfdir --user User --password Pass -q all, agents can not be scheduled.

History

Updated by larry shi 11 months ago

  • Status changed from New to In Progress
  • Estimated time set to 24.00
  • Rank set to 2
  • IterNum set to 3

Updated by larry shi 11 months ago

a fix in 5970. more test is needed

Updated by larry shi 11 months ago

  • Priority changed from Normal to High

Updated by larry shi 11 months ago

  • Status changed from In Progress to Resolved

fixed till svn 5981.(5975~5978, 5980~5981)

Updated by Mary Laser 10 months ago

  • Assignee changed from larry shi to Mary Laser

Mary to verify fix & close.

Updated by Mary Laser 10 months ago

  • IterNum changed from 3 to 5

will be validated in iteration 5

Updated by Mary Laser 10 months ago

  • IterNum changed from 5 to 6

Updated by Mary Laser 10 months ago

  • Estimate set to 2

Updated by Mary Laser 10 months ago

  • Target version changed from 2.0.1 to 2.1.0

Having trouble using either createTestDB.php or create_test_database.php

Updated by Mary Laser 10 months ago

  • Status changed from Resolved to Feedback
  • Assignee changed from Mary Laser to larry shi

Here is the result when I attempt to create a test db as per the instructions:

laser@fluffy:~/fossology/src$ ./testing/db/createTestDB.php
FATAL!, no SYSCONFDIR defined
either export SYSCONFDIR path and rerun or use -c <sysconfdirpath>

laser@fluffy:~/fossology/src$ ./testing/db/create_test_database.php
PHP Warning: pg_query(): Query failed: ERROR: encoding UTF8 does not match locale en_US
DETAIL: The chosen LC_CTYPE setting requires encoding LATIN1. in /home/laser/fossology/src/testing/db/create_test_database.php on line 273
FAIL: Could not create test database!

Updated by larry shi 10 months ago

wait for dan's check in about cli tests.

Updated by larry shi 9 months ago

  • Status changed from Feedback to Closed

Successful for Fossology_Functional_Tests, commit # 6141 on 2012-08-14.

Also available in: Atom PDF