Member since
03-09-2023
5
Posts
0
Kudos Received
0
Solutions
06-09-2023
12:55 AM
I'm trying to add users after setting up LDAP in Grafana on CDSW. Currently, only the default Admin account exists and is required to be added with email approval. We manage users using LDAP of AD (Acrive Directory). While attempting to add LDAP user settings in Grafana, we found that the current physical path of Grafana, "/var/lib/grafana/", does not exist. I tried to add LDAP settings to grafana.ini and ldap.toml in "/var/lib/grafana", but the file does not exist even if I search the entire server. When I accessed the Grafana pod directly and checked, path and files existed. Where can I find the grafana.ini and ldap.toml files? Is there any other way to solve this problem? Thank you for any help.
... View more
Labels:
03-12-2023
10:07 PM
I wrote a code to add the "/home/cdsw/" path, and the problem has been solved. Thank you for your help!
... View more
03-12-2023
10:05 PM
The package locations all appeared to be the same. (/usr/local/lib/python3.6/site-packages) Writing code to add the "/home/cdsw/" path resolved the issue. Thank you for suggesting a solution!
... View more
03-09-2023
11:13 PM
There is an error during cdsw model deployment where the package of code is not imported. - CDSW version 1.9.2 - Folder Configuration /home/cdsw l- ex_package_one l l- ex_package_two l l-ex_pkg_code.py l l- predict l l- predict.py predict.py is the code used in the model deployment. - Package import code within predict.py .... from ex_package_one.ex_package_two import ex_pkg_code ... - Error log ModuleNotFoundError: No module named 'ex_package_one' - Attempt to resolve the error I printed it out as os.getcwd() from predict.py and it came out as /cdsw/home. sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname("__file__")))) The path was added using the above code, but the same error occurred. No package errors will occur if the code is transferred to /home/cdsw/predict.py. Is there any other way to solve this problem? Thank you for any help.
... View more
Labels: