-
Notifications
You must be signed in to change notification settings - Fork 104
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
Module avail throws libuuid.so.1: no version information available (required by /lib64/libblkid.so.1) error #475
Comments
Thanks for your report. The module installation you use is configured to log each command call with the The I can reproduce a similar issue on my side: $ ldd /usr/bin/logger
linux-vdso.so.1 (0x00007ffe207f9000)
libsystemd.so.0 => /lib64/libsystemd.so.0 (0x00007f61c0065000)
libc.so.6 => /lib64/libc.so.6 (0x00007f61bfe00000)
liblzma.so.5 => /lib64/liblzma.so.5 (0x00007f61c003a000)
libzstd.so.1 => /lib64/libzstd.so.1 (0x00007f61bfd4d000)
liblz4.so.1 => /lib64/liblz4.so.1 (0x00007f61c0016000)
libcap.so.2 => /lib64/libcap.so.2 (0x00007f61c000c000)
libgcrypt.so.20 => /lib64/libgcrypt.so.20 (0x00007f61bfc10000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f61bfbf0000)
/lib64/ld-linux-x86-64.so.2 (0x00007f61c016f000)
libgpg-error.so.0 => /lib64/libgpg-error.so.0 (0x00007f61bfbca000)
$ mkdir tmp
$ touch tmp/libgpg-error.so.0
$ export LD_LIBRARY_PATH=$(pwd)/tmp
$ module avail
...
ERROR: logger: error while loading shared libraries: /path/to/dir/tmp/libgpg-error.so.0: file too short
while executing
"exec logger -t module "{ \"user\": \"[get-env USER]\", \"cmd\": \"$cmdname\", \"args\": \"$args\" }""
(procedure "logModuleCmd" line 14)
invoked from within
"logModuleCmd {module av} 0 {} leave"
(leave trace on "{*}$execcmdlist")
Please report this issue at https://github.com/cea-hpc/modules/issues To solve such issue, One way to do that is to unset this environment variable prior executing set ORIG_LD_LIBRARY_PATH $::env(ORIG_LD_LIBRARY_PATH)
exec logger -t modulecmd "[get-env USER]: $command [join $args]"
set ::env(ORIG_LD_LIBRARY_PATH) $ORIG_LD_LIBRARY_PATH I will update the log module command cookbook recipe to take this situation into account. |
Thank you for your solution! Unfortunately, that didn't work and I don't know how exactly I should proceed from here. |
Could you please provide me the Could you also provide the output of a |
Sure! Here are the contents of
Output of the
Thank you! |
Now that I read again the code I proposed, I see that it is totally wrong. Sorry for that. The correct fix code should be: if {[info exists ::env(LD_LIBRARY_PATH)]} {
set ORIG_LD_LIBRARY_PATH $::env(LD_LIBRARY_PATH)
unset ::env(LD_LIBRARY_PATH)
}
exec logger -t modulecmd "[get-env USER]: $command [join $args]"
if {[info exists ORIG_LD_LIBRARY_PATH]} {
set ::env(LD_LIBRARY_PATH) $ORIG_LD_LIBRARY_PATH
} So I suggest you update the # SITECONFIG.TCL, site-specific configuration script for Modules
#
# This Tcl script enables to supersede any global variable or procedure
# definition of modulecmd.tcl. See 'Modulecmd startup' section in module(1)
# manpage for detailed information.
##########################################################################
# uncomment the following line to forbid the definition of an extra
# site-specific configuration script
#lappendConf locked_configs extra_siteconfig
# uncomment the following line to forbid `implicit_default` config option
# superseding
#lappendConf locked_configs implicit_default
rename ::module ::__module
proc module {command args} {
if {[info exists ::env(LD_LIBRARY_PATH)]} {
set ORIG_LD_LIBRARY_PATH $::env(LD_LIBRARY_PATH)
unset ::env(LD_LIBRARY_PATH)
}
exec logger -t modulecmd "[get-env USER]: $command [join $args]"
if {[info exists ORIG_LD_LIBRARY_PATH]} {
set ::env(LD_LIBRARY_PATH) $ORIG_LD_LIBRARY_PATH
}
return [eval __module "{$command}" $args]
} |
When I run
module avail
I get the following error message:Output of:
conda package -w /software/python-anaconda-2022.05-el8-x86_64/lib/libuuid.so.1
is:
/software/python-anaconda-2022.05-el8-x86_64/lib/libuuid.so.1 defaults/linux-64::libuuid-1.0.3-h7f8727e_2
The text was updated successfully, but these errors were encountered: