LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-02-2009, 10:20 AM   #1
apolinsky
Member
 
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 15;
Posts: 454

Rep: Reputation: 48
Debian Lenny postgresql and adding user problems


I have just remade my Debian Etch box as Lenny using the netinstall cd. I am noticing two problems I have never encountered. This was a complete new install and I then copied contents from the appropriate old home directories. I did not want to do an upgrade.

I installed the latest postgresql server and client, yet I can't get the server to start. It ignores the reference in the rc2.d directory for starting, and refuses to start when invoked manually. I never experienced this either with any version of Linux or my BSD machine. Perhaps someone can help on this issue.

I am normally at the command line, but since the initial install took me to GDM, I decided to add additional users using the administrative 'add user' facility. I added four users, and tried to check them, but none of the users were actually added, nor were the appropriate 'home' directories created, but the associated 'groups' were. I deleted the groups, reverted to my normal command line interface, and used 'adduser' to properly add the users and create the groups. Can anyone shed any insight in either of the problems?

Thank you
 
Old 03-02-2009, 01:28 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Can't help with the users, but how does the "and refuses to start when invoked manually."
manifest itself? Anything in the logs, any error messages? Which packages relevant to
postgres are actually installed (verify using aptitude)?
 
Old 03-02-2009, 09:06 PM   #3
apolinsky
Member
 
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 15;
Posts: 454

Original Poster
Rep: Reputation: 48
Obviously setting up postgres is a bit more complicated than I remember. Though I read the shell script in the /etc/rc2.d directory to start postgres, I didn't follow through. I had to trace the various postgres commands/ create certain libraries, and then run the initdb command to create the initial dtabase. Thank you for your suggestions. Though nothing was logged when I initially ran the shell script, I was able to work things out.

Alan
 
Old 03-03-2009, 01:38 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Create libraries sounds worrying, I always thought that the debian install
was quite well thought through... anyway - glad you have it sorted!
 
Old 03-03-2009, 07:09 PM   #5
apolinsky
Member
 
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 15;
Posts: 454

Original Poster
Rep: Reputation: 48
Though postgres is a very reliable and powerful product, it is not trivial to set up Postgres commands are located in /usr/lib/postgresql/8.3/bin. The first step needed to setting up postgresql is to initialize the database using the initdb command. In order to do that you have to create a directory to store the database, and also set up the the PGDATA environment variable pointing to that directory. By convention, the owner of the database is user postgres, but this can be changed. I guess it's been awhile since I created the initial database.
 
Old 03-03-2009, 07:12 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Heh ... well, I do postgres installs on a quite regular basis, so am
aware of what's required. ;} As I said: from my excursion(s) into the
lands of debian and *buntu I seemed to remember it wasn't that hard on
those ... pretty much a led by the hand variety.


Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Adding REAL Firefox to Debian Lenny LXer Syndicated Linux News 0 12-27-2008 12:10 AM
pureftpd problem, unable to add virtual user - debian lenny kutlu Debian 1 12-01-2008 02:11 PM
debian etch to lenny dist-upgrade broke X for current user. pauledwards03 Linux - Software 6 11-17-2008 07:59 AM
Nvidia problems again-Debian lenny Vassos Linux - Software 3 08-12-2008 04:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration