[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
User avatar
OneCD
Experience counts
Posts: 4790
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

[BUG] QuAI package installer "unary operator expected"

Postby 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.

Debian 'Stretch' on my production NAS (TS-569 Pro), with the backup NAS (TS-559 Pro+) to eventually follow. When that happens, I'll no longer use or support any QNAP firmware. Debian powerup/poweroff times are < 1 minute.

GitHub repos
one.cd.only@gmail.com

User avatar
andersoncheng
Starting out
Posts: 41
Joined: Mon Dec 25, 2017 10:48 am
Contact:

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

Postby andersoncheng » Mon Jul 02, 2018 10:15 pm

!! Sure , let me check with team !

User avatar
andersoncheng
Starting out
Posts: 41
Joined: Mon Dec 25, 2017 10:48 am
Contact:

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

Postby 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
Experience counts
Posts: 4790
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

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

Postby 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. ;)

Debian 'Stretch' on my production NAS (TS-569 Pro), with the backup NAS (TS-559 Pro+) to eventually follow. When that happens, I'll no longer use or support any QNAP firmware. Debian powerup/poweroff times are < 1 minute.

GitHub repos
one.cd.only@gmail.com


Return to “QuAI”

Who is online

Users browsing this forum: No registered users and 1 guest