Mary Laser helped me to solve the problem.

Did the following to find out the problem:
    [r...@rhle51x86 localhost]# pwd
    /srv/fossology/repository/localhost
    [r...@rhle51x86 localhost]# ls -l
./files/45/0c/5f/450c5f382bee5039a15f941951f190f96cfb62d8.a96bbe605d355537c4c8bc52728e750d.1509
    -rw------- 1 fossy fossy 1509 Aug  6 12:15
./files/45/0c/5f/450c5f382bee5039a15f941951f190f96cfb62d8.a96bbe605d355537c4c8bc52728e750d.1509

The file 
"450c5f382bee5039a15f941951f190f96cfb62d8.a96bbe605d355537c4c8bc52728e750d.1509"
does not have group read access, which caused user "apache", belonging
to group fossy and running httpd, doesn't have read access to it.

Did the following to solve the problem:

    [r...@rhle51x86 fossology]# pwd
    /srv/fossology
    [r...@rhle51x86 fossology]# chown -R fossy.fossy repository/
    [r...@rhle51x86 fossology]# chmod -R g+rws repository/

Tested with uploading a different file and can view this newly
uploaded file perfectly.

2009/8/5 西门烧雪 Simon <[email protected]>:
> Mary,
>
> Last time, I didn't follow through on this matter because I suspected
> that my installing process was defective.
>
> This time, using Fossology 1.1.0 GA, I successfully installed by using
> the official rpm.  So I want to tackle this issue again.
>
> I am not able to view ANY of my uploads.  (See attached for the zip
> file used for this analysis)
> Unpack seems successful, judged by that the tasks were all finished
> successfully.  I don't know how to verify that the content is on my
> file system.
> The /var/log/fossology/fossology.log shows that everything was
> successful.  (initially shown error, but was caused by postgres didn't
> start in time)
>
> Please advise.  Thank you.
>
> --
> Simon
> 西门烧雪
>
>
> -----------
>
> This should not happen :-(  and, I have not been able to reproduce it.
> I'll need more clues to try to diagnose your problem.
>
> Are you able to view ANY of your uploads?
> Have you verified the unpack of your zip file was successful and it's contents
> is on your file system?
> Have you check the scheduler log file (/var/log/fossology/fossology.log) for
> errors during processing of your upload?
>
> Mary
>
>
>
>> -----Original Message-----
>> From: 西门烧雪 Simon [mailto:[email protected]]
>> Sent: Tuesday, March 31, 2009 6:35 AM
>> To: Laser, Mary
>> Subject: Re: [FOSSology] "File contents are not available in
>> the repository"
>>
>> Mary,
>>
>> The files were already in the correct permissions:
>>
>> $ ls -al /srv/fossology/repository/localhost/
>> total 48
>> drwxrws---   5 fossy fossy 4096 Mar 30 16:11 .
>> drwxrws---   4 fossy fossy 4096 Mar 30 15:57 ..
>> drwxrws--- 258 fossy fossy 4096 Mar 30 15:58 files
>> drwxrws---   4 fossy fossy 4096 Mar 30 16:07 gold
>> drwxrws---   3 fossy fossy 4096 Mar 30 16:11 license
>> -rw-r--r--   1 fossy fossy   25 Mar 30 15:38 selftest.txt
>>
>> Please advise.  Thank you.
>>
>> 2009/3/30 Laser, Mary <[email protected]>
>> >
>> > Hi Simon,
>> > This "smells like" a permissions problem.  Please check
>> your repository directory, where the uploaded files are
>> stored in your filesystem, for the correct permissions.  It
>> should look similar to this:
>> >
>> > $ ls -al /srv/fossology/repository/localhost
>> > total 20
>> > drwxrws--- 5 fossy fossy 4096 2008-03-04 15:40 .
>> > drwxrws--- 6 fossy fossy 4096 2009-03-27 17:23 ..
>> > drwxrws--- 2 fossy fossy 4096 2009-03-27 16:42 files
>> > drwxrws--- 2 fossy fossy 4096 2009-03-27 16:29 gold
>> > drwxrws--- 2 fossy fossy 4096 2009-03-27 16:29 license
>> >
>> > Mary
>> >
>> > ________________________________
>> > From: [email protected]
>> > [mailto:[email protected]] On Behalf Of ???? Simon
>> > Sent: Monday, March 30, 2009 2:23 PM
>> > To: [email protected]
>> > Subject: [FOSSology] "File contents are not available in
>> the repository"
>> >
>> > Dear all,
>> >
>> > I ran into a problem when viewing the content of a zip file
>> uploaded to the server.
>> >
>> > For the sake of demonstration, I have created a very simple
>> a.zip, which contains a java file a.java.  In the a.java, I
>> have put APL 2.0 in the beginning as comment.
>> >
>> > I uploaded this zip file to fossology, which then completes
>> all the analysis per my request.  When I view the license of
>> the a.zip, it showed me there is a reference to APL 2.0.
>> When I click on the link Show, the fossology web site showed
>> that a link to A.java.  So far so good.
>> >
>> > But when I click on the link to A.java, it prompts me "File
>> contents are not available in the repository.".  Why is this?
>> >
>> > I noticed that some other file types would be shown, such
>> as .properties, etc.  What configuration controls what
>> filetypes will be shown and what will not?
>> >
>> > Thank you,
>> >
>> > --
>> > Simon
>> > 西门烧雪
>>
>>
>>
>> --
>> Simon
>> 西门烧雪
>>
>
>
>
> --
> Simon
> 西门烧雪
>
>
>
> --
> Simon
> 西门烧雪
>



-- 
Simon
西门烧雪
_______________________________________________
fossology mailing list
[email protected]
http://fossology.org/mailman/listinfo/fossology

Reply via email to