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

AppImage Qt6 on clean Ubuntu 22.04 and 24.04 prints warning "Incompatible version of OpenSSL" #3174

Open
o-l-a-v opened this issue Dec 8, 2024 · 5 comments
Labels

Comments

@o-l-a-v
Copy link
Contributor

o-l-a-v commented Dec 8, 2024

Expected behaviour

Clean install of Ubuntu 22.04 and 24.04 (in this example) x64 with libfuse2 just installed.

ubnt@ubnt:~/Desktop$ QT_DEBUG_PLUGINS=1 ./QOwnNotes-x86_64-Qt6.AppImage
Warning: Could not find the Qt platform plugin "wayland" in "" (:0, )
Warning: Incompatible version of OpenSSL (built with OpenSSL >= 3.x, runtime version is < 3.x) (:0, )
Warning: The backend "cert-only" does not support QSslKey (:0, )
Warning: Active TLS backend does not support key creation (:0, )
Warning: The backend "cert-only" does not support QSslKey (:0, )
Warning: Active TLS backend does not support key creation (:0, )
Warning: The backend "cert-only" does not support QSslKey (:0, )
Warning: Active TLS backend does not support key creation (:0, )
Warning: The backend "cert-only" does not support QSslKey (:0, )
Warning: Active TLS backend does not support key creation (:0, )
Warning: The backend "cert-only" does not support QSslKey (:0, )
Warning: Active TLS backend does not support key creation (:0, )
Warning: The backend "cert-only" does not support QSslKey (:0, )
Warning: Active TLS backend does not support key creation (:0, )
Warning: The backend "cert-only" does not support QSslSocket (:0, )
Warning: The backend named "cert-only" does not support TLS (:0, )
Warning: QSslSocket::connectToHostEncrypted: TLS initialization failed (:0, )
Warning: QSslSocket::connectToHostEncrypted: TLS initialization failed (:0, )
Warning: QSslSocket::connectToHostEncrypted: TLS initialization failed (:0, )
Warning: "Removed database file: " "/home/ubnt/.local/share/PBE/QOwnNotes/QOwnNotes.sqlite" (:0, )
Segmentation fault (core dumped)
ubnt@ubnt:~/Desktop$

Seems it fails to create a TLS connection due to incompatible version of OpenSSL?

Actual behaviour

Should successfully create TLS connection.

Steps to reproduce

Steps to reproduce the behavior:

  1. Clean install of Ubuntu 24.04 x64
  2. sudo apt install libfuse2
  3. chmod a+x QOwnNotes-x86_64-Qt6.AppImage
  4. QT_DEBUG_PLUGINS=1 ./QOwnNotes-x86_64-Qt6.AppImage

Screenshots

Output from the debug section in the settings dialog

Expand
QOwnNotes Debug Information
===========================

## General Info

**Current Date**: `Sun Dec 8 13:53:29 2024`
**Version**: `24.12.1`
**Build date**: `Dec  5 2024`
**Build number**: `1143`
**Platform**: `linux (xcb)`
**Operating System**: `Ubuntu 24.04.1 LTS`
**Build architecture**: `x86_64`
**Current architecture**: `x86_64`
**Release**: `AppImage`
**Qt Version (build)**: `6.5.3`
**Qt Version (runtime)**: `6.5.3`
**Portable mode**: `no`
**Settings path / key**: `/home/ubnt/.config/PBE/QOwnNotes.conf`
**Application database path**: `/home/ubnt/.local/share/PBE/QOwnNotes/QOwnNotes.sqlite`
**Application arguments**: `/tmp/.mount_QOwnNoobXse3/AppRun.wrapped`
**Qt Debug**: `0`
**Locale (system)**: `en_US`
**Locale (interface)**: *empty*
**Primary screen resolution**: `2310x1199`
**Icon theme**: `Adwaita`
**Notes in current note folder**: `2`
**Calendar items**: `0`
**Enabled scripts**: `0`
**Database drivers**: `QSQLITE, QMARIADB, QMYSQL, QODBC, QPSQL`

## Server Info

