SQX installation in Ubuntu requires apparmor profile
2 replies
Kelstern
9 months ago #292028
Hi everyone,
This is our first time posting in the StrategyQuant forums, and we are excited to be part of this community. Our team recently deployed StrategyQuant on our Linux infrastructure and encountered a hurdle during setup that I’d like to share, as it may help others facing the same issue.
We just purchased our license and began installing the software on our Linux VPS. After carefully following the tutorial, we encountered a permission issue preventing the graphical interface from launching—specifically, the app wouldn’t start due to Chromium execution restrictions in Electron library.
After three days of troubleshooting, we identified the root cause: Ubuntu 24.04.3 LTS has a known Electron library compatibility issue documented here:
– GitHub: electron/electron#41066
– GitHub: electron-builder#8635
The problem seems to be caused by AppArmor security policies blocking the Electron library.
[b]Solution[/b]
You have two options:
[list=1]
[*] Disable AppArmor entirely (not recommended for security)
[*] Create a targeted AppArmor profile for StrategyQuant (recommended)
[/list]
To implement the second approach, create the file:
[code]/etc/apparmor.d/StrategyQuantX_nocheck[/code]
with the following contents:
[code]
# This profile allows everything and only exists to give the
# application a name instead of having the label “unconfined”
abi <abi/4.0>,
include <tunables/global>
profile StrategyQuantX_nocheck “<path-to-SQX>/StrategyQuantX_nocheck” flags=(unconfined) {
userns,
# Site-specific additions and overrides. See local/README for details.
include if exists <local/StrategyQuantX_nocheck>
}
[/code]
Then either reboot your machine or load the profile immediately using:
[code]sudo apparmor_parser -r /etc/apparmor.d/StrategyQuantX_nocheck[/code]
[b]Note to StrategyQuant support team[/b]
We’d greatly appreciate it if this solution could be added to the official installation instructions for Linux deployments. This issue cost us three days of troubleshooting, and we’re confident other users will benefit from having this documented upfront.
Thank you very much.
Best regards,
Kelestern QuantFinance team
1
tomas262
9 months ago #292106
Hello,
thanks for your valuable feedback. I will forward to our dev team so they can work on a solution
1
tomas262
3 months ago #293956
Hello,
just to let you know we have just released a new update SQX 144. You can download the linux version using these links
StrategyQuant X for Linux (x64)
StrategyQuant X for Linux (ARM)
1
Viewing 2 replies - 1 through 2 (of 2 total)