Re: [FOSSology] Installing fossology on a Ubuntu karmic koala (9.10) machine

2010-10-21 Thread Matt Taggart
 OK, so I think we'd rather use Ubuntu 10.04 but I have version 1.1.0
 (fossology) running on my Ubuntu machine (10.04), is there a way I can
 upgrade to 1.2.1 without removing the data I have collected already with
 the older version of fossology?

The general answer is that upgrades within the major version number (1 in 
this case) are supposed to work and if they don't it's a bug and you should 
report it. If the fossology team ever needs to break the database schema in 
incompatible ways, they will only do so in a major release. It might also 
be that the team decides to change the major version number without 
breaking things too. Either way hopefully there will be a way to go from 
1.x to 2.x, even if it involves some utility that converts your data to the 
new way of doing things.

See my other reply in this thread for a list of instructions on how to 
upgrade.

-- 
Matt Taggart
tagg...@fossology.org


___
fossology mailing list
fossology@fossology.org
http://fossology.org/mailman/listinfo/fossology


Re: [FOSSology] Installing fossology on a Ubuntu karmic koala (9.10) machine

2010-10-21 Thread Causey, William
Hi Mark and Mary,

So just an update on fossology upgrade form 1.1.x to 1.2.1.

I was working with Gurbax to get this running on her Ubuntu machine and hadn't 
attempted any upgrade on my machine until this morning.  I think last week I 
modified my sources.list to include updates from fossology - as listed on the 
fossology website: http://fossology.org/install#upgrading_from_fossology_1.2.0.

So today I ran Update Manager on my Ubuntu machine and the 1.2.1 version of 
fossology and updates to postgresql 8.4 updates was included along with many 
more updates.  So this ran which required an reboot and after starting 
postgresql and then starting fossology everything came up and worked without 
any problems except it seems the data from my previous scans where lost with 
the postgresql patches to 8.4.  I think it will be OK as I can rescan the 
packages I previously scanned.

The version of fossology installed is FOSSology version 1.2.1~3507.

Thanks  Regards,
William

William Causey
Texas Instruments
Voice 214 567 2339
Cell: 214 803 8829



From: Mark Donohoe [mailto:mark.dono...@hp.com]
Sent: Tuesday, October 19, 2010 1:42 PM
To: Laser, Mary
Cc: Causey, William; fossology@fossology.org
Subject: Re: [FOSSology] Installing fossology on a Ubuntu karmic koala (9.10) 
machine

William,

The instructions below should work just fine.  I just tried the apt-get remove 
on a system.  Here is what I found:

sudo apt-get remove fossology, only removed the fossology package.  As a second 
step I did a sudo apt-get autoremove to remove the rest of the fossology 
packages.  This worked just fine.  The existing fossology db is still there 
with all the data, just the package got removed.  Just what we wanted.

Just in case it wasn't clear, if you want to remove source install files the 
fo-cleanold  util can be used.  It's in the utils directory of the sources.  DO 
NOT use the --delete-everything option!  It will remove your DB.  Just run it 
with no options.

sudo utils/fo-cleanold.

Please let us know how this worked.  You are the first person trying to upgrade 
from a  1.1.x release to a 1.2.1 release.

Hope this helps.

Laser, Mary wrote:
Oops!  I meant to say 1.1.x below (not 1.1.1)
From: fossology-boun...@fossology.orgmailto:fossology-boun...@fossology.org 
[mailto:fossology-boun...@fossology.org] On Behalf Of Laser, Mary
Sent: Tuesday, October 19, 2010 11:38 AM
To: Causey, William; Donohoe, Mark
Cc: fossology@fossology.orgmailto:fossology@fossology.org
Subject: Re: [FOSSology] Installing fossology on a Ubuntu karmic koala (9.10) 
machine
Hi William,
Yes, you can use the following procedure to upgrade from 1.1.1 to 1.2.1 on 
Ubuntu:

