[BUG] QuAI package installer "unary operator expected"

QNAP now provides a groundbreaking AI computing platform based on QNAP NAS called QuAI (pronounced "Q A I" ) - QNAP's AI Developer Package.
Data Mining/Machine Learning/Deep Learning
Post Reply
User avatar
OneCD
Ask me anything
Posts: 6121
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

[BUG] QuAI package installer "unary operator expected"

Post by OneCD » Wed Jun 27, 2018 6:18 am

My config:

Code: Select all

[~] # head -n6 /etc/config/uLinux.conf 
[System]
Model = TS-559
Internal Model = TS-559
Server comment =
Version = 4.2.6
Build Number = 20180531

Just tried installing this package, but it failed:

Code: Select all

[/share/Public] # sh QuAI_0.9.1.60_x86_64.qpkg 
Install QNAP package on TS-NAS...
./
./built_info
./qinstall.sh
./package_routines
./qpkg.cfg
4713+1 records in
4713+1 records out
109633+1 records in
109633+1 records out
package_routines: line 152: [: ==: unary operator expected
Installation Abort.

Code: Select all

[/share/Public/qa] # head -n152 package_routines | tail -n3
_check_docker_install() {
    enable=$(/sbin/getcfg container-station Enable -f ${CONF})
    if ! [ $enable == "TRUE" ]; then

The error occurs as no default return value has been set when running 'getcfg', and Container Station is not installed (it's not supported on my NAS).

Suggest modifying this command to:

Code: Select all

    enable=$(/sbin/getcfg container-station Enable -f ${CONF} -d FALSE)

andersoncheng wrote:

@andersoncheng, you seem to know something about this package. Can you please forward this information to the package maintainer? ;)

Thank you.

production NAS: TS-569 Pro with Debian 9.9 'Stretch' (power on/off times are < 1 minute)
backup NAS: TS-559 Pro+ with QTS 4.2.6 #20190730

one.cd.only@gmail.com

Image Image Image Image

User avatar
andersoncheng
Getting the hang of things
Posts: 65
Joined: Mon Dec 25, 2017 10:48 am
Contact:

Re: [BUG] QuAI package installer "unary operator expected"

Post by andersoncheng » Mon Jul 02, 2018 10:15 pm

!! Sure , let me check with team !

User avatar
andersoncheng
Getting the hang of things
Posts: 65
Joined: Mon Dec 25, 2017 10:48 am
Contact:

Re: [BUG] QuAI package installer "unary operator expected"

Post by andersoncheng » Mon Jul 02, 2018 10:17 pm

QuAI qpkg need Container Station, so that you may install container station before install QuAI qpkg , the system will check the package dependency!

User avatar
OneCD
Ask me anything
Posts: 6121
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [BUG] QuAI package installer "unary operator expected"

Post by OneCD » Tue Jul 03, 2018 1:55 am

The problem is if Container Station is not installed, the QuAI installer crashes. The dependency check is faulty. ;)

production NAS: TS-569 Pro with Debian 9.9 'Stretch' (power on/off times are < 1 minute)
backup NAS: TS-559 Pro+ with QTS 4.2.6 #20190730

one.cd.only@gmail.com

Image Image Image Image

Post Reply

Return to “QuAI”