**serverUrl**: *empty*
**appIsValid**: `no`
**notesPathExists**: *empty*
**connectionErrorMessage**: *empty*

## Spellchecking

**Enabled**: `true`
**Selected language**: `en_US`
**Language codes**: `en_US`
**Language names**: `American English (United States)`
**Application dictionaries path**: `/home/ubnt/.local/share/PBE/QOwnNotes/dicts`

## Note folders

**currentNoteFolderId**: `1`

### Note folder `default`

**id**: `1`
**isCurrent**: `yes`
**activeTagId**: `0`
**localPath**: `/home/ubnt/Notes`
**remotePath**: `Notes`
**cloudConnectionId**: `1`
**isShowSubfolders**: `no`
**isUseGit**: `no`
**allowDifferentNoteFileName**: `no`
**activeNoteSubFolder name**: *empty*
**database file**: `/home/ubnt/Notes/notes.sqlite`

## Cloud connections

### Cloud connection `Default`

**id**: `1`
**isCurrent**: `yes`
**serverUrl**: *empty*
**username**: *empty*
**accountId**: *empty*

## Enabled scripts

## Settings

**Editor/CurrentSchemaKey** (QString): `EditorColorSchema-6033d61b-cb96-46d5-a3a8-20d5172017eb`
**Editor/removeTrailingSpaces** (bool): `false`
**LastUpdateCheck** (QDateTime): `2024-12-08T13:53:15.570`
**MainWindow/mainToolBar.iconSize** (int): `24`
**MainWindow/noteTextEdit.code.font** (QString): `monospace,9,-1,2,400,0,0,0,0,0,0,0,0,0,0,1`
**MainWindow/noteTextEdit.font** (QString): `Sans Serif,9,-1,5,400,0,0,0,0,0,0,0,0,0,0,1`
**MainWindow/noteTextView.code.font** (QString): `monospace,9,-1,2,400,0,0,0,0,0,0,0,0,0,0,1`
**MainWindow/noteTextView.font** (QString): `Sans Serif,9,-1,5,400,0,0,0,0,0,0,0,0,0,0,1`
**PiwikClientId** (QString): `<hidden>`
**SettingsDialog/geometry** (QByteArray): `<binary data>`
**WelcomeDialog/geometry** (QByteArray): `<binary data>`
**allowNoteEditing** (bool): `true`
**allowOnlyOneAppInstance** (bool): `true`
**appMetrics/notificationShown** (bool): `true`
**checkSpelling** (bool): `true`
**cryptoKey** (qlonglong): `<hidden>`
**currentNoteFolderId** (int): `1`
**currentWorkspace** (QString): `initial`
**darkMode** (bool): `false`
**demoNotesCreated** (bool): `true`
**disableAutomaticUpdateDialog** (bool): `false`
**dockWasInitializedOnce** (bool): `true`
**guiFirstRunInit** (bool): `true`
**initialLayoutIdentifier** (QString): `minimal`
**itemHeight** (int): `17`
**markdownHighlightingEnabled** (bool): `true`
**noteEditIsCentralWidget** (QString): `true`
**noteFileExtensionList** (QStringList): `md, txt`
**notesPath** (QString): `/home/ubnt/Notes`
**ownCloud/supportEnabled** (bool): `false`
**ownCloudInfo/appIsValid** (bool): `false`
**ownCloudInfo/connectionErrorMessage** (QString): *empty*
**ownCloudInfo/notesPathExistsText** (QString): *empty*
**ownCloudInfo/serverVersion** (QString): *empty*
**showMenuBar** (bool): `true`
**showStatusBar** (bool): `true`
**spellCheckLanguage** (QString): `en_US`
**webAppClientService/token** (QString): `<hidden>`
**workspace-initial/name** (QString): `Minimal`
**workspace-initial/noteSubFolderDockWidgetVisible** (QString): `true`
**workspace-initial/windowState** (QByteArray): `<binary data>`
**workspaces** (QStringList): `initial`

## System environment

**APPDIR**: `/tmp/.mount_QOwnNoobXse3`
**APPIMAGE**: `/home/ubnt/Desktop/QOwnNotes-x86_64-Qt6.AppImage`
**ARGV0**: `./QOwnNotes-x86_64-Qt6.AppImage`
**COLORTERM**: `truecolor`
**DBUS_SESSION_BUS_ADDRESS**: `unix:path=/run/user/1000/bus`
**DEBUGINFOD_URLS**: `https://debuginfod.ubuntu.com `
**DESKTOP_SESSION**: `ubuntu`
**DISPLAY**: `:0`
**GDMSESSION**: `ubuntu`
**GNOME_DESKTOP_SESSION_ID**: `this-is-deprecated`
**GNOME_SETUP_DISPLAY**: `:1`
**GNOME_SHELL_SESSION_MODE**: `ubuntu`
**GNOME_TERMINAL_SCREEN**: `/org/gnome/Terminal/screen/8a3af883_15de_4d4d_9827_b71b563caa93`
**GNOME_TERMINAL_SERVICE**: `:1.111`
**GSM_SKIP_SSH_AGENT_WORKAROUND**: `true`
**GTK_MODULES**: `gail:atk-bridge`
**HOME**: `/home/ubnt`
**IM_CONFIG_PHASE**: `1`
**LANG**: `en_US.UTF-8`
**LESSCLOSE**: `/usr/bin/lesspipe %s %s`
**LESSOPEN**: `| /usr/bin/lesspipe %s`
**LOGNAME**: `ubnt`
**LS_COLORS**: `rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.crdownload=00;90:*.dpkg-dist=00;90:*.dpkg-new=00;90:*.dpkg-old=00;90:*.dpkg-tmp=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:*.swp=00;90:*.tmp=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:`
**MEMORY_PRESSURE_WATCH**: `/sys/fs/cgroup/user.slice/user-1000.slice/[email protected]/session.slice/[email protected]/memory.pressure`
**MEMORY_PRESSURE_WRITE**: `c29tZSAyMDAwMDAgMjAwMDAwMAA=`
**OWD**: `/home/ubnt/Desktop`
**PATH**: `/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin`
**PWD**: `/home/ubnt/Desktop`
**QT_ACCESSIBILITY**: `1`
**QT_DEBUG_PLUGINS**: `1`
**QT_IM_MODULE**: `ibus`
**QT_QPA_PLATFORMTHEME**: `gtk2`
**SESSION_MANAGER**: `local/ubnt:@/tmp/.ICE-unix/2384,unix/ubnt:/tmp/.ICE-unix/2384`
**SHELL**: `/bin/bash`
**SHLVL**: `1`
**SSH_AUTH_SOCK**: `/run/user/1000/keyring/ssh`
**SYSTEMD_EXEC_PID**: `2436`
**TERM**: `xterm-256color`
**USER**: `ubnt`
**USERNAME**: `ubnt`
**VTE_VERSION**: `7600`
**WAYLAND_DISPLAY**: `wayland-0`
**XAUTHORITY**: `/run/user/1000/.mutter-Xwaylandauth.IL9OY2`
**XDG_CONFIG_DIRS**: `/etc/xdg/xdg-ubuntu:/etc/xdg`
**XDG_CURRENT_DESKTOP**: `ubuntu:GNOME`
**XDG_DATA_DIRS**: `/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop`
**XDG_MENU_PREFIX**: `gnome-`
**XDG_RUNTIME_DIR**: `/run/user/1000`
**XDG_SESSION_CLASS**: `user`
**XDG_SESSION_DESKTOP**: `ubuntu`
**XDG_SESSION_TYPE**: `wayland`
**XMODIFIERS**: `@im=ibus`

Relevant log output in the Log panel

Expand
[13:54:54] [debug] updatePanelMenu - 'updatePanelMenu'
[13:54:54] [debug] checking directory path "/tmp/.mount_QOwnNor9c6PD/usr/plugins/accessiblebridge" ...
[13:54:54] [debug] checking directory path "/tmp/.mount_QOwnNor9c6PD/usr/bin/accessiblebridge" ...
[13:54:54] [warning] QSslSocket::connectToHostEncrypted: TLS initialization failed
[13:54:54] [warning] QSslSocket::connectToHostEncrypted: TLS initialization failed
[13:54:54] [warning] QSslSocket::connectToHostEncrypted: TLS initialization failed
[13:54:54] [warning] QSslSocket::connectToHostEncrypted: TLS initialization failed
[13:54:54] [warning] QSslSocket::connectToHostEncrypted: TLS initialization failed
[13:54:54] [warning] The backend "cert-only" does not support QSslKey
[13:54:54] [warning] Active TLS backend does not support key creation
[13:54:54] [warning] The backend "cert-only" does not support QSslKey
[13:54:54] [warning] Active TLS backend does not support key creation
[13:54:54] [warning] The backend "cert-only" does not support QSslSocket
[13:54:54] [warning] The backend named "cert-only" does not support TLS
[13:54:54] [warning] QSslSocket::connectToHostEncrypted: TLS initialization failed
[13:54:54] [warning] onResult - 'network reply error': QNetworkReply::UnknownNetworkError
[13:54:54] [warning] QSslSocket::connectToHostEncrypted: TLS initialization failed
[13:54:54] [warning] QSslSocket::connectToHostEncrypted: TLS initialization failed
[13:54:54] [info] "QOwnNotes server listening on port 22222"
[13:54:54] [debug] on_noteTreeWidget_itemSelectionChanged
[13:54:54] [debug] setCurrentNote - 'note': Note: <id>1 <name>"Markdown Cheatsheet" <fileName>"Markdown Cheatsheet.md" <noteSubFolderId>0 <relativePath>"" <hasDirtyData>false - 'updateNoteText': true - 'updateSelectedNote': false
[13:54:54] [debug] currentLocalPath - 'currentLocalPath': "/home/ubnt/Notes"
[13:54:54] [debug] added to history: NoteHistoryItem: <noteName>"Markdown Cheatsheet" <noteSubFolderPathData>"" <cursorPosition>0 <relativeScrollBarPosition>0
[13:54:54] [warning] QSslSocket::connectToHostEncrypted: TLS initialization failed
@o-l-a-v o-l-a-v changed the title [BUG] AppImage Qt6 on clean Ubuntu 24.04 prints warning "Incompatible version of OpenSSL" [BUG] AppImage Qt6 on clean Ubuntu 22.04 and 24.04 prints warning "Incompatible version of OpenSSL" Dec 8, 2024
@pbek
Copy link
Owner

pbek commented Dec 8, 2024

And what is the warning Warning: "Removed database file: " "/home/ubnt/.local/share/PBE/QOwnNotes/QOwnNotes.sqlite" (:0, ) 🤔 Never saw that before somewhere...

@pbek
Copy link
Owner

pbek commented Dec 8, 2024

The AppImage currently needs to build built on Ubuntu 20.04, but on theory it should work on all library versions after that.
Seems like this is only works in theory after all...

@o-l-a-v
Copy link
Contributor Author

o-l-a-v commented Dec 9, 2024

Is OpenSSL included in the app image like discussed in this issue?

Isn't the whole point of an AppImage to have "batteries included", only libfuse2 required on the host?

@pbek
Copy link
Owner

pbek commented Dec 9, 2024

I just downloaded the latest Ubuntu 24.04 image, installed it in a VM, installed libfuse2, downloaded https://github.com/pbek/QOwnNotes/releases/download/v24.12.1/QOwnNotes-x86_64.AppImage and ran it flawlessly.

And now I see what I didn't read... You are using the QOwnNotes-x86_64-Qt6.AppImage. Yes, that's not working at all yet.

If you want to work on the build process in the GitHub workflow, you can do so in your fork of QOwnNotes in:

