question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

setting `RotateLogOnStartup: true` attribute doesnot have any effect

See original GitHub issue

When configuring OSB domain, I would like to customise Log: attribute with extended params.
One of those params doesnot have any effect, aka it doesnot set the server’s logging config.

See

Log:
        FileCount: 20
        LogFileRotationDir: /u06/{{ oracle_user }}/logs/rotatedLogs
        RotateLogOnStartup: true
        RotationType: bySize
        NumberOfFilesLimited: true
        RedirectStderrToServerLogEnabled: true
        RedirectStdoutToServerLogEnabled: true
        FileMinSize: 5000
        DomainLogBroadcasterBufferSize: 1
        FileName: {{ domain_logs_dir }}.log

When check AdminServer console, I see that all attributes are actively set, except RotateLogOnStartup: true which does no effect on the server’s Log configuration, aka Rotate log file on startup is still inactive.

  • WDT version: 20210402 built from master branch
  • OSB version: 12.2.1.4

Can you please advise/help?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ddsharpecommented, Jan 3, 2022

@zeusbaba This is a WLST offline bug in WebLogic. The bug that I filed on your behalf is fixed in the next production release of WebLogic Server. To get this fix for the release of WLS that you are using, you will need to file a support case with Oracle technical support and ask that the fix be ported to your specific release. Be sure to mention, in your support case, all one-off patches and PSUs that you are using. The bug number of the original fix is 29547985.

0reactions
zeusbabacommented, Aug 26, 2021

@ddsharpe thanks for your efforts.

I’ve just tried to verify the fix you mentioned by using

WebLogic Deploy Tooling 1.9.18-SNAPSHOT  
built from main branch on 10aug2021  
nb! this version is the same as 1.9.17 as it was built on 10aug21   

My validation didn’t yield successful results, see details below.

I noticed in #938 you’ve tested by setting attribute for

AdminServer:
      WebServer:
        WebServerLog:

However, the issue I created is about the RotateLogOnStartup for the domain and AdminServer and ManagedServers let me re-iterate the issue for further debugging.

see this WDT template snippet (removed unrelated lines) which is for a basic WLS server setup:

topology:
    Name: "thewls_domain"
    DomainVersion: "12.2.1.3.0"
    Log:
        FileCount: 44
        LogFileRotationDir: "/u06/thewls/logs/rotatedLogs"
        RotateLogOnStartup: true
...
    Server:
        AdminServer:
           ...
            ListenAddress: "thewlsadm-testX.etcetc"
            Log:
                FileCount: 44
                LogFileRotationDir: "/u06/thewls/logs/thewls_domain/servers/rotatedLogs"
                LogFileSeverity: Info
                DateFormatPattern: 'dd.MM.yyyy ''- ''HH:mm:ss.SSS z'
                RotateLogOnStartup: true

all attributes are correctly set, except RotateLogOnStartup is still false,
see screenshot from AdminServer console.

Skjermbilde 2021-08-26 105311

Could you please advise? can we please re-open this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

create domain issue with RotateLogOnStartup #304 - GitHub
It appears that WLST offline has a default of true for RotateLogOnStartup, and omits this attribute in the config.xml for that case. In...
Read more >
Unable to RotateLogOnStartup to True from WLST
When creating domain with RotateLogOnStartup true via WLST offline mode, RotateLogOnStartup always set as false. This does not provide any ...
Read more >
What's New in Oracle WebLogic Server 12.2.1.3.0 - Microsoft
Concurrent deployment occurs automatically; there are no attributes to configure. 2.2.3 JNDI Support for Multitenancy. To support multitenancy, ...
Read more >
Manage WebLogic domains :: WebLogic Kubernetes Operator
This occurs if the Domain logHomeEnabled field is explicitly set to true , or if logHomeEnabled isn't set and domainHomeSourceType is set to...
Read more >
Converting a Weblogic Server domain from Production Mode ...
There are several ways to configure the mode of the domain. ... The following non-dynamic attribute(s) have been changed on MBeans
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found