4.2.6 on windows: unable to find karaf.log

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

4.2.6 on windows: unable to find karaf.log

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

Is karaf.log disabled ny defaulton 4.2.6?  Or does it end up somewhere
other than data\log?

Thanks!


- Steinar

Reply | Threaded
Open this post in threaded view
|

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

Steinar Bang
>>>>> Steinar Bang <[hidden email]>:

> 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.

Reply | Threaded
Open this post in threaded view
|

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

jbonofre
In reply to this post by Steinar Bang
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é
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com
Reply | Threaded
Open this post in threaded view
|

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

Steinar Bang
>>>>> Jean-Baptiste Onofré <[hidden email]>:

> 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.







Reply | Threaded
Open this post in threaded view
|

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

jbonofre
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é <[hidden email]>:
>
>> 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é
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com