Open SrNetoChan opened 1 year ago
Running
(qgis_ltr) ➜ qgis-feedstock git:(osx_arm64_native) qcatool-qt5 plugins --debug /home/aneto/mambaforge/envs/qgis_ltr/plugins /home/aneto/mambaforge/envs/qgis_ltr/bin plugin: Checking Qt static plugins: plugin: (none) plugin: Checking Qt Library Path: /home/aneto/mambaforge/envs/qgis_ltr/plugins plugin: libqca-gnupg.so: (class: gnupgPlugin) loaded as qca-gnupg plugin: libqca-logger.so: (class: loggerPlugin) loaded as qca-logger plugin: libqca-nss.so: (class: nssPlugin) loaded as qca-nss plugin: libqca-ossl.so: failed to load: Cannot load library /home/aneto/mambaforge/envs/qgis_ltr/plugins/crypto/libqca-ossl.so: (libssl.so.1.1: cannot open shared object file: No such file or directory) plugin: libqca-softstore.so: (class: softstorePlugin) loaded as qca-softstore plugin: Checking Qt Library Path: /home/aneto/mambaforge/envs/qgis_ltr/bin plugin: (No 'crypto' subdirectory) Available Providers: qca-gnupg pgpkey openpgp keystorelist qca-logger log qca-nss md2 md5 sha1 sha256 sha384 sha512 hmac(md5) hmac(sha1) hmac(sha256) hmac(sha384) hmac(sha512) aes128-ecb aes128-cbc des-ecb des-cbc des-cbc-pkcs7 tripledes-ecb qca-softstore pkey *keystorelist plugin: Unloaded: qca-gnupg plugin: Unloaded: qca-logger plugin: Unloaded: qca-nss plugin: Unloaded: qca-softstore
So I have create a empty environment and installed qca and I don't get any problems with the plugin
(qca_test) ➜ qgis-feedstock git:(osx_arm64_native) qcatool-qt5 plugins --debug /home/aneto/mambaforge/envs/qgis_ltr/plugins /home/aneto/mambaforge/envs/qca_test/plugins /home/aneto/mambaforge/envs/qca_test/bin plugin: Checking Qt static plugins: plugin: (none) plugin: Checking Qt Library Path: /home/aneto/mambaforge/envs/qgis_ltr/plugins plugin: libqca-gnupg.so: (class: gnupgPlugin) loaded as qca-gnupg plugin: libqca-logger.so: (class: loggerPlugin) loaded as qca-logger plugin: libqca-nss.so: (class: nssPlugin) loaded as qca-nss plugin: libqca-ossl.so: failed to load: Cannot load library /home/aneto/mambaforge/envs/qgis_ltr/plugins/crypto/libqca-ossl.so: (libssl.so.1.1: cannot open shared object file: No such file or directory) plugin: libqca-softstore.so: (class: softstorePlugin) loaded as qca-softstore plugin: Checking Qt Library Path: /home/aneto/mambaforge/envs/qca_test/plugins plugin: libqca-gcrypt.so: (class: gcryptPlugin) loaded as qca-gcrypt plugin: libqca-gnupg.so: (class: gnupgPlugin, as qca-gnupg) already loaded provider, skipping plugin: libqca-logger.so: (class: loggerPlugin, as qca-logger) already loaded provider, skipping plugin: libqca-nss.so: (class: nssPlugin, as qca-nss) already loaded provider, skipping plugin: libqca-ossl.so: (class: opensslPlugin) loaded as qca-ossl plugin: libqca-softstore.so: (class: softstorePlugin, as qca-softstore) already loaded provider, skipping plugin: Checking Qt Library Path: /home/aneto/mambaforge/envs/qca_test/bin plugin: (No 'crypto' subdirectory) Available Providers: qca-gnupg pgpkey openpgp keystorelist qca-logger log qca-nss md2 md5 sha1 sha256 sha384 sha512 hmac(md5) hmac(sha1) hmac(sha256) hmac(sha384) hmac(sha512) aes128-ecb aes128-cbc des-ecb des-cbc des-cbc-pkcs7 tripledes-ecb qca-softstore pkey keystorelist qca-gcrypt sha1 md4 md5 ripemd160 sha256 sha384 sha512 hmac(md5) hmac(sha1) hmac(sha256) hmac(sha384) hmac(sha512) hmac(ripemd160) aes128-ecb aes128-cfb aes128-cbc aes192-ecb aes192-cfb aes192-cbc aes256-ecb aes256-cfb aes256-cbc blowfish-ecb blowfish-cbc blowfish-cfb tripledes-ecb des-cbc des-cfb aes128-ofb aes192-ofb aes256-ofb des-ofb tripledes-ofb blowfish-ofb pbkdf1(sha1) pbkdf2(sha1) hkdf(sha256) qca-ossl This product includes cryptographic software written by Eric Young (eay@cryptsoft.com) random sha1 ripemd160 md4 md5 sha224 sha256 sha384 sha512 whirlpool hmac(md5) hmac(sha1) hmac(sha224) hmac(sha256) hmac(sha384) hmac(sha512) hmac(ripemd160) aes128-ecb aes128-cfb aes128-cbc aes128-cbc-pkcs7 aes128-ofb aes128-ctr aes128-gcm aes128-ccm aes192-ecb aes192-cfb aes192-cbc aes192-cbc-pkcs7 aes192-ofb aes192-ctr aes192-gcm aes192-ccm aes256-ecb aes256-cbc aes256-cbc-pkcs7 aes256-cfb aes256-ofb aes256-ctr aes256-gcm aes256-ccm blowfish-ecb blowfish-cbc-pkcs7 blowfish-cbc blowfish-cfb blowfish-ofb tripledes-ecb tripledes-cbc des-ecb des-ecb-pkcs7 des-cbc des-cbc-pkcs7 des-cfb des-ofb cast5-ecb cast5-cbc cast5-cbc-pkcs7 cast5-cfb cast5-ofb pbkdf1(sha1) pbkdf2(sha1) hkdf(sha256) pkey dlgroup rsa dsa dh cert csr crl certcollection pkcs12 tls cms *ca plugin: Unloaded: qca-gnupg plugin: Unloaded: qca-logger plugin: Unloaded: qca-nss plugin: Unloaded: qca-softstore plugin: Unloaded: qca-gcrypt plugin: Unloaded: qca-ossl
So it must be something on QGIS recipe. @gillins any ideas?
@conda-forge/openssl Team any ideas? QCA openssl plugin is complaining
plugin: libqca-ossl.so: failed to load: Cannot load library /home/aneto/mambaforge/envs/qgis_ltr/plugins/crypto/libqca-ossl.so: (libssl.so.1.1: cannot open shared object file: No such file or directory)
libssl.so.1.1: cannot open shared object file
That's the problem. It seems to be looking for libssl.so.1.1
exactly, but that's the OpenSSL 1.1.1 build. You need to compile the library against OpenSSL 3 (at a minimum, it needs to link to libssl.so.3
, but it's very possible that other changes are necessary).
If qgis has no OpenSSL 3 support (yet), then that's an issue, because conda-forge recently moved to OpenSSL 3 only. If so, you can pin to OpenSSL 1.1.1 in the host deps, but that's not a long-term solution, as it will become uninstallable with many other conda-forge packages (and OpenSSL 1.1.1 is EOL in September).
Looking at my normal Linux installation, it seems that my linux machine uses openssl 3.0.2, and qgis uses it fine. So it means that is something on our recipe.
Nevertheless, forcing openssl =1.1.1 seems to fix the problem as @h-vetinari suggested. But we probably should try a better fix.
Looking at my normal Linux installation, it seems that my linux machine uses openssl 3.0.2, and qgis uses it fine.
Is that one installed through conda-forge or some other way? It may be picking up some other openssl lying around on the path, because if it's looking for libssl.so.1.1
that's very definitely not going to work with 3.0
No, this one was installed from apt and qgis 3.28.3 also installed from apt works fine. Which means QGIS supports openssl 3. So something is up with our recipe or environment.
Need to see if there are any symbolic links to fake the 1.1.1 file
Need to see if there are any symbolic links to fake the 1.1.1 file
This shouldn't be changed by deleting/modifying symlinks. You need to check the upstream build configuration/options how to tell it to use OpenSSL 3.
Sorry @SrNetoChan , just catching up with this. So this is fine on Linux, right? I just checked there and seems ok, but unfortunately I don't have access to OSX anymore so can't easily compare.
I wonder if the problem is that qca
does not list openssl
as one of the build dependencies? Could be on OSX the build finds a system version of openssl 1.1 and uses that?
@gillins no, I am getting this on Linux too. So at least OSX and Linux, haven't tried Windows
That's weird because on my system qgis
and libqca-ossl.so
are both linked against libssl.so.3
....
What is your Linux machine? Mine is kubuntu 22.04. I saw something about a similar error only appearing in certain ubuntu versions.
Ubuntu 22.04. Using QGIS 3.28.2.
Ah! The problem only starts with 3.28.3 (the one I have merged yesterday or so). It happens both for the LTR and the Stable version. So, something seems to have changed.
I wonder if the problem is that
qca
does not listopenssl
as one of the build dependencies? Could be on OSX the build finds a system version of openssl 1.1 and uses that?
That could be. If the package depends on openssl, you need to declare it like that
Weird, something did change in this migration: https://github.com/conda-forge/qgis-feedstock/pull/293 - I had to add the winsock library on Windows in when I never had to do this before. Maybe something changed in the build images?
So, I have tried to update my qgis LTR environment to 3.22.16 expecting it to fix the issue with OpenSS, but it didn't. Then I deleted that environment and started over and, surprise it worked! So a clean environment can make a difference.
Also tried with QGIS 3.28.3 and it also worked. So what we did in the qca should have fixed the problem... I hope.
I still have this problem with 3.34.1 in Mac m2
@wybert can you elaborate on your environment?
@SrNetoChan I also tried 3.36.0 in mac m2, my conda env is like below,
conda list (qgis_test)
# packages in environment at /opt/homebrew/Caskroom/miniforge/base/envs/qgis_test:
#
# Name Version Build Channel
aws-c-auth 0.7.16 h51b92d1_6 conda-forge
aws-c-cal 0.6.10 hf888d4c_1 conda-forge
aws-c-common 0.9.13 h93a5062_0 conda-forge
aws-c-compression 0.2.18 hf888d4c_1 conda-forge
aws-c-event-stream 0.4.2 h1b95c93_4 conda-forge
aws-c-http 0.8.1 heb97226_5 conda-forge
aws-c-io 0.14.5 hb51f26e_1 conda-forge
aws-c-mqtt 0.10.2 hd37591b_4 conda-forge
aws-c-s3 0.5.1 h09f5dbc_7 conda-forge
aws-c-sdkutils 0.1.15 hf888d4c_1 conda-forge
aws-checksums 0.1.18 hf888d4c_1 conda-forge
aws-crt-cpp 0.26.2 h2938e21_6 conda-forge
aws-sdk-cpp 1.11.267 h73c0887_1 conda-forge
azure-core-cpp 1.10.3 he231e37_1 conda-forge
azure-storage-blobs-cpp 12.10.0 h6aa02a4_0 conda-forge
azure-storage-common-cpp 12.5.0 h607ffeb_2 conda-forge
blosc 1.21.5 hc338f07_0 conda-forge
brotli-python 1.1.0 py312h9f69965_1 conda-forge
bzip2 1.0.8 h93a5062_5 conda-forge
c-ares 1.26.0 h93a5062_0 conda-forge
ca-certificates 2024.2.2 hf0a4a13_0 conda-forge
cairo 1.18.0 hd1e100b_0 conda-forge
ceres-solver 2.2.0 h1a5cec8_1 conda-forge
certifi 2024.2.2 pyhd8ed1ab_0 conda-forge
cfitsio 4.3.1 h808cd33_0 conda-forge
charset-normalizer 3.3.2 pyhd8ed1ab_0 conda-forge
coverage 7.4.1 py312he37b823_0 conda-forge
curl 8.5.0 h2d989ff_0 conda-forge
draco 1.5.7 h2ffa867_0 conda-forge
eigen 3.4.0 h1995070_0 conda-forge
exiv2 0.28.2 h193c0af_0 conda-forge
expat 2.5.0 hb7217d7_1 conda-forge
font-ttf-dejavu-sans-mono 2.37 hab24e00_0 conda-forge
font-ttf-inconsolata 3.000 h77eed37_0 conda-forge
font-ttf-source-code-pro 2.038 h77eed37_0 conda-forge
font-ttf-ubuntu 0.83 h77eed37_1 conda-forge
fontconfig 2.14.2 h82840c6_0 conda-forge
fonts-conda-ecosystem 1 0 conda-forge
fonts-conda-forge 1 0 conda-forge
freetype 2.12.1 hadb7bae_2 conda-forge
freexl 2.0.0 hfbad9fb_0 conda-forge
future 0.18.3 pyhd8ed1ab_0 conda-forge
gdal 3.8.4 py312h56161e1_0 conda-forge
geos 3.12.1 h965bd2d_0 conda-forge
geotiff 1.7.1 h7bcba05_15 conda-forge
gettext 0.21.1 h0186832_0 conda-forge
gflags 2.2.2 hc88da5d_1004 conda-forge
giflib 5.2.1 h1a8c8d9_3 conda-forge
glib 2.78.3 h9e231a4_0 conda-forge
glib-tools 2.78.3 h9e231a4_0 conda-forge
glog 0.6.0 h6da1cb0_0 conda-forge
gmp 6.3.0 h965bd2d_0 conda-forge
gsl 2.7 h6e638da_0 conda-forge
gst-plugins-base 1.22.9 h09b4b5e_0 conda-forge
gstreamer 1.22.9 h551c6ff_0 conda-forge
hdf4 4.2.15 h2ee6834_7 conda-forge
hdf5 1.14.3 nompi_h5bb55e9_100 conda-forge
httplib2 0.22.0 pyhd8ed1ab_0 conda-forge
icu 73.2 hc8870d7_0 conda-forge
idna 3.6 pyhd8ed1ab_0 conda-forge
jinja2 3.1.3 pyhd8ed1ab_0 conda-forge
json-c 0.17 h40ed0f5_0 conda-forge
kealib 1.5.3 h210d843_0 conda-forge
khronos-opencl-icd-loader 2023.04.17 h1a8c8d9_0 conda-forge
krb5 1.21.2 h92f50d5_0 conda-forge
laz-perf 3.4.0 h1995070_0 conda-forge
lcms2 2.16 ha0e7c42_0 conda-forge
lerc 4.0.0 h9a09cb3_0 conda-forge
libabseil 20230802.1 cxx17_h13dd4ca_0 conda-forge
libaec 1.1.2 h13dd4ca_1 conda-forge
libarchive 3.7.2 hcacb583_1 conda-forge
libblas 3.9.0 21_osxarm64_openblas conda-forge
libboost-headers 1.84.0 hce30654_1 conda-forge
libbrotlicommon 1.1.0 hb547adb_1 conda-forge
libbrotlidec 1.1.0 hb547adb_1 conda-forge
libbrotlienc 1.1.0 hb547adb_1 conda-forge
libcblas 3.9.0 21_osxarm64_openblas conda-forge
libclang 15.0.7 default_hd209bcb_4 conda-forge
libclang13 15.0.7 default_ha49e599_4 conda-forge
libcrc32c 1.1.2 hbdafb3b_0 conda-forge
libcurl 8.5.0 h2d989ff_0 conda-forge
libcxx 16.0.6 h4653b0c_0 conda-forge
libdeflate 1.19 hb547adb_0 conda-forge
libedit 3.1.20191231 hc8eb9b7_2 conda-forge
libev 4.33 h93a5062_2 conda-forge
libexpat 2.5.0 hb7217d7_1 conda-forge
libffi 3.4.2 h3422bc3_5 conda-forge
libgdal 3.8.4 ha86f356_0 conda-forge
libgfortran 5.0.0 13_2_0_hd922786_3 conda-forge
libgfortran5 13.2.0 hf226fd6_3 conda-forge
libglib 2.78.3 hb438215_0 conda-forge
libgoogle-cloud 2.17.0 hfb9b341_2 conda-forge
libgoogle-cloud-storage 2.17.0 h8a76758_2 conda-forge
libgrpc 1.60.1 hfc68871_0 conda-forge
libhwloc 2.9.3 default_h4394839_1009 conda-forge
libiconv 1.17 h0d3ecfb_2 conda-forge
libjpeg-turbo 3.0.0 hb547adb_1 conda-forge
libkml 1.3.0 h1eb4d9f_1018 conda-forge
liblapack 3.9.0 21_osxarm64_openblas conda-forge
libllvm15 15.0.7 h2621b3d_4 conda-forge
libnetcdf 4.9.2 nompi_h291a7c2_113 conda-forge
libnghttp2 1.58.0 ha4dd798_1 conda-forge
libogg 1.3.4 h27ca646_1 conda-forge
libopenblas 0.3.26 openmp_h6c19121_0 conda-forge
libopus 1.3.1 h27ca646_1 conda-forge
libpng 1.6.42 h091b4b1_0 conda-forge
libpq 16.2 h0f8b458_0 conda-forge
libprotobuf 4.25.1 h810fc01_2 conda-forge
libre2-11 2023.06.02 h1753957_0 conda-forge
librttopo 1.1.0 hc8f776e_15 conda-forge
libspatialindex 1.9.3 hbdafb3b_4 conda-forge
libspatialite 5.1.0 h69abc6b_4 conda-forge
libsqlite 3.45.1 h091b4b1_0 conda-forge
libssh2 1.11.0 h7a5bd25_0 conda-forge
libtasn1 4.19.0 h1a8c8d9_0 conda-forge
libtiff 4.6.0 ha8a6c65_2 conda-forge
libvorbis 1.3.7 h9f76cd9_0 conda-forge
libwebp 1.3.2 hf30222e_1 conda-forge
libwebp-base 1.3.2 hb547adb_0 conda-forge
libxml2 2.12.5 h0d0cfa8_0 conda-forge
libxslt 1.1.39 h223e5b9_0 conda-forge
libzip 1.10.1 ha0bc3c6_3 conda-forge
libzlib 1.2.13 h53f4e23_5 conda-forge
llvm-openmp 17.0.6 hcd81f8e_0 conda-forge
lxml 5.1.0 py312h9bf3b9e_0 conda-forge
lz4-c 1.9.4 hb7217d7_0 conda-forge
lzo 2.10 h642e427_1000 conda-forge
markupsafe 2.1.5 py312he37b823_0 conda-forge
metis 5.1.0 h13dd4ca_1007 conda-forge
minizip 4.0.4 hc35e051_0 conda-forge
mock 5.1.0 pyhd8ed1ab_0 conda-forge
mpfr 4.2.1 h9546428_0 conda-forge
mysql-common 8.0.33 hf9e6398_6 conda-forge
mysql-libs 8.0.33 he3dca8b_6 conda-forge
ncurses 6.4 h463b476_2 conda-forge
nitro 2.7.dev8 h13dd4ca_0 conda-forge
nose2 0.9.2 py_0 conda-forge
nspr 4.35 hb7217d7_0 conda-forge
nss 3.98 h5ce2875_0 conda-forge
numpy 1.26.4 py312h8442bc7_0 conda-forge
openjpeg 2.5.0 h4c1507b_3 conda-forge
openssl 3.2.1 h0d3ecfb_0 conda-forge
owslib 0.29.3 pyhd8ed1ab_0 conda-forge
packaging 23.2 pyhd8ed1ab_0 conda-forge
pcre2 10.42 h26f9a81_0 conda-forge
pdal 2.6.3 h3c564ca_2 conda-forge
pip 24.0 pyhd8ed1ab_0 conda-forge
pixman 0.43.2 hebf3989_0 conda-forge
plotly 5.19.0 pyhd8ed1ab_0 conda-forge
ply 3.11 py_1 conda-forge
poppler 24.02.0 h896e6cb_0 conda-forge
poppler-data 0.4.12 hd8ed1ab_0 conda-forge
postgresql 16.2 h1d0603d_0 conda-forge
proj 9.3.1 h93d94ba_0 conda-forge
psycopg2 2.9.9 py312h84485f8_0 conda-forge
pygments 2.17.2 pyhd8ed1ab_0 conda-forge
pyparsing 3.1.1 pyhd8ed1ab_0 conda-forge
pyproj 3.6.1 py312h4d912e0_5 conda-forge
pyqt 5.15.9 py312h550cae4_5 conda-forge
pyqt5-sip 12.12.2 py312h9f69965_5 conda-forge
pyqtwebkit 5.15.9 py312h14105d7_2 conda-forge
pysocks 1.7.1 pyha2e5f31_6 conda-forge
python 3.12.2 hdf0ec26_0_cpython conda-forge
python-dateutil 2.8.2 pyhd8ed1ab_0 conda-forge
python_abi 3.12 4_cp312 conda-forge
pytz 2024.1 pyhd8ed1ab_0 conda-forge
pyyaml 6.0.1 py312h02f2b3b_1 conda-forge
qca 2.3.8 hbd3fef1_0 conda-forge
qgis 3.36.0 py312h83a15e3_0 conda-forge
qjson 0.9.0 haa19703_1009 conda-forge
qscintilla2 2.14.1 py312h14105d7_0 conda-forge
qt-main 5.15.8 h6bf1bb6_19 conda-forge
qtkeychain 0.14.2 h50bd4b1_0 conda-forge
qtwebkit 5.212 ha51050e_16 conda-forge
qwt 6.2.0 haa19703_6 conda-forge
re2 2023.06.02 h6135d0a_0 conda-forge
readline 8.2 h92ec313_1 conda-forge
requests 2.31.0 pyhd8ed1ab_0 conda-forge
setuptools 69.0.3 pyhd8ed1ab_0 conda-forge
sip 6.7.12 py312h650e478_0 conda-forge
six 1.16.0 pyh6c4a22f_0 conda-forge
snappy 1.1.10 h17c5cce_0 conda-forge
sqlite 3.45.1 hf2abe2d_0 conda-forge
suitesparse 5.10.1 h79486c6_3 conda-forge
tbb 2021.11.0 h2ffa867_1 conda-forge
tenacity 8.2.3 pyhd8ed1ab_0 conda-forge
tiledb 2.20.0 h1456d97_1 conda-forge
tk 8.6.13 h5083fa2_1 conda-forge
toml 0.10.2 pyhd8ed1ab_0 conda-forge
tomli 2.0.1 pyhd8ed1ab_0 conda-forge
tzcode 2024a h93a5062_0 conda-forge
tzdata 2024a h0c530f3_0 conda-forge
uriparser 0.9.7 hb7217d7_1 conda-forge
urllib3 2.2.0 pyhd8ed1ab_0 conda-forge
wheel 0.42.0 pyhd8ed1ab_0 conda-forge
xerces-c 3.2.5 hf393695_0 conda-forge
xz 5.2.6 h57fd34a_0 conda-forge
yaml 0.2.5 h3422bc3_2 conda-forge
zlib 1.2.13 h53f4e23_5 conda-forge
zstd 1.5.5 h4f39d0f_0 conda-forge
Solution to issue cannot be found in the documentation.
Issue
I am getting this issue
2023-01-29T02:24:38 CRITICAL Authentication System : DISABLED. Resources authenticating via the system can not be accessed
This is new on 3.22.15 and 3.28.3 (tested while trying to build on a M1 machine)
I wonder if it has something to do with this old error:
https://github.com/qgis/QGIS/issues/22615#issuecomment-495859026
Installed packages
Environment info