Bug #2025
agents fail to be scheduled when using the new DB and sysconfdir
| Status: | Closed | Start date: | 05/21/2012 | |
|---|---|---|---|---|
| Priority: | High | Due date: | ||
| Assignee: | % 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
- 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 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!