Hi Rüdiger,
This is really interesting.. I'm able to reproduce this issue in a docker container. Anyone else who would like to reproduce or look into this issue can use the following containers
- The container `pwighton/freesurfer:5.3.0-HCP` is based off of ubuntu 16.04 (glibc v2.23) and everything works as expected in this container.
- The container `pwighton/freesurfer:5.3.0-HCP-focal` is based off of ubuntu 20.04 (glib2 v2.31) and I am experiencing the same issue you describe.
- The container `pwighton/freesurfer:7.3.2-focal` is based off of ubuntu 20.04 and has the latest version of FreeSurfer installed. Everything works as expected in this container.
So the issue seems to be some interaction between the v5.3 license checking code and the crypt() function provided by different versions of glibc, but that is just speculation at this point.
I'm sorry I don't have any solution for this at the moment. You mention you are using lmod, would it be possible to define LD_LIBRARY_PATH inside the FreeSurfer 5.3 module to point to an older version of glibc?
-Paul
From: freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Ludwig, Rüdiger <r.ludwig@eni-g.de>
Sent: Tuesday, September 13, 2022 11:32 AM
To: freesurfer@nmr.mgh.harvard.edu <freesurfer@nmr.mgh.harvard.edu>
Subject: [Freesurfer] Follow Up License Freesurfer 5.3 Ubuntu
Hello again,
I realized I might have missed some important information in my question about freesurfer 5.3 license files a few days ago:
We use Ubuntu 20 with lmod. FREESURFER_HOME is ''/opt/apps/freesurfer/5.3/'' for freesurfer 5.3
When we try ''mri_convert sample-001.mgz sample-001.nii.gz'' without a proper license file we get the Error:
ERROR: Invalid FreeSurfer license key found in license file /opt/apps/freesurfer/5.3/license.txt
After we copy the license file to the proper position we get:
ERROR: Invalid FreeSurfer license key found in license file /opt/apps/freesurfer/5.3/license.txt
So the file is obviously read but rejected. We get the same result it with a brand new license file, and one that still works for freesurfer 5.3 on our CentOS 7 node.
We do not have any problems reading the license file in freesurfer 7.2 or freesurfer 7.3
If you need any further information to help us, we am more than willing to provide that.
Thank you so much in advance
Ruediger
---
Rüdiger Ludwig (he/him)
IT-Service
European Neuroscience Institute
A Joint Initiative of the University Medical Center Göttingen and the Max Planck Society
Grisebachstr. 5
37077 Göttingen
Tel: +49 551-39 61308
Email: r.ludwig@eni-g.de
Office: 0.051