9 messages in org.apache.directory.devRe: [Installer] Possible Bug - apache...
FromSent OnAttachments
Ole ErsoyMay 13, 2007 2:39 pm 
Emmanuel LecharnyMay 13, 2007 9:58 pm 
Andrew C. OliverMay 13, 2007 11:20 pm 
Emmanuel LecharnyMay 14, 2007 1:54 am 
Andrew C. OliverMay 14, 2007 7:14 am 
Ole ErsoyMay 14, 2007 7:27 am 
Ole ErsoyMay 14, 2007 7:34 am 
Emmanuel LecharnyMay 14, 2007 7:54 am 
Ole ErsoyMay 14, 2007 8:17 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [Installer] Possible Bug - apacheds start fails because it cannot create the rolling logActions...
From:Andrew C. Oliver (acol@buni.org)
Date:May 14, 2007 7:14:21 am
List:org.apache.directory.dev

oh. My bad. I run Ubuntu. I only got something like that when I accidentally picked the wrong session window.

-Andy

Emmanuel Lecharny wrote:

Andy,

I think you have missed something : Ole is starting the server *as root*. There is another issue, and we have to figure out what it is

Ole, I have found a JIRA I filled weeks ago which has been closed : https://issues.apache.org/jira/browse/DIRSERVER-862

Can you check if this is exactly the same problem you have, and if so repoen the issue ?

Thanks !

On 5/14/07, Andrew C. Oliver <acol@apache.org> wrote:

this is pretty simply caused by the RPM command running as root and then the dir is owned by root...then if you start it as another user, that user doesn't have permission (and shouldn't) to the dir.

If you install as root (with RPM you have to) you need to run as root or the RPM needs to change permissions to a user which means it pretty much has to create the user.

-Andy

Emmanuel Lecharny wrote:

Hi Ole,

can you fill a JIRA for this issue?

Thanks !

On 5/13/07, Ole Ersoy <ole.@gmail.com> wrote:

This is interesting.

After installing a fresh RPM (And deleting the old files manually) if I try to start ADS as root using

/etc/init.d/apacheds start I get an OK but the server just exits right away.

I think the reason is this:

log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException: apacheds-rolling.log (Permission denied) at java.io.FileOutputStream.openAppend(Native Method)

So somehow it's not able to create the rolling log. I verified this by looking in /usr/local/apacheds-1.5.0/ and there's no apacheds-rolling.log

However if I start the server like this: /etc/init.d/apacheds debug

it starts fine.

I thought this was because it prints the log to the screen so that it does not attempt to open it. However it's also able to create the rolling log now.

I verified this. /usr/local/apacheds-1.5.0/apacheds-rolling.log exists.

I'm surprised that only I'm getting this though. I'm running Fedora 6 x86_64.

Cheers, - Ole