Hi Leena Joseph,

We are sorry that in >= version 2.0, you cannot use the option '-T', we have to 
make a decision if this option is still available,
You can use cp2foss like below for now:

cp2foss --user fossy --password fossy -f "Software Repository" -q all 
/tmp/testDocument -v -d cp2foss_upload


hope it helps, anything please let us know, thanks.

-Larry

From: Leena Joseph [mailto:[email protected]]
Sent: Friday, October 26, 2012 6:00 AM
To: [email protected]; [email protected]
Cc: Gobeille, Robert; Shi, Yao-Bin (Larry, Open Source Program Office)
Subject: Help (regarding failure of wget_agent for fossology version 2.0)

Hi,

   I have installed fossology version 2.0 and I am facing issues will uploading 
file from command line  using cp2foss. wget_agent fails for every upload and so 
the remaining agents are never scheduled due to dependency. Below is the 
exception I get.
Please provide me some insight on how to fix this issue. I really appreciate 
your help.

Command  : cp2foss --user fossy --password fossy -f "Software Repository" -q 
all /tmp/testDocument -v -T -d cp2foss_upload

ERROR :

Loading '/tmp/testDocument'
  Uploading to folder: 'Software Repository'
  Uploading as 'testDocument'
JobAddUpload(2, testDocument,/tmp/testDocument,,8,1);
<hr>File: /usr/local/share/fossology/lib/php/common-agents.php, Line number: 
296<br>ERROR:  invalid input syntax for integer: ""
LINE 2: ...nt_pk=agent_fk and ars_success=true and upload_fk='' and age...
                                                             ^<br> SELECT * 
FROM ununpack_ars, agent
           WHERE agent_pk=agent_fk and ars_success=true and upload_fk='' and 
agent_enabled=true

           order by agent_ts desc  limit 1<pre>#0  debugbacktrace() called at 
[/usr/local/share/fossology/lib/php/common-db.php:158]
#1  DBCheckResult(, SELECT * FROM ununpack_ars, agent
           WHERE agent_pk=agent_fk and ars_success=true and upload_fk='' and 
agent_enabled=true

           order by agent_ts desc  limit 1, 
/usr/local/share/fossology/lib/php/common-agents.php, 296) called at 
[/usr/local/share/fossology/lib/php/common-agents.php:296]
#2  AgentARSList(ununpack_ars, , 1) called at 
[/usr/local/share/fossology/lib/php/common-agents.php:313]
#3  LatestAgentpk(, ununpack_ars) called at 
[/usr/local/share/fossology/lib/php/common-agents.php:447]
#4  CheckARS(, unpack, Archive unpacker, ununpack_ars) called at 
[/usr/local/share/fossology/ununpack/ui/agent-unpack.php:59]
#5  agent_unpack->AgentHasResults() called at 
[/usr/local/share/fossology/lib/php/common-job.php:370]
#6  CommonAgentAdd(agent_unpack Object ([Name] => agent_unpack,[Title] => 
Schedule an Unpack,[Version] => 1.0,[Dependency] => Array (),[DBaccess] => 
4,[AgentName] => ununpack,[State] => 2,[LoginFlag] => 1,[NoMenu] => 
0,[NoHeader] => 0,[NoHTML] => 0,[PluginLevel] => 10,[InitOrder] => 0,[MenuList] 
=> ,[MenuOrder] => 0,[MenuTarget] => ,[OutputType] => Text,[OutputToStdout] => 
0), 39, , , Array ([0] => wget_agent)) called at 
[/usr/local/share/fossology/ununpack/ui/agent-unpack.php:82]
#7  agent_unpack->AgentAdd(39, , , Array ([0] => wget_agent)) called at 
[/usr/local/lib/fossology/cp2foss.php:275]
#8  UploadOne(/, /tmp/testDocument, testDocument, ) called at 
[/usr/local/lib/fossology/cp2foss.php:525]
#9  require(/usr/local/lib/fossology/cp2foss.php) called at 
[/usr/local/lib/fossology/fo_wrapper:70]
</pre><hr>


Sincerely,
Leena Joseph
_______________________________________________
fossology mailing list
[email protected]
http://lists.fossology.org/mailman/listinfo/fossology

Reply via email to