Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tb-mqtt-transport 3.44 - pod startup failed: tb-mqtt-transport-0-gc.log: Permission denied #84

Open
stefan-bergstein opened this issue Feb 13, 2023 · 0 comments

Comments

@stefan-bergstein
Copy link

Starting 'ThingsBoard MQTT Transport Microservice' ...
[0.001s][error][logging] Error opening log file '/var/log/tb-mqtt-transport/tb-mqtt-transport-0-gc.log': Permission denied
[0.001s][error][logging] Initialization of output 'file=/var/log/tb-mqtt-transport/tb-mqtt-transport-0-gc.log' using options 'filecount=10,filesize=10M' failed.
Invalid -Xlog option '-Xlog:gc*,heap*,age*,safepoint=debug:file=/var/log/tb-mqtt-transport/tb-mqtt-transport-0-gc.log:time,uptime,level,tags:filecount=10,filesize=10M', see error log for details.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Environment: OpenShift Local (CRC) 4.11

Workaround:
Change log directory to /tmp in tb-transport-configmap.yml

export JAVA_OPTS="$JAVA_OPTS -Xlog:gc*,heap*,age*,safepoint=debug:file=/tmp/${TB_SERVICE_ID}-gc.log:time,uptime,level,tags:filecount=10,filesize=10M"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant