ncdisp error on rocky 9 but works fine on ubuntu 24.04
3 views (last 30 days)
Show older comments
Hi,
We met the problem on "ncdisp" command returning error on the Rocky Linux 9.
The matlab version is 2024b, on MacOS 14, Ubuntu 24.04, the "ncdisp" works fine, and the output is below:

However, there are errors on Rocky 9:

We have googled this problem, some users said it's the SSL certificate issue. We have reinstalled the "ca-certificate" but the errors are still the same.
Is it a compatibility issue on Rocky 9?
0 Comments
Answers (1)
Harsh
on 30 May 2025
Edited: Harsh
on 30 May 2025
I understand that you have already reinstalled the 'ca-certificates' package as a workaround, but from what I can gather, it still appears that the issue is related to the CA certificate. Please follow the steps below to check if this is the case:
Create a file named ".dodsrc" in your current directory with the following content:
HTTP.VERBOSE = 1 % enables verbose
Run the "ncdisp" command in the MATLAB Command Window from the same directory. Use the following command:
>> ncdisp(<URL>); % runs a test command
If the output shows errors mentioning missing or corrupted CA certificate files, it confirms that the issue is due to incorrect certificate links.
To fix the error, add the following lines to the ".dodsrc" file:
HTTP.SSL.CAPATH = <path-to-certificate>
HTTP.SSL.CAINFO = <path-to-certificate>
Create symbolic links to the correct certificate files.
This can be done using the ln command in a Linux terminal:
ln -s <path-to-certificate> <destination> % creates symbolic links to the correct certificate files
I hope this helps, thanks!
0 Comments
See Also
Categories
Find more on Data Import and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!