#
# AppImage Qt6 build
#
build-appimage-qt6:
needs: create_release
runs-on: ubuntu-20.04
env:
QT_VERSION: 6.5.3
BUILD_DIR: build
name: '🐧 AppImage Qt 6.5.3'
steps:
- name: '🧰 Checkout'
uses: actions/checkout@v4
with:
submodules: recursive
- name: '⚙️ Install Qt'
uses: jurplel/install-qt-action@v4
with:
version: ${{env.QT_VERSION}}
modules: ${{env.QT6_MODULES}}
aqtversion: '==2.0.0'
cache: true
- name: '⚙️ Install dependencies'
run: |
sudo apt-get update
# sudo apt-get install libgl1-mesa-dev libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xinerama0 libzstd-dev
sudo apt install desktop-file-utils libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xinerama0 libxcb-composite0 libxcb-cursor0 libxcb-damage0 libxcb-dpms0 libxcb-dri2-0 libxcb-dri3-0 libxcb-ewmh2 libxcb-glx0 libxcb-present0 libxcb-randr0 libxcb-record0 libxcb-render0 libxcb-res0 libxcb-screensaver0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxkbcommon-x11-0
- name: '🚧 Compile application'
run: |
echo "#define RELEASE \"AppImage\"" > release.h
${{env.QMAKE}} ${{env.QMAKE_PROJECT}} CONFIG+=release PREFIX=/usr
lrelease QOwnNotes.pro
make -j${{env.CORES}}
- name: '⚙️ Install linuxdeploy'
run: |
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/1-alpha-20240109-1/linuxdeploy-x86_64.AppImage
wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/1-alpha-20240109-1/linuxdeploy-plugin-qt-x86_64.AppImage
chmod +x linuxdeploy-x86_64.AppImage
chmod +x linuxdeploy-plugin-qt-x86_64.AppImage
- name: '📦 Create AppImage'
run: |
export QMAKE=${{env.REPO_DIR}}/Qt/${{env.QT_VERSION}}/gcc_64/bin/${{env.QMAKE}}
export PATH=${{env.REPO_DIR}}/Qt/${{env.QT_VERSION}}/gcc_64/libexec:$PATH
cp ../icons/icon.png QOwnNotes.png
./linuxdeploy-x86_64.AppImage --appdir ${{env.BUILD_DIR}} -e ${{env.UNIXNAME}} -i ${{env.UNIXNAME}}.png -d PBE.QOwnNotes.desktop --plugin qt
mkdir -p ${{env.BUILD_DIR}}/usr/plugins/iconengines && cp -r ${{env.REPO_DIR}}/Qt/${{env.QT_VERSION}}/gcc_64/plugins/iconengines/libqsvgicon.so ${{env.BUILD_DIR}}/usr/plugins/iconengines
mkdir -p ${{env.BUILD_DIR}}/usr/languages && cp -r languages/*.qm ${{env.BUILD_DIR}}/usr/languages
cp -rL ${{env.REPO_DIR}}/Qt/${{env.QT_VERSION}}/gcc_64/lib/libQt6QmlWorkerScript.so.6 ${{env.BUILD_DIR}}/usr/lib
find ${{env.BUILD_DIR}}
./linuxdeploy-x86_64.AppImage --appdir ${{env.BUILD_DIR}} --output appimage
rm linuxdeploy-x86_64.AppImage
rm linuxdeploy-plugin-qt-x86_64.AppImage
ls -hal *.AppImage
find -iname "*.AppImage"
# It's ok if no file needs to be renamed
mv *.AppImage ${{env.EXECUTABLE}}-x86_64.AppImage ||:
sha256sum ${{env.EXECUTABLE}}-x86_64.AppImage > ${{env.EXECUTABLE}}-x86_64.AppImage.sha256sum
ls -hal *.AppImage
find -iname "*.AppImage"
pwd

A pull request would be very much appreciated!

@pbek pbek added Type: Feature adds functionality Importance: Low and removed Type: Support labels Dec 9, 2024
@pbek pbek changed the title [BUG] AppImage Qt6 on clean Ubuntu 22.04 and 24.04 prints warning "Incompatible version of OpenSSL" AppImage Qt6 on clean Ubuntu 22.04 and 24.04 prints warning "Incompatible version of OpenSSL" Dec 9, 2024
@pbek
Copy link
Owner

pbek commented Dec 9, 2024

Maybe also see #3074.

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

2 participants