[myHD 0.5.1] RC2 version ... Add Ubuntu 1804 Bionic

New total application manager for HD_Station
User avatar
philippe
Site Admin
Posts: 150
Joined: Mon Apr 16, 2018 3:10 pm
Has thanked: 2 times
Been thanked: 15 times

Re: [myHD 0.5] RC2 version ... Add Ubuntu 1804 Bionic

Post by philippe » Tue Oct 09, 2018 10:58 pm

Hi,

VERY strange ... because this include that the myHD is not started ... qinstall never end ... I never see this ...

Just to be sure that myhD is correct can you do :
ls -ali myHD_0.5.qpkg
and
md5sum myHD_0.5.qpkg

... to be sure no truncated file ...
my result to compare are :

Code: Select all

[/share/Public] # ls -ali myHD_0.5.qpkg
458775 -rwxr-xr-x 1 admin root 3599039 2018-10-06 14:58 myHD_0.5.qpkg
[/share/Public] # md5sum myHD_0.5.qpkg
10631287294e8373dff392a0b2546df1  myHD_0.5.qpkg
[/share/Public] #
If all seem correct ... I will provide you a special file adding debug in qinstall to try to understand ...
qinstall.sh stop just after untar the archive and don't finish and don't start myHD.sh ...

Philippe.
NB it's an update ??? because i don't see the pre-update message ???
QNAP / Asustor package integrator
tarkett
Posts: 15
Joined: Tue May 29, 2018 7:19 pm
Has thanked: 2 times
Been thanked: 2 times

Re: [myHD 0.5] RC2 version ... Add Ubuntu 1804 Bionic

Post by tarkett » Tue Oct 09, 2018 11:23 pm

Hi,

yes it was an update from 0.4.1 and my output was similar to your output:

Code: Select all

[admin@nas01 Public]# ls -ali myHD_0.5.qpkg
15204370 -rwxrwxrwx 1 admin administrators 3599039 2018-10-06 14:58 myHD_0.5.qpkg*
[admin@nas01 Public]# md5sum myHD_0.5.qpkg
10631287294e8373dff392a0b2546df1  myHD_0.5.qpkg
Best regards
tarkett
My environment:
* NAS Qnap TVS-682 with 4.3.5.0722 + myHD Version 0.5.1 (Ubuntu 1804) with mykodi18
* Samsung TV connected via HDMI to NAS + Samsung Soundbar is connected via Bluetooth to the TV
Sonn
Posts: 11
Joined: Sun Sep 02, 2018 3:16 am
Has thanked: 4 times
Been thanked: 0

Re: [myHD 0.5] RC2 version ... Add Ubuntu 1804 Bionic

Post by Sonn » Wed Oct 10, 2018 12:59 am

philippe wrote:
Sun Oct 07, 2018 9:06 pm
Hi,
Sonn wrote:
Sun Oct 07, 2018 8:41 pm
myHD 0.5 gets hung up here at 45% ,upgrading from 0.4.1....Had to restart NAS … Will wait to try again later..
HD Station at 3.2.7 ..
Please try a manual install to get more information ...
cp myHD_0.5.qpkg to /share/Public (Public shared resource)
open a ssh console at admin / your_password
chmod +x myHD_0.5.qpkg
./myHD_0.5.qpkg

Philippe.

Should be home later next week ...on vacation... I see others had the same problem...
User avatar
philippe
Site Admin
Posts: 150
Joined: Mon Apr 16, 2018 3:10 pm
Has thanked: 2 times
Been thanked: 15 times

Re: [myHD 0.5] RC2 version ... Add Ubuntu 1804 Bionic

Post by philippe » Wed Oct 10, 2018 8:24 am

Hi,

I will create (in 2 or 3 hours) a specific version with debug.
I will redo a test (sorry my dev. platform is also my test platform ... so I have to clean all before)

PLEASE save your user sttings to be able to don't lost any personnal settings ...
cd /share/CACHEDEV1_DATA/.myHD (adapt CACHEDEV to your own)
and save the myHD_1604_home folder (ex. tar czf /share/Public/myHD_1604_home.tgz myHD_1604_home/ )

So after solve the problem or if you are oblige to a fresh install
you can stop myHD, untar the file and restart with your previous settings ...

Philippe.
QNAP / Asustor package integrator
User avatar
philippe
Site Admin
Posts: 150
Joined: Mon Apr 16, 2018 3:10 pm
Has thanked: 2 times
Been thanked: 15 times

Re: [myHD 0.5] RC2 version ... Add Ubuntu 1804 Bionic

Post by philippe » Wed Oct 10, 2018 8:47 am

Hi,

After saving your Home (as describe here before)

can you test for me :

/bin/sh -x myHD_0.5.qpkg

and return output here.

Philippe.
NB I have run my update from 0.4.1 BEFORE I update QTS ...
QNAP / Asustor package integrator
User avatar
philippe
Site Admin
Posts: 150
Joined: Mon Apr 16, 2018 3:10 pm
Has thanked: 2 times
Been thanked: 15 times

Re: [myHD 0.5] RC2 version ... Add Ubuntu 1804 Bionic

Post by philippe » Wed Oct 10, 2018 10:48 am

Hi,

I need more information, I have run a test : and (unfortunately to understand) ALL works as expected ???
totally remove myHD
myHD uninstall_myHD
...
install myHD_0.4.1

Code: Select all

[/share/Public/dev_qpkg/HD_Station/myHD/0.4] # ./myHD_0.4.1.qpkg
Install QNAP package on TS-NAS ...
myHD.tgz
8812+1 records in
8812+1 records out
3595320 bytes (3.4MB) copied, 0.121065 seconds, 28.3MB/s
qinstall.sh
qpkg.cfg
Set QPKG information to /etc/config/qpkg.conf
Link service start/stop script: myHD.sh
/share/CACHEDEV1_DATA/.qpkg/container-station/bin/wget
file myHD_delivery_1604.tgz exist and are at the good version
file myHD_1604_delivery_scripts.tgz exist and are at the good version
myHD_delivery_1604.tgz is already downloed and at good version
Downloaded ... continue ...
Downloaded and installed ... nothing to do ...
seems all run as well
internal name:MH_test, path:/share/CACHEDEV1_DATA/.qpkg/myHD/myHD_qpkg/temp/MH_test_1.9.9.qpkg
[CLI] QPKG MH_test is queuing
get keys or generate them from HD_Station / get sound def.
generate first time
reused existing keys .... strange but perhaps a previous install of myHD
myHD qnap user exist ...
Now start jchroot in background
/share/CACHEDEV1_DATA/.qpkg/myHD/bin/nohup: ignoring input and redirecting stderr to stdout
now start in background a survey to manage a clean exit
time to do extra works in myHD
To solve some launch problems (like AppImage)
/usr/bin/nohup: appending output to 'nohup.out'
Found hardware: "HDA-Intel" "Intel Valleyview2 HDMI" "HDA:80862882,80860101,00100000" "0x8086" "0x7270"
Hardware is initialized using a generic method
[/share/Public/dev_qpkg/HD_Station/myHD/0.4] #
... verify

Code: Select all

