Thanks for additional info.  I am now starting from the first step using 
Ubuntu's repository management system.  At the moment, I finished 
installing postgreSQL and now installing TomCat6.

In DSpace's installation instructions, I read:
"Note that DSpace will need to run as the same user as Tomcat, so you 
might want to install and run Tomcat as a user called 'dspace'."

This is very confused as it should not be possible to install any software 
package without being 'root' in Unix like system.

What should I do next ?

Panyarak

On Wed, 1 Apr 2009, Van Ly wrote:

> Hi Panyarak,
>
> For next time, you'll find the createuser/createdb steps need to be done 
> before the `ant fresh_install'. Something I use for testing is
>
> # su --login dspace -c 'dropdb -i dspace'
> # su --login postgres -c 'dropuser dspace'
> #
> # su --login postgres -c 'createuser -U postgres -S -R -c 35 -d dspace'
> # su --login dspace -c 'createdb -U dspace -E UTF8 -T template0 dspace 
> "database for dspace"'
>
> -- Van Ly
>
>
> From: Panyarak Ngamsritragul
> Sent: Wed 1/04/2009 12:01 PM
> To: [email protected]
> Subject: Re: [Dspace-tech] Install dspace unsucessful
>
>
> Thanks a lot for your information.  I did not record all the details I did
> last time(s).  Sometimes I was stopped at 'maven package' which I learned
> from others experiences that it was the file permission issue.  Sometimes
> it seemed that I successfully went through the 'ant fresh_install', but
> could not see anything when called from browser.  I rebuilt DSpace again
> and was stopped at 'ant fresh_install'....
>
> Anyway, I will try again and let you know later.
> Thanks again.
> Panyarak
>
> On Tue, 31 Mar 2009, Mark H. Wood wrote:
>
>> On Tue, Mar 31, 2009 at 10:07:47PM +0700, Panyarak Ngamsritragul wrote:
>>> As postgres, I tried to create a database:
>>>    createdb -U dspace -E UNICODE dspace
>>>
>>> But the command returned an error message:
>>> createdb: could not connect to database postgres: FATAL:  Ident
>>> authentication failed for user "dspace"
>>
>> Rightly so.  Your user process is owned by 'postgres', not 'dspace',
>> and that is what the Ident daemon will report to PostgreSQL.  Your
>> user and database credentials do not match, and that match is required
>> for Ident authentication.
>>
>>> It is possible to create the database when I 'sudo su dspace'.  This can
>>> even be done without specifying '-U dspace' in the command line.
>>
>> Yes.  Since the database/user pair in question is authenticated with
>> Ident, the matching usernames are sufficient.
>>
>>> Is there anything wrong in this step ?  I did do further to install the
>>> package, but finally failed.
>>
>> Well, I think that the command should be 'createdb -O dspace -E
>> UNICODE dspace'.  The database needs to be owned by 'dspace' but it
>> need not be *created by* 'dspace'.  You should be able to use the
>> PostgreSQL superuser ('postgres') to create the database.
>>
>> But it sounds like you have created the database properly.  Maybe you
>> should tell us how far you got and what the error was that has stopped you.
>
>

-- 
Panyarak Ngamsritragul
Department of Mechanical Engineering
Prince of Songkla University.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner.


------------------------------------------------------------------------------
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to