[email protected] wrote:
Daniel,
Sorry this is taking so long. I need some more data to help you.
1. Is this a single machine running FOSSology or is it multiple
machines? It makes a difference for upload from server. If you are
using multiple machine, then the file being uploaded must be accessible
from every machine.
2. Where is the file located on the machine? Is that path readable? e.g
* -rw-r--r-- file permissions. or directory permissions.
3. What is the error in the scheduler log when this occurs?
3.1 Stop the scheduler: sudo /etc/init.d/fossology stop
3.2 save the existing log: sudo mv /var/log/fossology/fossology.log
/var/log/fossology/save.fossology.log
3.3 restart the scheduler: sudo /etc/init.d/fossology start
3.4 tail the sheduler log: tail -f /var/log/fossology/fossology.log
3.5 In the browser, upload from server and monitor the scheduler
log. Capture the errors or messages and send them to me.
4. Other items to look at:
- do you need a proxy to upload this file? Has
/etc/fossology/Proxy.conf been configured?
- can you upload this file 'by hand'. Try: wget http://yoursys/path
to file. WHat does wget
report?
Stay with us. We will solve this! Thanks for the data.
*
Bob,
my issue is not yet solved. When I access Fossology via the user
interface I do not have any problem, I am able to load a single file
(Upload / From File) and perform an analysis. It's only when I try to
load multiple files (Upload/From Server) that the process terminates
in error.
The result of the "find . -name pathinclude.php" gave:
./srv/fossology/share/fossology/php/pathinclude.php
./src/fossology-1.0.0/ui/pathinclude.php
./share/fossology/php/pathinclude.php
each file is identical (see below):
<?php
global $GlobalReady;
if (!isset($GlobalReady)) { exit; }
$BINDIR="/srv/fossology/bin";
$LIBDIR="/srv/fossology/lib";
$LIBEXECDIR="/srv/fossology/lib/fossology";
$INCLUDEDIR="/srv/fossology/include";
$MAN1DIR="/srv/fossology/share/man/man1";
$AGENTDIR="/srv/fossology/lib/fossology/agents";
$SYSCONFDIR="/srv/fossology/etc";
$WEBDIR="/srv/fossology/share/fossology/www";
$PHPDIR="/srv/fossology/share/fossology/php";
$PROJECTSTATEDIR="/var/local/lib/fossology";
$PROJECT="fossology";
$DATADIR="/srv/fossology/share/fossology";
$VERSION="1.0.0";
$SVN_REV="exported";
Thanks and best regards,
Daniel.
*Bob Gobeille <[email protected]>*
01/06/2009 22:35
To
[email protected]
cc
"Donohoe, Mark" <[email protected]>, "[email protected]"
<[email protected]>
Subject
Re: [FOSSology] Fw: Question
Daniel,
Do you have this resolved yet?
If so - great.
If not, it looks like your fossology install did not go well. You
could either reinstall, or if you want to debug this further, I have
a couple of questions:
1) What happens when you access the user interface? Do you get any
errors?
2) What does the file pathinclude.php look like? In a default
install this will be in /usr/share/fossology or
/usr/local/share/fossology. In your case I'm not sure where it would
be. You can find it by typing:
cd /srv/fossology
find . -name pathinclude.php
Thanks,
Bob Gobeille
On May 27, 2009, at 9:40 AM, [email protected]_
<mailto:[email protected]> wrote:
Hi Mark,
I checked the points that you mentioned below, please find the answers:
1. yes, cp2foss is installed in /srv/fossology/bin
2. here is what I find under /srv/fossology/
*
[r...@reikland fossology]# pwd* *
/srv/fossology* *
[r...@reikland fossology]# ls -l* *
total 80* *
drwxr-sr-x 2 root fossy 4096 Feb 26 18:24 bin* *
-rw-r--r-- 1 root fossy 13402 Apr 23 12:17 cp2foss.php* *
drwxr-sr-x 5 root fossy 4096 Feb 26 18:43 etc* *
drwxr-sr-x 4 root fossy 4096 Feb 26 18:24 include* *
drwxr-sr-x 5 root fossy 4096 Feb 26 18:24 lib* *
-rw-r--r-- 1 fossy fossy 22593 Feb 26 18:40 list* *
drwxr-sr-x 3 root fossy 4096 Feb 26 18:06 man* *
drwx------ 11 postgres postgres 4096 Mar 17 15:27 pg_data* *
drwxrws--- 4 fossy fossy 4096 Mar 18 09:06 repository* *
drwxr-sr-x 7 root fossy 4096 Feb 26 18:24 share* *
drwxr-sr-x 3 root fossy 4096 Feb 26 18:22 src* *
drwxr-sr-x 3 root fossy 4096 Feb 26 18:43 srv* *
[r...@reikland fossology]#*
3. I do not remember where I was when I ran the command but I tried
from the two locations with the same error message.
The two versions are located in:
-bash-3.2$ pwd
/srv/fossology/bin
-bash-3.2$ ls -l cp2foss
-rwxr-xr-x 1 root fossy 13051 Feb 26 18:24 cp2foss
-bash-3.2$
-bash-3.2$ pwd
/srv/fossology/srv/fossology/bin
-bash-3.2$ ls -l cp2foss
-rwxr-xr-x 1 root fossy 13051 Feb 26 18:43 cp2foss
I am not an expert in Linux and I am not the person who installed
Fossology but when I check the installation time they are very close.
4. There are a few differences oident is replaced by fossy and
www-data by apache (see below)
*
drwxrws--- 3 **fossy** fossy 4096 2009-05-04 21:25 fossology/
drwxrws--- 4 **fossy** fossy 4096 2009-05-11 14:22 repository
drwxrws--- 5 **fossy** fossy 4096 2009-05-11 09:21 localhost
drwxrws--- 3 **fossy** fossy 4096 2009-05-05 18:13 ununpack
drwxrws--- 219 **apache **fossy 4096 2009-05-05 18:41 files
drwxrws--- 16 **apache **fossy 4096 2009-05-05 18:43 gold
drwxrws--- 205 **fossy** fossy 4096 2009-05-05 18:53 license*
Thank you for your support and best regards,
Daniel.
----- Forwarded by Daniel Goebel/CBF/GDB on 27/05/2009 17:14 -----
*Mark Donohoe <**[email protected]_* <mailto:[email protected]>*>*
11/05/2009 23:37
Please respond to_
[email protected]_ <mailto:[email protected]>
To
[email protected]_ <mailto:[email protected]>
cc
[email protected]_
<mailto:[email protected]>, "[email protected]_
<mailto:[email protected]>" <[email protected]_
<mailto:[email protected]>>
Subject
Re: [FOSSology] Question
Mark Donohoe wrote:
> [email protected]_
<mailto:[email protected]> wrote:
>
>> Dear user group,
>>
>> we have installed the patch but I am still not able to load a complete
>> directory. I have also tried to use the command line cp2foss but I am
>> also having some issues, please see below the syntax of the command
>> line and the error message. Any help is more than welcome.
>>
>> /srv/fossology/bin/cp2foss -f "Software Repository/Folder_dg" -d
>> "Test spantax" -n "Test spantax" /opt/fossy/SPANTAX/SPANTAX/appl/script
>>
>> PHP Warning: Call-time pass-by-reference has been deprecated -
>> argument passed by value; If you would like to pass it by reference,
>> modify the declaration of menu_insert_r(). If you would like to
>> enable call-time pass-by-reference, you can set
>> allow_call_time_pass_reference to true in your INI file. However,
>> future versions may not support this any longer. in
>> /srv/fossology/share/fossology/www/common/common-menu.php on line 244
>> PHP Notice: Undefined index: updcache in
>> /srv/fossology/share/fossology/www/plugins/ui-license.php on line 114
>> PHP Notice: Undefined offset: 1 in
>> /srv/fossology/share/fossology/www/common/common-parm.php on line 98
>> PHP Notice: Undefined variable: PageHex in
>> /srv/fossology/share/fossology/www/plugins/ui-view.php on line 92
>> PHP Notice: Undefined variable: PageText in
>> /srv/fossology/share/fossology/www/plugins/ui-view.php on line 93
>> PHP Notice: Undefined variable: PageText in
>> /srv/fossology/share/fossology/www/plugins/ui-view.php on line 94
>> Loading /opt/fossy/SPANTAX/SPANTAX/appl/script
>> tar: /cp2foss-4a081eff990ed.tar: Cannot open: Permission denied
>> tar: Error is not recoverable: exiting now
>> FATAL: '/cp2foss-4a081eff990ed.tar' does not exist.
>>
>> Best regards,
>> Daniel Goebel.
>>
>>
> Daniel,
>
> Sorry the patch as not fixed your problem. I'm looking into it further
> now. I'll get back with you as soon as I can.
>
>
Daniel,
I have some questions as I have not been able to reproduce your problem.
I noticed a few things about your installation:
1. cp2foss is installed in /srv/fossology/bin, is that correct?
2. It appears that you have the rest of fossology installed under
/srv/fossology as shown here:
PHP Notice: Undefined index: updcache in
/srv/fossology/share/fossology/www/plugins/ui-license.php on line 114
3. Do you know what directory you were in when you issued the command:
/srv/fossology/bin/cp2foss -f..... ?
This is rather unique. We have never tested an installation like
this. Are you a programmer or an experience linux system admin?
Installing fossology in a non-standard place SHOULD work, but there
may be a number of areas in the code or configuration scripts that
might need to be adjusted. As a result, we don't recommend installing
in any other place other than /usr/local for the upstream tar balls
(or source builds), and the standard system locations in the debian
packaging, (/usr, /usr/lib/, /usr/share, etc...).
4. The other item that is difficult to reproduce is the temp file
location reported by you.
If I am cd'ed into / (the root of the file system) the tar file in my
install ends up in
the repository: /srv/fossology/repository/cp2foss-4a088fa9379a2.tar.
If I'm in my home dir it still ends up in the repository:
ma...@hallows: pwd
/home/markd
DB-CP2: Filename is:/srv/fossology/repository/cp2foss-4a08967994f52.tar
tar: Removing leading `/' from member names
I have also tried other places as well. The tar file always ends up
in the repository area. I can't figure out how you got cp2foss to report:
tar: /cp2foss-4a081eff990ed.tar: Cannot open: Permission denied
tar: Error is not recoverable: exiting now
FATAL: '/cp2foss-4a081eff990ed.tar' does not exist.
notice the tar path....
Is everything from fossology down (in /srv/fossology....) on your
system group owned by fossy? If not, that's a problem. It should be
similiar to this:
ma...@hallows: ll -d fossology/
drwxrws--- 3 oident fossy 4096 2009-05-04 21:25 fossology/
ma...@hallows: ll -R fossology/ | less -X
fossology/:
total 4
drwxrws--- 4 oident fossy 4096 2009-05-11 14:22 repository
fossology/repository:
total 8
drwxrws--- 5 oident fossy 4096 2009-05-11 09:21 localhost
drwxrws--- 3 oident fossy 4096 2009-05-05 18:13 ununpack
fossology/repository/localhost:
total 16
drwxrws--- 219 www-data fossy 4096 2009-05-05 18:41 files
drwxrws--- 16 www-data fossy 4096 2009-05-05 18:43 gold
drwxrws--- 205 oident fossy 4096 2009-05-05 18:53 license
notice the group owner is fossy and the group permissions are rws.
Don't worry about the owner in the output above, it's the group
that's important. The output is from my test system.
Please take a look at your configuration to see if there are any
issues there. Without the ability to reproduce your problem, it will
be much harder to fix. I'll continue to experiment with this to see
if I can find the issue or what's going on. Would it be possible to
re-install in the standard locations and try cp2foss again?
Thanks for your help.
--
Mark Donohoe
MOST/OSTT, Cupertino CA.
fossology.org
----------------------------------------------------------------------------
Clearstream Services S.A.
42 Avenue JF Kennedy, L-1855 Luxembourg
Société anonyme is organised with limited liability
in the Grand Duchy of Luxembourg R.C.S. Luxembourg B 60911.
-----------------------------------------
Visit us at _http://www.clearstream.com_ <http://www.clearstream.com/>
IMPORTANT MESSAGE
Internet communications are not secure and therefore Clearstream
International does not accept legal responsibility for the contents of
this message.
The information contained in this e-mail is confidential and may be
legally privileged. It is intended solely for the addressee. If you
are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful. Any views expressed in this e-mail are
those of the individual sender, except where the sender specifically
states them to be the views of Clearstream International or of any of
its affiliates or subsidiaries.
Legally required information for business correspondence/
Gesetzliche Pflichtangaben fuer Geschaeftskorrespondenz:
_http://deutsche-boerse.com/letterhead_
END OF DISCLAIMER
<ATT00001.txt>
----------------------------------------------------------------------------
Clearstream Services S.A.
42 Avenue JF Kennedy, L-1855 Luxembourg
Société anonyme is organised with limited liability
in the Grand Duchy of Luxembourg R.C.S. Luxembourg B 60911.
-----------------------------------------
Visit us at http://www.clearstream.com
IMPORTANT MESSAGE
Internet communications are not secure and therefore Clearstream International
does not accept legal responsibility for the contents of this message.
The information contained in this e-mail is confidential and may be legally
privileged. It is intended solely for the addressee. If you are not the
intended recipient, any disclosure, copying, distribution or any action taken
or omitted to be taken in reliance on it, is prohibited and may be unlawful.
Any views expressed in this e-mail are those of the individual sender, except
where the sender specifically states them to be the views of Clearstream
International or of any of its affiliates or subsidiaries.
Legally required information for business correspondence/
Gesetzliche Pflichtangaben fuer Geschaeftskorrespondenz:
http://deutsche-boerse.com/letterhead
END OF DISCLAIMER
--
Mark Donohoe
MOST/OSTT, Cupertino CA.
fossology.org
_______________________________________________
fossology mailing list
[email protected]
http://fossology.org/mailman/listinfo/fossology