Skip to content
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

Linux AppImage LeoCAD-Linux-21.06-x86_64.AppImage has a strange error about "connecting" to update server #835

Closed
yngmjgsd opened this issue Nov 15, 2022 · 4 comments
Labels

Comments

@yngmjgsd
Copy link

Describe the bug
Cannot connect to update server on Linux (Kubuntu 22.04 was tested)

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Help' menu
  2. Click on 'Check for Updates...'
  3. See error "Error connecting to the update server."

Expected behavior
Must show successful results cause the application compiled from the source (using QtCreator and Qt 5.15.2) works just fine on the same system which doesn't explain what is wrong with the source code, or system configuration.

Screenshots
This is how it looks.

изображение

Version (please complete the following information):

  • OS: Kubuntu 22.04
  • LeoCAD Version 21.06, from LeoCAD-Linux-21.06-x86_64.AppImage file

Crash information:
No crash.

The actual question is - is there any specifics for AppImage 21.06 here? The version compiled from sources works just fine.

@yngmjgsd yngmjgsd added the bug label Nov 15, 2022
@app4soft
Copy link

app4soft commented Jan 1, 2024

This might be related to one of AppImage issues with bundled/missed SSL lib:

Here is actual latest LeoCAD-Linux-8eec5756-x86_64.AppImage terminal output:

$ ./LeoCAD-Linux-8eec5756-x86_64.AppImage
qt.network.ssl: QSslSocket: cannot resolve EVP_PKEY_base_id
qt.network.ssl: QSslSocket: cannot resolve SSL_get_peer_certificate
qt.network.ssl: QSslSocket: cannot call unresolved function SSL_get_peer_certificate

@app4soft
Copy link

app4soft commented Oct 2, 2024

Issue still is actual for latest build:

$ ./LeoCAD-Linux-da803dc3-x86_64.AppImage
qt.network.ssl: QSslSocket: cannot resolve EVP_PKEY_base_id
qt.network.ssl: QSslSocket: cannot resolve SSL_get_peer_certificate
qt.network.ssl: QSslSocket: cannot call unresolved function SSL_get_peer_certificate

@leozide, may ask You to take a look on adding new option for import inventory from downloaded files in BrickLink XML and/or Rebrickable CSV formats? (in offline)

Screenshot_2024-10-02_21-03-03

Note, there is old AppImage topic with (old?) solution, I'm not sure is it already implemented in LeoCAD or not, but I would leave solution patch here too:

# copy some missed libs to the bundle
cp $(ldconfig -p | grep libssl.so.1 | head -n1 | tr ' ' '\n' | grep /) ./$APP.AppDir/Qt/libs/
cp $(ldconfig -p | grep libcrypto.so.1 | head -n1 | tr ' ' '\n' | grep /) ./$APP.AppDir/Qt/libs/
cp $(ldconfig -p | grep libicui18n.so | head -n1 | tr ' ' '\n' | grep /) ./$APP.AppDir/Qt/libs/
cp $(ldconfig -p | grep libicuuc.so | head -n1 | tr ' ' '\n' | grep /) ./$APP.AppDir/Qt/libs/
cp $(ldconfig -p | grep libicudata.so | head -n1 | tr ' ' '\n' | grep /) ./$APP.AppDir/Qt/libs/

# run linuxdeploy and generate an AppDir
export APPIMAGE_EXTRACT_AND_RUN=1
./linuxdeploy-x86_64.AppImage --appdir ./$APP.AppDir --output appimage

@app4soft
Copy link

app4soft commented Oct 14, 2024

Anothe workaround is if there is a version mismatch, try to patch Qt Networking lib binary (this could be done on-the-fly with Actions CI YAML)

Just wanted to drop a note about Qt 5.10.1:

use sed -i -e 's|1.0.2k|1.0.0\x00|g' /path/to/myappimg/usr/lib/libQt5Network.so.5

because it changed with the latest Qt SDK:

$ strings libQt5Network.so.5 | grep '1\.0\'.
1.0.2k
OpenSSL version too old, need at least v1.0.2

Source: https://www.github.com/subsurface/subsurface/issues/779

@leozide
Copy link
Owner

leozide commented Nov 11, 2024

Fixed in 0829365

@leozide leozide closed this as completed Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants