Hi Leena, you mean wget_agent still fails even though you run cpfoss like the below: cp2foss --user fossy --password fossy -f "Software Repository" -q all /tmp/testDocument -v -d cp2foss_upload if yes, still fails, can you give me some error msg when you run cpfoss above. One another reason might be because the user fossy does not have read permission on the file(folder) all /tmp/testDocument -Larry From: Leena Joseph [mailto:[email protected]] Sent: Friday, October 26, 2012 10:03 PM To: Shi, Yao-Bin (Larry, Open Source Program Office) Cc: [email protected]; [email protected]; Gobeille, Robert Subject: Re: Help (regarding failure of wget_agent for fossology version 2.0)
Hi Larry, I tried that option and wget_agent fails for every upload through command line. I wished to debug the issue so I used -T option. Can you let me know if that is the issue with installation and how can I debug it. I do not find any logs related to the failure in fossology.log file. Sincerely, Leena Joseph On Thu, Oct 25, 2012 at 8:03 PM, Shi, Yao-Bin (Larry, Open Source Program Office) <[email protected]<mailto:[email protected]>> wrote: 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]<mailto:[email protected]>] Sent: Friday, October 26, 2012 6:00 AM To: [email protected]<mailto:[email protected]>; [email protected]<mailto:[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