!--[if !supportLists]--1.   !--[endif]--Stop the scheduler  db server

!--[if !supportLists]--a.   !--[endif]--sudo /etc/init.d/fossology stop

!--[if !supportLists]--b.  !--[endif]--sudo /etc/init.d/postgresql stop

!--[if !supportLists]--2.   !--[endif]--Remove the current install  
(this will NOT remove the database or repository)

!--[if !supportLists]--a.   !--[endif]--For package installs, use 
apt-get remove fossology

!--[if !supportLists]--b.  !--[endif]--For source installs, use 
fo-cleanold from the source tree

!--[if !supportLists]--3.   !--[endif]--Install FO 1.2.1 from sources 
using the steps outlined in the Ubuntu 10.04 install 
guidehttp://fossology.org/ubuntu10.04_install_guide.
Mark - Please confirm or make corrections, as necessary.  If these instructions 
are correct, let's post them to the website for future reference.
Mary



--
Mark Donohoe
OST, Cupertino CA.
fossology.org

___
fossology mailing list
fossology@fossology.org
http://fossology.org/mailman/listinfo/fossology


Re: [FOSSology] Installing fossology on a Ubuntu karmic koala (9.10) machine

2010-10-21 Thread Causey, William
OK we have removed the database and have installed postgresql-8.3 and it 
started OK.
So when we run the fo-postinstall we get the following error at the end:

*** Initializing database tables ***
/usr/local/lib/fossology/fo-postinstall: /usr/local/bin/fossinit: /usr/bin/php: 
bad interpreter: No such file or directory
ERROR: Unable to initialize.

Thanks  Regards,
William Causey
Cell: (214) 803-8829

From: Mark Donohoe [mark.dono...@hp.com]
Sent: Wednesday, October 20, 2010 5:03 PM
To: Deol, Gurbax
Cc: Laser, Mary; Causey, William; fossology@fossology.org
Subject: Re: [FOSSology] Installing fossology on a Ubuntu karmic koala (9.10) 
machine

Deol, Gurbax wrote:
Gurbax,

hmm, somehow, either postgresql got removed or is not running.  To start it:

sudo /etc/init.d/postgresql start

if it got removed:

8.3: sudo apt-get install postgresql-8.3 postgresql-server-dev-8.3
8.4: sudo apt-get install postgresql-8.4 postgresql-server-dev-8.4

If the install does not start postgres (it should), then start it as
described above.

If you do reinstall postgres, then please remember to configure it as
described in the INSTALL file, or fossology will not come up.  After
configure, you have to restart postgres.

Hope that helps.


 Mary, Mark,

 We removed fossology with sudo apt-get remove fossology, then also ran the 
 sudo apt-get autoremove command to clean up.

 Now after following the instructions for install of 1.2.1 version, we are 
 getting the following error message:

 *** Running postinstall for everything ***
 *** Setting up the FOSSology database ***
 bash: psql: command not found
 ERROR: postgresql isn't running
 *** Creating user and group ***
 NOTE: group 'fossy' already exists, good.
 NOTE: user 'fossy' already exists, good.
 *** Making sure needed dirs exist with right ownership/permissions ***
 NOTE: Repository already exists at /srv/fossology/repository
 NOTE: /srv/fossology/repository/localhost directory already exists
 *** Checking database connectivity ***
 ERROR: Unable to connect to the database
   Connection string: 'dbname=fossology host=localhost user=fossy 
 password=fossy'
   Connection status: '1'
 ERROR: Failed to open database
 ERROR: unable to connect to database, please check 
 /usr/local/etc/fossology/Db.conf


 We did look at the Db.conf file, it seems to have the correct info in it.

 Regards,

 -gurbax / william

--
Mark Donohoe
OST, Cupertino CA.
fossology.org



fo.out
Description: fo.out
___
fossology mailing list
fossology@fossology.org
http://fossology.org/mailman/listinfo/fossology


