-
Suggestion
-
Resolution: Unresolved
-
None
-
None
Current behaviour
During Bitbucket startup, bundled OpenSearch will also be started (applicable for only standalone Bitbucket Data Center instances). While this is happening, there are scenarios where OpenSearch startup logs will be shown on the terminal. For example:
- The issue described in BSERV-19253.
- Another case is when OpenSearch is started and the logs are due to roll over, then we will observe what has been reported here; [BUG] Access denied error opening rotated log files. This log messages will no longer shown on the consecutive startup since the logs have been rolled over.
Could not define attribute view on path "/var/atlassian/application-data/bitbucket/log/search/bitbucket_search.log" got access denied ("java.lang.RuntimePermission" "accessUserInformation") java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessUserInformation")
Both of the logs are harmless and OpenSearch will continue to work as expected.
Suggested behaviour
- Redirect these startup messages to the log file; opensearch-launcher.log to remove the false positive.
- If there are any issues with the OpenSearch startup, we are not losing any logs here since we are just storing them inside the log file.