Skip to content

Troubleshooting for Privacera DataServer

Enable K8S Debug Logs Using ConfigMap Changes

To enable K8S-enabled debug logs in the Privacera DataServer, follow these steps:

Replace the following placeholders with actual values:
  • <NS>: namespace where Privacera Manager is installed.
  • <pod>: DataServer pod name.
  1. SSH into the instance where Privacera Manager is installed.
  2. Edit the DataServer ConfigMap:
    Bash
    kubectl edit cm dataserver-conf -n <NS>
    
  3. Update the log level:
    • Search for dataserver-env-custom.sh and update the following variables to enable debug logging:
      Bash
      export PRIVACERA_LOG_LEVEL=DEBUG
      
    • Save and exit the editor.
  4. Restart the DataServer pod to apply the changes:
    Bash
    kubectl rollout restart deployment/dataserver -n <NS>
    
  5. Check the status of the pods:
    Bash
    kubectl get pods -n <NS>
    
  6. Verify the changes:
    • Execute the DataServer pod and check if the log level has been updated:
      Bash
      kubectl exec -it <pod>  -n <NS> -- bash
      grep -rina "PRIVACERA_LOG_LEVEL" workdir/privacera-dataserver/conf/dataserver-env-custom.sh
      
  7. Collect the logs:
    • Navigate to the logs directory and collect logs for debugging:
      Bash
      cd workdir/privacera-dataserver/logs/dataserver/
      

Comments