Re: [FOSSology] how to contribute

2010-10-21 Thread Mark Donohoe

Wolfgang,

In a way you did contribute.  You let us know we had typos.  Please tell 
us where next time.  Another user reported the details and the wiki has 
been fixed.


Best of luck in your work.

Wolfgang Strunk wrote:

Unfortunately I did not intend to be ironic at all. I think I completely  made 
a fool of myeself. :-((

Still, after reading through the whole How to contribute section, I don't 
have a clue how to provide changes to the install documentation. I found two typos in 
shell scripts which lead to command line errors.

  

--
Mark Donohoe
OST, Cupertino CA.
fossology.org

___
fossology mailing list
fossology@fossology.org
http://fossology.org/mailman/listinfo/fossology


Re: [FOSSology] how to contribute

2010-10-21 Thread Mike Mian
Hey Wolfgang - please don't feel bad, I only meant it in a friendly way,  I 
would hate to think what I'd type in German :).   - M

From: Wolfgang Strunk [mailto:fossol...@softwarearchitektur.de]
Sent: Thursday, October 21, 2010 11:58 AM
To: fossology@fossology.org
Cc: Mike Mian
Subject: Re: RE: [FOSSology] how to contribute

Unfortunately I did not intend to be ironic at all. I think I completely  made 
a fool of myeself. :-((

Still, after reading through the whole How to contribute section, I don't 
have a clue how to provide changes to the install documentation. I found two 
typos in shell scripts which lead to command line errors.


___
fossology mailing list
fossology@fossology.org
http://fossology.org/mailman/listinfo/fossology


Re: [FOSSology] how to contribute

2010-10-21 Thread Laser, Mary
Hi Wolfgang,
Just to be sure we fixed the right typos, please check the pages where you saw 
the errors.

Thanks,
Mary


 -Original Message-
 From: fossology-boun...@fossology.org [mailto:fossology-
 boun...@fossology.org] On Behalf Of Donohoe, Mark
 Sent: Thursday, October 21, 2010 2:04 PM
 To: Wolfgang Strunk
 Cc: fossology@fossology.org
 Subject: Re: [FOSSology] how to contribute
 
 Wolfgang,
 
 In a way you did contribute.  You let us know we had typos.  Please
 tell
 us where next time.  Another user reported the details and the wiki has
 been fixed.
 
 Best of luck in your work.
 
 Wolfgang Strunk wrote:
  Unfortunately I did not intend to be ironic at all. I think I
 completely  made a fool of myeself. :-((
 
  Still, after reading through the whole How to contribute section, I
 don't have a clue how to provide changes to the install documentation.
 I found two typos in shell scripts which lead to command line errors.
 
 
 --
 Mark Donohoe
 OST, Cupertino CA.
 fossology.org
 
 ___
 fossology mailing list
 fossology@fossology.org
 http://fossology.org/mailman/listinfo/fossology

___
fossology mailing list
fossology@fossology.org
http://fossology.org/mailman/listinfo/fossology


Re: [FOSSology] Installing fossology on a Ubuntu karmic koala (9.10) machine

2010-10-21 Thread Laser, Mary


 -Original Message-
 From: m...@lackof.org [mailto:m...@lackof.org] On Behalf Of Matt
 Taggart
 Subject: Re: [FOSSology] Installing fossology on a Ubuntu karmic koala
 (9.10) machine
 
 I just
 edited a little to explain that just rebuilding the packages is enough
 if
 people want to do that until proper packages are available.
 

Thanks Matt!

  Also, we have not tried or tested fossology using postgresql 8.4,
 yet.  You
   can be the first :)
 
 I use 8.4, it works fine. Maybe the fossology developers should try it
 :)

Good idea.  We'll plan to do that with the next development cycle (post-1.3).

Mary
___
fossology mailing list
fossology@fossology.org
http://fossology.org/mailman/listinfo/fossology