Re: 4.2.6 on windows: unable to find karaf.log

2019-07-23 Thread Jean-Baptiste Onofré
Thanks for the update.

Let me test that and add folder creation if needed.

Regards
JB

On 23/07/2019 12:24, Steinar Bang wrote:
>> Jean-Baptiste Onofré :
> 
>> Hi Steinar,
>> I think the issue is in karaf.bat about KARAF_LOG variable setting.
> 
>> Let me create the Jira to fix that.
> 
> Hm... not sure what script I'm running, when I'm starting from cygwin bash
> shell with just
>  bin/karaf
> ...?
> 
> Anyway, when I set KARAF_LOG it worked, in that data/log/karaf.log was
> created, but when I did a test and stopped karaf, deleted the data
> director, and restarted karaf, then karaf failed to start because
> KARAF_LOG pointed to a non-existing directory.
> 
> When I manually created the log directory, using
>  mkdir -p data/log
> and then did
>  bin/karaf
> then karaf started and created a data/log/karaf.log file.
> 
> 
> 
> 
> 
> 
> 

-- 
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: 4.2.6 on windows: unable to find karaf.log

2019-07-23 Thread Steinar Bang
> Jean-Baptiste Onofré :

> Hi Steinar,
> I think the issue is in karaf.bat about KARAF_LOG variable setting.

> Let me create the Jira to fix that.

Hm... not sure what script I'm running, when I'm starting from cygwin bash
shell with just
 bin/karaf
...?

Anyway, when I set KARAF_LOG it worked, in that data/log/karaf.log was
created, but when I did a test and stopped karaf, deleted the data
director, and restarted karaf, then karaf failed to start because
KARAF_LOG pointed to a non-existing directory.

When I manually created the log directory, using
 mkdir -p data/log
and then did
 bin/karaf
then karaf started and created a data/log/karaf.log file.









Re: 4.2.6 on windows: unable to find karaf.log

2019-07-23 Thread Jean-Baptiste Onofré
Hi Steinar,

I think the issue is in karaf.bat about KARAF_LOG variable setting.

Let me create the Jira to fix that.

Regards
JB

On 23/07/2019 00:12, Steinar Bang wrote:
> I've unpacked an apache karaf 4.2.6 binary zip on a windows laptop, and
> started it with the usual
>  bin/karaf debug
> 
> Karaf starts and runs fine, but there is no data\log\karaf.log
> 
> Is karaf.log disabled ny defaulton 4.2.6?  Or does it end up somewhere
> other than data\log?
> 
> Thanks!
> 
> 
> - Steinar
> 

-- 
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: 4.2.6 on windows: unable to find karaf.log

2019-07-22 Thread Steinar Bang
> Steinar Bang :

> I've unpacked an apache karaf 4.2.6 binary zip on a windows laptop, and
> started it with the usual
>  bin/karaf debug

> Karaf starts and runs fine, but there is no data\log\karaf.log

I'm starting karaf on windows from the cygwin command prompt, using
karaf sh script.

I did this in the cygwin shell I'm starting karaf from:
 export KARAF_LOG=data/log
and then data/log/karaf.log existed after starting karaf.