[/share/Public/dev_qpkg/HD_Station/myHD/0.4] # myHD status
==== is myHD running ?
==== myHD is running
====
==== PID is 31348
====
==== List of tasks running in myHD
==== ==== PID are internal to myHD not as in Q.T.S.
==== ==== user name are internal to myHD not as in Q.T.S.
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  2 10:36 ?        00:00:00 /sbin/init
root        19     1  1 10:36 ?        00:00:00 /lib/systemd/systemd-journald
root        36     1  2 10:36 ?        00:00:00 /lib/systemd/systemd-udevd
systemd+    61     1  0 10:36 ?        00:00:00 /lib/systemd/systemd-timesyncd
root        67     1  0 10:36 ?        00:00:00 /lib/systemd/systemd-logind
avahi       69     1  0 10:36 ?        00:00:00 avahi-daemon: running [TS653aPhil.local]
message+    71     1  0 10:36 ?        00:00:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
avahi      168    69  0 10:36 ?        00:00:00 avahi-daemon: chroot helper
root       261     1  0 10:36 ?        00:00:00 /usr/sbin/cron -f
root       276     1  0 10:36 ?        00:00:00 /bin/sh /etc/init.d/ondemand background
root       282   276  0 10:36 ?        00:00:00 sleep 60
root       286     1  0 10:36 ?        00:00:00 /usr/sbin/dropbear -p localhost:6222 -W 65536
root       300     1  0 10:36 tty1     00:00:00 /sbin/agetty --noclear tty1 linux
root       321     1  0 10:36 ?        00:00:00 /lib/systemd/systemd-timedated
qnap       324     1  0 10:36 ?        00:00:00 /lib/systemd/systemd --user
qnap       325   324  0 10:36 ?        00:00:00 (sd-pam)
qnap       334     1  0 10:36 ?        00:00:00 /bin/bash /myHD_scripts/bin/myserv_user
root       348     0  0 10:36 pts/4    00:00:00 /bin/su - root -c ps -eaf
root       349     1  0 10:36 ?        00:00:00 /lib/systemd/systemd --user
root       350   349  0 10:36 ?        00:00:00 (sd-pam)
root       354   348  0 10:36 ?        00:00:00 ps -eaf
====
==== List of user know by myHD
LIST of user in myHD :
root (NOT QNAP admin user but real root myHD user)
qnap (it's QNAP admin user MAPPED as qnap user in myHD)
End of the list
====
==== port used by myHD internal dropbear server
Internal Listen interface and port used :
DROPBEAR_PORT=localhost:6222
====
==== List shared ressources mounted in myHD
====== List of mounted folder ... MUST be empty on uninstall
/share/CACHEDEV1_DATA/.myHD/1604/myHD_temp
======
====
[/share/Public/dev_qpkg/HD_Station/myHD/0.4] #
... then update to 0.5 (using -x to get all step)

Code: Select all

[/share/Public/dev_qpkg/HD_Station/myHD/0.5] # /bin/sh -x myHD_0.5.qpkg
+ /bin/echo 'Install QNAP package on TS-NAS ...'
Install QNAP package on TS-NAS ...
+ MYQPKG_TMP=/share/Public/.mytemp
+ '[' -d /share/Public/.mytemp ']'
+ /bin/mkdir -p /share/Public/.mytemp
+ /bin/dd if=myHD_0.5.qpkg bs=408 skip=1
+ /bin/tar zxv -C /share/Public/.mytemp
myHD.tgz
8820+1 records in
8820+1 records out
3598631 bytes (3.4MB) copied, 0.096494 seconds, 35.6MB/s
qinstall.sh
qpkg.cfg
+ '[' 0 = 0 ']'
+ cd /share/Public/.mytemp
+ /bin/sh qinstall.sh
insmod: can't insert '/share/CACHEDEV1_DATA/.qpkg/myHD/modules/squashfs.ko': File exists

Session terminated, terminating shell... ...terminated.
Please wait ... shutdown is running
Please wait ... shutdown is running
myHD was stopped ...
restore swaps /dev/xxx put off by systemd at myHD stop
Restore /dev/md256 swaps
Restore /dev/md322 swaps
Pre-Update routine
post update routine
Set QPKG information to /etc/config/qpkg.conf
Link service start/stop script: myHD.sh
/share/CACHEDEV1_DATA/.qpkg/container-station/bin/wget
seems all run as well
get keys or generate them from HD_Station / get sound def.
exist so analyse if not changed ...
Keys are not changed
myHD qnap user exist ...
Now start jchroot in background
/share/CACHEDEV1_DATA/.qpkg/myHD/bin/nohup: ignoring input and redirecting stderr to stdout
now start in background a survey to manage a clean exit
time to do extra works in myHD
To solve some launch problems (like AppImage)
/usr/bin/nohup: appending output to 'nohup.out'
Found hardware: "HDA-Intel" "Intel Valleyview2 HDMI" "HDA:80862882,80860101,00100000" "0x8086" "0x7270"
Hardware is initialized using a generic method
+ cd ..
+ /bin/rm -rf /share/Public/.mytemp
+ exit 10
[/share/Public/dev_qpkg/HD_Station/myHD/0.5] #
Philippe.
QNAP / Asustor package integrator
tarkett
Posts: 15
Joined: Tue May 29, 2018 7:19 pm
Has thanked: 2 times
Been thanked: 2 times

Re: [myHD 0.5] RC2 version ... Add Ubuntu 1804 Bionic

Post by tarkett » Wed Oct 10, 2018 10:08 pm

Hi,

some more informations.

1. Verify the actual state (Version 0.4.1)

Code: Select all

[admin@nas01 ~]# myHD status
==== is myHD running ?
==== myHD is running
====
==== PID is 6795
====
==== List of tasks running in myHD
==== ==== PID are internal to myHD not as in Q.T.S.
==== ==== user name are internal to myHD not as in Q.T.S.
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 21:59 ?        00:00:00 /sbin/init
root        24     1  0 21:59 ?        00:00:00 /lib/systemd/systemd-journald
root        33     1  0 21:59 ?        00:00:00 /lib/systemd/systemd-udevd
systemd+    48     1  0 21:59 ?        00:00:00 /lib/systemd/systemd-timesyncd
root        99     1  0 21:59 ?        00:00:00 /usr/sbin/cron -f
root       101     1  0 21:59 ?        00:00:00 /lib/systemd/systemd-logind
message+   110     1  0 21:59 ?        00:00:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
avahi      117     1  0 21:59 ?        00:00:00 avahi-daemon: running [nas01.local]
avahi      141   117  0 21:59 ?        00:00:00 avahi-daemon: chroot helper
root       191     1  0 21:59 ?        00:00:00 /usr/sbin/dropbear -p localhost:6222 -W 65536
root       223     1  0 21:59 ?        00:00:00 /sbin/agetty --noclear tty1 linux
qnap       327     1  0 21:59 ?        00:00:00 /lib/systemd/systemd --user
qnap       328   327  0 21:59 ?        00:00:00 (sd-pam)
qnap       337     1  0 21:59 ?        00:00:00 /bin/bash /myHD_scripts/bin/myserv_user
root       901     0  0 22:01 pts/1    00:00:00 /bin/su - root -c ps -eaf
root       902     1  0 22:01 ?        00:00:00 /lib/systemd/systemd --user
root       903   902  0 22:01 ?        00:00:00 (sd-pam)
root       907   901  0 22:01 ?        00:00:00 ps -eaf
====
==== List of user know by myHD
LIST of user in myHD :
root (NOT QNAP admin user but real root myHD user)
qnap (it's QNAP admin user MAPPED as qnap user in myHD)
End of the list
====
==== port used by myHD internal dropbear server
Internal Listen interface and port used :
DROPBEAR_PORT=localhost:6222
====
==== List shared ressources mounted in myHD
====== List of mounted folder ... MUST be empty on uninstall
/share/CE_CACHEDEV1_DATA/.myHD/1604/myHD_temp
/share/CE_CACHEDEV1_DATA/.myHD/1604/share/Download
/share/CE_CACHEDEV1_DATA/.myHD/1604/share/media
======
====
[admin@nas01 ~]#
Now update to 0.5

Code: Select all

[admin@nas01 myHD_delivery]# /bin/sh -x myHD_0.5.qpkg
+ /bin/echo 'Install QNAP package on TS-NAS ...'
Install QNAP package on TS-NAS ...
+ MYQPKG_TMP=/share/Public/.mytemp
+ '[' -d /share/Public/.mytemp ']'
+ /bin/mkdir -p /share/Public/.mytemp
+ /bin/dd if=myHD_0.5.qpkg bs=408 skip=1
+ /bin/tar zxv -C /share/Public/.mytemp
myHD.tgz
8820+1 records in
8820+1 records out
3598631 bytes (3.4MB) copied, 0.034169 seconds, 100.4MB/s
qinstall.sh
qpkg.cfg
+ '[' 0 = 0 ']'
+ cd /share/Public/.mytemp
+ /bin/sh qinstall.sh
Best regards
tarkett
My environment:
* NAS Qnap TVS-682 with 4.3.5.0722 + myHD Version 0.5.1 (Ubuntu 1804) with mykodi18
* Samsung TV connected via HDMI to NAS + Samsung Soundbar is connected via Bluetooth to the TV
User avatar
philippe
Site Admin
Posts: 150
Joined: Mon Apr 16, 2018 3:10 pm
Has thanked: 2 times
Been thanked: 15 times

Re: [myHD 0.5] RC2 version ... Add Ubuntu 1804 Bionic

Post by philippe » Thu Oct 11, 2018 9:03 am

Hi,
===[EDIT] to reflect last with_trace version =====
HUM!! very strange

Please can you used this version (exact same version but with possibility to trace qinstall.sh and if need myHD.sh (the myHD command) I keep it for future version)
https://www.father-mande.ovh/Q/qpkg/myH ... h_trace-v1

How-to :
transfer to /share/Public (or where you want)
verify that it is executable
cd /share/Public
chmod a+x myHD_0.5.qpkg_with_trace-v1
(or rename it if you want ... the name of the file is not relevant)
validate the one shot trace (so you must redo it after each test ... but normally one test is enough)
touch /share/Public/.myHD_trace_qinstall (don't forgot the . (point))
... this validate trace in qinstall.sh (the QPKG install script)
run the install
./myHD_0.5.qpkg_with_trace-v1
NOW you will get a full trace of qinstall if you want to have also the previous trace do as before /bin/sh -x ./myHD_0.5.qpkg_with_trace-v1 BUT NOT necessary you do it before and no error are visible ...

If qinstall.sh run without error ( I don't think) you can add (at same time or in a new test trace in myHD.sh)
touch /share/Public/.myHD_trace_run (delete also after run)
and run again the install ...

Philippe.
QNAP / Asustor package integrator
tarkett
Posts: 15
Joined: Tue May 29, 2018 7:19 pm
Has thanked: 2 times
Been thanked: 2 times

Re: [myHD 0.5] RC2 version ... Add Ubuntu 1804 Bionic

Post by tarkett » Thu Oct 11, 2018 11:18 am

Hi,

here ist the new output in the console:

Code: Select all

[admin@nas01 myHD_delivery]# ./myHD_0.5.qpkg_with_trace
Install QNAP package on TS-NAS ...
myHD.tgz
8820+1 records in
8820+1 records out
3598781 bytes (3.4MB) copied, 0.029665 seconds, 115.7MB/s
qinstall.sh
qpkg.cfg
+ rm -f /share/Public/.myHD_trace_qinstall
+ find_base
++ /sbin/getcfg SHARE_DEF defPublic -d Public -f /etc/config/def_share.info
+ PUBLIC_SHARE=Public
+ QPKG_BASE=
++ /sbin/getcfg Public path -f /etc/config/smb.conf
+ publicdir=/share/CE_CACHEDEV1_DATA/Public
+ '[' '!' -z /share/CE_CACHEDEV1_DATA/Public ']'
+ '[' -d /share/CE_CACHEDEV1_DATA/Public ']'
++ /bin/echo /share/CE_CACHEDEV1_DATA/Public
++ /bin/cut -d / -f 2
+ publicdirp1=share
++ /bin/echo /share/CE_CACHEDEV1_DATA/Public
++ /bin/cut -d / -f 3
+ publicdirp2=CE_CACHEDEV1_DATA
++ /bin/echo /share/CE_CACHEDEV1_DATA/Public
++ /bin/cut -d / -f 4
+ publicdirp3=Public
+ '[' '!' -z share ']'
+ '[' '!' -z CE_CACHEDEV1_DATA ']'
+ '[' '!' -z Public ']'
+ '[' -d /share/CE_CACHEDEV1_DATA/Public ']'
+ QPKG_BASE=/share/CE_CACHEDEV1_DATA
+ '[' -z /share/CE_CACHEDEV1_DATA ']'
+ '[' -z /share/CE_CACHEDEV1_DATA ']'
+ QPKG_INSTALL_PATH=/share/CE_CACHEDEV1_DATA/.qpkg
+ QPKG_DIR=/share/CE_CACHEDEV1_DATA/.qpkg/myHD
+ test_hdstation
++ /sbin/getcfg HD_Station Install_Path -d xxx -f /etc/config/qpkg.conf
+ HDS_PATH=/share/CE_CACHEDEV1_DATA/.qpkg/HD_Station
+ '[' /share/CE_CACHEDEV1_DATA/.qpkg/HD_Station = xxx ']'
+ echo 'Start log'
+ UPDATE_FLAG=0
+ '[' -f ./myHD.tgz ']'
+ /sbin/log_tool -t 0 -a ' myHD New or Update installation'
+ rm -f /root/.myHD_lock
+ '[' '!' -e /share/CE_CACHEDEV1_DATA/.qpkg/myHD ']'
+ UPDATE_FLAG=1
+ /etc/init.d/myHD.sh stop
The file /share/Public/.myHD_trace_qinstall will be deleted (as we can see in the log), but what is with the file /share/Public/.myHD_trace_run?
Should I created also this file manually or should it be created from your script?

And yes, it doesn't work :D

EDIT: OK, now I understand your request better :mrgreen:
I must also create the file /share/Public/.myHD_trace_run to trace the script myHD.sh.
I do it, but it doesn't change something in the output. I have also the same problem, if I run the line "/etc/init.d/myHD.sh stop" manually.

Best regards
tarkett
Last edited by tarkett on Thu Oct 11, 2018 11:58 am, edited 1 time in total.
My environment:
* NAS Qnap TVS-682 with 4.3.5.0722 + myHD Version 0.5.1 (Ubuntu 1804) with mykodi18
* Samsung TV connected via HDMI to NAS + Samsung Soundbar is connected via Bluetooth to the TV
tarkett
Posts: 15
Joined: Tue May 29, 2018 7:19 pm
Has thanked: 2 times
Been thanked: 2 times

Re: [myHD 0.5] RC2 version ... Add Ubuntu 1804 Bionic

Post by tarkett » Thu Oct 11, 2018 12:06 pm

Hi,

please see the edit of my last comment. I do this test and it change nothing.

FYI: The comments myHD stop[start,status] also doesn't work, after I run the update Script. I must first reboot the NAS.
Is there a process which I can kill, that the reboot is not necessary?

Best regards
tarkett
My environment:
* NAS Qnap TVS-682 with 4.3.5.0722 + myHD Version 0.5.1 (Ubuntu 1804) with mykodi18
* Samsung TV connected via HDMI to NAS + Samsung Soundbar is connected via Bluetooth to the TV
Post Reply