Tech List

[index] [options] [help]
See the Mailing Lists Page for how to subscribe and unsubscribe.

eprints_tech messages

Please note: this page shows emails that have been sent to the eprints_tech mailing list. Some of these may be spam emails we have failed to filter.

[EP-tech] database creation

From: "Faine, Mark" <Mark.Faine AT msfc.nasa.gov>
Date: Wed, 9 May 2001 12:58:20 -0500


Threading:      • This Message
             Re: [EP-tech] database creation from cjg AT ecs.soton.ac.uk


Ok, I've gottent the apache with mod_perl operational and all is good on the
web server front.

I decided earlier to re-install manually the eprints software. I'm to the
point where I need to 
run scripts that update/create the database, specificaly the cron tab
scripts but really none of the scripts will work.

I just get somehting like:

[root AT trs]296[/usr/local/apache/eprints/bin]# ./subs_daily 
DBI->connect(database=eprints) failed: Access denied for user:
'eprints AT localhost' (Using password: YES) at
/usr/local/apache/eprints/perl_lib/EPrints/Database.pm line 134
TRS has encountered an error:

Failed to connect to database

Can't call method "retrieve_fields" on an undefined value at
/usr/local/apache/eprints/perl_lib/EPrints/Subscription.pm line 338.

-------------------------------------------------------------------

I would like to change the username the scripts are using to "nobody" 
but I
can't figure out how, except a direct hack on the Database.pm file, and I've
tried, nobody can't connect either.   $EPrintSite::SiteInfo::username is set
to "nobody" but still it tries to connect as eprints.

I know the grants and users are set up right because I can connect as nobody
or eprints from the command line.


Basically if I get through this database problem that should be the last
hurdle to clear as that is the only thing holding back a completed
installation at this point.

Any help would be appreciated?

-Mark



_____________________________________ 
Mark Faine 
Computer Programmer III/MTRS Administration 
Lesco/MSFC 
256-961-1295 

Re: [EP-tech] database creation

From: Christopher Gutteridge <cjg AT ecs.soton.ac.uk>
Date: Mon, 14 May 2001 15:31:23 +0100


Threading: [EP-tech] database creation from Mark.Faine AT msfc.nasa.gov
      • This Message


Did you set the username to connect as in the config file (AND HUP/RESTART
APACHE?) It sounds like the username you're using is still eprints (hence)
eprints AT localhost. 

Did you create a DB call "eprints" by hand?

Did you run the create_database script which builds all the SQL tables?


On Wed, May 09, 2001 at 12:58:20PM -0500, Faine, Mark wrote:
> Ok, I've gottent the apache with mod_perl operational and all is good on 
the
> web server front.
> 
> I decided earlier to re-install manually the eprints software. I'm to the
> point where I need to 
> run scripts that update/create the database, specificaly the cron tab
> scripts but really none of the scripts will work.
> 
> I just get somehting like:
> 
> [root AT trs]296[/usr/local/apache/eprints/bin]# ./subs_daily 
> DBI->connect(database=eprints) failed: Access denied for user:
> 'eprints AT localhost' (Using password: YES) at
> /usr/local/apache/eprints/perl_lib/EPrints/Database.pm line 134
> TRS has encountered an error:
> 
> Failed to connect to database
> 
> Can't call method "retrieve_fields" on an undefined value at
> /usr/local/apache/eprints/perl_lib/EPrints/Subscription.pm line 338.
> 
> -------------------------------------------------------------------
> 
> I would like to change the username the scripts are using to 
"nobody" but I
> can't figure out how, except a direct hack on the Database.pm file, and 
I've
> tried, nobody can't connect either.   $EPrintSite::SiteInfo::username is 
set
> to "nobody" but still it tries to connect as eprints.
> 
> I know the grants and users are set up right because I can connect as 
nobody
> or eprints from the command line.
> 
> 
> Basically if I get through this database problem that should be the last
> hurdle to clear as that is the only thing holding back a completed
> installation at this point.
> 
> Any help would be appreciated?
> 
> -Mark
> 
> 
> 
> _____________________________________ 
> Mark Faine 
> Computer Programmer III/MTRS Administration 
> Lesco/MSFC 
> 256-961-1295 

-- 
Christopher Gutteridge -- cjg AT ecs.soton.ac.uk -- +44 (0)23 8059 4833
Aside from mathematics, just two things worth doing - Kill a man and love a 
woman. He had done both; he was rich. - Robert Heinlein

[index] [options] [help]